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
|
|
|
#
|
2018-02-26 10:33:29 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
|
|
|
|
|
|
|
2014-05-06 13:12:03 +02:00
|
|
|
%define libname lib%{name}0
|
2009-04-01 23:53:51 +02:00
|
|
|
Name: augeas
|
2018-03-20 11:10:54 +01:00
|
|
|
Version: 1.10.1
|
2012-02-11 04:09:48 +01:00
|
|
|
Release: 0
|
2014-07-02 18:02:24 +02:00
|
|
|
Summary: An utility for changing configuration files
|
2018-03-20 11:10:54 +01:00
|
|
|
License: GPL-3.0-or-later AND LGPL-2.1-or-later
|
2018-03-21 08:34:55 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
2014-12-18 21:01:39 +01:00
|
|
|
Source1: http://download.augeas.net/augeas-%{version}.tar.gz.sig
|
2015-03-13 13:54:44 +01:00
|
|
|
Source2: %{name}.keyring
|
2013-12-13 13:29:23 +01:00
|
|
|
Source3: baselibs.conf
|
2010-10-14 00:47:04 +02:00
|
|
|
Patch0: augeas-modprobe-lense.patch
|
2017-05-30 10:46:15 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-02-29 12:25:33 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-05-30 10:46:15 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%description
|
2014-07-02 18:02:24 +02:00
|
|
|
An utility for programmatically editing configuration files. Augeas
|
|
|
|
parses configuration files into a tree structure.
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
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
|
2010-10-14 00:47:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-05-06 13:12:03 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2014-05-06 13:12:03 +02:00
|
|
|
%package -n %{libname}
|
2009-04-01 23:53:51 +02:00
|
|
|
Summary: A library for changing configuration files
|
2018-03-21 08:34:55 +01:00
|
|
|
Group: System/Libraries
|
2009-04-01 23:53:51 +02:00
|
|
|
Recommends: %{name}-lenses = %{version}
|
|
|
|
|
2014-05-06 13:12:03 +02:00
|
|
|
%description -n %{libname}
|
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
|
2014-05-06 13:12:03 +02:00
|
|
|
Summary: Official set of lenses for use by %{libname}
|
2018-03-21 08:34:55 +01:00
|
|
|
Group: System/Libraries
|
2014-05-06 13:12:03 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%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
|
2014-05-06 13:12:03 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-rpath
|
2012-02-11 04:09:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-30 10:46:15 +02:00
|
|
|
%make_install
|
2014-05-06 13:12:03 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-09-22 11:32:02 +02:00
|
|
|
# move vim files to the right location
|
2014-05-06 13:12:03 +02:00
|
|
|
mv %{buildroot}/%{_datadir}/vim/vimfiles %{buildroot}/%{_datadir}/vim/site
|
|
|
|
|
2014-07-01 11:01:11 +02:00
|
|
|
%check
|
|
|
|
# Fails 2 thread based tests
|
|
|
|
make check %{?_smp_mflags} || :
|
2009-04-01 23:53:51 +02:00
|
|
|
|
2014-05-06 13:12:03 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2009-04-01 23:53:51 +02:00
|
|
|
|
|
|
|
%files
|
2018-03-20 11:10:54 +01:00
|
|
|
%{_bindir}/augmatch
|
2009-04-01 23:53:51 +02:00
|
|
|
%{_bindir}/augtool
|
|
|
|
%{_bindir}/augparse
|
2010-10-14 00:47:04 +02:00
|
|
|
%{_bindir}/fadot
|
2009-04-01 23:53:51 +02:00
|
|
|
%{_mandir}/man1/*
|
2018-02-26 10:33:29 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS
|
2009-04-01 23:53:51 +02:00
|
|
|
|
2014-05-06 13:12:03 +02:00
|
|
|
%files -n %{libname}
|
2009-04-01 23:53:51 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_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
|
|
|
|
%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
|
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
|