Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 4a4c731a1d
commit 2b9d7793c3

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.0.17 Version: 0.0.17
Release: 1%{?dist} Release: 2%{?dist}
Summary: Impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate Summary: Impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate
License: MIT License: MIT
@ -16,28 +16,177 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0)
BuildRequires: (crate(plain) >= 0.2.3 with crate(plain) < 0.3.0) BuildRequires: (crate(plain/default) >= 0.2.3 with crate(plain/default) < 0.3.0)
BuildRequires: (crate(scroll) >= 0.9.0 with crate(scroll) < 0.10.0) BuildRequires: (crate(scroll) >= 0.9.0 with crate(scroll) < 0.10.0)
BuildRequires: (crate(scroll/derive) >= 0.9.0 with crate(scroll/derive) < 0.10.0)
BuildRequires: (crate(scroll/std) >= 0.9.0 with crate(scroll/std) < 0.10.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(env_logger/default) >= 0.5.0 with crate(env_logger/default) < 0.6.0)
BuildRequires: (crate(env_logger) >= 0.5.0 with crate(env_logger) < 0.6.0)
%endif %endif
%description %global _description \
%{summary}. An impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
An impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading
crate. This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc CHANGELOG.md README.md
%{cargo_registry}/%{crate}-%{version}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages
which use "alloc" feature of "%{crate}" crate.
%files -n %{name}+alloc-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+archive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+archive-devel %{_description}
This package contains library source intended for building other packages
which use "archive" feature of "%{crate}" crate.
%files -n %{name}+archive-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+elf32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+elf32-devel %{_description}
This package contains library source intended for building other packages
which use "elf32" feature of "%{crate}" crate.
%files -n %{name}+elf32-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+elf64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+elf64-devel %{_description}
This package contains library source intended for building other packages
which use "elf64" feature of "%{crate}" crate.
%files -n %{name}+elf64-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+endian_fd-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+endian_fd-devel %{_description}
This package contains library source intended for building other packages
which use "endian_fd" feature of "%{crate}" crate.
%files -n %{name}+endian_fd-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+log-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+log-devel %{_description}
This package contains library source intended for building other packages
which use "log" feature of "%{crate}" crate.
%files -n %{name}+log-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+mach32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+mach32-devel %{_description}
This package contains library source intended for building other packages
which use "mach32" feature of "%{crate}" crate.
%files -n %{name}+mach32-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+mach64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+mach64-devel %{_description}
This package contains library source intended for building other packages
which use "mach64" feature of "%{crate}" crate.
%files -n %{name}+mach64-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+pe32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pe32-devel %{_description}
This package contains library source intended for building other packages
which use "pe32" feature of "%{crate}" crate.
%files -n %{name}+pe32-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+pe64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pe64-devel %{_description}
This package contains library source intended for building other packages
which use "pe64" feature of "%{crate}" crate.
%files -n %{name}+pe64-devel
%ghost %{cargo_registry}/%{crate}-%{version}/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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -54,12 +203,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE
%doc CHANGELOG.md README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.0.17-2
- Adapt to new packaging
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.17-1 * Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.17-1
- Update to 0.0.17 - Update to 0.0.17

Loading…
Cancel
Save