]> git.pld-linux.org Git - packages/python-pyicu.git/blame - python-pyicu.spec
- release 2
[packages/python-pyicu.git] / python-pyicu.spec
CommitLineData
a64306b6
ER
1%define module pyicu
2Summary: PyICU is a python extension wrapping IBM's ICU C++ API
3Name: python-%{module}
8aa5398d 4Version: 1.1
5617cb48 5Release: 2
bf26a09a
ER
6License: BSD-like
7Group: Development/Languages/Python
a64306b6
ER
8URL: http://pyicu.osafoundation.org/
9Source0: http://pypi.python.org/packages/source/P/PyICU/PyICU-%{version}.tar.gz
8aa5398d 10# Source0-md5: 70cbb5b43c3e6939b74c3f1b27e47aae
a64306b6
ER
11BuildRequires: libicu-devel >= 3.6
12BuildRequires: libstdc++-devel
13BuildRequires: python-devel >= 1:2.3
2a710a52 14BuildRequires: python-modules
15BuildRequires: rpm-pythonprov
a64306b6 16BuildRequires: rpmbuild(macros) >= 1.219
a64306b6
ER
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20PyICU is a python extension wrapping IBM's ICU C++ API.
21
22%prep
23%setup -q -n PyICU-%{version}
24
25%build
26CC="%{__cc}" \
27CFLAGS="%{rpmcflags}" \
28%{__python} setup.py build
29
30%install
31rm -rf $RPM_BUILD_ROOT
32%{__python} setup.py install \
33 --skip-build \
34 --optimize=2 \
35 --root=$RPM_BUILD_ROOT
36
37%py_postclean
38
39%clean
40rm -rf $RPM_BUILD_ROOT
41
42%files
43%defattr(644,root,root,755)
44%doc CHANGES CREDITS LICENSE README
a64306b6 45%{py_sitedir}/PyICU.py[co]
bf26a09a
ER
46%{py_sitedir}/docs.py[co]
47%{py_sitedir}/icu.py[co]
48%attr(755,root,root) %{py_sitedir}/_icu.so
a64306b6
ER
49%if "%{py_ver}" > "2.4"
50%{py_sitedir}/PyICU-%{version}*.egg-info
51%endif
This page took 0.073615 seconds and 4 git commands to generate.