|
|
542a238 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
5e7af19 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
542a238 |
|
|
|
fa15618 |
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
|
|
fa15618 |
%bcond_without egg
|
|
|
fa15618 |
%endif
|
|
|
fa15618 |
|
|
|
5e7af19 |
Name: python-augeas
|
|
|
fa15618 |
Version: 0.4.1
|
|
|
fa15618 |
Release: 1%{?dist}
|
|
|
5e7af19 |
Summary: Python bindings to augeas
|
|
|
5e7af19 |
Group: Development/Languages
|
|
|
5e7af19 |
License: LGPLv2+
|
|
|
5e7af19 |
URL: http://augeas.net/
|
|
|
5e7af19 |
Source0: http://augeas.net/download/python/%{name}-%{version}.tar.gz
|
|
|
5e7af19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
5e7af19 |
Requires: augeas-libs
|
|
|
5e7af19 |
BuildArch: noarch
|
|
|
542a238 |
|
|
|
067104b |
BuildRequires: python-setuptools python-devel
|
|
|
542a238 |
|
|
|
542a238 |
%description
|
|
|
542a238 |
python-augeas is a set of Python bindings around augeas.
|
|
|
542a238 |
|
|
|
542a238 |
%prep
|
|
|
542a238 |
%setup -q
|
|
|
542a238 |
|
|
|
542a238 |
|
|
|
542a238 |
%build
|
|
|
542a238 |
# Remove CFLAGS=... for noarch packages (unneeded)
|
|
|
542a238 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build_ext -i
|
|
|
542a238 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
542a238 |
|
|
|
542a238 |
%install
|
|
|
542a238 |
rm -rf $RPM_BUILD_ROOT
|
|
|
542a238 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
542a238 |
|
|
|
542a238 |
|
|
|
542a238 |
%clean
|
|
|
542a238 |
rm -rf $RPM_BUILD_ROOT
|
|
|
542a238 |
|
|
|
542a238 |
%files
|
|
|
542a238 |
%defattr(-,root,root,-)
|
|
|
542a238 |
%doc COPYING AUTHORS README.txt
|
|
|
5e7af19 |
%{python_sitelib}/augeas.py*
|
|
|
fa15618 |
%if %{with egg}
|
|
|
5e7af19 |
%{python_sitelib}/*augeas*.egg-info
|
|
|
fde16d7 |
%endif
|
|
|
542a238 |
|
|
|
542a238 |
%changelog
|
|
|
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
|