3 # --with static - don't use shared libraries
4 # --without imode - don't build interactive mode
5 # --without curl - don't link curl
7 Summary: RPM packages management helper tool
8 Summary(pl): Pomocnicze narzêdzie do zarz±dzania pakietami RPM
13 Group: Applications/System
14 Source0: http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
16 Patch0: %{name}-static.patch
17 Patch1: %{name}-home_etc.patch
18 URL: http://team.pld.org.pl/~mis/poldek/
19 Requires: rpm >= 4.0.2-62
21 BuildRequires: bzip2-devel
22 %{?_with_curl:BuildRequires: curl-devel >= 7.8}
23 BuildRequires: automake
24 BuildRequires: autoconf
25 BuildRequires: openssl-devel >= 0.9.7
26 BuildRequires: pcre-devel
27 BuildRequires: popt-devel
28 BuildRequires: readline-devel
29 BuildRequires: rpm-devel >= 4.0.2-62
30 BuildRequires: zlib-devel
31 BuildRequires: /usr/bin/pod2man
32 %{?_with_static:BuildRequires: bzip2-static}
33 %{?_with_curl:%{?_with_static:BuildRequires: curl-static}}
34 %{?_with_static:BuildRequires: openssl-static}
35 %{?_with_static:BuildRequires: pcre-static}
36 %{?_with_static:BuildRequires: popt-static}
37 %{?_with_static:BuildRequires: readline-static}
38 %{?_with_static:BuildRequires: rpm-static}
39 %{?_with_static:BuildRequires: zlib-static}
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 poldek is an RPM package management tool which allows you to easily
44 perform package verification, installation (including system
45 installation from scratch), upgrading, and removal.
47 Program can be used in batch (like apt-get from Debian's APT) or
48 interactive mode. The interactive mode puts you into a readline
49 interface with command line autocompletion and history, similar to the
50 shell mode of Perl's CPAN.
52 %{?_with_static:This version is statically linked.}
54 %{?_without_imode:This version hasn't got interactive mode.}
57 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
58 instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji
61 Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get)
62 lub interaktywnym. Tryb interaktywny posiada interfejs readline
63 z dope³nianiem komend i histori±, podobny do trybu shell perlowego
66 %{?_with_static:Ta wersja jest konsolidowana statycznie.}
68 %{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
81 %{?_with_static:--enable-static} \
82 %{?_without_imode:--disable-imode} \
83 %{?_with_curl:--with-curl}
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_sysconfdir}
90 # no strip cause program's beta stage and core may be useful
91 %{__make} install DESTDIR=$RPM_BUILD_ROOT
92 %{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
93 sed "s|/i686/|/%{_target_cpu}/|g" < %{SOURCE1} > $RPM_BUILD_ROOT/etc/%{name}.conf
98 rm -rf $RPM_BUILD_ROOT
100 %files -f %{name}.lang
101 %defattr(644,root,root,755)
102 %doc README* NEWS TODO *sample* conf/poldekrc*
103 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
104 %attr(755,root,root) %{_bindir}/*
105 %{_mandir}/man1/%{name}*
106 %lang(pl) %{_mandir}/pl/man1/%{name}*