/[packages]/updates/6/rust-packaging/current/SPECS/rust-packaging.spec
ViewVC logotype

Diff of /updates/6/rust-packaging/current/SPECS/rust-packaging.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1258324 by akien, Sat Jul 29 16:59:03 2017 UTC revision 1258325 by akien, Tue Sep 11 08:37:02 2018 UTC
# Line 1  Line 1 
1  %bcond_without check  %bcond_without check
2    %{?python_enable_dependency_generator}
3    
4  Name:           rust-packaging  Name:           rust-packaging
5  Version:        4  Version:        6
6  Release:        %mkrel 1  Release:        %mkrel 1
7  Summary:        RPM macros for building Rust packages on various architectures  Summary:        RPM macros for building Rust packages on various architectures
8  %if 0%{?mageia}  %if 0%{?mageia}
# Line 11  License:        MIT Line 12  License:        MIT
12  URL:            https://pagure.io/fedora-rust/rust2rpm  URL:            https://pagure.io/fedora-rust/rust2rpm
13  Source0:        https://releases.pagure.org/fedora-rust/rust2rpm/rust2rpm-%{version}.tar.xz  Source0:        https://releases.pagure.org/fedora-rust/rust2rpm/rust2rpm-%{version}.tar.xz
14    
15    # Upstream requires Python 3.6+, those patches help with 3.5 compat
16    Patch0:         0001-Replace-f-strings-by-old-format-for-Python-3.5-compa.patch
17    Patch1:         rust2rpm-6-fix-test-with-python3.5.patch
18    
19  # (akien) Already required by rpm-mageia-config-build-2.20-9.1.mga6,  # (akien) Already required by rpm-mageia-config-build-2.20-9.1.mga6,
20  # but it's being validated at the same time as this package is introduced.  # but it's being validated at the same time as this package is introduced.
21  BuildRequires:  rust-srpm-macros  BuildRequires:  rust-srpm-macros
# Line 22  ExclusiveArch:  %{rust_arches} noarch Line 27  ExclusiveArch:  %{rust_arches} noarch
27  Requires:       gawk >= 4.1.0  Requires:       gawk >= 4.1.0
28  Requires:       python3-rust2rpm = %{?epoch:%{epoch}:}%{version}-%{release}  Requires:       python3-rust2rpm = %{?epoch:%{epoch}:}%{version}-%{release}
29  Requires:       rust-srpm-macros = %{version}  Requires:       rust-srpm-macros = %{version}
30    Requires:       rust
31    Requires:       cargo
32    
33  # (akien) rust-rpm-macros was split in rust-packaging and rust-srpm-macros  # (akien) rust-rpm-macros was split in rust-packaging and rust-srpm-macros
34  Obsoletes:      rust-rpm-macros < 3-1  Obsoletes:      rust-rpm-macros < 3-1
# Line 38  BuildRequires:  python3-setuptools Line 45  BuildRequires:  python3-setuptools
45  BuildRequires:  python3-pytest  BuildRequires:  python3-pytest
46  BuildRequires:  cargo  BuildRequires:  cargo
47  BuildRequires:  python3-semantic_version  BuildRequires:  python3-semantic_version
48    BuildRequires:  python3-rustcfg
49  %endif  %endif
50  Requires:       cargo  Requires:       cargo
 Requires:       python3-semantic_version  
 Requires:       python3-jinja2  
 Requires:       python3-requests  
 Requires:       python3-tqdm  
 %if 0%{?mageia}  
 Requires:       locales-en  
 %endif  
51  Obsoletes:      rust2rpm < 1-8  Obsoletes:      rust2rpm < 1-8
52  Provides:       rust2rpm = %{version}-%{release}  Provides:       rust2rpm = %{version}-%{release}
53  %{?python_provide:%python_provide python3-rust2rpm}  %{?python_provide:%python_provide python3-rust2rpm}
# Line 56  Provides:       rust2rpm = %{version}-%{ Line 57  Provides:       rust2rpm = %{version}-%{
57    
58  %prep  %prep
59  %autosetup -n rust2rpm-%{version} -p1  %autosetup -n rust2rpm-%{version} -p1
 lang=  
 %if (0%{?fedora} && 0%{?fedora} <= 25) || (0%{?rhel} && 0%{?rhel} <= 7)  
 lang=C.UTF-8  
 %else  
 %if 0%{?mageia}  
 lang=en_US.UTF-8  
 %endif  
 %endif  
 [ -n "$lang" ] && sed -r -i -e "s|(%\{_bindir\}/cargo-inspector)|env LANG=$lang \1|" data/cargo.attr data/macros.cargo  
60    
61  %build  %build
62  %py3_build  %py3_build
# Line 76  install -D -p -m 0644 -t %{buildroot}%{_ Line 68  install -D -p -m 0644 -t %{buildroot}%{_
68    
69  %if %{with check}  %if %{with check}
70  %check  %check
71  py.test-%{python3_version} -v test.py  py.test-%{python3_version} -vv test.py
72  %endif  %endif
73    
74  %files  %files

Legend:
Removed from v.1258324  
changed lines
  Added in v.1258325

  ViewVC Help
Powered by ViewVC 1.1.30