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