a47f27
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
a47f27
a47f27
Name:           python-iniparse
a47f27
Version:        0.4
e4146d
Release:        9%{?dist}
a47f27
Summary:        Python Module for Accessing and Modifying Configuration Data in INI files
a47f27
Group:          Development/Libraries
a47f27
License:        MIT
a47f27
URL:            http://code.google.com/p/iniparse/
a47f27
Source0:        http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
a47f27
Patch0:         fix-issue-28.patch
a47f27
a47f27
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a47f27
a47f27
%if 0%{?fedora} >= 8
a47f27
BuildRequires: python-setuptools-devel
a47f27
%else
a47f27
BuildRequires: python-setuptools
a47f27
%endif
a47f27
a47f27
BuildArch: noarch
a47f27
a47f27
%description
a47f27
iniparse is an INI parser for Python which is API compatible
a47f27
with the standard library's ConfigParser, preserves structure of INI
a47f27
files (order of sections & options, indentation, comments, and blank
a47f27
lines are preserved when data is updated), and is more convenient to
a47f27
use.
a47f27
a47f27
%prep
a47f27
%setup -q -n iniparse-%{version}
a47f27
%patch0 -p1
a47f27
 
a47f27
%build
a47f27
%{__python} setup.py build
a47f27
a47f27
%install
a47f27
rm -rf $RPM_BUILD_ROOT
a47f27
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
a47f27
# fixes
a47f27
chmod 644 $RPM_BUILD_ROOT//usr/share/doc/iniparse-%{version}/index.html
a47f27
mv $RPM_BUILD_ROOT/usr/share/doc/iniparse-%{version} $RPM_BUILD_ROOT/usr/share/doc/python-iniparse-%{version}
a47f27
a47f27
%clean
a47f27
rm -rf $RPM_BUILD_ROOT
a47f27
a47f27
a47f27
%files
a47f27
%defattr(-,root,root,-)
a47f27
%dir %{_docdir}/python-iniparse-%{version} 
a47f27
%doc %{_docdir}/python-iniparse-%{version}/*
a47f27
%{python_sitelib}/*
a47f27
a47f27
a47f27
a47f27
%changelog
e4146d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4-9
e4146d
- Mass rebuild 2013-12-27
e4146d
a47f27
* Wed Jul 31 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4-8
a47f27
- fix tests not to fail because of fix for upstream issue 28
a47f27
a47f27
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a47f27
a47f27
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
a47f27
- fix for upstream issue 28
a47f27
a47f27
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-5
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a47f27
a47f27
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a47f27
a47f27
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a47f27
a47f27
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4-2
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a47f27
a47f27
a47f27
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.4-1
a47f27
- Release 0.4
a47f27
a47f27
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.1-2
a47f27
- removed patch
a47f27
a47f27
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.1-1
a47f27
- Release 0.3.1
a47f27
-   Fix empty-line handling bugs introduced in 0.3.0 
a47f27
a47f27
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a47f27
a47f27
* Mon Mar 2 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.0-2
a47f27
- added patch from upstream to fix regrestion :
a47f27
a47f27
* Sat Feb 28 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.0-1
a47f27
- Release 0.3.0
a47f27
-  Fix handling of continuation lines
a47f27
-  Fix DEFAULT handling
a47f27
-  Fix picking/unpickling 
a47f27
a47f27
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
a47f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a47f27
a47f27
* Sun Dec 7 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.4-1
a47f27
- Release 0.2.4:
a47f27
-   Updated to work with Python-2.6 (Python-2.4 and 2.5 are still supported)
a47f27
-   Support for files opened in unicode mode
a47f27
-   Fixed Python-3.0 compatibility warnings
a47f27
-   Minor API cleanup 
a47f27
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.3-5
a47f27
- Rebuild for Python 2.6
a47f27
* Tue Jan 8 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-4
a47f27
- own the %%{_docdir}/python-iniparse-%{version} directory
a47f27
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-3
a47f27
- handle egg-info too
a47f27
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-2
a47f27
- removed patch source line
a47f27
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-1
a47f27
- Updates to release 0.2.3
a47f27
- removed empty ini file patch, it is included in 0.2.3
a47f27
* Mon Nov 19 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-2
a47f27
- Added upstream patch to fix problems with empty ini files.
a47f27
* Tue Sep 25 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-1
a47f27
- Updated to release 0.2.2
a47f27
- removed patch to to fix problems with out commented lines, included in upstream source
a47f27
* Wed Sep 12 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-4
a47f27
- Added some logic to get the right python-setuptools buildrequeres
a47f27
- based on the fedora version, to make the same spec file useful in
a47f27
- all fedora releases.
a47f27
* Mon Sep 10 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-3
a47f27
- Added patch from upstream svn to fix problems with out commented lines.
a47f27
* Tue Aug 28 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-2
a47f27
- Changed BuildRequires python-setuptools to python-setuptools-devel
a47f27
* Tue Aug 7 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.1-1
a47f27
- Release 0.2.1
a47f27
* Fri Jul 27 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-3
a47f27
- relocated doc to %{_docdir}/python-iniparse-%{version}
a47f27
* Thu Jul 26 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-2
a47f27
- changed name from iniparse to python-iniparse
a47f27
* Tue Jul 17 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-1
a47f27
- Release 0.2
a47f27
- Added html/* to %%doc
a47f27
* Fri Jul 13 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.1-1
a47f27
- Initial build.