]> git.pld-linux.org Git - SPECS.git/blob - python-iniparse.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / python-iniparse.spec
1 Summary:        Python Module for Accessing and Modifying Configuration Data in INI files
2 Name:           python-iniparse
3 Version:        0.4
4 Release:        2
5 Group:          Development/Libraries
6 Source0:        http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
7 # Source0-md5:  5e573e9e9733d97623881ce9bbe5eca6
8 License:        MIT
9 URL:            http://code.google.com/p/iniparse/
10 BuildRequires:  rpmbuild(macros) >= 1.710
11 BuildRequires:  python-modules
12 BuildRequires:  python-setuptools
13 BuildRequires:  rpm-pythonprov
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 iniparse is an INI parser for Python which is API compatible with the
19 standard library's ConfigParser, preserves structure of INI files
20 (order of sections & options, indentation, comments, and blank lines
21 are preserved when data is updated), and is more convenient to use.
22
23 %prep
24 %setup -q -n iniparse-%{version}
25
26 %build
27 %py_build
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 %py_install
32
33 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
34 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
35 %py_postclean
36
37 rm -rf $RPM_BUILD_ROOT%{_docdir}/iniparse-%{version}
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc Changelog README
45 %{py_sitescriptdir}/iniparse
46 %if "%{py_ver}" > "2.4"
47 %{py_sitescriptdir}/iniparse-*.egg-info
48 %endif
This page took 0.16452 seconds and 3 git commands to generate.