]> git.pld-linux.org Git - packages/poldek.git/blame - poldek.spec
Update to 0.32.0
[packages/poldek.git] / poldek.spec
CommitLineData
7638abfc 1#
de1099c4 2# Conditional build:
9fe14a3f 3%bcond_with static # don't use shared libraries
4%bcond_without imode # don't build interactive mode
58c31de0 5%bcond_without python # don't build python bindings
cf6c3a30 6%bcond_with snap # install configs for official Th snapshot
1fde4642 7%bcond_with db61 # DB 6.1 instead of 5.2
dbf5b095 8%bcond_with rpm4 # use rpm4/db4.7 instead of rpm5
7000d724 9
e1015166 10# current snapshot name
b831407e 11%define SNAP 2015
a584c5c5 12
373c6f03 13# required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
6e185c37 14# NOTE: poldek links with "system db" (-ldb) anyway if it exists
1fde4642
JB
15%if %{with db61}
16%define db_pkg db6.1
17%define ver_db 6.1
6e185c37
JB
18%define ver_db_rel 1
19%else
ff4e68af 20%define db_pkg db5.2
376a705c 21%define ver_db 5.2
19e679c6 22%define ver_db_rel 3
6e185c37 23%endif
5fda028a
ER
24
25%if %{with rpm4}
97791166 26%define db_pkg db4.7
5fda028a
ER
27%define ver_db 4.7.25
28%define ver_db_rel 1
29%define ver_rpm 4.5-49
30%else
a17726b5 31%define ver_rpm 5.4.10
5fda028a 32%endif
7000d724 33
6a887b9d 34%define rel 1
b44549bf 35Summary: RPM packages management helper tool
9c03ea8f 36Summary(hu.UTF-8): RPM csomagkezelést segítő eszköz
9faf625a 37Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
b44549bf 38Name: poldek
6a887b9d 39Version: 0.32.0
9c1c2b52 40Release: %{rel}%{?with_snap:.%{SNAP}}
9f931ada 41License: GPL v2
8efee472 42Group: Applications/System
85398bac 43#Source0: http://poldek.pld-linux.org/download/snapshots/%{name}-%{version}-cvs%{snap}.tar.bz2
e5009a66 44Source0: http://carme.pld-linux.org/~megabajt/releases/poldek/%{name}-%{version}.tar.xz
6a887b9d 45# Source0-md5: 85de8f1fc2a0b5dfae7e98bb83065c05
911a8560 46Source1: %{name}.conf
b25cb9a7 47Source2: %{name}-multilib.conf
d9c7cedf 48Source3: %{name}-config.sh
2ccd5d66 49Source5: %{name}-aliases.conf
50Source6: %{name}.desktop
51Source7: %{name}.png
a97b47d4 52# Source7-md5: ee487abede50874e9eceb6495d5ee150
171e07f6 53Source8: %{name}-debuginfo.conf
652b5bc5 54Source9: %{name}-aidath.conf
55Source10: %{name}-multilib-aidath.conf
8db66c11 56Source11: %{name}-archive.conf
a584c5c5
JR
57Source100: %{name}-snap.conf
58Source101: %{name}-multilib-snap.conf
59Source102: %{name}-debuginfo-snap.conf
e5009a66 60Patch0: %{name}-size-type.patch
e8dadd74 61Patch1: %{name}-config.patch
6a887b9d 62Patch2: pm-hooks.patch
39ca2371 63URL: http://poldek.pld-linux.org/
340a1e21 64BuildRequires: %{db_pkg}-devel >= %{ver_db}-%{ver_db_rel}
a4268952 65BuildRequires: autoconf
4d0dcbcf 66BuildRequires: automake >= 1:1.11
373c6f03 67BuildRequires: bzip2-devel
065b86e0 68BuildRequires: check-devel
1d67e563 69BuildRequires: docbook-dtd412-xml
22329ccf 70BuildRequires: gettext-tools
0021c1c7 71BuildRequires: libgomp-devel
b25cb9a7
JB
72BuildRequires: libtool
73BuildRequires: libxml2-devel
cbc6f56b 74BuildRequires: openssl-devel >= 0.9.7d
13fd950e 75BuildRequires: pcre-devel
b3ea4b51 76BuildRequires: pkgconfig
13fd950e 77BuildRequires: popt-devel
58c31de0 78%{?with_python:BuildRequires: python-devel}
b25cb9a7 79BuildRequires: readline-devel >= 5.0
373c6f03 80BuildRequires: rpm-devel >= %{ver_rpm}
300927eb 81%{?with_python:BuildRequires: rpm-pythonprov}
340a1e21 82BuildRequires: tar >= 1:1.22
77cfda6e 83BuildRequires: xmlto
340a1e21 84BuildRequires: xz
96475e5e 85BuildRequires: zlib-devel
373c6f03 86%if %{with static}
ff4e68af 87BuildRequires: %{db_pkg}-static >= %{ver_db}-%{ver_db_rel}
340a1e21 88BuildRequires: bzip2-static
2fac0b02 89BuildRequires: glibc-static
b25cb9a7 90BuildRequires: libxml2-static
373c6f03
JB
91BuildRequires: ncurses-static
92BuildRequires: openssl-static
93BuildRequires: pcre-static
94BuildRequires: popt-static
95BuildRequires: readline-static
96BuildRequires: rpm-static
97BuildRequires: zlib-static
373c6f03 98%endif
b25cb9a7 99Requires(triggerpostun): awk
168acc54 100Requires(triggerpostun): sed >= 4.0
ff4e68af 101Requires: %{db_pkg} >= %{ver_db}-%{ver_db_rel}
340a1e21 102Requires: %{name}-libs = %{version}-%{release}
67e6053c 103Requires: /bin/run-parts
373c6f03 104Requires: rpm >= %{ver_rpm}
530c8c41 105Requires: rpm-db-ver = %{ver_db}
5fda028a 106Requires: rpm-lib >= %{ver_rpm}
e202a52a 107Requires: sed
c5d1808a 108Conflicts: etckeeper < 1.18-2
b44549bf 109BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
110
dcdcebb7
ER
111%define _libexecdir %{_prefix}/lib/%{name}
112
b44549bf 113%description
0fa0dc36 114poldek is an RPM package management tool which allows you to easily
115perform package verification, installation (including system
13fd950e 116installation from scratch), upgrading, and removal.
0fa0dc36 117
13fd950e
JB
118Program can be used in batch (like apt-get from Debian's APT) or
119interactive mode. The interactive mode puts you into a readline
120interface with command line autocompletion and history, similar to the
121shell mode of Perl's CPAN.
8efee472 122
9fe14a3f 123%{?with_static:This version is statically linked.}
d94b28a6 124
9fe14a3f 125%{!?with_imode:This version hasn't got interactive mode.}
7f07e487 126#'vim
1f84648f 127
9c03ea8f
ZU
128%description -l hu.UTF-8
129poldek egy RPM csomagkezelő eszköz, amely megkönnyíti a
130csomagellenőrzést, telepítést (beleértve a rendszertelepítést a
131nulláról), frissítést és eltávolítást.
132
133A program használható parancssorból (mint a Debian apt-get programja)
134vagy interaktív módban. Az interaktív mód egy readline környezetet
135jelent, parancskiegészítéssel és előzményekkel, hasonlóan a Perl CPAN
136shell módjához.
137
138%{?with_static:Ez a verzió statikusan linkelt.}
139
140%{!?with_imode:Ennek a verziónak nincs interaktív módja.}
141
caed9b36
JR
142%description -l pl.UTF-8
143poldek jest narzędziem linii poleceń służącym do weryfikacji,
144instalacji (włączając instalację systemu od zera), aktualizacji i
145usuwania pakietów.
56e1ab51 146
caed9b36 147Program może być używany w trybie wsadowym (jak debianowy apt-get) lub
d82a9cb2 148interaktywnym. Tryb interaktywny posiada interfejs readline z
caed9b36
JR
149dopełnianiem komend i historią, podobny do trybu shell perlowego
150modułu CPAN.
8efee472 151
9fe14a3f 152%{?with_static:Ta wersja jest konsolidowana statycznie.}
a611e0bc 153
9fe14a3f 154%{!?with_imode:Ta wersja nie posiada trybu interaktywnego.}
b44549bf 155
b25cb9a7 156%package libs
168acc54 157Summary: poldek libraries
9c03ea8f 158Summary(hu.UTF-8): A poldek könyvtárai
9faf625a 159Summary(pl.UTF-8): Biblioteki poldka
168acc54 160Group: Libraries
b25cb9a7
JB
161
162%description libs
163poldek libraries.
164
9c03ea8f
ZU
165%description libs -l hu.UTF-8
166A poldek könyvtárai.
167
caed9b36 168%description libs -l pl.UTF-8
b25cb9a7
JB
169Biblioteki poldka.
170
171%package devel
168acc54 172Summary: Header files for poldek libraries
9c03ea8f 173Summary(hu.UTF-8): A poldek könyvtár fejlesztői fájljai
9faf625a 174Summary(pl.UTF-8): Pliki nagłówkowe bibliotek poldka
168acc54 175Group: Development/Libraries
09d4c571 176Requires: %{name}-libs = %{version}-%{release}
b980560b 177Requires: rpm-devel >= %{ver_rpm}
b25cb9a7
JB
178
179%description devel
180Header files for poldek libraries.
181
9c03ea8f
ZU
182%description devel -l hu.UTF-8
183A poldek könyvtár fejlesztői fájljai.
184
caed9b36
JR
185%description devel -l pl.UTF-8
186Pliki nagłówkowe bibliotek poldka.
b25cb9a7
JB
187
188%package static
168acc54 189Summary: poldek static libraries
9c03ea8f 190Summary(hu.UTF-8): poldek statikus könyvtárak
9faf625a 191Summary(pl.UTF-8): Biblioteki statyczne poldka
168acc54 192Group: Development/Libraries
09d4c571 193Requires: %{name}-devel = %{version}-%{release}
b25cb9a7
JB
194
195%description static
196poldek static libraries.
197
9c03ea8f
ZU
198%description static -l hu.UTF-8
199poldek statikus könyvtárak.
200
caed9b36 201%description static -l pl.UTF-8
b25cb9a7
JB
202Biblioteki statyczne poldka.
203
58c31de0
JB
204%package -n python-poldek
205Summary: Python modules for poldek
9c03ea8f 206Summary(hu.UTF-8): Python modulok poldek-hez
9faf625a 207Summary(pl.UTF-8): Moduły języka Python dla poldka
58c31de0
JB
208Group: Libraries/Python
209Requires: %{name}-libs = %{version}-%{release}
340a1e21 210Requires: python-libs
58c31de0
JB
211
212%description -n python-poldek
213Python modules for poldek.
214
9c03ea8f
ZU
215%description -n python-poldek -l hu.UTF-8
216Python modulok poldek-hez.
217
caed9b36
JR
218%description -n python-poldek -l pl.UTF-8
219Moduły języka Python dla poldka.
58c31de0 220
03159b71 221%prep
a9c9446a 222%setup -q
85398bac 223%patch0 -p1
13aa6434 224%patch1 -p1
1cf9975a 225%patch2 -p1
8dcb75fc 226
5e2c5cc3 227%{__rm} m4/libtool.m4 m4/lt*.m4
b44549bf 228
0579f9b7
ER
229# cleanup backups after patching
230find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
4fa2b79c 231chmod u+x ./configure ./doc/conf-xml2.sh
0579f9b7 232
b44549bf 233%build
5c81138a 234%{__gettextize}
bef9d2a3 235%{__libtoolize}
21a83253 236%{__aclocal} -I m4
d878a63c 237%{__autoheader}
21a83253
MM
238%{__autoconf}
239%{__automake}
f8e81a61 240cd tndb
313cd172 241%{__libtoolize}
5e2c5cc3
JB
242%{__aclocal}
243%{__autoheader}
244%{__autoconf}
245%{__automake}
f8e81a61 246cd ../trurlib
313cd172 247%{__libtoolize}
5e2c5cc3
JB
248%{__aclocal}
249%{__autoheader}
250%{__autoconf}
251%{__automake}
f8e81a61 252cd ..
b25cb9a7 253
3e975db6 254CPPFLAGS="%{rpmcppflags} -std=gnu99 -fgnu89-inline"
1f84648f 255%configure \
b25cb9a7 256 %{?with_static:--enable-static --disable-shared} \
9fe14a3f 257 %{!?with_imode:--disable-imode} \
dcdcebb7 258 --with-pkglibdir=%{_libexecdir} \
58c31de0
JB
259 --enable-nls \
260 %{?with_python:--with-python}
9fb594dc 261%{__make} -j1
a1f22296 262# --enable-trace
8efee472 263
b44549bf 264%install
265rm -rf $RPM_BUILD_ROOT
c5d1808a 266install -d $RPM_BUILD_ROOT/var/cache/%{name}
8efee472 267
9fb594dc 268%{__make} install -j1 \
c8f7d829 269 DESTDIR=$RPM_BUILD_ROOT
de1099c4 270
d9c7cedf
ER
271install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poldek-config
272
58c31de0 273%if %{with python}
9fb594dc 274%{__make} -C python -j1 install \
58c31de0
JB
275 DESTDIR=$RPM_BUILD_ROOT \
276 libdir=%{py_sitedir}
277%endif
278
5e2c5cc3 279%{?with_static:%{__rm} $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
a49836bb 280
9639596f 281%ifarch i486 i686 ppc sparc alpha athlon
bd621c72 282 %define ftp_arch %{_target_cpu}
36004ea3 283%endif
9639596f 284%ifarch %{x8664}
bd621c72
ER
285 %define ftp_arch x86_64
286 %define ftp_alt_arch i686
287 %define ftp_alt2_arch x32
fabc4b40
JR
288%endif
289%ifarch x32
bd621c72
ER
290 %define ftp_arch x32
291 %define ftp_alt_arch x86_64
292 %define ftp_alt2_arch i686
36004ea3 293%endif
9639596f 294%ifarch i586
bd621c72 295 %define ftp_arch i486
58820d9b 296%endif
a49836bb 297%ifarch pentium2 pentium3 pentium4
bd621c72 298 %define ftp_arch i686
36004ea3 299%endif
a49836bb 300%ifarch sparcv9 sparc64
bd621c72
ER
301 %define ftp_arch sparc
302 %define ftp_arch %{_target_cpu}
b614e8f7 303 %ifarch sparc64
bd621c72 304 %define ftp_alt_arch sparcv9
23ead09a 305 %endif
652b5bc5 306%endif
32697bd0 307
b614e8f7
JR
308%define pld_conf %{SOURCE1}
309%define pld_debuginfo_conf %{SOURCE8}
310%define pld_archive_conf %{SOURCE11}
7c0e4fc5 311
fabc4b40 312%ifarch %{x8664} x32
b614e8f7 313 %define pld_multilib_conf %{SOURCE2}
fabc4b40 314 %define pld_multilib2_conf %{SOURCE2}
b614e8f7 315%endif
7c0e4fc5 316
b614e8f7
JR
317# aidath
318%ifarch sparcv9 sparc64
319 %define pld_conf %{SOURCE9}
320 %undefine pld_archive_conf
321%endif
322%ifarch sparc64
323 %define pld_multilib_conf %{SOURCE10}
7c0e4fc5 324%endif
23ead09a 325
bd621c72 326%{__sed} -e 's|%%ARCH%%|%{ftp_arch}|g' < %{pld_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
23ead09a 327
7c0e4fc5 328%if 0%{?pld_multilib_conf:1}
bd621c72 329 %{__sed} 's|%%ARCH%%|%{ftp_alt_arch}|g' < %{pld_multilib_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt_arch}.conf
7c0e4fc5
ER
330%endif
331
fabc4b40 332%if 0%{?pld_multilib2_conf:1}
bd621c72 333 %{__sed} 's|%%ARCH%%|%{ftp_alt2_arch}|g' < %{pld_multilib_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt2_arch}.conf
fabc4b40
JR
334%endif
335
7c0e4fc5 336%if 0%{?pld_debuginfo_conf:1}
bd621c72 337%{__sed} -e 's|%%ARCH%%|%{ftp_arch}|g' < %{pld_debuginfo_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-debuginfo.conf
652b5bc5 338%endif
b25cb9a7 339
8db66c11 340%if 0%{?pld_archive_conf:1}
bd621c72 341%{__sed} -e 's|%%ARCH%%|%{ftp_arch}|g' < %{pld_archive_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-archive.conf
8db66c11
ER
342%endif
343
7e5296f4 344# Always install snapshot configs
bd621c72 345%{__sed} -e 's|%%ARCH%%|%{ftp_arch}|g' \
a584c5c5 346 -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE100} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
bd621c72 347%{__sed} -e 's|%%ARCH%%|%{ftp_arch}|g' \
a584c5c5 348 -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE102} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-debuginfo.conf
fabc4b40 349%ifarch %{x8664} x32
bd621c72
ER
350 %{__sed} -e 's|%%ARCH%%|%{ftp_alt_arch}|g' \
351 -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE101} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-%{ftp_alt_arch}.conf
352 %{__sed} -e 's|%%ARCH%%|%{ftp_alt2_arch}|g' \
353 -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE101} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-%{ftp_alt2_arch}.conf
a584c5c5 354%endif
7e5296f4
JR
355
356%if %{with snap}
c88cf671 357%{__sed} -i -e 's|@@SNAP@@||g' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
7e5296f4 358%{__sed} -i '/@@SNAP@@.*/d' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
a584c5c5 359%else
7e5296f4 360%{__sed} -i -e 's|@@SNAP@@||g' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
c88cf671 361%{__sed} -i '/@@SNAP@@.*/d' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
a584c5c5
JR
362%endif
363
600f8dbc
ER
364# create "all" meta repo
365%if 0%{?ftp_alt_arch:1}%{?ftp_alt2_arch:1}
366cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-all.conf
367# group source for referring th+th-multiarch sources together, i.e poldek -n th-all
368[source]
369type = group
370name = th-all
371sources = th %{?ftp_alt_arch:th-%{ftp_alt_arch}} %{?ftp_alt2_arch:th-%{ftp_alt2_arch}}
372EOF
373%endif
374
8dbabc51 375# th-2014 snap does not exist for x32 yet
bd621c72 376%if "%{ftp_arch}" == "x32"
255ca68a
ER
377rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
378%endif
bd621c72 379%if "%{ftp_alt2_arch}" == "x32"
255ca68a
ER
380rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-x32.conf
381%endif
8dbabc51 382
27edf30a 383cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/cli.conf
b25cb9a7 384
9e6ff4ef 385%if %{with imode}
386# add desktop file and icon
387install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
27edf30a
ER
388cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
389cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
9e6ff4ef 390%endif
391
b43abde7 392# sources we don't package
5e2c5cc3 393%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{rh,fedora,centos}-source.conf
b25cb9a7 394# include them in %doc
c88cf671 395%{__rm} -rf configs
b25cb9a7 396cp -a conf configs
c88cf671 397%{__rm} -f configs/Makefile*
b25cb9a7 398
62e80071 399%if %{with python}
58c31de0 400%py_postclean
5e2c5cc3 401%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_poldekmod.la
62e80071 402%endif
58c31de0 403
b25cb9a7 404%find_lang %{name}
f373d903 405
b44549bf 406%clean
407rm -rf $RPM_BUILD_ROOT
408
daf0e7ce
ER
409%post
410[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
411if [ "$1" = "1" ]; then
412 # remove ignore = vserver-packages inside vserver on first install
413 {
414 while read f ctx; do
415 [ "$f" = "VxID:" -o "$f" = "s_context:" ] && break
416 done </proc/self/status
417 } 2>/dev/null
418 if [ -z "$ctx" -o "$ctx" = "0" ]; then
419 VSERVER=no
420 else
421 VSERVER=yes
422 fi
423 if [ "$VSERVER" = "yes" ]; then
424 %{__sed} -i -e '/^ignore/s/vserver-packages//' %{_sysconfdir}/%{name}/poldek.conf
425 fi
426fi
b25cb9a7 427
3896c8b1
ER
428%postun -p /sbin/postshell
429-/usr/sbin/fix-info-dir -c %{_infodir}
b25cb9a7
JB
430
431%post libs -p /sbin/ldconfig
432%postun libs -p /sbin/ldconfig
433
b43abde7
ER
434%triggerpostun -- poldek < 0.30-0.20080225.00.1
435if ! grep -q '^%%includedir repos.d' %{_sysconfdir}/%{name}/poldek.conf; then
436 %{__sed} -i -e '/^%%include source.conf/{
437 a
438 a# /etc/poldek/repos.d/*.conf
439 a%%includedir repos.d
440 }' %{_sysconfdir}/%{name}/poldek.conf
441fi
442
443%{__sed} -i -e '/%%include %%{_distro}-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf
444%{__sed} -i -e '/%%include %%{_distro}-multilib-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf
445
446if [ -f %{_sysconfdir}/%{name}/pld-source.conf.rpmsave ]; then
505460c5
JR
447 %{__mv} -f %{_sysconfdir}/%{name}/repos.d/pld.conf{,.rpmnew}
448 %{__mv} -v %{_sysconfdir}/%{name}/pld-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld.conf
b43abde7
ER
449fi
450
451%ifarch %{x8664}
452if [ -f %{_sysconfdir}/%{name}/pld-multilib-source.conf.rpmsave ]; then
505460c5
JR
453 %{__mv} -f %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf{,.rpmnew}
454 %{__mv} -v %{_sysconfdir}/%{name}/pld-multilib-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf
b43abde7
ER
455fi
456%endif
457
1bacc3e0
JR
458%triggerpostun -- poldek < 0.30.1-3
459if [ -f %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf.rpmsave ]; then
bd621c72
ER
460 %{__mv} -f %{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt_arch}.conf{,.rpmnew}
461 %{__mv} -v %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt_arch}.conf
1bacc3e0
JR
462fi
463if [ -f %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-multilib.conf.rpmsave ]; then
bd621c72
ER
464 %{__mv} -f %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-%{ftp_alt_arch}.conf{,.rpmnew}
465 %{__mv} -v %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-multilib.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-%{ftp_alt_arch}.conf
1bacc3e0
JR
466fi
467
c5d1808a
ER
468%triggerpostun -- %{name} < 0.30.1-8
469if [ $1 -le 1 ]; then
470 # revert change on --downgrade
1e921240 471 %{__sed} -i -re 's,^pm command = %{_libexecdir}/pm-command.sh,#&,' %{_sysconfdir}/%{name}/%{name}.conf
c5d1808a
ER
472else
473 # setup pm command
1e921240 474 %{__sed} -i -re 's,#?(pm command =).*,\1 %{_libexecdir}/pm-command.sh,' %{_sysconfdir}/%{name}/%{name}.conf
c5d1808a
ER
475fi
476
767366b0 477%files -f %{name}.lang
b44549bf 478%defattr(644,root,root,755)
a9c9446a 479%doc ChangeLog README* NEWS TODO configs
b25cb9a7 480%dir %{_sysconfdir}/%{name}
c5d1808a
ER
481%dir %{_sysconfdir}/%{name}/pre-install.d
482%{_sysconfdir}/%{name}/pre-install.d/README
483%dir %{_sysconfdir}/%{name}/post-install.d
484%{_sysconfdir}/%{name}/post-install.d/README
08335479 485%dir %{_sysconfdir}/%{name}/repos.d
168acc54 486%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
b43abde7 487%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/repos.d/*.conf
5e2c5cc3
JB
488%attr(755,root,root) %{_bindir}/ipoldek
489%attr(755,root,root) %{_bindir}/poldek
d9c7cedf 490%attr(755,root,root) %{_bindir}/poldek-config
5e2c5cc3 491%attr(755,root,root) %{_bindir}/rpmvercmp
dcdcebb7 492%dir %{_libexecdir}
c5d1808a 493%attr(755,root,root) %{_libexecdir}/pm-command.sh
36b5e8a1
ER
494%attr(755,root,root) %{_libexecdir}/poldekuser-setup.sh
495%attr(755,root,root) %{_libexecdir}/vfcompr
496%attr(755,root,root) %{_libexecdir}/vfjuggle
497%attr(755,root,root) %{_libexecdir}/vfsmb
498%attr(755,root,root) %{_libexecdir}/zlib-in-rpm.sh
5e2c5cc3 499%{_mandir}/man1/%{name}*.1*
d8826405 500%lang(pl) %{_mandir}/pl/man1/%{name}*
b25cb9a7 501%{_infodir}/poldek.info*
9e6ff4ef 502%if %{with imode}
503%{_desktopdir}/%{name}.desktop
504%{_pixmapsdir}/%{name}.png
505%endif
27edf30a 506%dir /var/cache/%{name}
b25cb9a7 507
b43abde7 508%if %{without static}
b25cb9a7
JB
509%files libs
510%defattr(644,root,root,755)
d8aeff9a
MB
511%attr(755,root,root) %{_libdir}/libpoclidek.so.*.*.*
512%attr(755,root,root) %{_libdir}/libpoldek.so.*.*.*
513%attr(755,root,root) %{_libdir}/libtndb.so.*.*.*
514%attr(755,root,root) %{_libdir}/libtrurl.so.*.*.*
515%attr(755,root,root) %{_libdir}/libvfile.so.*.*.*
516%attr(755,root,root) %ghost %{_libdir}/libpoclidek.so.0
517%attr(755,root,root) %ghost %{_libdir}/libpoldek.so.2
518%attr(755,root,root) %ghost %{_libdir}/libtndb.so.0
519%attr(755,root,root) %ghost %{_libdir}/libtrurl.so.0
520%attr(755,root,root) %ghost %{_libdir}/libvfile.so.0
b25cb9a7
JB
521%endif
522
523%files devel
524%defattr(644,root,root,755)
5e2c5cc3
JB
525%if %{without static}
526%attr(755,root,root) %{_libdir}/libpoclidek.so
527%attr(755,root,root) %{_libdir}/libpoldek.so
528%attr(755,root,root) %{_libdir}/libtndb.so
529%attr(755,root,root) %{_libdir}/libtrurl.so
530%attr(755,root,root) %{_libdir}/libvfile.so
531%endif
532%{_libdir}/libpoclidek.la
533%{_libdir}/libpoldek.la
534%{_libdir}/libtndb.la
535%{_libdir}/libtrurl.la
536%{_libdir}/libvfile.la
537%{_includedir}/poldek
538%{_includedir}/tndb
539%{_includedir}/trurl
540%{_includedir}/vfile
541%{_pkgconfigdir}/tndb.pc
c9a1a81d 542%{_pkgconfigdir}/trurlib.pc
b25cb9a7
JB
543
544%files static
545%defattr(644,root,root,755)
5e2c5cc3
JB
546%{_libdir}/libtndb.a
547%{_libdir}/libtrurl.a
58c31de0
JB
548
549%if %{with python}
550%files -n python-poldek
551%defattr(644,root,root,755)
552%attr(755,root,root) %{py_sitedir}/_poldekmod.so
553%{py_sitescriptdir}/poldek.py[co]
554%{py_sitescriptdir}/poldekmod.py[co]
555%endif
This page took 0.224571 seconds and 4 git commands to generate.