Blame SPECS/augeas.spec

ee1b47
Name:           augeas
ee1b47
Version:        1.10.1
ee1b47
Release:        8%{?dist}
ee1b47
Summary:        A library for changing configuration files
ee1b47
ee1b47
Group:          System Environment/Libraries
ee1b47
License:        LGPLv2+
ee1b47
URL:            http://augeas.net/
ee1b47
Source0:        http://download.augeas.net/%{name}-%{version}.tar.gz
ee1b47
Patch1:         0001-Fix-several-memory-leak-in-augmatch.patch
ee1b47
Patch2:         0002-Use-a-safer-calling-convention-for-native-functions.patch
ee1b47
Patch3:         0003-src-augeas.c-aug_source-actually-return-the-source-f.patch
ee1b47
Patch4:         0004-tests-test-api.c-add-a-check-for-aug_source.patch
ee1b47
Patch5:         0005-src-augtool.c-fix-access-to-invalid-memory.patch
ee1b47
Patch6:         0006-src-fa.c-fa_dot_debug-check-result-of-fopen.patch
ee1b47
Patch7:         0007-src-jmt.c-add_lens-fix-memory-leak-w-debugging.patch
ee1b47
Patch8:         0008-src-pathx.c-parse_location_path-fix-memleak-on-error.patch
ee1b47
Patch9:         0009-src-syntax.c-interpreter_init-fix-memleak-on-load_mo.patch
ee1b47
Patch10:        0010-src-transform.c-transform_save-fix-leaks-on-fchmod-f.patch
ee1b47
Patch11:        0011-src-augparse.c-main-call-aug_close-even-on-failure.patch
ee1b47
Patch12:        0012-Grub-tolerate-some-invalid-entries.patch
ee1b47
Patch13:        0013-Fix-sudoers-lens-always_query_group_plugin-588.patch
ee1b47
Patch14:        0014-Rsyslog-support-include-directive.patch
ee1b47
Patch15:        0015-New-lens-Semanage-594.patch
ee1b47
Patch16:        0016-New-lens-Anaconda-597.patch
ee1b47
ee1b47
BuildRequires:  readline-devel libselinux-devel libxml2-devel
ee1b47
BuildRequires:  autoconf, automake
ee1b47
Requires:       %{name}-libs = %{version}-%{release}
ee1b47
ee1b47
%description
ee1b47
A library for programmatically editing configuration files. Augeas parses
ee1b47
configuration files into a tree structure, which it exposes through its
ee1b47
public API. Changes made through the API are written back to the initially
ee1b47
read files.
ee1b47
ee1b47
The transformation works very hard to preserve comments and formatting
ee1b47
details. It is controlled by ``lens'' definitions that describe the file
ee1b47
format and the transformation into a tree.
ee1b47
ee1b47
%package        devel
ee1b47
Summary:        Development files for %{name}
ee1b47
Group:          Development/Libraries
ee1b47
Requires:       %{name}-libs = %{version}-%{release}
ee1b47
Requires:       pkgconfig
ee1b47
ee1b47
%description    devel
ee1b47
The %{name}-devel package contains libraries and header files for
ee1b47
developing applications that use %{name}.
ee1b47
ee1b47
ee1b47
%package        libs
ee1b47
Summary:        Libraries for %{name}
ee1b47
Group:          System Environment/Libraries
ee1b47
ee1b47
Provides:       bundled(gnulib)
ee1b47
ee1b47
%description    libs
ee1b47
The libraries for %{name}.
ee1b47
ee1b47
Augeas is a library for programmatically editing configuration files. It parses
ee1b47
configuration files into a tree structure, which it exposes through its
ee1b47
public API. Changes made through the API are written back to the initially
ee1b47
read files.
ee1b47
ee1b47
%package        static
ee1b47
Summary:        Static libraries for %{name}
ee1b47
Group:          Development/Libraries
ee1b47
Requires:       %{name}-devel = %{version}-%{release}
ee1b47
ee1b47
%description    static
ee1b47
The %{name}-static package contains static libraries needed to produce
ee1b47
static builds using %{name}.
ee1b47
ee1b47
ee1b47
ee1b47
%prep
ee1b47
%setup -q
ee1b47
%patch1 -p1
ee1b47
%patch2 -p1
ee1b47
%patch3 -p1
ee1b47
%patch4 -p1
ee1b47
%patch5 -p1
ee1b47
%patch6 -p1
ee1b47
%patch7 -p1
ee1b47
%patch8 -p1
ee1b47
%patch9 -p1
ee1b47
%patch10 -p1
ee1b47
%patch11 -p1
ee1b47
%patch12 -p1
ee1b47
%patch13 -p1
ee1b47
%patch14 -p1
ee1b47
%patch15 -p1
ee1b47
%patch16 -p1
ee1b47
ee1b47
# Patches affect Makefile.am and configure.ac, so rerun autotools.
ee1b47
autoreconf
ee1b47
autoconf
ee1b47
ee1b47
%build
ee1b47
%configure \
ee1b47
%ifarch riscv64
ee1b47
    --disable-gnulib-tests \
