diff --git a/.gitignore b/.gitignore index 94bd33c..ca174f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/python-augeas-0.4.1.tar.gz +SOURCES/python-augeas-0.5.0.tar.gz diff --git a/.python-augeas.metadata b/.python-augeas.metadata index 0cd1a75..38b68f6 100644 --- a/.python-augeas.metadata +++ b/.python-augeas.metadata @@ -1 +1 @@ -da3b93feae7bab5b1f699d3b51f57708aa1321e5 SOURCES/python-augeas-0.4.1.tar.gz +b758e3d1349999b5d9f3397af3b9e186a2fcfd48 SOURCES/python-augeas-0.5.0.tar.gz diff --git a/SPECS/python-augeas.spec b/SPECS/python-augeas.spec index 2d2ae87..581d09d 100644 --- a/SPECS/python-augeas.spec +++ b/SPECS/python-augeas.spec @@ -5,50 +5,94 @@ %bcond_without egg %endif +%global with_python3 0 + Name: python-augeas -Version: 0.4.1 -Release: 5%{?dist} +Version: 0.5.0 +Release: 2%{?dist} Summary: Python bindings to augeas Group: Development/Languages License: LGPLv2+ URL: http://augeas.net/ -Source0: http://augeas.net/download/python/%{name}-%{version}.tar.gz +Source0: http://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: augeas-libs -Requires: python-ctypes +Requires: augeas-libs BuildArch: noarch BuildRequires: python-setuptools python-devel +%if 0%{?with_python3} +BuildRequires: python3-setuptools python3-devel +%endif # with_python3 %description python-augeas is a set of Python bindings around augeas. + +%if 0%{?with_python3} +%package -n python3-augeas +Summary: Python 3 bindings to augeas +Requires: augeas-libs + +%description -n python3-augeas +python3-augeas is a set of Python bindings around augeas. +%endif # with_python3 + + %prep %setup -q +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif # with_python3 %build # Remove CFLAGS=... for noarch packages (unneeded) -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build_ext -i -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +CFLAGS="$RPM_OPT_FLAGS" +%{__python} setup.py build_ext -i +%{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build_ext -i +%{__python3} setup.py build +popd +%endif # with_python3 %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT - -%clean -rm -rf $RPM_BUILD_ROOT +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +popd +%endif # with_python3 %files -%defattr(-,root,root,-) %doc COPYING AUTHORS README.txt %{python_sitelib}/augeas.py* %if %{with egg} %{python_sitelib}/*augeas*.egg-info %endif +%if 0%{?with_python3} +%files -n python3-augeas +%doc COPYING AUTHORS README.txt +%{python3_sitelib}/* +%endif # with_python3 + + %changelog +* Mon Sep 22 2014 Tomas Radej - 0.5.0-2 +- Added Python 3 subpackage + +* Thu Sep 04 2014 Greg Swift - 0.5.0-1 +- Version 0.5.0 release + +* Sat Jun 07 2014 Fedora Release Engineering - 0.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Tue Oct 22 2013 Greg Swift - 0.4.1-5 - add python-ctypes dependency (rhbz#1020239)