Blame SPECS/python-augeas.spec

1f53ce
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
1f53ce
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
1f53ce
1f53ce
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 9 || 0%{?rhel} >= 6
1f53ce
%bcond_without egg
1f53ce
%endif
1f53ce
f9ce5b
%global with_python3 0
f9ce5b
1f53ce
Name:		python-augeas
f9ce5b
Version:	0.5.0
f9ce5b
Release:	2%{?dist}
1f53ce
Summary:	Python bindings to augeas
1f53ce
Group:		Development/Languages
1f53ce
License:	LGPLv2+
1f53ce
URL:		http://augeas.net/
f9ce5b
Source0:	http://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
1f53ce
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f9ce5b
Requires:	augeas-libs
1f53ce
BuildArch:	noarch
1f53ce
1f53ce
BuildRequires:	python-setuptools python-devel
f9ce5b
%if 0%{?with_python3}
f9ce5b
BuildRequires:	python3-setuptools python3-devel
f9ce5b
%endif # with_python3
1f53ce
1f53ce
%description
1f53ce
python-augeas is a set of Python bindings around augeas.
1f53ce
f9ce5b
f9ce5b
%if 0%{?with_python3}
f9ce5b
%package -n python3-augeas
f9ce5b
Summary:	Python 3 bindings to augeas
f9ce5b
Requires:	augeas-libs
f9ce5b
f9ce5b
%description -n python3-augeas
f9ce5b
python3-augeas is a set of Python bindings around augeas.
f9ce5b
%endif # with_python3
f9ce5b
f9ce5b
1f53ce
%prep
1f53ce
%setup -q
1f53ce
f9ce5b
%if 0%{?with_python3}
f9ce5b
rm -rf %{py3dir}
f9ce5b
cp -a . %{py3dir}
f9ce5b
%endif # with_python3
1f53ce
1f53ce
%build
1f53ce
# Remove CFLAGS=... for noarch packages (unneeded)
f9ce5b
CFLAGS="$RPM_OPT_FLAGS"
f9ce5b
%{__python} setup.py build_ext -i
f9ce5b
%{__python} setup.py build
f9ce5b
f9ce5b
%if 0%{?with_python3}
f9ce5b
pushd %{py3dir}
f9ce5b
%{__python3} setup.py build_ext -i
f9ce5b
%{__python3} setup.py build
f9ce5b
popd
f9ce5b
%endif # with_python3
1f53ce
1f53ce
%install
1f53ce
rm -rf $RPM_BUILD_ROOT
1f53ce
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
1f53ce
f9ce5b
%if 0%{?with_python3}
f9ce5b
pushd %{py3dir}
f9ce5b
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
f9ce5b
popd
f9ce5b
%endif # with_python3
1f53ce
1f53ce
%files
1f53ce
%doc COPYING AUTHORS README.txt
1f53ce
%{python_sitelib}/augeas.py*
1f53ce
%if %{with egg}
1f53ce
%{python_sitelib}/*augeas*.egg-info
1f53ce
%endif
1f53ce
f9ce5b
%if 0%{?with_python3}
f9ce5b
%files -n python3-augeas
f9ce5b
%doc COPYING AUTHORS README.txt
f9ce5b
%{python3_sitelib}/*
f9ce5b
%endif # with_python3
f9ce5b
f9ce5b
1f53ce
%changelog
f9ce5b
* Mon Sep 22 2014 Tomas Radej <tradej@redhat.com> - 0.5.0-2
f9ce5b
- Added Python 3 subpackage
f9ce5b
f9ce5b
* Thu Sep 04 2014 Greg Swift <gregswift@gmail.com> - 0.5.0-1
f9ce5b
- Version 0.5.0 release
f9ce5b
f9ce5b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-6
f9ce5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f9ce5b
1f53ce
* Tue Oct 22 2013 Greg Swift <gregswift@gmail.com> - 0.4.1-5
1f53ce
- add python-ctypes dependency (rhbz#1020239)
1f53ce
1f53ce
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f53ce
1f53ce
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1f53ce
1f53ce
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f53ce
1f53ce
* Mon Jan 16 2012 Greg Swift <gregswift@gmail.com> 0.4.1-1
1f53ce
- version 0.4.1
1f53ce
- include egg only on F-9, RHEL-6 and later
1f53ce
1f53ce
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-8
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1f53ce
1f53ce
* Fri Feb 18 2011 Harald Hoyer <harald@redhat.com> 0.3.0-7
1f53ce
- only include egg-info, if fedora >=9 or rhel >= 6
1f53ce
Resolves: rhbz#661452
1f53ce
1f53ce
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-6
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1f53ce
1f53ce
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.0-5
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1f53ce
1f53ce
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1f53ce
1f53ce
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
1f53ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1f53ce
1f53ce
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.0-2
1f53ce
- Rebuild for Python 2.6
1f53ce
1f53ce
* Tue Sep 09 2008 Harald Hoyer <harald@redhat.com> 0.3.0-1
1f53ce
- version 0.3.0
1f53ce
1f53ce
* Thu Jul 03 2008 Harald Hoyer <harald@redhat.com> 0.2.1-1
1f53ce
- version 0.2.1
1f53ce
1f53ce
* Wed Jun 11 2008 Harald Hoyer <harald@redhat.com> 0.2.0-1
1f53ce
- switched to noarch, dlopen/ python bindings
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-4
1f53ce
- version to import in CVS (rhbz#444945)
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-3
1f53ce
- set mode of _augeas.so to 0755
1f53ce
1f53ce
* Mon May 05 2008 Harald Hoyer <harald@redhat.com> 0.1.0-2
1f53ce
- wildcard to catch egg-info in case it is build
1f53ce
1f53ce
* Fri May 02 2008 Harald Hoyer <harald@redhat.com> 0.1.0-1
1f53ce
- new version
1f53ce
1f53ce
* Wed Apr 16 2008 Harald Hoyer <harald@redhat.com> - 0.0.8-1
1f53ce
- initial version