]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- really apply patch5 (taken from poldek repo by ankry) and add another patch that...
[packages/poldek.git] / poldek.spec
1 #
2 # Conditional build:
3 # _with_static          - don't use shared libraries
4 # _without_imode        - don't build interactive mode
5 # _with_curl            - link with curl
6 #
7 Summary:        RPM packages management helper tool
8 Summary(pl):    Pomocnicze narzêdzie do zarz±dzania pakietami RPM
9 Name:           poldek
10 Version:        0.18.1
11 Release:        11
12 License:        GPL v2
13 Group:          Applications/System
14 Source0:        http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
15 # Source0-md5:  8af8090d401254939911e456e2f09e60
16 Source1:        %{name}.conf
17 Patch0:         %{name}-static.patch
18 Patch1:         %{name}-etc_dir.patch
19 Patch2:         %{name}-rpm4.2.patch
20 Patch3:         %{name}-rpm4.1-fix.patch
21 Patch4:         %{name}-retr_term.patch
22 Patch5:         %{name}-deps-fix.patch
23 Patch6:         %{name}-broken-rpmdb.patch
24 URL:            http://team.pld.org.pl/~mis/poldek/
25 BuildRequires:  bzip2-devel
26 %{?_with_curl:BuildRequires:    curl-devel >= 7.8}
27 BuildRequires:  automake
28 BuildRequires:  autoconf
29 BuildRequires:  gettext-autopoint
30 BuildRequires:  openssl-devel >= 0.9.7
31 BuildRequires:  pcre-devel
32 BuildRequires:  popt-devel
33 BuildRequires:  readline-devel
34 BuildRequires:  rpm-devel >= 4.0.2-62
35 BuildRequires:  zlib-devel
36 BuildRequires:  /usr/bin/pod2man
37 %{?_with_static:BuildRequires:  bzip2-static}
38 %{?_with_curl:%{?_with_static:BuildRequires:    curl-static}}
39 %{?_with_static:BuildRequires:  ncurses-static}
40 %{?_with_static:BuildRequires:  openssl-static}
41 %{?_with_static:BuildRequires:  pcre-static}
42 %{?_with_static:BuildRequires:  popt-static}
43 %{?_with_static:BuildRequires:  readline-static}
44 %{?_with_static:BuildRequires:  rpm-static}
45 %{?_with_static:BuildRequires:  zlib-static}
46 %{?_with_static:BuildRequires:  glibc-static}
47 Requires:       rpm >= 4.0.2-62
48 Requires:       sed
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 poldek is an RPM package management tool which allows you to easily
53 perform package verification, installation (including system
54 installation from scratch), upgrading, and removal.
55
56 Program can be used in batch (like apt-get from Debian's APT) or
57 interactive mode. The interactive mode puts you into a readline
58 interface with command line autocompletion and history, similar to the
59 shell mode of Perl's CPAN.
60
61 %{?_with_static:This version is statically linked.}
62
63 %{?_without_imode:This version hasn't got interactive mode.}
64
65 %description -l pl
66 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
67 instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji i
68 usuwania pakietów.
69
70 Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get) lub
71 interaktywnym. Tryb interaktywny posiada interfejs readline z
72 dope³nianiem komend i histori±, podobny do trybu shell perlowego
73 modu³u CPAN.
74
75 %{?_with_static:Ta wersja jest konsolidowana statycznie.}
76
77 %{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p0
85 %patch4 -p1
86 %patch5 -p0
87 %patch6 -p1
88
89 %build
90 autopoint --force
91 %{__aclocal} -I m4
92 %{__autoconf}
93 %{__automake}
94 %configure \
95         %{?_with_static:--enable-static} \
96         %{?_without_imode:--disable-imode} \
97         %{?_with_curl:--with-curl}
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{_sysconfdir}
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 %{?_with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
108 sed "s|/i686/|/%{_target_cpu}/|g" < %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
109
110 %find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc README* NEWS TODO *sample* conf/poldekrc*
118 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
119 %attr(755,root,root) %{_bindir}/*
120 %{_mandir}/man1/%{name}*
121 %lang(pl) %{_mandir}/pl/man1/%{name}*
This page took 0.072468 seconds and 3 git commands to generate.