]> git.pld-linux.org Git - packages/python-pyRXP.git/blame - python-pyRXP.spec
- converted to UTF-8
[packages/python-pyRXP.git] / python-pyRXP.spec
CommitLineData
db462542 1
2#
3# todo:
da38de5b 4# - use external rxp
283022a9
MG
5# - make documentation from rml file instead of downloading it
6# (need for spec for http://www.reportlab.org/rl_toolkit.html)
db462542 7#
8
ed3d0882 9
50601910 10%define module pyRXP
ed3d0882 11
0c6c2d84 12Summary: A Python wrapper for the RXP parser
93d12eb7 13Summary(pl.UTF-8): Pythonowy interfejs do analizatora XML RXP
ed3d0882 14Name: python-%{module}
15Version: 0.9
283022a9 16Release: 2
ed3d0882 17License: GPL v2
18Group: Libraries/Python
75056171 19Source0: http://www.reportlab.org/ftp/%{module}-0-9.tgz
ed3d0882 20# Source0-md5: 7d69870d3884f9e40f111a62525e0d77
283022a9
MG
21Source1: http://www.reportlab.com/docs/PyRXP_Documentation.pdf
22# Source1-md5: 3ae69ba61f1facea5b76e91dbee8718e
75056171 23URL: http://www.reportlab.org/pyrxp.html
db462542 24BuildRequires: python-devel >= 2.2.1
ed3d0882 25%pyrequires_eq python-modules
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
39bf1c14 29pyRXP is a Python wrapper for RXP, a validating namespace-aware
ed3d0882 30XML parser in C.
31
93d12eb7
JR
32%description -l pl.UTF-8
33pyRXP to pythonowy interfejs do RXP - kontrolującego poprawność
34analizatora XML-a z obsługą przestrzeni nazw, napisanego w C.
39bf1c14 35
283022a9
MG
36%package doc
37Summary: Documentation for Python pyRXP module
93d12eb7 38Summary(pl.UTF-8): Dokumentacja do modułu Pythona pyRXP
283022a9
MG
39Group: Libraries/Python
40Requires: %{name} = %{version}-%{release}
41
42%description doc
43This package contains documentation files for Python pyRXP module.
44
93d12eb7
JR
45%description doc -l pl.UTF-8
46Pakiet zawierający dokumentację dla modułu Pythona pyRXP.
283022a9
MG
47
48%package examples
49Summary: Example programs for Python pyRXP module
93d12eb7 50Summary(pl.UTF-8): Programy przykładowe do modułu Pythona pyRXP
283022a9
MG
51Group: Development/Languages/Python
52Requires: %{name} = %{version}-%{release}
53
54%description examples
55This package contains example programs for Python pyRXP module.
56
93d12eb7
JR
57%description examples -l pl.UTF-8
58Pakiet zawierający programy przykładowe dla modułu Pythona pyRXP.
283022a9 59
ed3d0882 60%prep
61%setup -q -c %{module}-%{version}
62
63%build
64CFLAGS="%{rpmcflags}"
db462542 65export CFLAGS
0c6c2d84 66python setup.py build
ed3d0882 67
283022a9
MG
68cp -a %{SOURCE1} docs
69
ed3d0882 70%install
71rm -rf $RPM_BUILD_ROOT
283022a9 72install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
ed3d0882 73
74python setup.py install \
75 --root=$RPM_BUILD_ROOT --optimize=2
76
283022a9
MG
77cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78
ed3d0882 79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files
83%defattr(644,root,root,755)
84%doc README
db462542 85%attr(755,root,root) %{py_sitedir}/*.so
283022a9
MG
86
87%files doc
88%defattr(644,root,root,755)
89%doc docs/PyRXP_Documentation.pdf
90
91%files examples
92%defattr(644,root,root,755)
93%{_examplesdir}/%{name}-%{version}
This page took 0.189882 seconds and 4 git commands to generate.