]>
Commit | Line | Data |
---|---|---|
d8ea2500 | 1 | # |
2 | %define module cfgparse | |
3 | %define _ver v01_02 | |
4 | %define ver %(echo %{_ver} | sed -e 's@^v0@@' -e 's@_@.@g') | |
5 | # | |
6 | Summary: Python configuration file parser module | |
158b37a3 | 7 | Summary(pl.UTF-8): Moduł Pythona do parsowania plików konfiguracyjnych |
d8ea2500 | 8 | Name: python-cfgparse |
9 | Version: %{ver} | |
26ca2aec | 10 | Release: 3 |
d8ea2500 | 11 | License: distrubutable |
12 | Group: Libraries/Python | |
f19ee159 | 13 | Source0: http://dl.sourceforge.net/cfgparse/%{module}-%{_ver}.tar.gz |
d8ea2500 | 14 | # Source0-md5: 9add1b0bbf828f7c7383407cdeefea94 |
15 | URL: http://cfgparse.sourceforge.net/ | |
16 | BuildRequires: python >= 2.3 | |
f6836fd1 | 17 | BuildRequires: python-modules |
18 | BuildRequires: rpm-pythonprov | |
d8ea2500 | 19 | BuildRequires: rpmbuild(macros) >= 1.231 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Python configuration file parser module. | |
25 | ||
a889ef09 JR |
26 | %description -l pl.UTF-8 |
27 | Moduł Pythona do parsowania plików konfiguracyjnych. | |
d8ea2500 | 28 | |
29 | %prep | |
30 | %setup -q -n %{module}-%{_ver} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
0650f0eb | 35 | %py_install |
d8ea2500 | 36 | |
37 | # make python *.pyo files | |
38 | %{py_ocomp} $RPM_BUILD_ROOT%{py_sitescriptdir} | |
39 | ||
40 | # remove .py files, leave just compiled ones. | |
41 | %{py_postclean} | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc README.txt docs/cfgparse.pdf docs/cfgparse/* | |
49 | %{py_sitescriptdir}/*.py[co] |