]> git.pld-linux.org Git - packages/python-pyicu.git/blame - python-pyicu.spec
- up to 1.0, cleanup deps, fix group, update license
[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}
bf26a09a 4Version: 1.0
a64306b6 5Release: 1
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
bf26a09a 10# Source0-md5: 138d257dd11e1c438d8d7b7fec9a2bdf
a64306b6
ER
11BuildRequires: libicu-devel >= 3.6
12BuildRequires: libstdc++-devel
13BuildRequires: python-devel >= 1:2.3
14BuildRequires: rpmbuild(macros) >= 1.219
a64306b6
ER
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18PyICU is a python extension wrapping IBM's ICU C++ API.
19
20%prep
21%setup -q -n PyICU-%{version}
22
23%build
24CC="%{__cc}" \
25CFLAGS="%{rpmcflags}" \
26%{__python} setup.py build
27
28%install
29rm -rf $RPM_BUILD_ROOT
30%{__python} setup.py install \
31 --skip-build \
32 --optimize=2 \
33 --root=$RPM_BUILD_ROOT
34
35%py_postclean
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%files
41%defattr(644,root,root,755)
42%doc CHANGES CREDITS LICENSE README
a64306b6 43%{py_sitedir}/PyICU.py[co]
bf26a09a
ER
44%{py_sitedir}/docs.py[co]
45%{py_sitedir}/icu.py[co]
46%attr(755,root,root) %{py_sitedir}/_icu.so
a64306b6
ER
47%if "%{py_ver}" > "2.4"
48%{py_sitedir}/PyICU-%{version}*.egg-info
49%endif
This page took 0.078959 seconds and 4 git commands to generate.