2605276ea42e84de2af0bded98f4f0cb1ee1d56d
[platform/upstream/rpm.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_perl_subpackage    1
4 %define with_bzip2              @WITH_BZIP2@%{nil}
5 %define with_apidocs            @WITH_APIDOCS@%{nil}
6 %define with_internal_db        @WITH_INTERNAL_DB@%{nil}
7 %define strip_binaries          1
8
9 # XXX enable at your own risk, CDB access to rpmdb isn't cooked yet.
10 %define enable_cdb              create cdb
11
12 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
13 %define _noPayloadPrefix        1
14
15 %define __prefix        /usr
16 %{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
17
18 Summary: The Red Hat package management system.
19 Name: rpm
20 %define version @VERSION@
21 Version: %{version}
22 %{expand: %%define rpm_version %{version}}
23 Release: 0.01
24 Group: System Environment/Base
25 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
26 Copyright: GPL
27 Conflicts: patch < 2.5
28 %ifos linux
29 Prereq: gawk fileutils textutils mktemp shadow-utils
30 %endif
31 Requires: popt = 1.7
32
33 %if !%{with_internal_db}
34 BuildRequires: db3-devel
35
36 # XXX glibc-2.1.92 has incompatible locale changes that affect statically
37 # XXX linked binaries like /bin/rpm.
38 %ifnarch ia64
39 Requires: glibc >= 2.1.92
40 %endif
41 %endif
42
43 BuildRequires: zlib-devel
44 # XXX Red Hat 5.2 has not bzip2 or python
45 %if %{with_bzip2}
46 BuildRequires: bzip2 >= 0.9.0c-2
47 %endif
48 %if %{with_python_subpackage}
49 BuildRequires: python-devel >= %{with_python_version}
50 %endif
51 %if %{with_perl_subpackage}
52 BuildRequires: perl >= 0:5.00503
53 %endif
54
55 BuildRoot: %{_tmppath}/%{name}-root
56
57 %description
58 The RPM Package Manager (RPM) is a powerful command line driven
59 package management system capable of installing, uninstalling,
60 verifying, querying, and updating software packages.  Each software
61 package consists of an archive of files along with information about
62 the package like its version, a description, etc.
63
64 %package devel
65 Summary: Development files for applications which will manipulate RPM packages.
66 Group: Development/Libraries
67 Requires: rpm = %{rpm_version}, popt = 1.7
68
69 %description devel
70 This package contains the RPM C library and header files.  These
71 development files will simplify the process of writing programs which
72 manipulate RPM packages and databases. These files are intended to
73 simplify the process of creating graphical package managers or any
74 other tools that need an intimate knowledge of RPM packages in order
75 to function.
76
77 This package should be installed if you want to develop programs that
78 will manipulate RPM packages and databases.
79
80 %package build
81 Summary: Scripts and executable programs used to build packages.
82 Group: Development/Tools
83 Requires: rpm = %{rpm_version}
84
85 %description build
86 This package contains scripts and executable programs that are used to
87 build packages using RPM.
88
89 %if %{with_python_subpackage}
90 %package python
91 Summary: Python bindings for apps which will manipulate RPM packages.
92 Group: Development/Libraries
93 Requires: rpm = %{rpm_version}
94 Requires: python >= %{with_python_version}
95 Requires: popt = 1.7
96
97 %description python
98 The rpm-python package contains a module which permits applications
99 written in the Python programming language to use the interface
100 supplied by RPM (RPM Package Manager) libraries.
101
102 This package should be installed if you want to develop Python
103 programs that will manipulate RPM packages and databases.
104 %endif
105
106 %if %{with_perl_subpackage}
107 %package perl
108 Summary: Native bindings to the RPM API for Perl.
109 Group: Development/Languages
110 URL: http://www.cpan.org
111 Provides: perl(RPM::Database) = %{rpm_version}
112 Provides: perl(RPM::Header) = %{rpm_version}
113 Requires: rpm = %{rpm_version}
114 Requires: perl >= 0:5.00503
115 Requires: popt = 1.7
116 Obsoletes: perl-Perl-RPM
117
118 %description perl
119 The Perl-RPM module is an attempt to provide Perl-level access to the
120 complete application programming interface that is a part of the Red
121 Hat Package Manager (RPM). Rather than have scripts rely on executing
122 RPM commands and parse the resulting output, this module aims to give
123 Perl programmers the ability to do anything that would otherwise have
124 been done in C or C++.
125
126 The interface is being designed and laid out as a collection of
127 classes, at least some of which are also available as tied-hash
128 implementations.
129
130 At this time, the interface only provides access to the database of
131 installed packages, and header data retrieval for RPM and SRPM files
132 is not yet installed.  Error management and the export of most defined
133 constants, through RPM::Error and RPM::Constants, respectively, are
134 also available.
135
136 %endif
137
138 %package -n popt
139 Summary: A C library for parsing command line parameters.
140 Group: Development/Libraries
141 Version: 1.7
142
143 %description -n popt
144 Popt is a C library for parsing command line parameters.  Popt was
145 heavily influenced by the getopt() and getopt_long() functions, but it
146 improves on them by allowing more powerful argument expansion.  Popt
147 can parse arbitrary argv[] style arrays and automatically set
148 variables based on command line arguments.  Popt allows command line
149 arguments to be aliased via configuration files and includes utility
150 functions for parsing arbitrary strings into argv[] arrays using
151 shell-like rules.
152
153 Install popt if you're a C programmer and you'd like to use its
154 capabilities.
155
156 %prep
157 %setup -q
158
159 %build
160
161 %ifos linux
162 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
163 %else
164 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
165 %endif
166
167 # XXX workaround ia64 gcc-3.1-0.18 miscompilation
168 %ifarch ia64
169 make CFLAGS="-g -O0 -DIA64_SUCKS_ROCKS" files.o files.lo -C build
170 %endif
171
172 make
173
174 %if %{with_perl_subpackage}
175 { cd Perl-RPM
176   CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
177   export SUBDIR="%{_builddir}/%{buildsubdir}"
178   make INC="-I. -I$SUBDIR/lib -I$SUBDIR/rpmdb -I$SUBDIR/rpmio -I$SUBDIR/popt" \
179     LDDLFLAGS="-shared -L$SUBDIR/lib/.libs -L$SUBDIR/rpmdb/.libs -L$SUBDIR/rpmio/.libs -L$SUBDIR/popt/.libs" %{?_smp_mflags}
180 }
181 %endif
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185
186 make DESTDIR="$RPM_BUILD_ROOT" install
187
188 %ifos linux
189
190 # Save list of packages through cron
191 mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
192 install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
193
194 mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
195 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
196
197 mkdir -p $RPM_BUILD_ROOT/etc/rpm
198 cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1
199 %%_dbapi                1
200 E_O_F
201 cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.cdb
202 %{?enable_cdb:#%%__dbi_cdb      %{enable_cdb}}
203 E_O_F
204
205 mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
206 for dbi in \
207         Basenames Conflictname Dirnames Group Installtid Name Providename \
208         Provideversion Removetid Requirename Requireversion Triggername \
209         Packages __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \
210         __db.008 __db.009
211 do
212     touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
213 done
214
215 %endif
216
217 %if %{with_apidocs}
218 gzip -9n apidocs/man/man*/* || :
219 %endif
220
221 %if %{with_perl_subpackage}
222 { cd Perl-RPM
223   eval `perl '-V:installsitearch'`
224   eval `perl '-V:installarchlib'`
225   mkdir -p $RPM_BUILD_ROOT/$installarchlib
226   make PREFIX=${RPM_BUILD_ROOT}%{__prefix} \
227     INSTALLMAN1DIR=${RPM_BUILD_ROOT}%{__prefix}%{__share}/man/man1 \
228     INSTALLMAN3DIR=${RPM_BUILD_ROOT}%{__prefix}%{__share}/man/man3 \
229         install
230   rm -f $RPM_BUILD_ROOT/$installarchlib/perllocal.pod
231   rm -f $RPM_BUILD_ROOT/$installsitearch/auto/RPM/.packlist
232   cd ..
233 }
234 %endif
235
236 %if %{strip_binaries}
237 { cd $RPM_BUILD_ROOT
238   %{__strip} ./bin/rpm
239   %{__strip} .%{__prefix}/bin/rpm2cpio
240 }
241 %endif
242
243 %clean
244 rm -rf $RPM_BUILD_ROOT
245
246 %pre
247 %ifos linux
248 if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
249     echo "
250 You have both
251         /var/lib/rpm/packages.rpm       db1 format installed package headers
252         /var/lib/rpm/Packages           db3 format installed package headers
253 Please remove (or at least rename) one of those files, and re-install.
254 "
255     exit 1
256 fi
257 /usr/sbin/groupadd -g 37 @RPMGROUP@                             > /dev/null 2>&1
258 /usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 @RPMUSER@     > /dev/null 2>&1
259 %endif
260 exit 0
261
262 %post
263 %ifos linux
264 /sbin/ldconfig
265 if [ -f /var/lib/rpm/packages.rpm ]; then
266     /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/*.rpm
267 elif [ -f /var/lib/rpm/Packages ]; then
268     # undo db1 configuration
269     rm -f /etc/rpm/macros.db1
270     /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/[A-Z]*
271 else
272     # initialize db3 database
273     rm -f /etc/rpm/macros.db1
274     /bin/rpm --initdb
275 fi
276 %endif
277 exit 0
278
279 %ifos linux
280 %postun
281 /sbin/ldconfig
282 if [ $1 = 0 ]; then
283     /usr/sbin/userdel rpm
284     /usr/sbin/groupdel rpm
285 fi
286
287
288 %post devel -p /sbin/ldconfig
289 %postun devel -p /sbin/ldconfig
290
291 %post -n popt -p /sbin/ldconfig
292 %postun -n popt -p /sbin/ldconfig
293 %endif
294
295 %if %{with_python_subpackage}
296 %post python -p /sbin/ldconfig
297 %postun python -p /sbin/ldconfig
298 %endif
299
300 %define rpmattr         %attr(0755, @RPMUSER@, @RPMGROUP@)
301
302 %files
303 %defattr(-,root,root)
304 %doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
305 %attr(0755, @RPMUSER@, @RPMGROUP@)      /bin/rpm
306
307 %ifos linux
308 %config(noreplace,missingok)    /etc/cron.daily/rpm
309 %config(noreplace,missingok)    /etc/logrotate.d/rpm
310 %dir                            /etc/rpm
311 %config(noreplace,missingok)    /etc/rpm/macros.*
312 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/lib/rpm
313
314 %define rpmdbattr %attr(0644, @RPMUSER@, @RPMGROUP@) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
315 %rpmdbattr      /var/lib/rpm/Basenames
316 %rpmdbattr      /var/lib/rpm/Conflictname
317 %rpmdbattr      /var/lib/rpm/__db.0*
318 %rpmdbattr      /var/lib/rpm/Dirnames
319 %rpmdbattr      /var/lib/rpm/Group
320 %rpmdbattr      /var/lib/rpm/Installtid
321 %rpmdbattr      /var/lib/rpm/Name
322 %rpmdbattr      /var/lib/rpm/Packages
323 %rpmdbattr      /var/lib/rpm/Providename
324 %rpmdbattr      /var/lib/rpm/Provideversion
325 %rpmdbattr      /var/lib/rpm/Removetid
326 %rpmdbattr      /var/lib/rpm/Requirename
327 %rpmdbattr      /var/lib/rpm/Requireversion
328 %rpmdbattr      /var/lib/rpm/Triggername
329
330 %endif
331
332 %rpmattr        %{__prefix}/bin/rpm2cpio
333 %rpmattr        %{__prefix}/bin/gendiff
334 %rpmattr        %{__prefix}/bin/rpmdb
335 #%rpmattr       %{__prefix}/bin/rpm[eiu]
336 %rpmattr        %{__prefix}/bin/rpmsign
337 %rpmattr        %{__prefix}/bin/rpmquery
338 %rpmattr        %{__prefix}/bin/rpmverify
339
340 %{__prefix}/lib/librpm-@VERSION@.so
341 %{__prefix}/lib/librpmdb-@VERSION@.so
342 %{__prefix}/lib/librpmio-@VERSION@.so
343 %{__prefix}/lib/librpmbuild-@VERSION@.so
344
345 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir %{__prefix}/lib/rpm
346 %rpmattr        %{__prefix}/lib/rpm/config.guess
347 %rpmattr        %{__prefix}/lib/rpm/config.sub
348 %rpmattr        %{__prefix}/lib/rpm/convertrpmrc.sh
349 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/macros
350 %rpmattr        %{__prefix}/lib/rpm/mkinstalldirs
351 %rpmattr        %{__prefix}/lib/rpm/rpm.*
352 %rpmattr        %{__prefix}/lib/rpm/rpm[deiukqv]
353 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmpopt*
354 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmrc
355
356 %ifarch i386 i486 i586 i686 athlon
357 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/i[3456]86*
358 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/athlon*
359 %endif
360 %ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
361 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/alpha*
362 %endif
363 %ifarch sparc sparcv9 sparc64
364 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/sparc*
365 %endif
366 %ifarch ia64
367 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ia64*
368 %endif
369 %ifarch powerpc ppc ppciseries ppcpseries ppcmac
370 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ppc*
371 %endif
372 %ifarch s390 s390x
373 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/s390*
374 %endif
375 %ifarch armv3l armv4l
376 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/armv[34][lb]*
377 %endif
378 %ifarch mips mipsel mipseb
379 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/mips*
380 %endif
381 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/noarch*
382
383 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
384 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/rpm.mo
385 %lang(de)       %{__prefix}/*/locale/de/LC_MESSAGES/rpm.mo
386 %lang(fi)       %{__prefix}/*/locale/fi/LC_MESSAGES/rpm.mo
387 %lang(fr)       %{__prefix}/*/locale/fr/LC_MESSAGES/rpm.mo
388 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/rpm.mo
389 %lang(ja)       %{__prefix}/*/locale/ja/LC_MESSAGES/rpm.mo
390 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/rpm.mo
391 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/rpm.mo
392 %lang(pl)       %{__prefix}/*/locale/pl/LC_MESSAGES/rpm.mo
393 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/rpm.mo
394 %lang(pt_BR)    %{__prefix}/*/locale/pt_BR/LC_MESSAGES/rpm.mo
395 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/rpm.mo
396 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/rpm.mo
397 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/rpm.mo
398 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/rpm.mo
399 %lang(sr)       %{__prefix}/*/locale/sr/LC_MESSAGES/rpm.mo
400 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/rpm.mo
401 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/rpm.mo
402
403 %{__prefix}%{__share}/man/man1/gendiff.1*
404 %{__prefix}%{__share}/man/man8/rpm.8*
405 %{__prefix}%{__share}/man/man8/rpm2cpio.8*
406 %lang(pl)       %{__prefix}%{__share}/man/pl/man[18]/*.[18]*
407 %lang(ru)       %{__prefix}%{__share}/man/ru/man[18]/*.[18]*
408 %lang(sk)       %{__prefix}%{__share}/man/sk/man[18]/*.[18]*
409
410 %files build
411 %defattr(-,root,root)
412 %dir %{__prefix}/src/@RPMCANONVENDOR@
413 %dir %{__prefix}/src/@RPMCANONVENDOR@/BUILD
414 %dir %{__prefix}/src/@RPMCANONVENDOR@/SPECS
415 %dir %{__prefix}/src/@RPMCANONVENDOR@/SOURCES
416 %dir %{__prefix}/src/@RPMCANONVENDOR@/SRPMS
417 %dir %{__prefix}/src/@RPMCANONVENDOR@/RPMS
418 %{__prefix}/src/@RPMCANONVENDOR@/RPMS/*
419 %rpmattr        %{__prefix}/bin/rpmbuild
420 %rpmattr        %{__prefix}/lib/rpm/brp-*
421 %rpmattr        %{__prefix}/lib/rpm/check-prereqs
422 %rpmattr        %{__prefix}/lib/rpm/config.site
423 %rpmattr        %{__prefix}/lib/rpm/cpanflute
424 %rpmattr        %{__prefix}/lib/rpm/cross-build
425 %rpmattr        %{__prefix}/lib/rpm/find-lang.sh
426 %rpmattr        %{__prefix}/lib/rpm/find-prov.pl
427 %rpmattr        %{__prefix}/lib/rpm/find-provides
428 %rpmattr        %{__prefix}/lib/rpm/find-provides.perl
429 %rpmattr        %{__prefix}/lib/rpm/find-req.pl
430 %rpmattr        %{__prefix}/lib/rpm/find-requires
431 %rpmattr        %{__prefix}/lib/rpm/find-requires.perl
432 %rpmattr        %{__prefix}/lib/rpm/get_magic.pl
433 %rpmattr        %{__prefix}/lib/rpm/getpo.sh
434 %rpmattr        %{__prefix}/lib/rpm/http.req
435 %rpmattr        %{__prefix}/lib/rpm/javadeps
436 %rpmattr        %{__prefix}/lib/rpm/magic.prov
437 %rpmattr        %{__prefix}/lib/rpm/magic.req
438 %rpmattr        %{__prefix}/lib/rpm/perl.prov
439
440 # XXX remove executable bit to disable autogenerated perl requires for now.
441 %rpmattr        %{__prefix}/lib/rpm/perl.req
442 #%attr(0644, @RPMUSER@, @RPMGROUP@) %{__prefix}/lib/rpm/perl.req
443
444 %rpmattr        %{__prefix}/lib/rpm/rpm[bt]
445 %rpmattr        %{__prefix}/lib/rpm/rpmdiff
446 %rpmattr        %{__prefix}/lib/rpm/rpmdiff.cgi
447 %rpmattr        %{__prefix}/lib/rpm/u_pkg.sh
448 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides.sh
449 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides2.sh
450
451 %{__prefix}%{__share}/man/man8/rpmbuild.8*
452
453 %if %{with_python_subpackage}
454 %files python
455 %defattr(-,root,root)
456 %{__prefix}/lib/python%{with_python_version}/site-packages/rpmmodule.so
457 #%{__prefix}/lib/python%{with_python_version}/site-packages/poptmodule.so
458 %endif
459
460 %if %{with_perl_subpackage}
461 %files perl
462 %defattr(-,root,root)
463 %rpmattr        %{__prefix}/bin/rpmprune
464 %{perl_sitearch}/auto/*
465 %{perl_sitearch}/RPM
466 %{perl_sitearch}/RPM.pm
467 %{__prefix}%{__share}/man/man1/rpmprune.1*
468 %{__prefix}%{__share}/man/man3/RPM*
469 %endif
470
471 %files devel
472 %defattr(-,root,root)
473 %if %{with_apidocs}
474 %doc @WITH_APIDOCS_TARGET@
475 %endif
476 %{__prefix}/include/rpm
477 %{__prefix}/lib/librpm.a
478 %{__prefix}/lib/librpm.la
479 %{__prefix}/lib/librpm.so
480 %{__prefix}/lib/librpmdb.a
481 %{__prefix}/lib/librpmdb.la
482 %{__prefix}/lib/librpmdb.so
483 %{__prefix}/lib/librpmio.a
484 %{__prefix}/lib/librpmio.la
485 %{__prefix}/lib/librpmio.so
486 %{__prefix}/lib/librpmbuild.a
487 %{__prefix}/lib/librpmbuild.la
488 %{__prefix}/lib/librpmbuild.so
489
490 %files -n popt
491 %defattr(-,root,root)
492 %{__prefix}/lib/libpopt.so.*
493 %{__prefix}%{__share}/man/man3/popt.3*
494 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/popt.mo
495 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/popt.mo
496 %lang(gl)       %{__prefix}/*/locale/gl/LC_MESSAGES/popt.mo
497 %lang(hu)       %{__prefix}/*/locale/hu/LC_MESSAGES/popt.mo
498 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/popt.mo
499 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/popt.mo
500 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/popt.mo
501 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/popt.mo
502 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/popt.mo
503 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/popt.mo
504 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/popt.mo
505 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/popt.mo
506 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/popt.mo
507 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/popt.mo
508 %lang(uk)       %{__prefix}/*/locale/uk/LC_MESSAGES/popt.mo
509 %lang(wa)       %{__prefix}/*/locale/wa/LC_MESSAGES/popt.mo
510 %lang(zh_CN)    %{__prefix}/*/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
511
512 # XXX These may end up in popt-devel but it hardly seems worth the effort now.
513 %{__prefix}/lib/libpopt.a
514 %{__prefix}/lib/libpopt.la
515 %{__prefix}/lib/libpopt.so
516 %{__prefix}/include/popt.h
517
518 %changelog
519 * Mon Sep 24 2001 Jeff Johnson <jbj@redhat.com>
520 - Start rpm-4.1.
521 - loosely wire beecrypt library into rpm.
522 - drop rpmio/base64.[ch] in favor of beecrypt versions.
523 - drop lib/md5*.[ch] files in favor of beecrypt.
524 - legacy: drop brokenMD5 support (rpm-2.3.3 to rpm-2.3.8 on sparc).
525 - eliminate DYING code.
526 - bind beecrypt md5/sha1 underneath rpmio.
527 - create RFC-2440 OpenPGP API in rpmio.
528 - proof-of-concept GPG/DSA verification for legacy signatures.
529 - upgrade to beecrypt-2.2.0pre.
530 - proof-of-concept PGP/RSA verification for legacy signatures.
531 - ratchet up to lclint "strict" level.
532 - upgrade to db-4.0.7.
533 - use only header methods, routines are now static.
534 - beecrypt is at least as good as pgp/gpg on verify, pulling the plug.
535 - add :base64 and :armor format extensions, dump binary tags in hex.
536 - proof-of-concept pubkey retrieval from RPM-{PGP,GPG}-KEY.
537 - stupid macros to configure public key file paths.
538 - all symbols but hdrVec are now forward references in linkage.
539 - generate an rpm header on the fly for imported pubkeys.
540 - wire transactions through rpmcli signature modes.
541 - wire transactions through rpmcli query/verify modes.
542 - wire transactions through rpmcli install/erase modes.
543 - legacy signatures always checked where possible on package read.
544 - wire transactions through rpmcli build modes.
545 - lazy rpmdb open/close through transaction methods (mostly anyways).
546 - no-brainer refcounts for rpmdb object.
547 - check added header against transaction set, replace if newer.
548 - transaction sets created in cli main.
549 - no-brainer refcounts for ts object.
550 - memory indices for dependency check are typedef'd and abstract'd.
551 - no-brainer refcounts for fi object, debug the mess.
552 - dump the header early in transaction, recreate fi before installing.
553 - start hiding availablePackage data/methods in rpmal.c/rpmal.h.
554 - add some dinky availablePackage methods.
555 - transaction.c: cleanly uncouple availablePackage from TFI_t.
556 - add header refcount annotations throughout.
557 - depends.c: availablePackage is (almost) opaque.
558 - invent some toy transactionElement iterators.
559 - create rpmDepSet constructors/destructors.
560 - create toy rpmDepSet iterators.
561 - rpmRangesOverlap renamed to dsCompare, add dsNotify method as well.
562 - depends.c: rpmDepSet is (almost) opaque, move to rpmds.[ch].
563 - rpmds: create dsProblem(), dsiGetDNEVR() retrieved DNEVR, not N.
564 - depends.h: hack around teIterator() et al from include for now.
565 - rpmds: move trigger dependencies into a rpmDepSet as well.
566 - rpmal: availablePackage is totally opaque, alKey with index replaces.
567 - fix: harmless typo in db3 chroot hack.
568 - fix: big-endian's with sizeof(time_t) != sizeof(int_32) mtime broken.
569 - fix: add Korean message catalogs (#54473).
570 - add RPHNPLATFORM and PLATFORM tags.
571 - linear search on added package provides is dumb.
572 - discarding entire signature header when using --addsign is dumb.
573 - rip out rpmDependencyConflict, replace with rpmProblem instead.
574 - no-brainer refcounts for rpmProblemSet object.
575 - header tag sets are per-transactionElement, not per-availablePackage.
576 - no-brainer refcounts for rpmDepSet and rpmFNSet objects.
577 - strip header tags for erased as well as installed transactionElements.
578 - common structure elements for unification of TFI_t and rpmFNSet.
579 - factor per-transactionElement data out of TFI_t through pointer ref.
580 - unify rpmFNSet into TFI_t.
581 - eliminate header reference in rpmtransAddPackage, use TFI_t data.
582 - commit to using rpmDepSet and TFI_t, not header.
583 - lclint rpmio fiddles.
584 - split file info tag sets into rpmfi.c.
585 - create toy TFI_t iterators.
586 - tweak overlapped file fingerprint retrieval for speed.
587 - transaction.c: use wrappers/iterators to access TFI_t.
588 - annotations to make a transactionElement opaque.
589 - use array of pointers rather than contiguous array for ts->order.
590 - methods to complete making transactionElement opaque.
591 - use TR_REMOVED relations as well as TR_ADDED for ordering.
592 - drop requirement that removed packages immediately follow added.
593 - hybrid chainsaw/presentation ordering algorithm.
594 - convert file md5sum's to binary on the fly, reducing memory footprint.
595 - header handling moved to librpmdb to avoid linkage loops.
596 - fix a couple dinky memory leaks.
597 - build with an internal zlib for now.
598 - protect brp-compress against /bin/ls output ambiguity (#56656,#56336).
599 - 3 madvise calls and a 16Mb mmapped buffer == ~5% install speedup. Wow.
600 - use db-4.0.14 final internally.
601 - 1st crack at making zlib rsync friendly.
602 - lclint-3.0.0.19 fiddles.
603 - solaris: translate i86pc to i386 (#57182).
604 - fix: %GNUconfigure breaks with single quotes (#57264).
605 - simple automake wrapper for zlib.
606 - add buildarch lines for hppa (#57728).
607 - sparc: make dbenv per-rpmdb, not per-dbi.
608 - handle lazy db open's in chroot with absolute path, not prefix strip.
609 - Depends should use CDB if configured.
610 - autodetect python 1.5/2.2.
611 - make rpm-perl package self-hosting (#57748).
612 - permit gpg/pgp/pgp5 execs to be reconfigured.
613 - fix: signing multiple times dinna work, discard immutable region.
614 - remove poptmodule.so for separate packaging.
615 - permit subset installs for %lang colored hardlink file sets.
616 - missing key(s) on keyring when verifying a signature is now an error.
617 - remove dependency whiteout.
618 - splint fiddles.
619 - ppc64 arch added (#58634,#58636).
620 - turn on auto-generated perl requirements (#58519, #58536, #58537).
621 - fix: %exclude functional (again).
622 - trap SIGILL for ppc64 inline asm voodoo fix from cross-dressed ppc32.
623 - rpm-perl: force numeric comparison on rpm version (#58882).
624 - fix: fancy hash fiddles if not a tty.
625 - fix: handle /.../ correctly in rpmCleanPath().
626 - legacy: configurable whiteout for known Red Hat dependency loops.
627 - perl.req: don't mis-generate dependencies like perl(::path/to/foo.pl).
628 - permit args to be hidden within %%__find_{requires,provides}.
629 - a couple more perl.{prov,req} fiddles.