- fix: handle elf64 note sections correctly.
[tools/librpm-tizen.git] / rpm.spec.in
1 %define with_python_subpackage  @WITH_PYTHON_SUBPACKAGE@%{nil}
2 %define with_python_version     @WITH_PYTHON_VERSION@%{nil}
3 %define with_bzip2              @WITH_BZIP2@%{nil}
4 %define with_apidocs            @WITH_APIDOCS@%{nil}
5
6 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
7 %define _noPayloadPrefix        1
8
9 %define __prefix        /usr
10 %{?!_lib: %define _lib lib}
11 %{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
12
13 %define __bindir        %{__prefix}/bin
14 %define __includedir    %{__prefix}/include
15 %define __libdir        %{__prefix}/%{_lib}
16 %define __mandir        %{__prefix}%{__share}/man
17
18 Summary: The RPM package management system.
19 Name: rpm
20 %define version @VERSION@
21 Version: %{version}
22 %{expand: %%define rpm_version %{version}}
23 Release: 0.21
24 Group: System Environment/Base
25 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
26 License: GPL
27 Conflicts: patch < 2.5
28 %ifos linux
29 Prereq: fileutils shadow-utils
30 %endif
31 Requires: popt = 1.9
32 Obsoletes: rpm-perl < %{version}
33
34 # XXX necessary only to drag in /usr/lib/libelf.a, otherwise internal elfutils.
35 BuildRequires: elfutils-libelf
36 BuildRequires: elfutils-devel
37
38 BuildRequires: zlib-devel
39
40 BuildRequires: beecrypt-devel >= 3.0.1
41 Requires: beecrypt >= 3.0.1
42
43 # XXX Red Hat 5.2 has not bzip2 or python
44 %if %{with_bzip2}
45 BuildRequires: bzip2 >= 0.9.0c-2
46 %endif
47 %if %{with_python_subpackage}
48 BuildRequires: python-devel >= %{with_python_version}
49 %endif
50
51 BuildRoot: %{_tmppath}/%{name}-root
52
53 %description
54 The RPM Package Manager (RPM) is a powerful command line driven
55 package management system capable of installing, uninstalling,
56 verifying, querying, and updating software packages. Each software
57 package consists of an archive of files along with information about
58 the package like its version, a description, etc.
59
60 %package devel
61 Summary:  Development files for manipulating RPM packages.
62 Group: Development/Libraries
63 Requires: rpm = %{rpm_version}
64
65 %description devel
66 This package contains the RPM C library and header files. These
67 development files will simplify the process of writing programs that
68 manipulate RPM packages and databases. These files are intended to
69 simplify the process of creating graphical package managers or any
70 other tools that need an intimate knowledge of RPM packages in order
71 to function.
72
73 This package should be installed if you want to develop programs that
74 will manipulate RPM packages and databases.
75
76 %package build
77 Summary: Scripts and executable programs used to build packages.
78 Group: Development/Tools
79 Requires: rpm = %{rpm_version}, patch >= 2.5, file
80 Provides: rpmbuild(VendorConfig) = 4.1-1
81
82 %description build
83 The rpm-build package contains the scripts and executable programs
84 that are used to build packages using the RPM Package Manager.
85
86 %if %{with_python_subpackage}
87 %package python
88 Summary: Python bindings for apps which will manipulate RPM packages.
89 Group: Development/Libraries
90 Requires: rpm = %{rpm_version}
91 Requires: python >= %{with_python_version}
92 Requires: elfutils >= 0.55
93
94 %description python
95 The rpm-python package contains a module that permits applications
96 written in the Python programming language to use the interface
97 supplied by RPM Package Manager libraries.
98
99 This package should be installed if you want to develop Python
100 programs that will manipulate RPM packages and databases.
101 %endif
102
103 %package -n popt
104 Summary: A C library for parsing command line parameters.
105 Group: Development/Libraries
106 Version: 1.9
107
108 %description -n popt
109 Popt is a C library for parsing command line parameters. Popt was
110 heavily influenced by the getopt() and getopt_long() functions, but it
111 improves on them by allowing more powerful argument expansion. Popt
112 can parse arbitrary argv[] style arrays and automatically set
113 variables based on command line arguments. Popt allows command line
114 arguments to be aliased via configuration files and includes utility
115 functions for parsing arbitrary strings into argv[] arrays using
116 shell-like rules.
117
118 %prep
119 %setup -q
120
121 %build
122
123 # XXX rpm needs functioning nptl for configure tests
124 unset LD_ASSUME_KERNEL || :
125
126 %if %{with_python_subpackage}
127 WITH_PYTHON="--with-python=%{with_python_version}"
128 %else
129 WITH_PYTHON="--without-python"
130 %endif
131
132 %ifos linux
133 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
134 ./configure --prefix=%{__prefix} --sysconfdir=/etc \
135         --localstatedir=/var --infodir='${prefix}%{__share}/info' \
136         --mandir='${prefix}%{__share}/man' \
137         $WITH_PYTHON --enable-posixmutexes --without-javaglue
138 %else
139 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} $WITH_PYTHON \
140         --without-javaglue
141 %endif
142
143 make %{_smp_mflags}
144
145 %install
146 # XXX rpm needs functioning nptl for configure tests
147 unset LD_ASSUME_KERNEL || :
148
149 rm -rf $RPM_BUILD_ROOT
150
151 make DESTDIR="$RPM_BUILD_ROOT" install
152
153 %ifos linux
154
155 # Save list of packages through cron
156 mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
157 install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
158
159 mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
160 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
161
162 mkdir -p $RPM_BUILD_ROOT/etc/rpm
163
164 mkdir -p $RPM_BUILD_ROOT/var/spool/repackage
165 mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
166 for dbi in \
167         Basenames Conflictname Dirnames Group Installtid Name Packages \
168         Providename Provideversion Requirename Requireversion Triggername \
169         Filemd5s Pubkeys Sha1header Sigmd5 \
170         __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \
171         __db.008 __db.009
172 do
173     touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
174 done
175
176 # - serialize rpmtsRun() using fcntl on /var/lock/rpm/transaction.
177 mkdir -p ${RPM_BUILD_ROOT}/var/lock/rpm
178 %endif
179
180 %if %{with_apidocs}
181 gzip -9n apidocs/man/man*/* || :
182 %endif
183
184 # Get rid of unpackaged files
185 { cd $RPM_BUILD_ROOT
186   rm -rf .%{__includedir}/beecrypt
187   rm -f .%{__libdir}/libbeecrypt.{a,la,so.2.2.0}
188   rm -f .%{__prefix}/lib/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req}
189   rm -rf .%{__mandir}/{fr,ko}
190 }
191
192 %clean
193 rm -rf $RPM_BUILD_ROOT
194
195 %pre
196 %ifos linux
197 if [ -f /var/lib/rpm/packages.rpm ]; then
198     echo "
199 You have (unsupported)
200         /var/lib/rpm/packages.rpm       db1 format installed package headers
201 Please install rpm-4.0.4 first, and do
202         rpm --rebuilddb
203 to convert your database from db1 to db3 format.
204 "
205     exit 1
206 fi
207 /usr/sbin/groupadd -g 37 @RPMGROUP@                             > /dev/null 2>&1
208 /usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 @RPMUSER@ -s /sbin/nologin    > /dev/null 2>&1
209 %endif
210 exit 0
211
212 %post
213 %ifos linux
214 /sbin/ldconfig
215
216 # Establish correct rpmdb ownership.
217 /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/[A-Z]*
218
219 # XXX Detect (and remove) incompatible dbenv files during db-4.2.52 upgrade.
220 # XXX Removing dbenv files in %%post opens a lock race window, a tolerable
221 # XXX risk compared to the support issues involved with upgrading Berkeley DB.
222 [ -w /var/lib/rpm/__db.001 ] &&
223 /usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm 2>&1 |
224 grep "db_stat: Program version 4.2 doesn't match environment version" 2>&1 > /dev/null &&
225         rm -f /var/lib/rpm/__db*
226                                                                                 
227 %endif
228 exit 0
229
230 %ifos linux
231 %postun
232 /sbin/ldconfig
233 if [ $1 = 0 ]; then
234     /usr/sbin/userdel @RPMUSER@
235     /usr/sbin/groupdel @RPMGROUP@
236 fi
237 exit 0
238
239 %post devel -p /sbin/ldconfig
240 %postun devel -p /sbin/ldconfig
241
242 %post -n popt -p /sbin/ldconfig
243 %postun -n popt -p /sbin/ldconfig
244 %endif
245
246 %if %{with_python_subpackage}
247 %post python -p /sbin/ldconfig
248 %postun python -p /sbin/ldconfig
249 %endif
250
251 %define rpmattr         %attr(0755, @RPMUSER@, @RPMGROUP@)
252
253 %files
254 %defattr(-,root,root)
255 %doc RPM-PGP-KEY RPM-GPG-KEY BETA-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
256 # XXX comment these lines out if building with rpm that knows not %pubkey attr
257 %pubkey RPM-PGP-KEY
258 %pubkey RPM-GPG-KEY
259 %pubkey BETA-GPG-KEY
260 %attr(0755, @RPMUSER@, @RPMGROUP@)      /bin/rpm
261
262 %ifos linux
263 %config(noreplace,missingok)    /etc/cron.daily/rpm
264 %config(noreplace,missingok)    /etc/logrotate.d/rpm
265 %dir                            /etc/rpm
266 #%config(noreplace,missingok)   /etc/rpm/macros.*
267 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/lib/rpm
268 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/spool/repackage
269 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/lock/rpm
270
271 %define rpmdbattr %attr(0644, @RPMUSER@, @RPMGROUP@) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
272 %rpmdbattr      /var/lib/rpm/*
273 %endif
274
275 %rpmattr        %{__bindir}/rpm2cpio
276 %rpmattr        %{__bindir}/gendiff
277 %rpmattr        %{__bindir}/rpmdb
278 #%rpmattr       %{__bindir}/rpm[eiu]
279 %rpmattr        %{__bindir}/rpmsign
280 %rpmattr        %{__bindir}/rpmquery
281 %rpmattr        %{__bindir}/rpmverify
282
283 %{__libdir}/librpm-@VERSION@.so
284 %{__libdir}/librpmdb-@VERSION@.so
285 %{__libdir}/librpmio-@VERSION@.so
286 %{__libdir}/librpmbuild-@VERSION@.so
287
288 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir %{__prefix}/lib/rpm
289 %rpmattr        %{__prefix}/lib/rpm/config.guess
290 %rpmattr        %{__prefix}/lib/rpm/config.sub
291 %rpmattr        %{__prefix}/lib/rpm/convertrpmrc.sh
292 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/macros
293 %rpmattr        %{__prefix}/lib/rpm/mkinstalldirs
294 %rpmattr        %{__prefix}/lib/rpm/rpm.*
295 %rpmattr        %{__prefix}/lib/rpm/rpm2cpio.sh
296 %rpmattr        %{__prefix}/lib/rpm/rpm[deiukqv]
297 %rpmattr        %{__prefix}/lib/rpm/tgpg
298 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmpopt*
299 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmrc
300
301 %ifarch i386 i486 i586 i686 athlon
302 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/i[3456]86*
303 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/athlon*
304 %endif
305 %ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
306 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/alpha*
307 %endif
308 %ifarch sparc sparcv8 sparcv9 sparc64
309 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/sparc*
310 %endif
311 %ifarch ia64
312 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ia64*
313 %endif
314 %ifarch powerpc ppc ppciseries ppcpseries ppcmac ppc64
315 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ppc*
316 %endif
317 %ifarch s390 s390x
318 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/s390*
319 %endif
320 %ifarch armv3l armv4l
321 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/armv[34][lb]*
322 %endif
323 %ifarch mips mipsel
324 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/mips*
325 %endif
326 %ifarch x86_64
327 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/x86_64*
328 %endif
329 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/noarch*
330
331 %rpmattr        %{__prefix}/lib/rpm/rpmdb_deadlock
332 %rpmattr        %{__prefix}/lib/rpm/rpmdb_dump
333 %rpmattr        %{__prefix}/lib/rpm/rpmdb_load
334 %rpmattr        %{__prefix}/lib/rpm/rpmdb_loadcvt
335 %rpmattr        %{__prefix}/lib/rpm/rpmdb_svc
336 %rpmattr        %{__prefix}/lib/rpm/rpmdb_stat
337 %rpmattr        %{__prefix}/lib/rpm/rpmdb_verify
338 %rpmattr        %{__prefix}/lib/rpm/rpmfile
339
340 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
341 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/rpm.mo
342 %lang(de)       %{__prefix}/*/locale/de/LC_MESSAGES/rpm.mo
343 %lang(fi)       %{__prefix}/*/locale/fi/LC_MESSAGES/rpm.mo
344 %lang(fr)       %{__prefix}/*/locale/fr/LC_MESSAGES/rpm.mo
345 %lang(gl)       %{__prefix}/*/locale/gl/LC_MESSAGES/rpm.mo
346 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/rpm.mo
347 %lang(ja)       %{__prefix}/*/locale/ja/LC_MESSAGES/rpm.mo
348 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/rpm.mo
349 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/rpm.mo
350 %lang(pl)       %{__prefix}/*/locale/pl/LC_MESSAGES/rpm.mo
351 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/rpm.mo
352 %lang(pt_BR)    %{__prefix}/*/locale/pt_BR/LC_MESSAGES/rpm.mo
353 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/rpm.mo
354 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/rpm.mo
355 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/rpm.mo
356 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/rpm.mo
357 %lang(sr)       %{__prefix}/*/locale/sr/LC_MESSAGES/rpm.mo
358 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/rpm.mo
359 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/rpm.mo
360
361 %{__mandir}/man1/gendiff.1*
362 %{__mandir}/man8/rpm.8*
363 %{__mandir}/man8/rpm2cpio.8*
364 %lang(ja)       %{__mandir}/ja/man[18]/*.[18]*
365 %lang(pl)       %{__mandir}/pl/man[18]/*.[18]*
366 %lang(ru)       %{__mandir}/ru/man[18]/*.[18]*
367 %lang(sk)       %{__mandir}/sk/man[18]/*.[18]*
368
369 %files build
370 %defattr(-,root,root)
371 %dir %{__prefix}/src/@RPMCANONVENDOR@
372 %dir %{__prefix}/src/@RPMCANONVENDOR@/BUILD
373 %dir %{__prefix}/src/@RPMCANONVENDOR@/SPECS
374 %dir %{__prefix}/src/@RPMCANONVENDOR@/SOURCES
375 %dir %{__prefix}/src/@RPMCANONVENDOR@/SRPMS
376 %dir %{__prefix}/src/@RPMCANONVENDOR@/RPMS
377 %{__prefix}/src/@RPMCANONVENDOR@/RPMS/*
378 %rpmattr        %{__bindir}/rpmbuild
379 %rpmattr        %{__prefix}/lib/rpm/brp-*
380 %rpmattr        %{__prefix}/lib/rpm/check-files
381 %rpmattr        %{__prefix}/lib/rpm/check-prereqs
382 %rpmattr        %{__prefix}/lib/rpm/config.site
383 %rpmattr        %{__prefix}/lib/rpm/cross-build
384 %rpmattr        %{__prefix}/lib/rpm/debugedit
385 %rpmattr        %{__prefix}/lib/rpm/find-debuginfo.sh
386 %rpmattr        %{__prefix}/lib/rpm/find-lang.sh
387 %rpmattr        %{__prefix}/lib/rpm/find-prov.pl
388 %rpmattr        %{__prefix}/lib/rpm/find-provides
389 %rpmattr        %{__prefix}/lib/rpm/find-provides.perl
390 %rpmattr        %{__prefix}/lib/rpm/find-req.pl
391 %rpmattr        %{__prefix}/lib/rpm/find-requires
392 %rpmattr        %{__prefix}/lib/rpm/find-requires.perl
393 %rpmattr        %{__prefix}/lib/rpm/get_magic.pl
394 %rpmattr        %{__prefix}/lib/rpm/getpo.sh
395 %rpmattr        %{__prefix}/lib/rpm/http.req
396 %rpmattr        %{__prefix}/lib/rpm/javadeps
397 %rpmattr        %{__prefix}/lib/rpm/magic
398 %rpmattr        %{__prefix}/lib/rpm/magic.mgc
399 %rpmattr        %{__prefix}/lib/rpm/magic.mime
400 %rpmattr        %{__prefix}/lib/rpm/magic.mime.mgc
401 %rpmattr        %{__prefix}/lib/rpm/magic.prov
402 %rpmattr        %{__prefix}/lib/rpm/magic.req
403 %rpmattr        %{__prefix}/lib/rpm/perldeps.pl
404 %rpmattr        %{__prefix}/lib/rpm/perl.prov
405 %rpmattr        %{__prefix}/lib/rpm/perl.req
406
407 %rpmattr        %{__prefix}/lib/rpm/rpm[bt]
408 %rpmattr        %{__prefix}/lib/rpm/rpmdeps
409 %rpmattr        %{__prefix}/lib/rpm/trpm
410 %rpmattr        %{__prefix}/lib/rpm/u_pkg.sh
411 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides.sh
412 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides2.sh
413
414 %{__mandir}/man8/rpmbuild.8*
415 %{__mandir}/man8/rpmdeps.8*
416
417 %if %{with_python_subpackage}
418 %files python
419 %defattr(-,root,root)
420 %{__libdir}/python%{with_python_version}/site-packages/rpmmodule.so
421 %{__libdir}/python%{with_python_version}/site-packages/rpmdb
422 %endif
423
424 %files devel
425 %defattr(-,root,root)
426 %if %{with_apidocs}
427 %doc @WITH_APIDOCS_TARGET@
428 %endif
429 %{__includedir}/rpm
430 %{__libdir}/librpm.a
431 %{__libdir}/librpm.la
432 %{__libdir}/librpm.so
433 %{__libdir}/librpmdb.a
434 %{__libdir}/librpmdb.la
435 %{__libdir}/librpmdb.so
436 %{__libdir}/librpmio.a
437 %{__libdir}/librpmio.la
438 %{__libdir}/librpmio.so
439 %{__libdir}/librpmbuild.a
440 %{__libdir}/librpmbuild.la
441 %{__libdir}/librpmbuild.so
442 %{__mandir}/man8/rpmcache.8*
443 %{__mandir}/man8/rpmgraph.8*
444 %rpmattr        %{__prefix}/lib/rpm/rpmcache
445 %rpmattr        %{__bindir}/rpmgraph
446
447 %files -n popt
448 %defattr(-,root,root)
449 %{__libdir}/libpopt.so.*
450 %{__mandir}/man3/popt.3*
451 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/popt.mo
452 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/popt.mo
453 %lang(de)       %{__prefix}/*/locale/de/LC_MESSAGES/popt.mo
454 %lang(es)       %{__prefix}/*/locale/es/LC_MESSAGES/popt.mo
455 %lang(eu_ES)    %{__prefix}/*/locale/eu_ES/LC_MESSAGES/popt.mo
456 %lang(fi)       %{__prefix}/*/locale/fi/LC_MESSAGES/popt.mo
457 %lang(fr)       %{__prefix}/*/locale/fr/LC_MESSAGES/popt.mo
458 %lang(gl)       %{__prefix}/*/locale/gl/LC_MESSAGES/popt.mo
459 %lang(hu)       %{__prefix}/*/locale/hu/LC_MESSAGES/popt.mo
460 %lang(id)       %{__prefix}/*/locale/id/LC_MESSAGES/popt.mo
461 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/popt.mo
462 %lang(it)       %{__prefix}/*/locale/it/LC_MESSAGES/popt.mo
463 %lang(ja)       %{__prefix}/*/locale/ja/LC_MESSAGES/popt.mo
464 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/popt.mo
465 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/popt.mo
466 %lang(pl)       %{__prefix}/*/locale/pl/LC_MESSAGES/popt.mo
467 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/popt.mo
468 %lang(pt_BR)    %{__prefix}/*/locale/pt_BR/LC_MESSAGES/popt.mo
469 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/popt.mo
470 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/popt.mo
471 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/popt.mo
472 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/popt.mo
473 %lang(sr)       %{__prefix}/*/locale/sr/LC_MESSAGES/popt.mo
474 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/popt.mo
475 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/popt.mo
476 %lang(uk)       %{__prefix}/*/locale/uk/LC_MESSAGES/popt.mo
477 %lang(wa)       %{__prefix}/*/locale/wa/LC_MESSAGES/popt.mo
478 %lang(zh)       %{__prefix}/*/locale/zh/LC_MESSAGES/popt.mo
479 %lang(zh_CN)    %{__prefix}/*/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
480
481 # XXX These may end up in popt-devel but it hardly seems worth the effort.
482 %{__libdir}/libpopt.a
483 %{__libdir}/libpopt.la
484 %{__libdir}/libpopt.so
485 %{__includedir}/popt.h
486
487 %changelog
488 * Fri Mar 12 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.21
489 - fix: increase file context regex parse buffer to BUFSIZ.
490 - fix: handle elf64 note sections correctly.
491
492 * Wed Mar 10 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.20
493 - add sparcv8 and enable elf32/elf64 Zon sparc64 (#117302).
494 - fix: --querybynumber looped.
495 - fix: ENOTSUP filter from lsetfilecon borkage.
496
497 * Tue Mar  9 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.19
498 - fix: sq->reaped needs sighold(SIGCHLD)/sigrelease(SIGCHLD) (#117620).
499
500 * Fri Mar  5 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.18
501 - selinux: ignore ENOTSUP return from lsetfilecon.
502
503 * Mon Mar  1 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.17
504 - permit globs in macrofiles: directive (#117217).
505 - fix: segfault generating transaction serialization lock path.
506 - use /etc/security/selinux/file_contexts instead.
507
508 * Wed Feb 25 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.15
509 - serialize rpmtsRun() using fcntl on /var/lock/rpm/transaction.
510
511 * Sun Feb 22 2004 Jeff Johnson <jbj@jbj,org> 4.3-0.14
512 - add ia32e arch.
513 - stable sort for policy specifications, patterns before paths.
514 - set "rpm_script_t" exec type for scriptlets iff /bin/sh, else default.
515 - force FD_CLOEXEC on 1st 100 inherited fdno's.
516
517 * Fri Feb 20 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.13
518 - fix: only first "mkdir -p" directory had context set.
519
520 * Wed Feb 18 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.12
521 - python: add patch to rpm-4_3 to initialize RE contexts.
522
523 * Sun Feb 15 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.11
524 - fix: set fcontext from pkg when file_contexts doesn't exist (#114040).
525 - fix: set fcontext for "mkdir -p" directories not in packages.
526 - fix: setfiles (aka rpmsx.c) dinna handle patterns correctly.
527 - establish rpm_script_t before scriptlet exec.
528
529 * Wed Feb 11 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.10
530 - re-add --enable-posixmutexes to build.
531
532 * Mon Jan 19 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.9
533 - python: return None for NEVRAO, [] for everything else.
534
535 * Mon Jan 12 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.7
536 - fix: handle files w/o contexts correctly.
537
538 * Mon Jan  5 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.6
539 - selinux phases 1 and 2 delivered.
540
541 * Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 4.3-0.5
542 - plug some rpmbuild memory leaks.
543 - file security contexts added to package header.
544
545 * Mon Dec 22 2003 Jeff Johnson <jbj@redhat.com> 4.3-0.4
546 - test build with methods needed for selinux.
547
548 * Wed Dec 17 2003 Jeff Johnson <jbj@jbj.org> 4.3-0.3
549 - detect (and remove) dbenv files while upgrading to db-4.2.52.
550 - fix: dangling pointer brain fart (#107835).
551 - fix: ds.Single() method needs malloc'd elements (#109919).
552
553 * Sun Dec  7 2003 Jeff Johnson <jbj@jbj.org> 4.3-0.2
554 - only internal Berkeley db from now on.
555 - revive "make dist".
556
557 * Wed Mar 19 2003 Jeff Johnson <jbj@redhat.com> 4.3-0.1
558 - upgrade to zlib-1.2.beta7.
559 - pass structure pointer, not args, through headerSprintf call chain.
560 - add ":xml" tag format modifier.
561 - --queryformat '[%%{*:xml}\n]' to dump header content in XML.
562 - fix: short option help missing string terminator.
563 - unify signal handling in librpmio, use condvar to deliver signal.