Blame SPECS/python-iniparse.spec

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