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
|
2014-06-07 17:59:12 +00:00
|
|
|
Release: 5%{?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
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: libicu
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{realname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
# we don't want to provide private python extension libs
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__python} setup.py test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
# Remove tests
|
|
|
|
rm -rf %{buildroot}%{python_sitearch}/tests
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README CHANGES CREDITS
|
|
|
|
%{python_sitearch}/*.*
|
|
|
|
%{python_sitearch}/%{realname}-%{version}-py?.?.egg-info/*.*
|
|
|
|
|
|
|
|
%changelog
|
2014-06-07 17:59:12 +00:00
|
|
|
* 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
|
|
|
|
|
2013-08-04 05:53:13 +00:00
|
|
|
* 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
|
|
|
|
|
2012-07-21 04:06:13 +00:00
|
|
|
* 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
|
|
|
|
|
2012-01-14 01:26:09 +00:00
|
|
|
* 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
|