Imported Upstream version 1.4.0
[platform/upstream/augeas.git] / augeas.spec.in
1 Name:           augeas
2 Version:        @VERSION@
3 Release:        1%{?dist}
4 Summary:        A library for changing configuration files
5
6 Group:          System Environment/Libraries
7 License:        LGPLv2+
8 URL:            http://augeas.net/
9 Source0:        http://download.augeas.net/%{name}-%{version}.tar.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 BuildRequires:  readline-devel libselinux-devel libxml2-devel
13 Requires:       %{name}-libs = %{version}-%{release}
14 # Bundling exception for gnulib: https://fedorahosted.org/fpc/ticket/174
15 Provides:       bundled(gnulib)
16
17 %description
18 A library for programmatically editing configuration files. Augeas parses
19 configuration files into a tree structure, which it exposes through its
20 public API. Changes made through the API are written back to the initially
21 read files.
22
23 The transformation works very hard to preserve comments and formatting
24 details. It is controlled by ``lens'' definitions that describe the file
25 format and the transformation into a tree.
26
27 %package        devel
28 Summary:        Development files for %{name}
29 Group:          Development/Libraries
30 Requires:       %{name}-libs = %{version}-%{release}
31 Requires:       pkgconfig
32
33 %description    devel
34 The %{name}-devel package contains libraries and header files for
35 developing applications that use %{name}.
36
37
38 %package        libs
39 Summary:        Libraries for %{name}
40 Group:          System Environment/Libraries
41
42 %description    libs
43 The libraries for %{name}.
44
45 Augeas is a library for programmatically editing configuration files. It parses
46 configuration files into a tree structure, which it exposes through its
47 public API. Changes made through the API are written back to the initially
48 read files.
49
50 %prep
51 %setup -q
52
53 %build
54 %configure --disable-static
55 make %{?_smp_mflags}
56
57 %check
58 # Disable test-preserve.sh SELinux testing. This fails when run under mock due
59 # to differing SELinux labelling.
60 export SKIP_TEST_PRESERVE_SELINUX=1
61
62 make %{?_smp_mflags} check || {
63   echo '===== tests/test-suite.log ====='
64   cat tests/test-suite.log
65   exit 1
66 }
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
71 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
72
73 # The tests/ subdirectory contains lenses used only for testing, and
74 # so it shouldn't be packaged.
75 rm -r $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/tests
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post libs -p /sbin/ldconfig
81
82 %postun libs -p /sbin/ldconfig
83
84 %files
85 %defattr(-,root,root,-)
86 %{_bindir}/augtool
87 %{_bindir}/augparse
88 %{_bindir}/fadot
89 %doc %{_mandir}/man1/*
90 %{_datadir}/vim/vimfiles/syntax/augeas.vim
91 %{_datadir}/vim/vimfiles/ftdetect/augeas.vim
92
93 %files libs
94 %defattr(-,root,root,-)
95 # %{_datadir}/augeas and %{_datadir}/augeas/lenses are owned
96 # by filesystem.
97 %{_datadir}/augeas/lenses/dist
98 %{_libdir}/*.so.*
99 %doc AUTHORS COPYING NEWS
100
101 %files devel
102 %defattr(-,root,root,-)
103 %doc
104 %{_includedir}/*
105 %{_libdir}/*.so
106 %{_libdir}/pkgconfig/augeas.pc
107
108 %changelog
109 * Tue Oct 15 2013 Dominic Cleal <dcleal@redhat.com> - 1.1.0-2
110 - Add %check stage to run make check (rjones@redhat.com)
111 - Don't package lenses in tests/ subdirectory (rjones@redhat.com)
112 - Fix source URL to download.augeas.net (RHBZ#996033)
113
114 * Fri Jun 14 2013 David Lutterkort <lutter@watzmann.net> - 1.1.0-1
115 - New version
116
117 * Fri Dec 21 2012 David Lutterkort <lutter@redhat.com> - 1.0.0-1
118 - New version
119
120 * Fri Dec  2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
121 - New version
122
123 * Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
124 - New version
125
126 * Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
127 - New version
128
129 * Tue Feb 22 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
130 - New version
131
132 * Fri Nov 19 2010 David Lutterkort <lutter@redhat.com> - 0.7.4-1
133 - New version
134
135 * Fri Aug  6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
136 - New version
137
138 * Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
139 - Fix ownership of /usr/share/augeas. BZ 569393
140
141 * Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
142 - New version
143
144 * Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
145 - New version
146
147 * Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
148 - Install vim syntax files
149
150 * Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
151 - New version
152
153 * Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
154 - New version
155
156 * Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
157 - Install fadot
158
159 * Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
160 - fadot isn't being installed just yet
161
162 * Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
163 - New program /usr/bin/fadot
164
165 * Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
166 - New version
167
168 * Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
169 - New version
170
171 * Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
172 - New version
173
174 * Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
175 - New version
176
177 * Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
178 - New version
179
180 * Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
181 - Initial specfile