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