Build Python3 version as well (#917449)
This commit is contained in:
parent
5505c67e08
commit
13049f1eaf
45
pyicu.spec
45
pyicu.spec
|
@ -4,7 +4,7 @@
|
||||||
%define realname PyICU
|
%define realname PyICU
|
||||||
Name: pyicu
|
Name: pyicu
|
||||||
Version: 1.5
|
Version: 1.5
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Python extension wrapping IBM's ICU C++ libraries
|
Summary: Python extension wrapping IBM's ICU C++ libraries
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -24,32 +24,61 @@ C/C++ and Java libraries providing Unicode and Globalization support
|
||||||
for software applications. ICU is widely portable and gives applications
|
for software applications. ICU is widely portable and gives applications
|
||||||
the same results on all platforms and between C/C++ and Javasoftware.
|
the same results on all platforms and between C/C++ and Javasoftware.
|
||||||
|
|
||||||
|
%package -n python3-pyicu
|
||||||
|
Summary: Python3 extension wrapping IBM's ICU C++ libraries
|
||||||
|
%description -n python3-pyicu
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{realname}-%{version}
|
%setup -q -n %{realname}-%{version}
|
||||||
|
|
||||||
|
rm -rf %{py3dir}
|
||||||
|
cp -a . %{py3dir}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
|
||||||
|
%{__python2} setup.py build
|
||||||
|
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py build
|
||||||
|
popd
|
||||||
|
|
||||||
# we don't want to provide private python extension libs
|
# we don't want to provide private python extension libs
|
||||||
%{?filter_setup:
|
%{?filter_setup:
|
||||||
%filter_provides_in %{python_sitearch}/.*\.so$
|
%filter_provides_in %{python2_sitearch}/.*\.so$ %{python3_sitearch}/.*\.so$
|
||||||
%filter_setup
|
%filter_setup
|
||||||
}
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python} setup.py test
|
%{__python2} setup.py test
|
||||||
|
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py test
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||||
|
|
||||||
|
pushd %{py3dir}
|
||||||
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||||
|
popd
|
||||||
|
|
||||||
# Remove tests
|
# Remove tests
|
||||||
rm -rf %{buildroot}%{python_sitearch}/tests
|
rm -rf %{buildroot}%{python2_sitearch}/tests %{buildroot}%{python3_sitearch}/tests
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README CHANGES CREDITS
|
%doc LICENSE README CHANGES CREDITS
|
||||||
%{python_sitearch}/*.*
|
%{python2_sitearch}/*
|
||||||
%{python_sitearch}/%{realname}-%{version}-py?.?.egg-info/*.*
|
|
||||||
|
%files -n python3-pyicu
|
||||||
|
%doc LICENSE
|
||||||
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 16 2014 Bastien Nocera <bnocera@redhat.com> 1.5-6
|
||||||
|
- Build Python3 version as well (#917449)
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue