2009-04-01 23:53:51 +02:00
|
|
|
#
|
2011-01-14 15:21:49 +01:00
|
|
|
# spec file for package augeas
|
2009-04-01 23:53:51 +02:00
|
|
|
#
|
2013-04-17 09:30:11 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-04-01 23:53:51 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2012-07-28 12:06:53 +02:00
|
|
|
|
|
|
|
|
2009-04-01 23:53:51 +02:00
|
|
|
Name: augeas
|
Accepting request 210459 from home:posophe:branches:devel:libraries:c_c++
- Update to version 1.1.0
- Handle files with special characters in their name, bug #343
- Fix type error in composition ('f; g') of functions, bug #328
- Improve detection of version script; make build work on Illumos with
GBU ld (Igor Pashev)
- augparse: add --trace option to print filenames of all modules being
loaded
- Various lens documentation improvements (Jasper Lievisse Adriaanse)
- Lens changes/additions
- ActiveMQ_*: new lens for ActiveMQ/JBoss A-MQ (Brian Harrington)
- AptCacherNGSecurity: new lens for /etc/apt-cacher-ng/security.conf
(Erik Anderson)
- Automaster: accept spaces between options
- BBHosts: support more flags and downtime feature (Mathieu Alorent)
- Bootconf: new lens for OpenBSD's /etc/boot.conf (Jasper Adriaanse)
- Desktop: Support dos eol
- Dhclient: read /etc/dhclient.conf used in OpenBSD (Jasper Adriaanse)
- Dovecot: New lens for dovecot configurations (Serge Smetana)
- Fai_Diskconfig: Optimize some regexps
- Fonts: exclude all README files (Jasper Adriaanse)
- Inetd: support IPv6 addresses, bug #320
- IniFile: Add lns_loose and lns_loose_multiline definitions
Support smart quotes
Warning: Smart quotes support means users should not add
escaped double quotes themselves. Tests need to be fixed
also.
Use standard Util.comment_generic and Util.empty_generic
Warning: Existing lens tests must be adapted to use standard
comments and empty lines
Allow spaces in entry_multiline* values
Add entry_generic and entry_multiline_generic
Add empty_generic and empty_noindent
Let multiline values begin with a single newline
Support dos eol
Warning: Support for dos eol means existing lenses usually
need to be adapted to exclude \r as well as \n.
- IPRoute2: Support for iproute2 files (Davide Guerri)
- JaaS: lens for the Java Authentication and Authorization Service
(Simon Vocella)
- JettyRealm: new lens for jetty-realm.properties (Brian Harrington)
- JMXAccess, JMXPassword: new lenses for ActiveMQ's JMX files
(Brian Harrington)
- Krb5: Use standard comments and empty lines
Support dos eol
Improve performance
Accept pkinit_anchors (Andrew Anderson)
- Lightdm: Use standard comments and empty lines
- LVM: New lens for LVM metadata (Gabriel)
- Mdadm_conf: optimize some regexps
- MongoDBServer: new lens (Brian Harrington)
- Monit: also load /etc/monitrc (Jasper Adriaanse)
- MySQL: Use standard comments and empty lines
Support dos eol
- NagiosCfg: handle Icinga and resources.cfg (Jasper Adriaanse)
- Nrpe: accept any config option rather than predefined list (Gonzalo
Servat); optimize some regexps
- Ntpd: new lense for OpenNTPD config (Jasper Adriaanse)
- Odbc: Use standard comments and empty lines
- Openshift_*: new lenses for Openshift support (Brian Harrington)
- Quote: allow multiple spaces in quote_spaces; improve docs
- Passwd: allow period in user names in spec, bug #337; allow overrides
in nisentry
- PHP: Support smart quotes
Use standard comments and empty lines
Load /etc/php*/fpm/pool.d/*.conf (Enrico Stahn)
- Postfix_master: allow [] in words, bug #345
- Resolv: support 'lookup' and 'family' key words, bug #320
(Jasper Adriaanse))
- Rsyslog: support :omusrmsg: list of users in actions
- RX: add CR to RX.space_in
- Samba: Use standard comments and empty lines
Support dos eol
- Schroot: Support smart quotes
- Services: support port ranges (Branan Purvine-Riley)
- Shellvars: optimize some regexps; reinstate /etc/sysconfig/network,
fixes bug #330, RHBZ#904222, RHBZ#920609; parse /etc/rc.conf.local
from OpenBSD
- Sip_Conf: New lens for sip.conf configurations (Rob Tucker)
- Splunk: new lens (Tim Brigham)
- Subversion: Support smart quotes
Use standard comments and empty lines
Use IniFile.entry_multiline_generic
Use IniFile.empty_noindent
Support dos eol
- Sudoers: allow user aliases in specs
- Sysctl: exclude README file
- Systemd: Support smart quotes; allow backslashes in values
- Xinetd: handle missing values in list, bug #307
- Xorg: allow 'Screen' in Device section, bug #344
- Yum: Support dos eol, optimize some regexps
OBS-URL: https://build.opensuse.org/request/show/210459
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=43
2013-12-12 14:18:27 +01:00
|
|
|
Version: 1.1.0
|
2012-02-11 04:09:48 +01:00
|
|
|
Release: 0
|
2009-04-01 23:53:51 +02:00
|
|
|
Summary: A library for changing configuration files
|
2012-10-10 20:55:25 +02:00
|
|
|
License: GPL-3.0+ and LGPL-2.1+
|
2012-02-11 04:09:48 +01:00
|
|
|
Group: System/Libraries
|
2010-10-14 00:47:04 +02:00
|
|
|
Url: http://augeas.net/
|
2013-12-13 13:29:23 +01:00
|
|
|
Source0: http://download.augeas.net/augeas-%{version}.tar.gz
|
|
|
|
Source1: http://download.augeas.net/augeas-%{version}.tar.gz.sig
|
|
|
|
Source2: %name.keyring
|
|
|
|
Source3: baselibs.conf
|
2010-10-14 00:47:04 +02:00
|
|
|
Patch0: augeas-modprobe-lense.patch
|
2009-04-01 23:53:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-11 04:09:48 +01:00
|
|
|
BuildRequires: glib2-devel
|
2012-02-29 11:32:49 +01:00
|
|
|
BuildRequires: libxml2-devel
|
2012-02-29 12:25:33 +01:00
|
|
|
BuildRequires: readline-devel
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%define __shrlibname lib%{name}0
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A library for changing configuration files
|
2010-10-14 00:47:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-04-01 23:53:51 +02:00
|
|
|
Requires: %{__shrlibname} = %{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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2010-10-14 00:47:04 +02:00
|
|
|
%package -n %{__shrlibname}
|
2009-04-01 23:53:51 +02:00
|
|
|
Summary: A library for changing configuration files
|
2010-10-14 00:47:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-04-01 23:53:51 +02:00
|
|
|
Recommends: %{name}-lenses = %{version}
|
|
|
|
|
2010-10-14 00:47:04 +02:00
|
|
|
%description -n %{__shrlibname}
|
2009-04-01 23:53:51 +02:00
|
|
|
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 lenses
|
2010-10-14 00:47:04 +02:00
|
|
|
Summary: Official set of lenses for use by %{__shrlibname}
|
2009-04-01 23:53:51 +02:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{__shrlibname} = %{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
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-10-14 00:47:04 +02:00
|
|
|
%patch0 -p1
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="-Wno-error $RPM_OPT_FLAGS"
|
2011-09-22 11:32:02 +02:00
|
|
|
%configure --disable-static
|
2012-02-11 04:09:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2012-02-11 04:09:48 +01:00
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
2011-09-22 11:32:02 +02:00
|
|
|
# move vim files to the right location
|
|
|
|
mv $RPM_BUILD_ROOT/%{_datadir}/vim/vimfiles $RPM_BUILD_ROOT/%{_datadir}/vim/site
|
2009-04-01 23:53:51 +02:00
|
|
|
|
2012-02-11 04:09:48 +01:00
|
|
|
%post -n %{__shrlibname} -p /sbin/ldconfig
|
2009-04-01 23:53:51 +02:00
|
|
|
|
2012-02-11 04:09:48 +01:00
|
|
|
%postun -n %{__shrlibname} -p /sbin/ldconfig
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/augtool
|
|
|
|
%{_bindir}/augparse
|
2010-10-14 00:47:04 +02:00
|
|
|
%{_bindir}/fadot
|
2009-04-01 23:53:51 +02:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%doc AUTHORS COPYING NEWS
|
|
|
|
|
2010-10-14 00:47:04 +02:00
|
|
|
%files -n %{__shrlibname}
|
2009-04-01 23:53:51 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/augeas.pc
|
2011-09-22 11:32:02 +02:00
|
|
|
# vim support files
|
2010-10-14 00:47:04 +02:00
|
|
|
%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
|
2011-09-22 11:32:02 +02:00
|
|
|
|
|
|
|
%files lenses
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/lenses
|
|
|
|
%dir %{_datadir}/%{name}/lenses/dist
|
|
|
|
%{_datadir}/%{name}/lenses/dist/*.aug
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%files lense-tests
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-22 11:32:02 +02:00
|
|
|
%dir %{_datadir}/%{name}/lenses/dist/tests
|
|
|
|
%{_datadir}/%{name}/lenses/dist/tests/*.aug
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%changelog
|