]> git.pld-linux.org Git - packages/python-pyicu.git/blame - python-pyicu.spec
- files fix
[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}
4Version: 0.8.1
5Release: 1
6License: GPL
7Group: Base
8URL: http://pyicu.osafoundation.org/
9Source0: http://pypi.python.org/packages/source/P/PyICU/PyICU-%{version}.tar.gz
10# Source0-md5: 789092993f84ccd6ba21d7346d6e093d
11BuildRequires: libicu-devel >= 3.6
12BuildRequires: libstdc++-devel
13BuildRequires: python-devel >= 1:2.3
14BuildRequires: rpmbuild(macros) >= 1.219
15Requires: libicu >= 3.6
16Requires: libstdc++
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]
5242de1e 46%attr(755,root,root) %{py_sitedir}/_PyICU.so
a64306b6
ER
47%if "%{py_ver}" > "2.4"
48%{py_sitedir}/PyICU-%{version}*.egg-info
49%endif
This page took 0.142661 seconds and 4 git commands to generate.