diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7130bc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gif-0.11.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 14df7d3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gif0.11 - -The rust-gif0.11 package diff --git a/rust-gif0.11.spec b/rust-gif0.11.spec new file mode 100644 index 0000000..cf63f06 --- /dev/null +++ b/rust-gif0.11.spec @@ -0,0 +1,96 @@ +# Generated by rust2rpm 24 +# * data files required by tests are not included in published crates +%bcond_with check +%global debug_package %{nil} + +%global crate gif + +Name: rust-gif0.11 +Version: 0.11.4 +Release: %autorelease +Summary: GIF de- and encoder + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gif +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +GIF de- and encoder.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/Changes.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+raii_no_panic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+raii_no_panic-devel %{_description} + +This package contains library source intended for building other packages which +use the "raii_no_panic" feature of the "%{crate}" crate. + +%files -n %{name}+raii_no_panic-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..53959e7 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = GIF de- and encoder diff --git a/sources b/sources new file mode 100644 index 0000000..5c2d499 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gif-0.11.4.crate) = 3de0534b35bd783b54715e7f8a92f2d8a22934949627716cc3ade3c8036489d2b9604292eeeeced820b149865bc44a5de9d05700ebace073b48737759b5296b9