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