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
|
|
|
#
|
2012-01-26 21:39:55 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: augeas
|
- update to 0.9.0:
- augtool: keep history in ~/.augeas/history
- add aug_srun API function; this makes it possible to run a sequence of
commands through the API
- aug_mv: report error AUG_EMVDESC on attempts to move a node into one of
its descendants
- path expressions: allow whitespace inside names, making '/files/etc/foo
bar/baz' a legal path, but parse [expr1 or expr2] and [expr1 and expr2]
as the logical and/or of expr1 and expr2
- path expressions: interpret escape sequences in regexps; since '.' does
not match newlines, it has to be possible to write '.|\n' to match any
character
- path expressions: allow concatenating strings and regexps; add
comparison operator '!~'; add function 'glob'; allow passing a nodeset
to function 'regexp'
- store the names of the functions available in path expressions under
/augeas/version
- fix several smaller memory leaks
- Lens changes/additions
* Aliases: allow spaces and commas in aliases (Mathieu Arnold)
* Grub: allow "bootfs" Solaris/ZFS extension for dataset name, bug #201
(Dominic Cleal); allow kernel path starting with a BIOS device,
bug #199
* Inifile: allow multiline values
* Php: include files from Zend community edition, bug #210
* Properties: new lens for Java properties files, bug #194 (Craig Dunn)
* Spacevars: autoload two ldap files, bug #202 (John Morrissey)
* Sudoers: support users:groups format in a Runas_Spec line, bug #211;
add CSW paths (Dominic Cleal)
* Util: allow comment_or_eol to match whitespace-only comments,
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=22
2011-08-24 01:54:32 +02:00
|
|
|
Version: 0.9.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-01-26 21:39:55 +01:00
|
|
|
License: GPL-3.0+ ; 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/
|
- update to 0.9.0:
- augtool: keep history in ~/.augeas/history
- add aug_srun API function; this makes it possible to run a sequence of
commands through the API
- aug_mv: report error AUG_EMVDESC on attempts to move a node into one of
its descendants
- path expressions: allow whitespace inside names, making '/files/etc/foo
bar/baz' a legal path, but parse [expr1 or expr2] and [expr1 and expr2]
as the logical and/or of expr1 and expr2
- path expressions: interpret escape sequences in regexps; since '.' does
not match newlines, it has to be possible to write '.|\n' to match any
character
- path expressions: allow concatenating strings and regexps; add
comparison operator '!~'; add function 'glob'; allow passing a nodeset
to function 'regexp'
- store the names of the functions available in path expressions under
/augeas/version
- fix several smaller memory leaks
- Lens changes/additions
* Aliases: allow spaces and commas in aliases (Mathieu Arnold)
* Grub: allow "bootfs" Solaris/ZFS extension for dataset name, bug #201
(Dominic Cleal); allow kernel path starting with a BIOS device,
bug #199
* Inifile: allow multiline values
* Php: include files from Zend community edition, bug #210
* Properties: new lens for Java properties files, bug #194 (Craig Dunn)
* Spacevars: autoload two ldap files, bug #202 (John Morrissey)
* Sudoers: support users:groups format in a Runas_Spec line, bug #211;
add CSW paths (Dominic Cleal)
* Util: allow comment_or_eol to match whitespace-only comments,
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/augeas?expand=0&rev=22
2011-08-24 01:54:32 +02:00
|
|
|
Source0: http://augeas.net/download/augeas-%{version}.tar.gz
|
2011-04-04 22:16:01 +02:00
|
|
|
Source1: baselibs.conf
|
2010-10-14 00:47:04 +02:00
|
|
|
Patch0: augeas-modprobe-lense.patch
|
2012-01-26 21:39:55 +01:00
|
|
|
# PATCH-FIX-OPENSUSE bnc-729491-recognize-suse-sysconfig-files.patch [bnc#729491]
|
|
|
|
Patch1: bnc-729491-recognize-suse-sysconfig-files.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
|
|
|
|
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
|
2012-01-26 21:39:55 +01:00
|
|
|
%patch1 -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
|