augeas/augeas.spec

185 lines
5.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package augeas
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: augeas
2023-08-24 11:51:04 +02:00
Version: 1.14.1
Release: 0
Summary: An utility for changing configuration files
License: LGPL-2.1-or-later
2023-08-24 11:51:04 +02:00
Group: System/Shells
Accepting request 819138 from home:elimat:branches:devel:libraries:c_c++ - update to 1.12.0 General changes/additions - update gnulib to 91584ed6 Lens changes/additions - Anaconda: new lens to process /etc/sysconfig/anaconda instead of Shellvars (Pino Toscano) (Issue #597) - DevfsRules: add lens for FreeBSD devfs.rules files - Dovecot: permit ! in block titles (Nathan Ward) (Issue #599) - Hostname: Allow creation of hostname when file is missing (David Farrell) (Issue #606) - Krb5: add more pkinit_* options (Issue #603) - Logrotate: fix missing recognition of double quoted filenames (Issue #611) - Multipath: accept values enclosed in quotes (Issue #583) - Nginx: support unix sockets as server address (Issue #618) - Nsswitch: add merge action (Issue #609) - Pam: accept continuation lines (Issue #590) - Puppetfile: allow symbols as (optional) values (Issue #619) allow comments in entries (Issue #620) - Rsyslog: support dynamic file paths (Issue #622) treat #!/+/- as comment (arnolda, PR #595) - Syslog: accept 'include' directive (Issue #486) - Semanage: new lens to process /etc/selinux/semanage.conf instead of Simplevars (Pino Toscano) (Issue #594) - Shellvars: allow and/or in @if conditions (#582) accept functions wrapped in round brackets, accept variables with a dash in their name, exclude csh/tcsh profile scripts (Pino Toscano) (Issue #600) accept variable as command (Issue #601) - Ssh: accept RekeyLimit (Issue #605) - Sshd: accept '=' to separate option names from their values (Emil Dragu, #587) - Sudoers: support 'always_query_group_plugin' flag (Steve Traylen, #588) - Strongswan: parse lists. This is a backwards-incompatible change since list entries that were parsed into a single string are now split into a list of entries (Kaarle Ritvanen) - Toml: new lens to parse .toml files (PR #91) - Xorg: accept empty values for options (arnolda, PR #596) - refresh patches - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/819138 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=82
2020-08-05 14:30:27 +02:00
URL: https://augeas.net/
Source0: https://github.com/hercules-team/augeas/releases/download/release-%{version}/%{name}-%{version}.tar.gz
Source2: %{name}.keyring
Source3: baselibs.conf
Patch0: augeas-modprobe-lense.patch
# from https://patch-diff.githubusercontent.com/raw/hercules-team/augeas/pull/755.patch
2023-08-24 11:51:04 +02:00
Patch1: gcc9-disable-broken-test.patch
BuildRequires: glibc-locale
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(libxml-2.0)
%description
An utility for programmatically editing configuration files. Augeas
parses configuration files into a tree structure.
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: A library for changing configuration files
2023-08-24 11:51:04 +02:00
Group: System/Shells
Requires: libaugeas0 = %{version}
Requires: libfa1 = %{version}
%description devel
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.
%package -n libaugeas0
Summary: A library for changing configuration files
2023-08-24 11:51:04 +02:00
Group: System/Shells
Recommends: %{name}-lenses = %{version}
%description -n libaugeas0
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 -n libfa1
Summary: Finite automaton library for Augeas
2023-08-24 11:51:04 +02:00
Group: System/Shells
%description -n libfa1
Component library for the Augeas configuration parser.
%package lenses
Summary: Official set of lenses for use by libaugeas
2023-08-24 11:51:04 +02:00
Group: System/Shells
Requires: libaugeas0 = %{version}
%description lenses
Augeas parses configuration files described in lenses into a tree
structure, which it exposes through its public API. Lenses are the
building blocks of the file <-> tree transformation. The transformation
is controlled by ``lens'' definitions that describe the file format and
mapping of its contents into a tree. This package includes the official
set of lenses.
%package lense-tests
Summary: Set of tests for official Augeas lenses
2023-08-24 11:51:04 +02:00
Group: System/Shells
Requires: %{name}-lenses = %{version}
%description lense-tests
Set of tests for official Augeas lenses. These can be used when
modifying the official lenses, or when creating new ones.
2023-08-24 11:51:04 +02:00
%package bash-completion
Summary: Bash completion for augeas
Group: System/Shells
Requires: %{name}
Requires: bash-completion
%if 0%{?suse_version} >= 1500
Supplements: (%{name} and bash-completion)
%else
Supplements: packageand(%{name}:bash-completion)
%endif
%description bash-completion
bash command line completion support for augeas.
%prep
%autosetup -p1
%build
- Add check phase, comment out as 2 test fails now. - Clean up with spec-cleaner - Version bump to 1.2.0: - API changes * Add aug_cp and the cp and copy commands * aug_to_xml now includes span information in the XML dump - General changes/additions * Fix documentation link in c_api NaturalDocs menu * Fix NaturalDocs documentation for various lenses * src/transform.c (filter_matches): wrap fnmatch to ensure that an incl pattern containing "//" matches file paths, RHBZ#1031084 * Correct locations table for transform_save() (Tomas Hoger) * Corrections for CVE-2012-0786 tests (Tomas Hoger) * Fix umask handling when creating new files, RHBZ#1034261 - Lens changes/additions * Access: support DOMAIN\user syntax for users and groups, bug #353 * Authorized_Keys: Allow 'ssh-ed25519' as a valid authorized_key type (Jasper Lievisse Adriaanse) * Automounter: Handle hostnames with dashes in them, GH issue #27 * Build: Add combinatorics group * Cyrus_Imapd: Create new entries without space before separator, RHBZ#1014974 (Dietmar Kling) * Desktop: Support square brackets in keys * Dhclient: Add dhclient.conf path for Debian/Ubuntu (Esteve Fernandez) * Dhcpd: Support conditionals, GH issue #34 Support a wider variety of allow/deny statement, including booting and bootp (Yanis Guenane) Support a wider variety of DHCP allow/deny/ignore statements (Yanis Guenane) * Dovecot: Various enhancements and bug fixes (Michael Haslgrübler): OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=46
2014-05-06 13:12:03 +02:00
%configure \
--disable-static \
--disable-silent-rules \
--disable-rpath
Accepting request 819138 from home:elimat:branches:devel:libraries:c_c++ - update to 1.12.0 General changes/additions - update gnulib to 91584ed6 Lens changes/additions - Anaconda: new lens to process /etc/sysconfig/anaconda instead of Shellvars (Pino Toscano) (Issue #597) - DevfsRules: add lens for FreeBSD devfs.rules files - Dovecot: permit ! in block titles (Nathan Ward) (Issue #599) - Hostname: Allow creation of hostname when file is missing (David Farrell) (Issue #606) - Krb5: add more pkinit_* options (Issue #603) - Logrotate: fix missing recognition of double quoted filenames (Issue #611) - Multipath: accept values enclosed in quotes (Issue #583) - Nginx: support unix sockets as server address (Issue #618) - Nsswitch: add merge action (Issue #609) - Pam: accept continuation lines (Issue #590) - Puppetfile: allow symbols as (optional) values (Issue #619) allow comments in entries (Issue #620) - Rsyslog: support dynamic file paths (Issue #622) treat #!/+/- as comment (arnolda, PR #595) - Syslog: accept 'include' directive (Issue #486) - Semanage: new lens to process /etc/selinux/semanage.conf instead of Simplevars (Pino Toscano) (Issue #594) - Shellvars: allow and/or in @if conditions (#582) accept functions wrapped in round brackets, accept variables with a dash in their name, exclude csh/tcsh profile scripts (Pino Toscano) (Issue #600) accept variable as command (Issue #601) - Ssh: accept RekeyLimit (Issue #605) - Sshd: accept '=' to separate option names from their values (Emil Dragu, #587) - Sudoers: support 'always_query_group_plugin' flag (Steve Traylen, #588) - Strongswan: parse lists. This is a backwards-incompatible change since list entries that were parsed into a single string are now split into a list of entries (Kaarle Ritvanen) - Toml: new lens to parse .toml files (PR #91) - Xorg: accept empty values for options (arnolda, PR #596) - refresh patches - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/819138 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=82
2020-08-05 14:30:27 +02:00
%make_build
%install
%make_install
- Add check phase, comment out as 2 test fails now. - Clean up with spec-cleaner - Version bump to 1.2.0: - API changes * Add aug_cp and the cp and copy commands * aug_to_xml now includes span information in the XML dump - General changes/additions * Fix documentation link in c_api NaturalDocs menu * Fix NaturalDocs documentation for various lenses * src/transform.c (filter_matches): wrap fnmatch to ensure that an incl pattern containing "//" matches file paths, RHBZ#1031084 * Correct locations table for transform_save() (Tomas Hoger) * Corrections for CVE-2012-0786 tests (Tomas Hoger) * Fix umask handling when creating new files, RHBZ#1034261 - Lens changes/additions * Access: support DOMAIN\user syntax for users and groups, bug #353 * Authorized_Keys: Allow 'ssh-ed25519' as a valid authorized_key type (Jasper Lievisse Adriaanse) * Automounter: Handle hostnames with dashes in them, GH issue #27 * Build: Add combinatorics group * Cyrus_Imapd: Create new entries without space before separator, RHBZ#1014974 (Dietmar Kling) * Desktop: Support square brackets in keys * Dhclient: Add dhclient.conf path for Debian/Ubuntu (Esteve Fernandez) * Dhcpd: Support conditionals, GH issue #34 Support a wider variety of allow/deny statement, including booting and bootp (Yanis Guenane) Support a wider variety of DHCP allow/deny/ignore statements (Yanis Guenane) * Dovecot: Various enhancements and bug fixes (Michael Haslgrübler): OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=46
2014-05-06 13:12:03 +02:00
find %{buildroot} -type f -name "*.la" -delete -print
# move vim files to the right location
- Add check phase, comment out as 2 test fails now. - Clean up with spec-cleaner - Version bump to 1.2.0: - API changes * Add aug_cp and the cp and copy commands * aug_to_xml now includes span information in the XML dump - General changes/additions * Fix documentation link in c_api NaturalDocs menu * Fix NaturalDocs documentation for various lenses * src/transform.c (filter_matches): wrap fnmatch to ensure that an incl pattern containing "//" matches file paths, RHBZ#1031084 * Correct locations table for transform_save() (Tomas Hoger) * Corrections for CVE-2012-0786 tests (Tomas Hoger) * Fix umask handling when creating new files, RHBZ#1034261 - Lens changes/additions * Access: support DOMAIN\user syntax for users and groups, bug #353 * Authorized_Keys: Allow 'ssh-ed25519' as a valid authorized_key type (Jasper Lievisse Adriaanse) * Automounter: Handle hostnames with dashes in them, GH issue #27 * Build: Add combinatorics group * Cyrus_Imapd: Create new entries without space before separator, RHBZ#1014974 (Dietmar Kling) * Desktop: Support square brackets in keys * Dhclient: Add dhclient.conf path for Debian/Ubuntu (Esteve Fernandez) * Dhcpd: Support conditionals, GH issue #34 Support a wider variety of allow/deny statement, including booting and bootp (Yanis Guenane) Support a wider variety of DHCP allow/deny/ignore statements (Yanis Guenane) * Dovecot: Various enhancements and bug fixes (Michael Haslgrübler): OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=46
2014-05-06 13:12:03 +02:00
mv %{buildroot}/%{_datadir}/vim/vimfiles %{buildroot}/%{_datadir}/vim/site
%check
# This causes a >20x slowdown otherwise (boo#1201884)
unset MALLOC_PERTURB_
Accepting request 819138 from home:elimat:branches:devel:libraries:c_c++ - update to 1.12.0 General changes/additions - update gnulib to 91584ed6 Lens changes/additions - Anaconda: new lens to process /etc/sysconfig/anaconda instead of Shellvars (Pino Toscano) (Issue #597) - DevfsRules: add lens for FreeBSD devfs.rules files - Dovecot: permit ! in block titles (Nathan Ward) (Issue #599) - Hostname: Allow creation of hostname when file is missing (David Farrell) (Issue #606) - Krb5: add more pkinit_* options (Issue #603) - Logrotate: fix missing recognition of double quoted filenames (Issue #611) - Multipath: accept values enclosed in quotes (Issue #583) - Nginx: support unix sockets as server address (Issue #618) - Nsswitch: add merge action (Issue #609) - Pam: accept continuation lines (Issue #590) - Puppetfile: allow symbols as (optional) values (Issue #619) allow comments in entries (Issue #620) - Rsyslog: support dynamic file paths (Issue #622) treat #!/+/- as comment (arnolda, PR #595) - Syslog: accept 'include' directive (Issue #486) - Semanage: new lens to process /etc/selinux/semanage.conf instead of Simplevars (Pino Toscano) (Issue #594) - Shellvars: allow and/or in @if conditions (#582) accept functions wrapped in round brackets, accept variables with a dash in their name, exclude csh/tcsh profile scripts (Pino Toscano) (Issue #600) accept variable as command (Issue #601) - Ssh: accept RekeyLimit (Issue #605) - Sshd: accept '=' to separate option names from their values (Emil Dragu, #587) - Sudoers: support 'always_query_group_plugin' flag (Steve Traylen, #588) - Strongswan: parse lists. This is a backwards-incompatible change since list entries that were parsed into a single string are now split into a list of entries (Kaarle Ritvanen) - Toml: new lens to parse .toml files (PR #91) - Xorg: accept empty values for options (arnolda, PR #596) - refresh patches - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/819138 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=82
2020-08-05 14:30:27 +02:00
%make_build check
%post -n libaugeas0 -p /sbin/ldconfig
%postun -n libaugeas0 -p /sbin/ldconfig
%post -n libfa1 -p /sbin/ldconfig
%postun -n libfa1 -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS NEWS
Accepting request 589058 from home:vitezslav_cizek:branches:devel:libraries:c_c++ - update to 1.10.1: General changes/additions New CLI utility 'augmatch' to print the tree for a file and select some of its contents New command 'count' in augtool New function 'not(bool) -> bool' for path expressions The path expression 'label[. = "value"]' can now be written more concisely as 'label["value"]' API changes libfa has now a function fa_json to export an FA as a JSON file, and fa_state_* functions that make it possible to iterate over the FA's states and transitions. (Pedro Valero Mejia) Add functions aug_ns_label, aug_ns_value, aug_ns_count, and aug_ns_path to get the label (with index), the value, the number of nodes, and the fully qualified path for nodes stored in a nodeset in a variable efficiently Lens changes/additions Grubenv: new lens to process /boot/grub/grubenv (omgold) Httpd: also read files from /etc/httpd/conf.modules.d/*.conf (Tomas Meszaros) (Issue #537) Nsswitch: allow comments at the end of a line (Philip Hahn) (Issue #517) Ntp: accept 'ntpsigndsocket' statement (Philip Hahn) (Issue #516) Properties: accept empty comments with DOS line endings (Issue #161) Rancid: new lens for RANCiD router databases (Matt Dainty) Resolv: accept empty comments with DOS line endings (Issue #161) Systemd: also process /etc/systemd/logind.conf (Pat Riehecky) YAML: process a document that is just a sequence (John Vandenberg) - drop chrpath dependency, the offending dump binary is no longer shipped OBS-URL: https://build.opensuse.org/request/show/589058 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=73
2018-03-20 11:10:54 +01:00
%{_bindir}/augmatch
%{_bindir}/augtool
%{_bindir}/augparse
2023-08-24 11:51:04 +02:00
%{_bindir}/augprint
%{_bindir}/fadot
%{_mandir}/man1/*
%files -n libaugeas0
%{_libdir}/libaugeas.so.*
%files -n libfa1
%{_libdir}/libfa.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/augeas.pc
# vim support files
%dir %{_datadir}/vim
%dir %{_datadir}/vim/site
%dir %{_datadir}/vim/site/ftdetect
%{_datadir}/vim/site/ftdetect/augeas.vim
%dir %{_datadir}/vim/site/syntax
%{_datadir}/vim/site/syntax/augeas.vim
%files lenses
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/lenses
%dir %{_datadir}/%{name}/lenses/dist
%{_datadir}/%{name}/lenses/dist/*.aug
%files lense-tests
%dir %{_datadir}/%{name}/lenses/dist/tests
%{_datadir}/%{name}/lenses/dist/tests/*.aug
2023-08-24 11:51:04 +02:00
%files bash-completion
%{_datadir}/bash-completion/completions/augmatch
%{_datadir}/bash-completion/completions/augprint
%{_datadir}/bash-completion/completions/augtool
%changelog