From a64306b6cf0ad4ef3ada839847407d41c659b45c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 22 Sep 2010 14:18:22 +0000 Subject: [PATCH] - new, based on rpmforge list post http://lists.rpmforge.net/pipermail/users/2008-December/002149.html Changed files: python-pyicu.spec -> 1.1 --- python-pyicu.spec | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 python-pyicu.spec diff --git a/python-pyicu.spec b/python-pyicu.spec new file mode 100644 index 0000000..b079984 --- /dev/null +++ b/python-pyicu.spec @@ -0,0 +1,50 @@ +%define module pyicu +Summary: PyICU is a python extension wrapping IBM's ICU C++ API +Name: python-%{module} +Version: 0.8.1 +Release: 1 +License: GPL +Group: Base +URL: http://pyicu.osafoundation.org/ +Source0: http://pypi.python.org/packages/source/P/PyICU/PyICU-%{version}.tar.gz +# Source0-md5: 789092993f84ccd6ba21d7346d6e093d +BuildRequires: libicu-devel >= 3.6 +BuildRequires: libstdc++-devel +BuildRequires: python-devel >= 1:2.3 +BuildRequires: rpmbuild(macros) >= 1.219 +Requires: libicu >= 3.6 +Requires: libstdc++ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PyICU is a python extension wrapping IBM's ICU C++ API. + +%prep +%setup -q -n PyICU-%{version} + +%build +CC="%{__cc}" \ +CFLAGS="%{rpmcflags}" \ +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install \ + --skip-build \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES CREDITS LICENSE README +%{py_sitedir}/PyICU.py +%{py_sitedir}/PyICU.py[co] +%{py_sitedir}/_PyICU.so +%if "%{py_ver}" > "2.4" +%{py_sitedir}/PyICU-%{version}*.egg-info +%endif -- 2.43.0