Bump to 1.14.1
[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
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 BuildRequires:  readline-devel libselinux-devel libxml2-devel
14 Requires:       %{name}-libs = %{version}-%{release}
15
16 %description
17 A library for programmatically editing configuration files. Augeas parses
18 configuration files into a tree structure, which it exposes through its
19 public API. Changes made through the API are written back to the initially
20 read files.
21
22 The transformation works very hard to preserve comments and formatting
23 details. It is controlled by ``lens'' definitions that describe the file
24 format and the transformation into a tree.
25
26 %package        devel
27 Summary:        Development files for %{name}
28 Group:          Development/Libraries
29 Requires:       %{name}-libs = %{version}-%{release}
30 Requires:       pkgconfig
31
32 %description    devel
33 The %{name}-devel package contains libraries and header files for
34 developing applications that use %{name}.
35
36
37 %package        libs
38 Summary:        Libraries for %{name}
39 Group:          System Environment/Libraries
40
41 %description    libs
42 The libraries for %{name}.
43
44 Augeas is a library for programmatically editing configuration files. It parses
45 configuration files into a tree structure, which it exposes through its
46 public API. Changes made through the API are written back to the initially
47 read files.
48
49 %package        static
50 Summary:        Static libraries for %{name}
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description    static
55 The %{name}-static package contains static libraries needed to produce
56 static builds using %{name}.
57
58
59
60 %prep
61 %setup -q
62
63 %build
64 %configure \
65 %ifarch riscv64
66     --disable-gnulib-tests \
67 %endif
68     --enable-static
69 make %{?_smp_mflags}
70
71 %check
72 # Disable test-preserve.sh SELinux testing. This fails when run under mock due
73 # to differing SELinux labelling.
74 export SKIP_TEST_PRESERVE_SELINUX=1
75
76 make %{?_smp_mflags} check || {
77   echo '===== tests/test-suite.log ====='
78   cat tests/test-suite.log
79   exit 1
80 }
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
85 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
86
87 # The tests/ subdirectory contains lenses used only for testing, and
88 # so it shouldn't be packaged.
89 rm -r $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/dist/tests
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post libs -p /sbin/ldconfig
95
96 %postun libs -p /sbin/ldconfig
97
98 %files
99 %defattr(-,root,root,-)
100 %{_bindir}/augtool
101 %{_bindir}/augparse
102 %{_bindir}/augmatch
103 %{_bindir}/augprint
104 %{_bindir}/fadot
105 %doc %{_mandir}/man1/*
106 %{_datadir}/vim/vimfiles/syntax/augeas.vim
107 %{_datadir}/vim/vimfiles/ftdetect/augeas.vim
108 %{bash_completions_dir}/*
109
110 %files libs
111 %defattr(-,root,root,-)
112 # _datadir/augeas and _datadir/augeas/lenses are owned
113 # by filesystem.
114 %{_datadir}/augeas/lenses/dist
115 %{_libdir}/*.so.*
116 %doc AUTHORS COPYING NEWS
117
118 %files devel
119 %defattr(-,root,root,-)
120 %doc
121 %{_includedir}/*
122 %{_libdir}/*.so
123 %{_libdir}/pkgconfig/augeas.pc
124
125 %files static
126 %defattr(-,root,root,-)
127 %{_libdir}/libaugeas.a
128 %{_libdir}/libfa.a
129
130 %changelog
131 * Wed Dec  7 2022 George Hansper <george@hansper.id.au> - 1.14.0
132 - add augprint, fix bash-completion filenames
133
134 * Sun Nov 20 2022 George Hansper <george@hansper.id.au> - 1.14.0
135 - add bash completions
136
137 * Fri Mar 17 2017 David Lutterkort <lutter@watzmann.net> - 1.8.0-1
138 - add static subpackage
139
140 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
141 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
142
143 * Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.0-3
144 - Rebuild for readline 7.x
145
146 * Sat Nov 12 2016 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-2
147 - riscv64: Disable gnulib tests on riscv64 architecture.
148
149 * Wed Nov 09 2016 Dominic Cleal <dominic@cleal.org> - 1.7.0-1
150 - Update to 1.7.0
151
152 * Mon Aug 08 2016 Dominic Cleal <dominic@cleal.org> - 1.6.0-1
153 - Update to 1.6.0
154
155 * Thu May 12 2016 Dominic Cleal <dominic@cleal.org> - 1.5.0-1
156 - Update to 1.5.0
157
158 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
159 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
160
161 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
162 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
163
164 * Tue Jun 02 2015 Dominic Cleal <dcleal@redhat.com> - 1.4.0-1
165 - Update to 1.4.0
166
167 * Sat Nov 08 2014 Dominic Cleal <dcleal@redhat.com> - 1.3.0-1
168 - Update to 1.3.0; remove all patches
169
170 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
171 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
172
173 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
174 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
175
176 * Mon Mar 31 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-2
177 - Add patch for Krb5, parse braces in values (RHBZ#1079444)
178
179 * Wed Feb 12 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-1
180 - Update to 1.2.0, add check section
181 - Update source URL to download.augeas.net (RHBZ#996032)
182
183 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
184 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
185
186 * Wed Jun 19 2013 David Lutterkort <lutter@redhat.com> - 1.1.0-1
187 - Update to 1.1.0; remove all patches
188
189 * Tue Jun 18 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-4
190 - Fix /etc/sysconfig/network (RHBZ#904222).
191
192 * Wed Jun  5 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-3
193 - Don't package lenses in tests/ subdirectory.
194
195 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
196 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
197
198 * Fri Jan  4 2013 David Lutterkort <lutter@redhat.com> - 1.0.0-1
199 - New version; remove all patches
200
201 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
202 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
203
204 * Tue Jan 10 2012 David Lutterkort <lutter@redhat.com> - 0.10.0-3
205 - Add patches for bugs 247 and 248 (JSON lens)
206
207 * Sat Dec  3 2011 Richard W.M. Jones <rjones@redhat.com> - 0.10.0-2
208 - Add patch to resolve missing libxml2 requirement in augeas.pc.
209
210 * Fri Dec  2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
211 - New version
212
213 * Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
214 - New version; removed patch pathx-whitespace-ea010d8
215
216 * Tue May  3 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-2
217 - Add patch pathx-whitespace-ea010d8.patch to fix BZ 700608
218
219 * Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
220 - New version
221
222 * Wed Feb 23 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
223 - New version
224
225 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
226 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
227
228 * Mon Nov 22 2010 Matthew Booth <mbooth@redhat.com> - 0.7.4-1
229 - Update to version 0.7.4
230
231 * Thu Nov 18 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.3-2
232 - Upstream patch proposed to fix GCC optimization bug (RHBZ#651992).
233
234 * Fri Aug  6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
235 - Remove upstream patches
236
237 * Tue Jun 29 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-2
238 - Patches based on upstream fix for BZ 600141
239
240 * Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
241 - Fix ownership of /usr/share/augeas. BZ 569393
242
243 * Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
244 - New version
245
246 * Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
247 - Remove patch vim-ftdetect-syntax.patch. It's upstream
248
249 * Tue Dec 15 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-2
250 - Fix ftdetect file for vim
251
252 * Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
253 - Install vim syntax files
254
255 * Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
256 - Remove separate xorg.aug, included in upstream source
257
258 * Tue Aug 25 2009 Matthew Booth <mbooth@redhat.com> - 0.5.2-3
259 - Include new xorg lens from upstream
260
261 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
262 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
263
264 * Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
265 - New version
266
267 * Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
268 - Install fadot
269
270 * Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
271 - fadot isn't being installed just yet
272
273 * Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
274 - New program /usr/bin/fadot
275
276 * Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
277 - New version
278
279 * Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
280 - New version
281
282 * Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
283 - New version
284
285 * Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
286 - New version
287
288 * Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
289 - New version
290
291 * Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
292 - Initial specfile