]> git.pld-linux.org Git - SPECS.git/blob - python-pyxsd.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / python-pyxsd.spec
1 %define         module  pyxsd
2 Summary:        Python XML/Schema processing tool
3 Summary(pl.UTF-8):      -
4 Name:           python-%{module}
5 Version:        0.1
6 Release:        0.1
7 License:        BSD
8 Group:          Development/Languages/Python
9 Source0:        http://pypi.python.org/packages/source/p/pyxsd/%{module}-0-1.tgz
10 # Source0-md5:  8f02162395a67956894efc4d1a2febda
11 URL:            http://pyxsd.org/
12 BuildRequires:  python-devel
13 BuildRequires:  rpm-pythonprov
14 # if py_postclean is used
15 BuildRequires:  rpmbuild(macros) >= 1.710
16 #Requires:              python-libs
17 Requires:       python-modules
18 #BuildArch:     noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 pyXSD is a free, open source python program that maps xml and xsd(XML
23 Schema) files into python, allowing for easy schema-based validation
24 and transformation of xml files.
25
26 %description -l pl.UTF-8
27
28 %prep
29 %setup -q -c -n %{module}-%{version}
30
31 %build
32 # CFLAGS is only for arch packages - remove on noarch packages
33 %py_build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %py_install
38
39 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
40 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
41 %py_postclean
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README doc
49 %attr(755,root,root) %{_bindir}/pyXSD.py
50 %{py_sitescriptdir}/%{module}
51 %if "%{py_ver}" > "2.4"
52 %{py_sitescriptdir}/%{module}-*.egg-info
53 %endif
This page took 0.041383 seconds and 3 git commands to generate.