b6ad048
Name:           augeas
384bb7d
Version:        0.5.2
Alan Pevec cf659c6
Release:        2%{?dist}
b6ad048
Summary:        A library for changing configuration files
b6ad048
b6ad048
Group:          System Environment/Libraries
b6ad048
License:        LGPLv2+
b6ad048
URL:            http://augeas.net/
b8668ea
Source0:        http://augeas.net/download/%{name}-%{version}.tar.gz
b6ad048
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b6ad048
1e1a15d
BuildRequires:  readline-devel libselinux-devel
b6ad048
Requires:       %{name}-libs = %{version}-%{release}
b6ad048
Alan Pevec cf659c6
# This xorg.aug is upstream, but unreleased as of augeas-0.5.2
Alan Pevec cf659c6
Source1:        xorg.aug
Alan Pevec cf659c6
b6ad048
%description
b6ad048
A library for programmatically editing configuration files. Augeas parses
b6ad048
configuration files into a tree structure, which it exposes through its
b6ad048
public API. Changes made through the API are written back to the initially
b6ad048
read files.
b6ad048
b6ad048
The transformation works very hard to preserve comments and formatting
b6ad048
details. It is controlled by ``lens'' definitions that describe the file
b6ad048
format and the transformation into a tree.
b6ad048
b6ad048
%package        devel
b6ad048
Summary:        Development files for %{name}
b6ad048
Group:          Development/Libraries
b3b1aaf
Requires:       %{name}-libs = %{version}-%{release}
b3b1aaf
Requires:       pkgconfig
b6ad048
b6ad048
%description    devel
b6ad048
The %{name}-devel package contains libraries and header files for
b6ad048
developing applications that use %{name}.
b6ad048
b6ad048
b6ad048
%package        libs
b6ad048
Summary:        Libraries for %{name}
b6ad048
Group:          System Environment/Libraries
b6ad048
b6ad048
%description    libs
b6ad048
The libraries for %{name}.
b6ad048
b6ad048
b6ad048
%prep
b6ad048
%setup -q
b6ad048
b6ad048
%build
b6ad048
%configure --disable-static
b6ad048
make %{?_smp_mflags}
b6ad048
b6ad048
%install
b6ad048
rm -rf $RPM_BUILD_ROOT
b6ad048
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
b6ad048
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
b6ad048
Alan Pevec cf659c6
# Replace xorg lens with new version from upstream
Alan Pevec cf659c6
install -D %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/xorg.aug
Alan Pevec cf659c6
b6ad048
%clean
b6ad048
rm -rf $RPM_BUILD_ROOT
b6ad048
b6ad048
%post libs -p /sbin/ldconfig
b6ad048
b6ad048
%postun libs -p /sbin/ldconfig
b6ad048
b6ad048
%files
b6ad048
%defattr(-,root,root,-)
b6ad048
%{_bindir}/augtool
b6ad048
%{_bindir}/augparse
d1c98e9
%{_bindir}/fadot
b6ad048
%doc %{_mandir}/man1/*
b6ad048
b6ad048
%files libs
b3b1aaf
%defattr(-,root,root,-)
b6ad048
%{_datadir}/augeas
b6ad048
%{_libdir}/*.so.*
b6ad048
%doc AUTHORS COPYING NEWS
b6ad048
b6ad048
%files devel
b6ad048
%defattr(-,root,root,-)
b6ad048
%doc
b6ad048
%{_includedir}/*
b6ad048
%{_libdir}/*.so
b6ad048
%{_libdir}/pkgconfig/augeas.pc
b6ad048
b6ad048
%changelog
Alan Pevec cf659c6
* Tue Aug 25 2009 Matthew Booth <mbooth@redhat.com> - 0.5.2-2
Alan Pevec cf659c6
- Include new xorg lens from upstream
Alan Pevec cf659c6
384bb7d
* Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
384bb7d
- New version
384bb7d
d1c98e9
* Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
d1c98e9
- Install fadot
d1c98e9
df8636a
* Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
df8636a
- fadot isn't being installed just yet
df8636a
31cbcea
* Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
31cbcea
- New program /usr/bin/fadot
31cbcea
1e1a15d
* Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
1e1a15d
- New version
1e1a15d
11716da
* Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
11716da
- New version
11716da
51a1982
* Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
51a1982
- New version
51a1982
885c0b9
* Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
885c0b9
- New version
885c0b9
d31f917
* Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
d31f917
- New version
d31f917
b6ad048
* Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
b6ad048
- Initial specfile