|
Tim Lauridsen |
8f7cb94 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
Name: python-iniparse
|
|
Tim Lauridsen |
cff60a9 |
Version: 0.2.4
|
|
|
a66d8dc |
Release: 2%{?dist}
|
|
Tim Lauridsen |
8f7cb94 |
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
|
Tim Lauridsen |
8f7cb94 |
Group: Development/Libraries
|
|
Tim Lauridsen |
8f7cb94 |
License: MIT
|
|
Tim Lauridsen |
8f7cb94 |
URL: http://code.google.com/p/iniparse/
|
|
Tim Lauridsen |
8f7cb94 |
Source0: http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
|
|
Tim Lauridsen |
8f7cb94 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
1a8b9ea |
%if 0%{?fedora} >= 8
|
|
Tim Lauridsen |
7decabd |
BuildRequires: python-setuptools-devel
|
|
Tim Lauridsen |
1a8b9ea |
%else
|
|
Tim Lauridsen |
1a8b9ea |
BuildRequires: python-setuptools
|
|
Tim Lauridsen |
1a8b9ea |
%endif
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
BuildArch: noarch
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%description
|
|
Tim Lauridsen |
8f7cb94 |
iniparse is an INI parser for Python which is API compatible
|
|
Tim Lauridsen |
8f7cb94 |
with the standard library's ConfigParser, preserves structure of INI
|
|
Tim Lauridsen |
8f7cb94 |
files (order of sections & options, indentation, comments, and blank
|
|
Tim Lauridsen |
8f7cb94 |
lines are preserved when data is updated), and is more convenient to
|
|
Tim Lauridsen |
8f7cb94 |
use.
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%prep
|
|
Tim Lauridsen |
8f7cb94 |
%setup -q -n iniparse-%{version}
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%build
|
|
Tim Lauridsen |
8f7cb94 |
%{__python} setup.py build
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%install
|
|
Tim Lauridsen |
8f7cb94 |
rm -rf $RPM_BUILD_ROOT
|
|
Tim Lauridsen |
8f7cb94 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
Tim Lauridsen |
8f7cb94 |
# fixes
|
|
Tim Lauridsen |
8f7cb94 |
chmod 644 $RPM_BUILD_ROOT//usr/share/doc/iniparse-%{version}/index.html
|
|
Tim Lauridsen |
8f7cb94 |
mv $RPM_BUILD_ROOT/usr/share/doc/iniparse-%{version} $RPM_BUILD_ROOT/usr/share/doc/python-iniparse-%{version}
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%clean
|
|
Tim Lauridsen |
8f7cb94 |
rm -rf $RPM_BUILD_ROOT
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%files
|
|
Tim Lauridsen |
8f7cb94 |
%defattr(-,root,root,-)
|
|
Tim Lauridsen |
a7e9389 |
%dir %{_docdir}/python-iniparse-%{version}
|
|
Tim Lauridsen |
a7e9389 |
%doc %{_docdir}/python-iniparse-%{version}/*
|
|
Tim Lauridsen |
f2700aa |
%{python_sitelib}/*
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
|
|
Tim Lauridsen |
8f7cb94 |
%changelog
|
|
|
a66d8dc |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
|
|
|
a66d8dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
a66d8dc |
|
|
Tim Lauridsen |
cff60a9 |
* Sun Dec 7 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.4-1
|
|
Tim Lauridsen |
cff60a9 |
- Release 0.2.4:
|
|
Tim Lauridsen |
cff60a9 |
- Updated to work with Python-2.6 (Python-2.4 and 2.5 are still supported)
|
|
Tim Lauridsen |
cff60a9 |
- Support for files opened in unicode mode
|
|
Tim Lauridsen |
cff60a9 |
- Fixed Python-3.0 compatibility warnings
|
|
Tim Lauridsen |
cff60a9 |
- Minor API cleanup
|
|
|
b6031df |
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.3-5
|
|
|
b6031df |
- Rebuild for Python 2.6
|
|
Tim Lauridsen |
a7e9389 |
* Tue Jan 8 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-4
|
|
Tim Lauridsen |
a7e9389 |
- own the %%{_docdir}/python-iniparse-%{version} directory
|
|
Tim Lauridsen |
f2700aa |
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-3
|
|
Tim Lauridsen |
f2700aa |
- handle egg-info too
|
|
Tim Lauridsen |
d74f2ae |
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-2
|
|
Tim Lauridsen |
d74f2ae |
- removed patch source line
|
|
Tim Lauridsen |
b4e0707 |
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-1
|
|
Tim Lauridsen |
b4e0707 |
- Updates to release 0.2.3
|
|
Tim Lauridsen |
b4e0707 |
- removed empty ini file patch, it is included in 0.2.3
|
|
Tim Lauridsen |
048ab31 |
* Mon Nov 19 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-2
|
|
Tim Lauridsen |
048ab31 |
- Added upstream patch to fix problems with empty ini files.
|
|
Tim Lauridsen |
8553569 |
* Tue Sep 25 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-1
|
|
Tim Lauridsen |
8553569 |
- Updated to release 0.2.2
|
|
Tim Lauridsen |
8553569 |
- removed patch to to fix problems with out commented lines, included in upstream source
|
|
Tim Lauridsen |
1a8b9ea |
* Wed Sep 12 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-4
|
|
Tim Lauridsen |
1a8b9ea |
- Added some logic to get the right python-setuptools buildrequeres
|
|
Tim Lauridsen |
1a8b9ea |
- based on the fedora version, to make the same spec file useful in
|
|
Tim Lauridsen |
1a8b9ea |
- all fedora releases.
|
|
Tim Lauridsen |
ddc9e82 |
* Mon Sep 10 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-3
|
|
Tim Lauridsen |
ddc9e82 |
- Added patch from upstream svn to fix problems with out commented lines.
|
|
Tim Lauridsen |
7decabd |
* Tue Aug 28 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-2
|
|
Tim Lauridsen |
7decabd |
- Changed BuildRequires python-setuptools to python-setuptools-devel
|
|
Tim Lauridsen |
8e3e66b |
* Tue Aug 7 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.1-1
|
|
Tim Lauridsen |
8e3e66b |
- Release 0.2.1
|
|
Tim Lauridsen |
8f7cb94 |
* Fri Jul 27 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-3
|
|
Tim Lauridsen |
8f7cb94 |
- relocated doc to %{_docdir}/python-iniparse-%{version}
|
|
Tim Lauridsen |
8f7cb94 |
* Thu Jul 26 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-2
|
|
Tim Lauridsen |
8f7cb94 |
- changed name from iniparse to python-iniparse
|
|
Tim Lauridsen |
8f7cb94 |
* Tue Jul 17 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-1
|
|
Tim Lauridsen |
8f7cb94 |
- Release 0.2
|
|
Tim Lauridsen |
8f7cb94 |
- Added html/* to %%doc
|
|
Tim Lauridsen |
8f7cb94 |
* Fri Jul 13 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.1-1
|
|
Tim Lauridsen |
8f7cb94 |
- Initial build.
|