pyicu/pyicu.spec

190 lines
6.0 KiB
RPMSpec
Raw Normal View History

2011-05-16 14:41:30 +00:00
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
%define realname PyICU
Name: pyicu
2013-02-08 14:20:30 +00:00
Version: 1.5
Release: 23%{?dist}
2011-05-16 14:41:30 +00:00
Summary: Python extension wrapping IBM's ICU C++ libraries
Group: Development/Tools
License: MIT
URL: http://pyicu.osafoundation.org/
Source0: http://pypi.python.org/packages/source/P/%{realname}/%{realname}-%{version}.tar.gz
2014-07-16 20:48:58 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2011-05-16 14:41:30 +00:00
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: libicu
BuildRequires: libicu-devel
BuildRequires: gcc-c++
2014-08-27 13:28:40 +00:00
Patch0: 0001-fix-build-with-icu-53.1.patch
2014-08-27 13:39:34 +00:00
Patch1: 0001-disable-failing-test.patch
2015-10-29 12:49:05 +00:00
Patch2: pyicu-1.5-fix-build-with-icu-56.1.patch
2014-08-27 13:28:40 +00:00
%global _description\
PyICU is Python extension wrapping IBM's International Components\
for Unicode C++ library (ICU). ICU is a mature, widely used set of\
C/C++ and Java libraries providing Unicode and Globalization support\
for software applications. ICU is widely portable and gives applications\
the same results on all platforms and between C/C++ and Javasoftware.
%description %_description
%package -n python2-pyicu
Summary: %summary
%{?python_provide:%python_provide python2-pyicu}
# Remove before F30
Provides: pyicu%{?_isa} = %{version}-%{release}
Obsoletes: pyicu < %{version}-%{release}
%description -n python2-pyicu %_description
2011-05-16 14:41:30 +00:00
%package -n python3-pyicu
Summary: Python3 extension wrapping IBM's ICU C++ libraries
%description -n python3-pyicu
%{summary}.
2011-05-16 14:41:30 +00:00
%prep
%setup -q -n %{realname}-%{version}
2014-08-27 13:28:40 +00:00
%patch0 -p1
2014-08-27 13:39:34 +00:00
%patch1 -p1
2015-10-29 12:49:05 +00:00
%patch2 -p1
2014-08-27 13:28:40 +00:00
rm -rf %{py3dir}
cp -a . %{py3dir}
2011-05-16 14:41:30 +00:00
%build
%{__python2} setup.py build
pushd %{py3dir}
%{__python3} setup.py build
popd
2011-05-16 14:41:30 +00:00
# we don't want to provide private python extension libs
%{?filter_setup:
%filter_provides_in %{python2_sitearch}/.*\.so$ %{python3_sitearch}/.*\.so$
2011-05-16 14:41:30 +00:00
%filter_setup
}
%check
%{__python2} setup.py test
pushd %{py3dir}
%{__python3} setup.py test
popd
2011-05-16 14:41:30 +00:00
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
2011-05-16 14:41:30 +00:00
# Remove tests
rm -rf %{buildroot}%{python2_sitearch}/tests %{buildroot}%{python3_sitearch}/tests
2011-05-16 14:41:30 +00:00
%files -n python2-pyicu
2011-05-16 14:41:30 +00:00
%defattr(-,root,root,-)
%doc LICENSE README CHANGES CREDITS
%{python2_sitearch}/*
%files -n python3-pyicu
%doc LICENSE
%{python3_sitearch}/*
2011-05-16 14:41:30 +00:00
%changelog
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5-23
- Python 2 binary package renamed to python2-pyicu
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.5-20
- Rebuild due to bug in RPM (RHBZ #1468476)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-12-19 17:20:36 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5-18
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-17
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-04-15 18:15:04 +00:00
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 1.5-16
- rebuild for ICU 57.1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-14
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-10-29 12:49:05 +00:00
* Thu Oct 29 2015 Eike Rathke <erack@redhat.com> - 1.5-13
- fix build with ICU 56.1
2015-10-28 13:08:44 +00:00
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 1.5-12
- rebuild for ICU 56.1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-02 14:54:36 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5-10
- Rebuilt for GCC 5 C++11 ABI change
2015-01-26 16:02:34 +00:00
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 1.5-9
- rebuild for ICU 54.1
2014-08-26 11:57:31 +00:00
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 1.5-8
- rebuild for ICU 53.1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-02-14 05:17:33 +00:00
* Fri Feb 14 2014 Parag Nemade <paragn AT fedoraproject DOT org> - 1.5-4
- Rebuild for icu 52
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-22 11:53:17 +00:00
* Mon Jul 22 2013 David Tardon <dtardon@redhat.com> - 1.5-2
- rebuild for ICU ABI break
2013-02-08 14:20:30 +00:00
* Fri Feb 08 2013 Jon Ciesla <limburgher@gmail.com> - 1.5-1
2013-02-08 13:56:44 +00:00
- libicu rebuild.
2013-02-08 14:20:30 +00:00
- Update to 1.5, 1.4 doesn't build on new libicu.
2013-02-08 13:56:44 +00:00
2012-08-22 05:23:02 +00:00
* Wed Aug 22 2012 Tom Callaway <spot@fedoraproject.org> - 1.4-1
- update to 1.4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-10-11 14:32:54 +00:00
* Tue Oct 11 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.2-1
- New upstream 1.2 release
2011-05-16 14:41:30 +00:00
* Sun May 08 2011 Prabin Kumar Datta <prabindatta@fedoraproject.org> - 1.1-2
- added CHANGES CREDITS under doc section
- updated URL
- added check section
* Thu Mar 17 2011 Prabin Kumar Datta <prabindatta@fedoraproject.org> - 1.1-1
- Initial build