eb6f725
%global with_python3 1
eb6f725
5e7af19
Name:		python-augeas
95c8df4
Version:	0.5.0
Orion Poplawski a57d6ad
Release:	5%{?dist}
5e7af19
Summary:	Python bindings to augeas
5e7af19
Group:		Development/Languages
5e7af19
License:	LGPLv2+
5e7af19
URL:		http://augeas.net/
fd9d201
Source0:	http://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
5e7af19
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5e7af19
BuildArch:	noarch
542a238
067104b
BuildRequires:	python-setuptools python-devel
eb6f725
%if 0%{?with_python3}
eb6f725
BuildRequires:	python3-setuptools python3-devel
eb6f725
%endif # with_python3
542a238
542a238
%description
542a238
python-augeas is a set of Python bindings around augeas.
542a238
eb6f725
Orion Poplawski a57d6ad
%package -n python2-augeas
Orion Poplawski a57d6ad
Summary:	Python 2 bindings to augeas
Orion Poplawski a57d6ad
Requires:	augeas-libs
Orion Poplawski a57d6ad
%{?python_provide:%python_provide python2-augeas}
Orion Poplawski a57d6ad
Orion Poplawski a57d6ad
%description -n python2-augeas
Orion Poplawski a57d6ad
python2-augeas is a set of Python bindings around augeas.
Orion Poplawski a57d6ad
Orion Poplawski a57d6ad
eb6f725
%if 0%{?with_python3}
eb6f725
%package -n python3-augeas
eb6f725
Summary:	Python 3 bindings to augeas
eb6f725
Requires:	augeas-libs
Orion Poplawski a57d6ad
%{?python_provide:%python_provide python3-augeas}
eb6f725
eb6f725
%description -n python3-augeas
eb6f725
python3-augeas is a set of Python bindings around augeas.
eb6f725
%endif # with_python3
eb6f725
eb6f725
542a238
%prep
542a238
%setup -q
542a238
542a238
%build
Orion Poplawski a57d6ad
%{py2_build}
eb6f725
eb6f725
%if 0%{?with_python3}
Orion Poplawski a57d6ad
%{py3_build}
eb6f725
%endif # with_python3
542a238
542a238
%install
Orion Poplawski a57d6ad
%{py2_install}
542a238
eb6f725
%if 0%{?with_python3}
Orion Poplawski a57d6ad
%{py3_install}
eb6f725
%endif # with_python3
542a238
Orion Poplawski a57d6ad
%files -n python2-augeas
Orion Poplawski a57d6ad
%license COPYING
Orion Poplawski a57d6ad
%doc AUTHORS README.txt
5e7af19
%{python_sitelib}/augeas.py*
Orion Poplawski a57d6ad
%{python_sitelib}/python_augeas*.egg-info
542a238
eb6f725
%if 0%{?with_python3}
eb6f725
%files -n python3-augeas
Orion Poplawski a57d6ad
%license COPYING
Orion Poplawski a57d6ad
%doc AUTHORS README.txt
Orion Poplawski a57d6ad
%{python3_sitelib}/augeas.py
Orion Poplawski a57d6ad
%{python3_sitelib}/python_augeas-*.egg-info
Orion Poplawski a57d6ad
%{python3_sitelib}/__pycache__/*
eb6f725
%endif # with_python3
eb6f725
eb6f725
542a238
%changelog
Orion Poplawski a57d6ad
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 0.5.0-5
Orion Poplawski a57d6ad
- Modernize spec
Orion Poplawski a57d6ad
- Fix python3 package file ownership
Orion Poplawski a57d6ad
c896c02
* Tue Jan 19 2016 Nils Philippsen <nils@redhat.com>
c896c02
- use %%global instead of %%define
c896c02
Robert Kuska e6be4cc
* Fri Nov 06 2015 Robert Kuska <rkuska@redhat.com> - 0.5.0-4
Robert Kuska e6be4cc
- Rebuilt for Python3.5 rebuild
Robert Kuska e6be4cc
94a73d2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
94a73d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
94a73d2
eb6f725
* Mon Sep 22 2014 Tomas Radej <tradej@redhat.com> - 0.5.0-2
eb6f725
- Added Python 3 subpackage
eb6f725
95c8df4
* Thu Sep 04 2014 Greg Swift <gregswift@gmail.com> - 0.5.0-1
95c8df4
- Version 0.5.0 release
95c8df4
a22ca18
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-6
a22ca18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a22ca18
552052f
* Tue Oct 22 2013 Greg Swift <gregswift@gmail.com> - 0.4.1-5
552052f
- add python-ctypes dependency (rhbz#1020239)
552052f
fc88fe1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
fc88fe1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fc88fe1
6f42772
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
6f42772
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6f42772
e439613
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
e439613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e439613
fa15618
* Mon Jan 16 2012 Greg Swift <gregswift@gmail.com> 0.4.1-1
fa15618
- version 0.4.1
fa15618
- include egg only on F-9, RHEL-6 and later
fa15618
e203aab
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-8
e203aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e203aab
fde16d7
* Fri Feb 18 2011 Harald Hoyer <harald@redhat.com> 0.3.0-7
fde16d7
- only include egg-info, if fedora >=9 or rhel >= 6
fde16d7
Resolves: rhbz#661452
fde16d7
2236879
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-6
2236879
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2236879
2809262
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.0-5
2809262
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2809262
06ee940
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
06ee940
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
06ee940
7653785
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
7653785
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7653785
9fb326a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.0-2
9fb326a
- Rebuild for Python 2.6
9fb326a
85f2fe2
* Tue Sep 09 2008 Harald Hoyer <harald@redhat.com> 0.3.0-1
85f2fe2
- version 0.3.0
85f2fe2
5e7af19
* Thu Jul 03 2008 Harald Hoyer <harald@redhat.com> 0.2.1-1
5e7af19
- version 0.2.1
5e7af19
5e7af19
* Wed Jun 11 2008 Harald Hoyer <harald@redhat.com> 0.2.0-1
5e7af19
- switched to noarch, dlopen/ python bindings
5e7af19
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-4
542a238
- version to import in CVS (rhbz#444945)
542a238
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-3
542a238
- set mode of _augeas.so to 0755
542a238
542a238
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-2
542a238
- wildcard to catch egg-info in case it is build
542a238
542a238
* Fri May 02 2008 Harald Hoyer <harald@redhat.com> 0.1.0-1
542a238
- new version
542a238
542a238
* Wed Apr 16 2008 Harald Hoyer <harald@redhat.com> - 0.0.8-1
542a238
- initial version