parent
54869cb315
commit
5e138505c7
@ -0,0 +1 @@
|
|||||||
|
/syn-0.11.11.crate
|
@ -0,0 +1,90 @@
|
|||||||
|
# Generated by rust2rpm
|
||||||
|
# It relies on syntex* 0.58 which is not latest version and has some number
|
||||||
|
# of dependencies while latest depends on serde which depends on syn...
|
||||||
|
%bcond_with check
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
%global crate syn
|
||||||
|
|
||||||
|
Name: rust-%{crate}
|
||||||
|
Version: 0.11.11
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Nom parser for Rust source code
|
||||||
|
|
||||||
|
License: MIT or ASL 2.0
|
||||||
|
URL: https://crates.io/crates/syn
|
||||||
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||||
|
# Initial patched metadata
|
||||||
|
# * No paths
|
||||||
|
# * Bump unicode-xid to 0.1, https://github.com/dtolnay/syn/commit/570695ea9345d9db9e089a9e21f2b157dffa6fb3
|
||||||
|
Patch0: syn-0.11.11-fix-metadata.diff
|
||||||
|
|
||||||
|
ExclusiveArch: %{rust_arches}
|
||||||
|
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
# [dependencies]
|
||||||
|
BuildRequires: (crate(quote) >= 0.3.7 with crate(quote) < 0.4.0)
|
||||||
|
BuildRequires: (crate(synom) >= 0.11.0 with crate(synom) < 0.12.0)
|
||||||
|
BuildRequires: (crate(unicode-xid) >= 0.1.0 with crate(unicode-xid) < 0.2.0)
|
||||||
|
%if %{with check}
|
||||||
|
# [dev-dependencies]
|
||||||
|
BuildRequires: (crate(syntex_pos) >= 0.58.0 with crate(syntex_pos) < 0.59.0)
|
||||||
|
BuildRequires: (crate(syntex_syntax) >= 0.58.0 with crate(syntex_syntax) < 0.59.0)
|
||||||
|
BuildRequires: (crate(tempdir) >= 0.3.5 with crate(tempdir) < 0.4.0)
|
||||||
|
BuildRequires: (crate(walkdir) >= 1.0.1 with crate(walkdir) < 2.0.0)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Nom parser for Rust source code.
|
||||||
|
|
||||||
|
This package contains library source intended for building other packages
|
||||||
|
which use %{crate} from crates.io.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version} -p1
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cargo_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cargo_install
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%cargo_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license LICENSE-MIT LICENSE-APACHE
|
||||||
|
%doc README.md
|
||||||
|
%{cargo_registry}/%{crate}-%{version}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.11-1
|
||||||
|
- Update to 0.11.11
|
||||||
|
|
||||||
|
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.9-2
|
||||||
|
- Port to use rust-packaging
|
||||||
|
|
||||||
|
* Tue Mar 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.9-1
|
||||||
|
- Update to 0.11.9
|
||||||
|
|
||||||
|
* Tue Feb 28 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.8-1
|
||||||
|
- Update to 0.11.8
|
||||||
|
|
||||||
|
* Mon Feb 27 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.7-1
|
||||||
|
- Update to 0.11.7
|
||||||
|
|
||||||
|
* Fri Feb 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.6-1
|
||||||
|
- Update to 0.11.6
|
||||||
|
|
||||||
|
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.4-1
|
||||||
|
- Initial package
|
@ -0,0 +1 @@
|
|||||||
|
SHA512 (syn-0.11.11.crate) = 285bdc1f9b53fe791bd35b10a06fc106231c4eca908244f7ba7366a865452ec2dc8bbff275a52725d29c48d2065790ff6eb37c6eb9c1968aeb0af38c028d173e
|
@ -0,0 +1,13 @@
|
|||||||
|
--- syn-0.11.11/Cargo.toml 2017-04-20T19:12:24+02:00
|
||||||
|
+++ syn-0.11.11/Cargo.toml 2017-06-15T10:32:59.627969+02:00
|
||||||
|
@@ -20,8 +20,8 @@
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
quote = { version = "0.3.7", optional = true }
|
||||||
|
-unicode-xid = { version = "0.0.4", optional = true }
|
||||||
|
-synom = { version = "0.11", path = "synom", optional = true }
|
||||||
|
+unicode-xid = { version = "0.1", optional = true }
|
||||||
|
+synom = { version = "0.11", optional = true }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
syntex_pos = "0.58"
|
Loading…
Reference in new issue