Blame SPECS/augeas.spec

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