Blame SPECS/augeas.spec

91858b
Name:           augeas
91858b
Version:        1.4.0
91858b
Release:        9%{?dist}
91858b
Summary:        A library for changing configuration files
91858b
91858b
Group:          System Environment/Libraries
91858b
License:        LGPLv2+
91858b
URL:            http://augeas.net/
91858b
Source0:        http://download.augeas.net/%{name}-%{version}.tar.gz
91858b
Patch1:         0001-Syslog-restored-Augeas-1.1.0-tree-compatibility-for-.patch
91858b
Patch2:         0002-Revert-Use-Quote-module-in-dovecot.patch
91858b
Patch3:         0003-Revert-Jaas-add-several-improvements-to-cover-more-v.patch
91858b
Patch4:         0004-UpdateDB-autoload-etc-updatedb.conf-with-Simplevars.patch
91858b
Patch5:         0005-Revert-Dnsmasq-add-structure-to-address-and-server-o.patch
91858b
Patch6:         0006-Sshd-revert-Sshd-module-to-1.1.0-compatible-add-Sshd.patch
91858b
Patch7:         0007-Dhcpd-revert-Dhcpd-module-to-1.1.0-compatible-add-Dh.patch
91858b
Patch8:         0008-Slapd-revert-Slapd-module-to-1.1.0-compatible-add-Sl.patch
91858b
Patch9:         0009-Rhsm-new-lens-to-parse-subscription-manager-s-rhsm.c.patch
91858b
Patch10:        0010-Fix-sudoers-lens-recognize-match_group_by_gid.patch
91858b
Patch11:        0011-src-pathx.c-parse_name-correctly-handle-trailing-whi.patch
91858b
Patch12:        0012-tests-test-save.c-testSaveNoPermission-skip-when-roo.patch
91858b
Patch13:        0013-Chrony-allow-signed-numbers.patch
91858b
Patch14:        0014-Fix-430-support-Krb5-include-dir.patch
91858b
Patch15:        0015-Cgconfig-allow-fperm-dperm-in-admin-task.patch
91858b
Patch16:        0016-Grub-handle-top-level-boot-directive-494.patch
91858b
Patch17:        0017-Fstab-allow-leading-whitespace-in-lines-with-spec-54.patch
91858b
Patch18:        0018-Grub-tolerate-some-invalid-entries.patch
91858b
Patch19:        0019-Fix-sudoers-lens-always_query_group_plugin-588.patch
91858b
Patch20:        0020-New-lens-Anaconda-597.patch
91858b
91858b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
91858b
91858b
BuildRequires:  readline-devel libselinux-devel libxml2-devel
91858b
BuildRequires:  autoconf, automake
91858b
Requires:       %{name}-libs = %{version}-%{release}
91858b
91858b
%description
91858b
A library for programmatically editing configuration files. Augeas parses
91858b
configuration files into a tree structure, which it exposes through its
91858b
public API. Changes made through the API are written back to the initially
91858b
read files.
91858b
91858b
The transformation works very hard to preserve comments and formatting
91858b
details. It is controlled by ``lens'' definitions that describe the file
91858b
format and the transformation into a tree.
91858b
91858b
This package attempts to be compatible with Augeas 1.1.0 as shipped in
91858b
EL7.0, where possible.
91858b
91858b
%package        devel
91858b
Summary:        Development files for %{name}
91858b
Group:          Development/Libraries
91858b
Requires:       %{name}-libs = %{version}-%{release}
91858b
Requires:       pkgconfig
91858b
91858b
%description    devel
91858b
The %{name}-devel package contains libraries and header files for
91858b
developing applications that use %{name}.
91858b
91858b
91858b
%package        libs
91858b
Summary:        Libraries for %{name}
91858b
Group:          System Environment/Libraries
91858b
91858b
Provides:       bundled(gnulib)
91858b
91858b
%description    libs
91858b
The libraries for %{name}.
91858b
91858b
91858b
%prep
91858b
%setup -q
91858b
%patch1 -p1
91858b
%patch2 -p1
91858b
%patch3 -p1
91858b
%patch4 -p1
91858b
%patch5 -p1
91858b
%patch6 -p1
91858b
%patch7 -p1
91858b
%patch8 -p1
91858b
%patch9 -p1
91858b
%patch10 -p1
91858b
%patch11 -p1
91858b
%patch12 -p1
91858b
%patch13 -p1
91858b
%patch14 -p1
91858b
%patch15 -p1
91858b
%patch16 -p1
91858b
%patch17 -p1
91858b
%patch18 -p1
91858b
%patch19 -p1
91858b
%patch20 -p1
91858b
91858b
# Patches affect Makefile.am and configure.ac, so rerun autotools.
91858b
autoreconf
91858b
autoconf
91858b
91858b
%build
91858b
%configure --disable-static
91858b
make %{?_smp_mflags}
91858b
91858b
%check
91858b
# Disable test-preserve.sh SELinux testing. This fails when run under mock due
91858b
# to differing SELinux labelling.
91858b
export SKIP_TEST_PRESERVE_SELINUX=1
91858b
91858b
make %{?_smp_mflags} check || {
91858b
  echo '===== tests/test-suite.log ====='
91858b
  cat tests/test-suite.log
91858b
  exit 1
91858b
}
91858b
91858b
%install
91858b
rm -rf $RPM_BUILD_ROOT
91858b
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
91858b
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
91858b
91858b
# The tests/ subdirectory contains lenses used only for testing, and
91858b
# so it shouldn't be packaged.
91858b
rm -r $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/tests
91858b
91858b
%clean
91858b
rm -rf $RPM_BUILD_ROOT
91858b
91858b
%post libs -p /sbin/ldconfig
91858b
91858b
%postun libs -p /sbin/ldconfig
91858b
91858b
%files
91858b
%defattr(-,root,root,-)
91858b
%{_bindir}/augtool
91858b
%{_bindir}/augparse
91858b
%{_bindir}/fadot
91858b
%doc %{_mandir}/man1/*
91858b
%{_datadir}/vim/vimfiles/syntax/augeas.vim
91858b
%{_datadir}/vim/vimfiles/ftdetect/augeas.vim
91858b
91858b
%files libs
91858b
%defattr(-,root,root,-)
91858b
# %{_datadir}/augeas and %{_datadir}/augeas/lenses are owned
91858b
# by filesystem.
91858b
%{_datadir}/augeas/lenses/dist
91858b
%{_libdir}/*.so.*
91858b
%doc AUTHORS COPYING NEWS
91858b
91858b
%files devel
91858b
%defattr(-,root,root,-)
91858b
%doc
91858b
%{_includedir}/*
91858b
%{_libdir}/*.so
91858b
%{_libdir}/pkgconfig/augeas.pc
91858b
91858b
%changelog
91858b
* Wed Dec 19 2018 Pino Toscano <ptoscano@redhat.com> - 1.4.0-9
91858b
- Add "Provides: bundled(gnulib)" to augeas-libs, as it embeds gnulib
91858b
  (RHBZ#1653766)
91858b
- Anaconda: new lens (RHBZ#1657189)
91858b
91858b
* Tue Nov 13 2018 Pino Toscano <ptoscano@redhat.com> - 1.4.0-8
91858b
- Sudoers: handle "always_query_group_plugin" option (RHBZ#1649287)
91858b
91858b
* Tue Nov 13 2018 Pino Toscano <ptoscano@redhat.com> - 1.4.0-7
91858b
- Grub: better handle invalid grub.conf files (RHBZ#1582236)
91858b
91858b
* Thu Mar 29 2018 Pino Toscano <ptoscano@redhat.com> - 1.4.0-6
91858b
- Fstab: allow leading whitespaces (RHBZ#1544520)
91858b
91858b
* Wed Oct 04 2017 Pino Toscano <ptoscano@redhat.com> - 1.4.0-5
91858b
- Cgconfig: allow fperm & dperm in admin & task (RHBZ#1325741)
91858b
- Grub: handle top-level "boot" directive (RHBZ#1484261)
91858b
91858b
* Mon Sep 04 2017 Pino Toscano <ptoscano@redhat.com> - 1.4.0-4
91858b
- Fix CVE-2017-7555, improper handling of escaped strings (RHBZ#1481546)
91858b
- Skip testSaveNoPermission when running as root (RHBZ#1269817)
91858b
- Chrony: allow signed numbers (RHBZ#1302017)
91858b
- Krb5: support includedir (RHBZ#1406111)
91858b
91858b
* Tue Aug 29 2017 Luigi Toscano <ltoscano@redhat.com> - 1.4.0-3
91858b
  Fix sudoers lens: recognize "match_group_by_gid" (RHBZ#1483888)
91858b
91858b
* Thu Jul 30 2015 Dominic Cleal <dcleal@redhat.com> - 1.4.0-2
91858b
- Rhsm: add to parse subscription-manager config (RHBZ#1141121)
91858b
91858b
* Fri Jun 12 2015 Dominic Cleal <dcleal@redhat.com> - 1.4.0-1
91858b
- Rebase to Augeas 1.4.0
91858b
- Revert some changes for better compatibility with 1.1.0-17:
91858b
  * Dhcpd: keep 1.1.0 behaviour, add Dhcpd_140 for 1.4.0 features
91858b
  * Dnsmasq: revert splitting of address/server options
91858b
  * Dovecot: restore quotes within values
91858b
  * Jaas: revert semicolon and line break changes
91858b
  * Slapd: keep 1.1.0 behaviour, add Slapd_140 for 1.4.0 features
91858b
  * Sshd: keep 1.1.0 behaviour, add Sshd_140 for 1.4.0 features
91858b
  * Syslog: restore tree without protocol for UDP hosts
91858b
  * UpdateDB: keep Simplevars to load config by default
91858b
91858b
* Thu Nov 27 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-17
91858b
- Device_map: parse all device.map files under /boot (RHBZ#1166582)
91858b
91858b
* Tue Sep 23 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-16
91858b
- Iptables: parse /etc/sysconfig/iptables.save (RHBZ#1144651)
91858b
- Lvm: parse /etc/lvm/lvm.conf (RHBZ#1145495)
91858b
- Shadow: add lens (RHBZ#1145249)
91858b
91858b
* Thu Sep 18 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-15
91858b
- Remove man/augtool.1 patches, always create .1 during build (RHBZ#1143954)
91858b
91858b
* Thu Sep 18 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-14
91858b
- Kdump: parse new options, EOL comments (RHBZ#1139298)
91858b
- Rsyslog: parse property filters and templates (RHBZ#1138402)
91858b
- Systemd: parse semicolons inside entry values (RHBZ#1139498)
91858b
- Systemd: parse environment variables where value is quoted (RHBZ#1138508)
91858b
91858b
* Thu Sep 04 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-13
91858b
- aug_save: return error when unlink fails (RHBZ#1091143)
91858b
- augtool: add aliases to autocomplete (RHBZ#1100076)
91858b
- augtool: remove unused dump-xml arg (RHBZ#1100106)
91858b
- Automounter: parse hostnames with hyphens (RHBZ#1075162)
91858b
- Cgconfig: parse other valid controllers (RHBZ#1112543)
91858b
- Chrony: add lens (RHBZ#1071947)
91858b
- docs: update man page with new commands (RHBZ#1100077)
91858b
- Exports: permit colons for IPv6 client addresses (RHBZ#1067030)
91858b
- Httpd: parse continued, quoted lines (RHBZ#1100551)
91858b
- Ldso: parse hwcap lines (RHBZ#1102629)
91858b
- NagiosCfg: parse nrpe.cfg with Nrpe (RHBZ#1102623)
91858b
- Rmt: add lens (RHBZ#1100549)
91858b
- Services: permit colons in service name (RHBZ#1121527)
91858b
- Shellvars: support arithmetic expansion (RHBZ#1100550)
91858b
- Syslog: parse TCP loghosts (RHBZ#1129386)
91858b
- Syslog: parse IPv6 loghost addresses (RHBZ#1129388)
91858b
- Systemd: parse /etc/sysconfig/*.systemd (RHBZ#1083022)
91858b
- Systemd: parse quoted environment vars (RHBZ#1100547)
91858b
91858b
* Tue Feb 25 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-12
91858b
- Add patch for Dovecot, mailbox and quote support (RHBZ#1064387)
91858b
- Add patch for Keepalived, virtual server fixes (RHBZ#1064388)
91858b
- Add patch for Krb5, parse braces in values (RHBZ#1066419)
91858b
91858b
* Thu Feb 20 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-11
91858b
- Add patch for Yum, split exclude lines (RHBZ#1067039)
91858b
91858b
* Tue Feb 18 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-10
91858b
- Add patch for IPRoute2, hex and hyphen protocols (RHBZ#1063961)
91858b
- Add patch for IPRoute2, slashes in protocols (RHBZ#1063968)
91858b
91858b
* Mon Feb 10 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-9
91858b
- Add patch for yum-cron.conf incl entry (RHBZ#1058409)
91858b
- Add patch for firewalld.conf incl entry (RHBZ#1058411)
91858b
- Add patch for Grub, foreground option (RHBZ#1059426)
91858b
- Add patch for Yum, spaces around equals (RHBZ#1062614)
91858b
- Add patch for Shellvars, case and same-line ;; (RHBZ#1056541)
91858b
91858b
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.0-8
91858b
- Mass rebuild 2014-01-24
91858b
91858b
* Tue Jan 14 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-7
91858b
- Fix CVE-2013-6412, incorrect permissions under strict umask (RHBZ#1036081)
91858b
91858b
* Thu Jan 02 2014 Dominic Cleal <dcleal@redhat.com> - 1.1.0-6
91858b
- Add patch for Sysconfig module, empty comment lines (RHBZ#1043665)
91858b
- Add check section to run test suite
91858b
- Add patch for testPermsErrorReported test, when root (RHBZ#1043666)
91858b
- Add patch for Shellvars, multivariable exports (RHBZ#1043815)
91858b
91858b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.0-5
91858b
- Mass rebuild 2013-12-27
91858b
91858b
* Tue Nov 19 2013 Dominic Cleal <dcleal@redhat.com> - 1.1.0-4
91858b
- Add patch for saving files with // in incl path (RHBZ#1031084)
91858b
91858b
* Tue Oct 22 2013 Dominic Cleal <dcleal@redhat.com> - 1.1.0-3
91858b
- Add patch for Grub module, setkey/lock support (RHBZ#1019485)
91858b
91858b
* Mon Aug 12 2013 Dominic Cleal <dcleal@redhat.com> - 1.1.0-2
91858b
- Fix source URL to download.augeas.net (RHBZ#996033)
91858b
91858b
* Wed Jun 19 2013 David Lutterkort <lutter@redhat.com> - 1.1.0-1
91858b
- Update to 1.1.0; remove all patches
91858b
91858b
* Tue Jun 18 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-4
91858b
- Fix /etc/sysconfig/network (RHBZ#904222).
91858b
91858b
* Wed Jun  5 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-3
91858b
- Don't package lenses in tests/ subdirectory.
91858b
91858b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
91858b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
91858b
91858b
* Fri Jan  4 2013 David Lutterkort <lutter@redhat.com> - 1.0.0-1
91858b
- New version; remove all patches
91858b
91858b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
91858b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
91858b
91858b
* Tue Jan 10 2012 David Lutterkort <lutter@redhat.com> - 0.10.0-3
91858b
- Add patches for bugs 247 and 248 (JSON lens)
91858b
91858b
* Sat Dec  3 2011 Richard W.M. Jones <rjones@redhat.com> - 0.10.0-2
91858b
- Add patch to resolve missing libxml2 requirement in augeas.pc.
91858b
91858b
* Fri Dec  2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
91858b
- New version
91858b
91858b
* Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
91858b
- New version; removed patch pathx-whitespace-ea010d8
91858b
91858b
* Tue May  3 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-2
91858b
- Add patch pathx-whitespace-ea010d8.patch to fix BZ 700608
91858b
91858b
* Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
91858b
- New version
91858b
91858b
* Wed Feb 23 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
91858b
- New version
91858b
91858b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
91858b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
91858b
91858b
* Mon Nov 22 2010 Matthew Booth <mbooth@redhat.com> - 0.7.4-1
91858b
- Update to version 0.7.4
91858b
91858b
* Thu Nov 18 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.3-2
91858b
- Upstream patch proposed to fix GCC optimization bug (RHBZ#651992).
91858b
91858b
* Fri Aug  6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
91858b
- Remove upstream patches
91858b
91858b
* Tue Jun 29 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-2
91858b
- Patches based on upstream fix for BZ 600141
91858b
91858b
* Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
91858b
- Fix ownership of /usr/share/augeas. BZ 569393
91858b
91858b
* Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
91858b
- New version
91858b
91858b
* Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
91858b
- Remove patch vim-ftdetect-syntax.patch. It's upstream
91858b
91858b
* Tue Dec 15 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-2
91858b
- Fix ftdetect file for vim
91858b
91858b
* Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
91858b
- Install vim syntax files
91858b
91858b
* Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
91858b
- Remove separate xorg.aug, included in upstream source
91858b
91858b
* Tue Aug 25 2009 Matthew Booth <mbooth@redhat.com> - 0.5.2-3
91858b
- Include new xorg lens from upstream
91858b
91858b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
91858b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
91858b
91858b
* Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
91858b
- New version
91858b
91858b
* Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
91858b
- Install fadot
91858b
91858b
* Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
91858b
- fadot isn't being installed just yet
91858b
91858b
* Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
91858b
- New program /usr/bin/fadot
91858b
91858b
* Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
91858b
- New version
91858b
91858b
* Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
91858b
- New version
91858b
91858b
* Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
91858b
- New version
91858b
91858b
* Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
91858b
- New version
91858b
91858b
* Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
91858b
- New version
91858b
91858b
* Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
91858b
- Initial specfile