]> git.pld-linux.org Git - SPECS.git/blob - python-PyLTXML.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / python-PyLTXML.spec
1
2 %define         module  PyLTXML
3
4 Summary:        Python LT XML interface
5 Summary(pl.UTF-8):      Interfejs Pythona do LT XML
6 Name:           python-%{module}
7 Version:        1.3
8 Release:        2
9 License:        GPL
10 Group:          Libraries/Python
11 Source0:        ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/%{module}-%{version}.tar.gz
12 # Source0-md5:  a0f0434c399d2f00e18d1da106dc1707
13 URL:            http://www.ltg.ed.ac.uk/software/xml/
14 BuildRequires:  rpmbuild(macros) >= 1.710
15 BuildRequires:  ltxml-devel >= 1.2.5-3
16 BuildRequires:  python-devel >= 2.2.1
17 %pyrequires_eq  python
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This package interfaces our high-performance validating C API for XML
22 to Python.
23
24 %description -l pl.UTF-8
25 Ten pakiet jest interfejsem do wysoko wydajnego API kontrolującego
26 poprawność XML-a do Pythona.
27
28 %prep
29 %setup -q -n %{module}-%{version}
30
31 %build
32 CFLAGS="%{rpmcflags} -I/usr/include/ltxml12"; export CFLAGS
33 %py_build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
38
39 %py_install
40
41 cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42
43 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
44 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
45
46 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/%{module}/example
47 rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{module}/*.py
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc 00README
55 %dir %{py_sitedir}/%{module}
56 %attr(755,root,root) %{py_sitedir}/%{module}/*.so
57 %{py_sitedir}/%{module}/*.py[co]
58 %{_examplesdir}/*
This page took 0.518584 seconds and 3 git commands to generate.