You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-proc-macro2/rust-proc-macro2.spec

152 lines
4.2 KiB

# Generated by rust2rpm
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
%global crate proc-macro2
Name: rust-%{crate}
Version: 0.4.26
Release: 1%{?dist}
Summary: Stable implementation of the upcoming new `proc_macro` API
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/proc-macro2
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(unicode-xid/default) >= 0.1.0 with crate(unicode-xid/default) < 0.2.0)
%if %{with check}
BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0)
%endif
%global _description \
A stable implementation of the upcoming new `proc_macro` API. Comes with an\
option, off by default, to also reimplement itself in terms of the upstream\
unstable API.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%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}+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
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sun Jan 20 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.26-1
- Update to 0.4.26
* Thu Jan 17 2019 Josh Stone <jistone@redhat.com> - 0.4.25-1
- Update to 0.4.25
* Fri Nov 16 2018 Josh Stone <jistone@redhat.com> - 0.4.24-1
- Update to 0.4.24
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.4.23-1
- Update to 0.4.23
* Sat Nov 10 2018 Josh Stone <jistone@redhat.com> - 0.4.21-1
- Update to 0.4.21
* Fri Oct 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.20-2
- Adapt to new packaging
* Thu Oct 04 2018 Josh Stone <jistone@redhat.com> - 0.4.20-1
- Update to 0.4.20
* Tue Sep 11 2018 Josh Stone <jistone@redhat.com> - 0.4.19-1
- Update to 0.4.19
* Fri Sep 07 2018 Josh Stone <jistone@redhat.com> - 0.4.18-1
- Update to 0.4.18
* Mon Aug 13 2018 Josh Stone <jistone@redhat.com> - 0.4.12-1
- Update to 0.4.12
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.9-2
- Rebuild to trigger tests
* Mon Jul 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.9-1
- Update to 0.4.9
* Wed Jul 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.8-1
- Update to 0.4.8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.6-1
- Update to 0.4.6
* Wed May 02 2018 Josh Stone <jistone@redhat.com> - 0.3.8-1
- Update to 0.3.8
* Tue Apr 24 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.7-1
- Update to 0.3.7
* Tue Apr 17 2018 Josh Stone <jistone@redhat.com> - 0.3.6-1
- Update to 0.3.6
* Fri Feb 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-1
- Update to 0.2.3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.2-1
- Update to 0.2.2
* Tue Jan 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-1
- Initial package