544b90
%global modname iniparse
544b90
544b90
# Use the same directory of the main package for subpackage licence and docs
544b90
%global _docdir_fmt %{name}
544b90
544b90
Name:           python-%{modname}
544b90
Version:        0.4
544b90
Release:        45%{?dist}
544b90
Summary:        Python Module for Accessing and Modifying Configuration Data in INI files
544b90
License:        MIT and Python
544b90
URL:            http://code.google.com/p/iniparse/
544b90
Source0:        http://iniparse.googlecode.com/files/%{modname}-%{version}.tar.gz
544b90
Patch0:         fix-issue-28.patch
544b90
# The patch upstream (http://code.google.com/p/iniparse/issues/detail?id=22)
544b90
# is Python3-only. The patch below uses python-six to create a version that works
544b90
# with both Python major versions and is more error-prone.
544b90
Patch1:         %{name}-python3-compat.patch
544b90
# Fixup the module to have proper setup.py information
544b90
Patch2:         %{name}-setup-fixes.patch
544b90
544b90
BuildArch: noarch
544b90
544b90
%global _description \
544b90
iniparse is an INI parser for Python which is API compatible\
544b90
with the standard library's ConfigParser, preserves structure of INI\
544b90
files (order of sections & options, indentation, comments, and blank\
544b90
lines are preserved when data is updated), and is more convenient to\
544b90
use.
544b90
544b90
%description %{_description}
544b90
544b90
%package -n python3-%{modname}
544b90
Summary:        %{summary}
544b90
%{?python_provide:%python_provide python3-%{modname}}
544b90
BuildRequires:  python3-devel
544b90
BuildRequires:  python3-setuptools
544b90
BuildRequires:  python3-six
544b90
BuildRequires:  python3-test
544b90
544b90
%description -n python3-%{modname} %{_description}
544b90
544b90
Python 3 version.
544b90
544b90
%prep
544b90
%setup -q -n %{modname}-%{version}
544b90
%patch0 -p1
544b90
%patch1 -p0
544b90
%patch2 -p0
544b90
chmod -c -x html/index.html
544b90
544b90
%build
544b90
%py3_build
544b90
544b90
%install
544b90
%py3_install
544b90
rm -vfr %{buildroot}%{_docdir}/*
544b90
544b90
%check
544b90
%{__python3} runtests.py
544b90
544b90
%files -n python3-%{modname}
544b90
%license LICENSE LICENSE-PSF
544b90
%doc README Changelog html/
544b90
%{python3_sitelib}/%{modname}/
544b90
%{python3_sitelib}/%{modname}-%{version}-*.egg-info/
544b90
544b90
%changelog
544b90
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.4-45
544b90
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
544b90
  Related: rhbz#1991688
544b90
544b90
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.4-44
544b90
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
544b90
544b90
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-43
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
544b90
544b90
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-42
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
544b90
544b90
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4-41
544b90
- Rebuilt for Python 3.9
544b90
544b90
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-40
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
544b90
544b90
* Mon Nov 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4-39
544b90
- Subpackage python2-iniparse has been removed
544b90
  See https://fedoraproject.org/wiki/Changes/RetirePython2
544b90
544b90
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4-38
544b90
- Rebuilt for Python 3.8.0rc1 (#1748018)
544b90
544b90
* Sat Aug 31 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4-37
544b90
- Drop build dependency on python2-test
544b90
544b90
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4-36
544b90
- Rebuilt for Python 3.8
544b90
544b90
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-34
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
544b90
544b90
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-33
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
544b90
544b90
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-32
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
544b90
544b90
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4-31
544b90
- Rebuilt for Python 3.7
544b90
544b90
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-30
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
544b90
544b90
* Mon Dec 11 2017 Iryna Shcherbina <ishcherb@redhat.com> - 0.4-29
544b90
- Fix ambiguous Python 2 dependency declarations
544b90
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
544b90
544b90
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4-28
544b90
- Use better Obsoletes for platform-python
544b90
544b90
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4-27
544b90
- Remove platform-python subpackage
544b90
544b90
* Thu Aug 10 2017 Miro Hrončok <mhroncok@redhat.com> - 0.4-26
544b90
- Add platform-python package
544b90
- Add bconds
544b90
- Remove %%{?system_python_abi}
544b90
544b90
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-25
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
544b90
544b90
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-24
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
544b90
544b90
* Sun Dec 11 2016 Neal Gompa <ngompa13@gmail.com> - 0.4-23
544b90
- Add patch to update setup.py to use setuptools and declare install dependencies
544b90
544b90
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.4-22
544b90
- Rebuild for Python 3.6
544b90
544b90
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.4-21
544b90
- Cleanups
544b90
- Add %%{?system_python_abi}
544b90
544b90
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-20
544b90
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
544b90
544b90
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.4-19
544b90
- Make python3 builds conditionally
544b90
- Adopt to new packaging guidelines
544b90
- Remove setuptools from BRs as it's not needed
544b90
- Cleanup spec
544b90
544b90
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-18
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
544b90
544b90
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.4-17
544b90
- Rebuilt for Python3.5 rebuild
544b90
544b90
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-16
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
544b90
544b90
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 0.4-15
544b90
- fix license handling
544b90
544b90
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-14
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
544b90
544b90
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4-13
544b90
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
544b90
544b90
* Fri Mar 07 2014 Tim Lauridsen <timlau@fedoraproject.org> - 0.4-12
544b90
- added python3-test to buildreq for python3 
544b90
- run unittest with python3 also
544b90
544b90
* Fri Mar 07 2014 Tim Lauridsen <timlau@fedoraproject.org> - 0.4-11
544b90
- added python-test to buildreq, for unittests
544b90
544b90
* Fri Mar 07 2014 Tim Lauridsen <timlau@fedoraproject.org> - 0.4-10
544b90
- added %%check to run unittests when build
544b90
- updated fix-issue-28.patch, so test cases dont fail
544b90
544b90
* Fri Sep 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4-9
544b90
- Introduce python3 subpackage.
544b90
- Use %%__python2 instead of %%__python.
544b90
544b90
* Mon Jul 29 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.4-8
544b90
- Install docs to %%{_pkgdocdir} where available.
544b90
544b90
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
544b90
544b90
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-6
544b90
- fix for upstream issue 28
544b90
544b90
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-5
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
544b90
544b90
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
544b90
544b90
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
544b90
544b90
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4-2
544b90
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
544b90
544b90
544b90
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.4-1
544b90
- Release 0.4
544b90
544b90
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.1-2
544b90
- removed patch
544b90
544b90
* Sat Nov 7 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.1-1
544b90
- Release 0.3.1
544b90
-   Fix empty-line handling bugs introduced in 0.3.0 
544b90
544b90
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
544b90
544b90
* Mon Mar 2 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.0-2
544b90
- added patch from upstream to fix regrestion :
544b90
544b90
* Sat Feb 28 2009 Tim Lauridsen <timlau@fedoraproject.org> - 0.3.0-1
544b90
- Release 0.3.0
544b90
-  Fix handling of continuation lines
544b90
-  Fix DEFAULT handling
544b90
-  Fix picking/unpickling 
544b90
544b90
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
544b90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
544b90
544b90
* Sun Dec 7 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.4-1
544b90
- Release 0.2.4:
544b90
-   Updated to work with Python-2.6 (Python-2.4 and 2.5 are still supported)
544b90
-   Support for files opened in unicode mode
544b90
-   Fixed Python-3.0 compatibility warnings
544b90
-   Minor API cleanup 
544b90
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.3-5
544b90
- Rebuild for Python 2.6
544b90
* Tue Jan 8 2008 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-4
544b90
- own the %%{_docdir}/python-iniparse-%%{version} directory
544b90
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-3
544b90
- handle egg-info too
544b90
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-2
544b90
- removed patch source line
544b90
* Tue Dec 11 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.3-1
544b90
- Updates to release 0.2.3
544b90
- removed empty ini file patch, it is included in 0.2.3
544b90
* Mon Nov 19 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-2
544b90
- Added upstream patch to fix problems with empty ini files.
544b90
* Tue Sep 25 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.2-1
544b90
- Updated to release 0.2.2
544b90
- removed patch to to fix problems with out commented lines, included in upstream source
544b90
* Wed Sep 12 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-4
544b90
- Added some logic to get the right python-setuptools buildrequeres
544b90
- based on the fedora version, to make the same spec file useful in
544b90
- all fedora releases.
544b90
* Mon Sep 10 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-3
544b90
- Added patch from upstream svn to fix problems with out commented lines.
544b90
* Tue Aug 28 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2.1-2
544b90
- Changed BuildRequires python-setuptools to python-setuptools-devel
544b90
* Tue Aug 7 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.1-1
544b90
- Release 0.2.1
544b90
* Fri Jul 27 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-3
544b90
- relocated doc to %%{_docdir}/python-iniparse-%%{version}
544b90
* Thu Jul 26 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-2
544b90
- changed name from iniparse to python-iniparse
544b90
* Tue Jul 17 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-1
544b90
- Release 0.2
544b90
- Added html/* to %%doc
544b90
* Fri Jul 13 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.1-1
544b90
- Initial build.