Permalink
Fetching contributors…
Cannot retrieve contributors at this time
182 lines (135 sloc) 5.06 KB
Name: augeas
Version: @VERSION@
Release: 1%{?dist}
Summary: A library for changing configuration files
Group: System Environment/Libraries
License: LGPLv2+
URL: http://augeas.net/
Source0: http://download.augeas.net/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline-devel libselinux-devel libxml2-devel
Requires: %{name}-libs = %{version}-%{release}
# Bundling exception for gnulib: https://fedorahosted.org/fpc/ticket/174
Provides: bundled(gnulib)
%description
A library for programmatically editing configuration files. Augeas parses
configuration files into a tree structure, which it exposes through its
public API. Changes made through the API are written back to the initially
read files.
The transformation works very hard to preserve comments and formatting
details. It is controlled by ``lens'' definitions that describe the file
format and the transformation into a tree.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package libs
Summary: Libraries for %{name}
Group: System Environment/Libraries
%description libs
The libraries for %{name}.
Augeas is a library for programmatically editing configuration files. It parses
configuration files into a tree structure, which it exposes through its
public API. Changes made through the API are written back to the initially
read files.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%check
# Disable test-preserve.sh SELinux testing. This fails when run under mock due
# to differing SELinux labelling.
export SKIP_TEST_PRESERVE_SELINUX=1
make %{?_smp_mflags} check || {
echo '===== tests/test-suite.log ====='
cat tests/test-suite.log
exit 1
}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# The tests/ subdirectory contains lenses used only for testing, and
# so it shouldn't be packaged.
rm -r $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/tests
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/augtool
%{_bindir}/augparse
%{_bindir}/fadot
%doc %{_mandir}/man1/*
%{_datadir}/vim/vimfiles/syntax/augeas.vim
%{_datadir}/vim/vimfiles/ftdetect/augeas.vim
%files libs
%defattr(-,root,root,-)
# %{_datadir}/augeas and %{_datadir}/augeas/lenses are owned
# by filesystem.
%{_datadir}/augeas/lenses/dist
%{_libdir}/*.so.*
%doc AUTHORS COPYING NEWS
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/augeas.pc
%changelog
* Tue Oct 15 2013 Dominic Cleal <dcleal@redhat.com> - 1.1.0-2
- Add %check stage to run make check (rjones@redhat.com)
- Don't package lenses in tests/ subdirectory (rjones@redhat.com)
- Fix source URL to download.augeas.net (RHBZ#996033)
* Fri Jun 14 2013 David Lutterkort <lutter@watzmann.net> - 1.1.0-1
- New version
* Fri Dec 21 2012 David Lutterkort <lutter@redhat.com> - 1.0.0-1
- New version
* Fri Dec 2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
- New version
* Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
- New version
* Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
- New version
* Tue Feb 22 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
- New version
* Fri Nov 19 2010 David Lutterkort <lutter@redhat.com> - 0.7.4-1
- New version
* Fri Aug 6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
- New version
* Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
- Fix ownership of /usr/share/augeas. BZ 569393
* Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
- New version
* Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
- New version
* Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
- Install vim syntax files
* Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
- New version
* Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
- New version
* Fri Jun 5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
- Install fadot
* Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
- fadot isn't being installed just yet
* Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
- New program /usr/bin/fadot
* Mon Mar 9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
- New version
* Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
- New version
* Fri Feb 6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
- New version
* Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
- New version
* Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
- New version
* Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
- Initial specfile