]> git.pld-linux.org Git - packages/python-pyicu.git/commitdiff
- new, based on rpmforge list post
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Sep 2010 14:18:22 +0000 (14:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  http://lists.rpmforge.net/pipermail/users/2008-December/002149.html

Changed files:
    python-pyicu.spec -> 1.1

python-pyicu.spec [new file with mode: 0644]

diff --git a/python-pyicu.spec b/python-pyicu.spec
new file mode 100644 (file)
index 0000000..b079984
--- /dev/null
@@ -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
This page took 0.140717 seconds and 4 git commands to generate.