Imported Upstream version 1.8.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
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}/fadot
103 %doc %{_mandir}/man1/*
104 %{_datadir}/vim/vimfiles/syntax/augeas.vim
105 %{_datadir}/vim/vimfiles/ftdetect/augeas.vim
106
107 %files libs
108 %defattr(-,root,root,-)
109 # _datadir/augeas and _datadir/augeas/lenses are owned
110 # by filesystem.
111 %{_datadir}/augeas/lenses/dist
112 %{_libdir}/*.so.*
113 %doc AUTHORS COPYING NEWS
114
115 %files devel
116 %defattr(-,root,root,-)
117 %doc
118 %{_includedir}/*
119 %{_libdir}/*.so
120 %{_libdir}/pkgconfig/augeas.pc
121
122 %files static
123 %defattr(-,root,root,-)
124 %{_libdir}/libaugeas.a
125 %{_libdir}/libfa.a
126
127 %changelog
128 * Fri Mar 17 2017 David Lutterkort <lutter@watzmann.net> - 1.8.0-1
129 - add static subpackage
130
131 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
132 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
133
134 * Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.7.0-3
135 - Rebuild for readline 7.x
136
137 * Sat Nov 12 2016 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-2
138 - riscv64: Disable gnulib tests on riscv64 architecture.
139
140 * Wed Nov 09 2016 Dominic Cleal <dominic@cleal.org> - 1.7.0-1
141 - Update to 1.7.0
142
143 * Mon Aug 08 2016 Dominic Cleal <dominic@cleal.org> - 1.6.0-1
144 - Update to 1.6.0
145
146 * Thu May 12 2016 Dominic Cleal <dominic@cleal.org> - 1.5.0-1
147 - Update to 1.5.0
148
149 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
150 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
151
152 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
153 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
154
155 * Tue Jun 02 2015 Dominic Cleal <dcleal@redhat.com> - 1.4.0-1
156 - Update to 1.4.0
157
158 * Sat Nov 08 2014 Dominic Cleal <dcleal@redhat.com> - 1.3.0-1
159 - Update to 1.3.0; remove all patches
160
161 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
162 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
163
164 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
165 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
166
167 * Mon Mar 31 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-2
168 - Add patch for Krb5, parse braces in values (RHBZ#1079444)
169
170 * Wed Feb 12 2014 Dominic Cleal <dcleal@redhat.com> - 1.2.0-1
171 - Update to 1.2.0, add check section
172 - Update source URL to download.augeas.net (RHBZ#996032)
173
174 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
175 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
176
177 * Wed Jun 19 2013 David Lutterkort <lutter@redhat.com> - 1.1.0-1
178 - Update to 1.1.0; remove all patches
179
180 * Tue Jun 18 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-4
181 - Fix /etc/sysconfig/network (RHBZ#904222).
182
183 * Wed Jun  5 2013 Richard W.M. Jones <rjones@redhat.com> - 1.0.0-3
184 - Don't package lenses in tests/ subdirectory.
185
186 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
187 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
188
189 * Fri Jan  4 2013 David Lutterkort <lutter@redhat.com> - 1.0.0-1
190 - New version; remove all patches
191
192 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
193 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
194
195 * Tue Jan 10 2012 David Lutterkort <lutter@redhat.com> - 0.10.0-3
196 - Add patches for bugs 247 and 248 (JSON lens)
197
198 * Sat Dec  3 2011 Richard W.M. Jones <rjones@redhat.com> - 0.10.0-2
199 - Add patch to resolve missing libxml2 requirement in augeas.pc.
200
201 * Fri Dec  2 2011 David Lutterkort <lutter@redhat.com> - 0.10.0-1
202 - New version
203
204 * Mon Jul 25 2011 David Lutterkort <lutter@redhat.com> - 0.9.0-1
205 - New version; removed patch pathx-whitespace-ea010d8
206
207 * Tue May  3 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-2
208 - Add patch pathx-whitespace-ea010d8.patch to fix BZ 700608
209
210 * Fri Apr 15 2011 David Lutterkort <lutter@redhat.com> - 0.8.1-1
211 - New version
212
213 * Wed Feb 23 2011 David Lutterkort <lutter@redhat.com> - 0.8.0-1
214 - New version
215
216 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
217 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
218
219 * Mon Nov 22 2010 Matthew Booth <mbooth@redhat.com> - 0.7.4-1
220 - Update to version 0.7.4
221
222 * Thu Nov 18 2010 Richard W.M. Jones <rjones@redhat.com> - 0.7.3-2
223 - Upstream patch proposed to fix GCC optimization bug (RHBZ#651992).
224
225 * Fri Aug  6 2010 David Lutterkort <lutter@redhat.com> - 0.7.3-1
226 - Remove upstream patches
227
228 * Tue Jun 29 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-2
229 - Patches based on upstream fix for BZ 600141
230
231 * Tue Jun 22 2010 David Lutterkort <lutter@redhat.com> - 0.7.2-1
232 - Fix ownership of /usr/share/augeas. BZ 569393
233
234 * Wed Apr 21 2010 David Lutterkort <lutter@redhat.com> - 0.7.1-1
235 - New version
236
237 * Thu Jan 14 2010 David Lutterkort <lutter@redhat.com> - 0.7.0-1
238 - Remove patch vim-ftdetect-syntax.patch. It's upstream
239
240 * Tue Dec 15 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-2
241 - Fix ftdetect file for vim
242
243 * Mon Nov 30 2009 David Lutterkort <lutter@redhat.com> - 0.6.0-1
244 - Install vim syntax files
245
246 * Mon Sep 14 2009 David Lutterkort <lutter@redhat.com> - 0.5.3-1
247 - Remove separate xorg.aug, included in upstream source
248
249 * Tue Aug 25 2009 Matthew Booth <mbooth@redhat.com> - 0.5.2-3
250 - Include new xorg lens from upstream
251
252 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-2
253 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
254
255 * Mon Jul 13 2009 David Lutterkort <lutter@redhat.com> - 0.5.2-1
256 - New version
257
258 * Fri Jun  5 2009 David Lutterkort <lutter@redhat.com> - 0.5.1-1
259 - Install fadot
260
261 * Fri Mar 27 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-2
262 - fadot isn't being installed just yet
263
264 * Tue Mar 24 2009 David Lutterkort <lutter@redhat.com> - 0.5.0-1
265 - New program /usr/bin/fadot
266
267 * Mon Mar  9 2009 David Lutterkort <lutter@redhat.com> - 0.4.2-1
268 - New version
269
270 * Fri Feb 27 2009 David Lutterkort <lutter@redhat.com> - 0.4.1-1
271 - New version
272
273 * Fri Feb  6 2009 David Lutterkort <lutter@redhat.com> - 0.4.0-1
274 - New version
275
276 * Mon Jan 26 2009 David Lutterkort <lutter@redhat.com> - 0.3.6-1
277 - New version
278
279 * Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 0.3.5-1
280 - New version
281
282 * Mon Feb 25 2008 David Lutterkort <dlutter@redhat.com> - 0.0.4-1
283 - Initial specfile