ee1b47
%endif
ee1b47
    --enable-static
ee1b47
make V=1 %{?_smp_mflags}
ee1b47
ee1b47
%check
ee1b47
# Disable test-preserve.sh SELinux testing. This fails when run under mock due
ee1b47
# to differing SELinux labelling.
ee1b47
export SKIP_TEST_PRESERVE_SELINUX=1
ee1b47
ee1b47
make %{?_smp_mflags} check || {
ee1b47
  echo '===== tests/test-suite.log ====='
ee1b47
  cat tests/test-suite.log
ee1b47
  exit 1
ee1b47
}
ee1b47
ee1b47
%install
ee1b47
rm -rf $RPM_BUILD_ROOT
ee1b47
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
ee1b47
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
ee1b47
ee1b47
# The tests/ subdirectory contains lenses used only for testing, and
ee1b47
# so it shouldn't be packaged.
ee1b47
rm -r $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/tests
ee1b47
ee1b47
# In 1.9.0, the example /usr/bin/dump gets installed inadvertently
ee1b47
rm -f $RPM_BUILD_ROOT/usr/bin/dump
ee1b47
ee1b47
%clean
ee1b47
rm -rf $RPM_BUILD_ROOT
ee1b47
ee1b47
%post libs -p /sbin/ldconfig
ee1b47
ee1b47
%postun libs -p /sbin/ldconfig
ee1b47
ee1b47
%files
ee1b47
%defattr(-,root,root,-)
ee1b47
%{_bindir}/augmatch
ee1b47
%{_bindir}/augparse
ee1b47
%{_bindir}/augtool
ee1b47
%{_bindir}/fadot
ee1b47
%doc %{_mandir}/man1/*
ee1b47
%{_datadir}/vim/vimfiles/syntax/augeas.vim
ee1b47
%{_datadir}/vim/vimfiles/ftdetect/augeas.vim
ee1b47
ee1b47
%files libs
ee1b47
%defattr(-,root,root,-)
ee1b47
# _datadir/augeas and _datadir/augeas/lenses are owned
ee1b47
# by filesystem.
ee1b47
%{_datadir}/augeas/lenses/dist
ee1b47
%{_libdir}/*.so.*
ee1b47
%doc AUTHORS COPYING NEWS
ee1b47
ee1b47
%files devel
ee1b47
%defattr(-,root,root,-)
ee1b47
%doc
ee1b47
%{_includedir}/*
ee1b47
%{_libdir}/*.so
ee1b47
%{_libdir}/pkgconfig/augeas.pc
ee1b47
ee1b47
%files static
ee1b47
%defattr(-,root,root,-)
ee1b47
%{_libdir}/libaugeas.a
ee1b47
%{_libdir}/libfa.a
ee1b47
ee1b47
%changelog
ee1b47
* Thu Dec 13 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-8
ee1b47
- Add simple tests (RHBZ#1653994)
ee1b47
ee1b47
* Wed Dec 12 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-7
ee1b47
- Anaconda: new lens (RHBZ#1657192)
ee1b47
ee1b47
* Thu Nov 29 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-6
ee1b47
- Semanage: new lens (RHBZ#1652840)
ee1b47
- Add "Provides: bundled(gnulib)" to augeas-libs, as it embeds gnulib
ee1b47
  (RHBZ#1653768)
ee1b47
ee1b47
* Fri Nov 23 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-5
ee1b47
- Rsyslog: support include() directive (RHBZ#1652832)
ee1b47
ee1b47
* Tue Nov 13 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-4
ee1b47
- Grub: better handle invalid grub.conf files (RHBZ#1649262)
ee1b47
- Sudoers: handle "always_query_group_plugin" option (RHBZ#1649299)
ee1b47
ee1b47
* Mon Oct 08 2018 Pino Toscano <ptoscano@redhat.com> - 1.10.1-3
ee1b47
- Backport some upstream commits to fix few memory leaks, and potential
ee1b47
  memory issues (RHBZ#1602446)
ee1b47
ee1b47
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ee1b47
ee1b47
* Mon Jan 29 2018 David Lutterkort <lutter@watzmann.net> - 1.10.1-1
ee1b47
- New upstream version 1.10.1
ee1b47
ee1b47
* Fri Jan 26 2018 Richard W.M. Jones <rjones@redhat.com> - 1.10.0-1
ee1b47
- New upstream version 1.10.0 (RHBZ#1538846).
ee1b47
- Remove upstream patch.
ee1b47
- New tool ‘augmatch’.
ee1b47
ee1b47
* Tue Nov 21 2017 David Lutterkort <lutter@watzmann.net> - 1.9.0
ee1b47
- New upstream version 1.9.0 (RHBZ#1482713)
ee1b47
- Add -static subpackage (RHBZ#1405600)
ee1b47
ee1b47
* Thu Aug 24 2017 Richard W.M. Jones <rjones@redhat.com> - 1.8.1-1
ee1b47
- New upstream version 1.8.1.
ee1b47
- Fixes CVE-2017-7555 (RHBZ#1482340).
ee1b47
ee1b47
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-3
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ee1b47
ee1b47
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ee1b47
ee1b47
* Tue Mar 21 2017 Dominic Cleal <dominic@cleal.org> - 1.8.0-1
ee1b47
- Update to 1.8.0
ee1b47
ee1b47
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ee1b47
ee1b47
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.0-3
ee1b47
- Rebuild for readline 7.x
ee1b47
ee1b47
* Sat Nov 12 2016 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-2
ee1b47
- riscv64: Disable gnulib tests on riscv64 architecture.
ee1b47
ee1b47
* Wed Nov 09 2016 Dominic Cleal <dominic@cleal.org> - 1.7.0-1
ee1b47
- Update to 1.7.0
ee1b47
ee1b47
* Mon Aug 08 2016 Dominic Cleal <dominic@cleal.org> - 1.6.0-1
ee1b47
- Update to 1.6.0
ee1b47
ee1b47
* Thu May 12 2016 Dominic Cleal <dominic@cleal.org> - 1.5.0-1
ee1b47
- Update to 1.5.0
ee1b47
ee1b47
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ee1b47
ee1b47
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ee1b47
ee1b47
* Tue Jun 02 2015 Dominic Cleal <dcleal@redhat.com> - 1.4.0-1
ee1b47
- Update to 1.4.0
ee1b47
ee1b47
* Sat Nov 08 2014 Dominic Cleal <dcleal@redhat.com> - 1.3.0-1
ee1b47
- Update to 1.3.0; remove all patches
ee1b47
ee1b47
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ee1b47
ee1b47
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ee1b47
ee1b47
* Mon Mar 31 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-2
ee1b47
- Add patch for Krb5, parse braces in values (RHBZ#1079444)
ee1b47
ee1b47
* Wed Feb 12 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-1
ee1b47
- Update to 1.2.0, add check section
ee1b47
- Update source URL to download.augeas.net (RHBZ#996032)
ee1b47
ee1b47
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ee1b47
ee1b47
* Wed Jun 19 2013 David Lutterkort <lutter@redhat.com> - 1.1.0-1
ee1b47
- Update to 1.1.0; remove all patches
ee1b47
ee1b47
* Tue Jun 18 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-4
ee1b47
- Fix /etc/sysconfig/network (RHBZ#904222).
ee1b47
ee1b47
* Wed Jun  5 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-3
ee1b47
- Don't package lenses in tests/ subdirectory.
ee1b47
ee1b47
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ee1b47
ee1b47
* Fri Jan  4 2013 David Lutterkort <lutter@redhat.com> - 1.0.0-1
ee1b47
- New version; remove all patches
ee1b47
ee1b47
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ee1b47
ee1b47
* Tue Jan 10 2012 David Lutterkort <lutter@redhat.com> - 0.10.0-3
ee1b47
- Add patches for bugs 247 and 248 (JSON lens)
ee1b47
ee1b47
* Sat Dec  3 2011 Richard W.M. Jones <rjones@redhat.com> - 0.10.0-2
ee1b47
- Add patch to resolve missing libxml2 requirement in augeas.pc.
ee1b47
ee1b47
* Fri Dec  2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
ee1b47
- New version
ee1b47
ee1b47
* Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
ee1b47
- New version; removed patch pathx-whitespace-ea010d8
ee1b47
ee1b47
* Tue May  3 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-2
ee1b47
- Add patch pathx-whitespace-ea010d8.patch to fix BZ 700608
ee1b47
ee1b47
* Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
ee1b47
- New version
ee1b47
ee1b47
* Wed Feb 23 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
ee1b47
- New version
ee1b47
ee1b47
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ee1b47
ee1b47
* Mon Nov 22 2010 Matthew Booth <mbooth@redhat.com> - 0.7.4-1
ee1b47
- Update to version 0.7.4
ee1b47
ee1b47
* Thu Nov 18 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.3-2
ee1b47
- Upstream patch proposed to fix GCC optimization bug (RHBZ#651992).
ee1b47
ee1b47
* Fri Aug  6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
ee1b47
- Remove upstream patches
ee1b47
ee1b47
* Tue Jun 29 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-2
ee1b47
- Patches based on upstream fix for BZ 600141
ee1b47
ee1b47
* Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
ee1b47
- Fix ownership of /usr/share/augeas. BZ 569393
ee1b47
ee1b47
* Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
ee1b47
- New version
ee1b47
ee1b47
* Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
ee1b47
- Remove patch vim-ftdetect-syntax.patch. It's upstream
ee1b47
ee1b47
* Tue Dec 15 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-2
ee1b47
- Fix ftdetect file for vim
ee1b47
ee1b47
* Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
ee1b47
- Install vim syntax files
ee1b47
ee1b47
* Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
ee1b47
- Remove separate xorg.aug, included in upstream source
ee1b47
ee1b47
* Tue Aug 25 2009 Matthew Booth <mbooth@redhat.com> - 0.5.2-3
ee1b47
- Include new xorg lens from upstream
ee1b47
ee1b47
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
ee1b47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ee1b47
ee1b47
* Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
ee1b47
- New version
ee1b47
ee1b47
* Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
ee1b47
- Install fadot
ee1b47
ee1b47
* Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
ee1b47
- fadot isn't being installed just yet
ee1b47
ee1b47
* Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
ee1b47
- New program /usr/bin/fadot
ee1b47
ee1b47
* Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
ee1b47
- New version
ee1b47
ee1b47
* Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
ee1b47
- New version
ee1b47
ee1b47
* Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
ee1b47
- New version
ee1b47
ee1b47
* Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
ee1b47
- New version
ee1b47
ee1b47
* Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
ee1b47
- New version
ee1b47
ee1b47
* Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
ee1b47
- Initial specfile