Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent b77b1b1abd
commit 1c44b15b51
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -7,7 +7,7 @@
Name: rust-%{crate}
Version: 0.15.14
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Parser for Rust source code
# Upstream license specification: MIT/Apache-2.0
@ -18,29 +18,179 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(proc-macro2) >= 0.4.4 with crate(proc-macro2) < 0.5.0)
BuildRequires: (crate(proc-macro2/proc-macro) >= 0.4.4 with crate(proc-macro2/proc-macro) < 0.5.0)
BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0)
BuildRequires: (crate(unicode-xid) >= 0.1.0 with crate(unicode-xid) < 0.2.0)
BuildRequires: (crate(quote/proc-macro) >= 0.6.0 with crate(quote/proc-macro) < 0.7.0)
BuildRequires: (crate(unicode-xid/default) >= 0.1.0 with crate(unicode-xid/default) < 0.2.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(rayon) >= 1.0.0 with crate(rayon) < 2.0.0)
BuildRequires: (crate(regex) >= 1.0.0 with crate(regex) < 2.0.0)
BuildRequires: (crate(walkdir) >= 2.1.0 with crate(walkdir) < 3.0.0)
BuildRequires: (crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0)
BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0)
BuildRequires: (crate(walkdir/default) >= 2.1.0 with crate(walkdir/default) < 3.0.0)
%endif
%description
%{summary}.
%global _description \
Parser for Rust source code.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Parser for Rust source code.
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc 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}+clone-impls-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+clone-impls-devel %{_description}
This package contains library source intended for building other packages
which use "clone-impls" feature of "%{crate}" crate.
%files -n %{name}+clone-impls-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+derive-devel %{_description}
This package contains library source intended for building other packages
which use "derive" feature of "%{crate}" crate.
%files -n %{name}+derive-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+extra-traits-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+extra-traits-devel %{_description}
This package contains library source intended for building other packages
which use "extra-traits" feature of "%{crate}" crate.
%files -n %{name}+extra-traits-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+fold-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fold-devel %{_description}
This package contains library source intended for building other packages
which use "fold" feature of "%{crate}" crate.
%files -n %{name}+fold-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+full-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+full-devel %{_description}
This package contains library source intended for building other packages
which use %{crate} from crates.io.
which use "full" feature of "%{crate}" crate.
%files -n %{name}+full-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+parsing-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+parsing-devel %{_description}
This package contains library source intended for building other packages
which use "parsing" feature of "%{crate}" crate.
%files -n %{name}+parsing-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+printing-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+printing-devel %{_description}
This package contains library source intended for building other packages
which use "printing" feature of "%{crate}" crate.
%files -n %{name}+printing-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+proc-macro-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+proc-macro-devel %{_description}
This package contains library source intended for building other packages
which use "proc-macro" feature of "%{crate}" crate.
%files -n %{name}+proc-macro-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+quote-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+quote-devel %{_description}
This package contains library source intended for building other packages
which use "quote" feature of "%{crate}" crate.
%files -n %{name}+quote-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+visit-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+visit-devel %{_description}
This package contains library source intended for building other packages
which use "visit" feature of "%{crate}" crate.
%files -n %{name}+visit-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+visit-mut-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+visit-mut-devel %{_description}
This package contains library source intended for building other packages
which use "visit-mut" feature of "%{crate}" crate.
%files -n %{name}+visit-mut-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
@ -57,12 +207,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Oct 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.14-2
- Adapt to new packaging
* Fri Oct 26 2018 Josh Stone <jistone@redhat.com> - 0.15.14-1
- Update to 0.15.14

Loading…
Cancel
Save