]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- massive attack, adding Source-md5
[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:        9
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: 4d5ca989b7f78767084bb1872a87c6ba
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 URL:            http://team.pld.org.pl/~mis/poldek/
23 Requires:       rpm >= 4.0.2-62
24 Requires:       sed
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 poldek is an RPM package management tool which allows you to easily
50 perform package verification, installation (including system
51 installation from scratch), upgrading, and removal.
52
53 Program can be used in batch (like apt-get from Debian's APT) or
54 interactive mode. The interactive mode puts you into a readline
55 interface with command line autocompletion and history, similar to the
56 shell mode of Perl's CPAN.
57
58 %{?_with_static:This version is statically linked.}
59
60 %{?_without_imode:This version hasn't got interactive mode.}
61
62 %description -l pl
63 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
64 instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji i
65 usuwania pakietów.
66
67 Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get) lub
68 interaktywnym. Tryb interaktywny posiada interfejs readline z
69 dope³nianiem komend i histori±, podobny do trybu shell perlowego
70 modu³u CPAN.
71
72 %{?_with_static:Ta wersja jest konsolidowana statycznie.}
73
74 %{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
75
76 %prep
77 %setup -q
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81 %patch3 -p0
82 %patch4 -p1
83
84 %build
85 autopoint --force
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__automake}
89 %configure \
90         %{?_with_static:--enable-static} \
91         %{?_without_imode:--disable-imode} \
92         %{?_with_curl:--with-curl}
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_sysconfdir}
98
99 # no strip cause program's beta stage and core may be useful
100 %{__make} install DESTDIR=$RPM_BUILD_ROOT
101 %{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
102 sed "s|/i686/|/%{_target_cpu}/|g" < %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
103
104 %find_lang %{name}
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc README* NEWS TODO *sample* conf/poldekrc*
112 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
113 %attr(755,root,root) %{_bindir}/*
114 %{_mandir}/man1/%{name}*
115 %lang(pl) %{_mandir}/pl/man1/%{name}*
This page took 0.036126 seconds and 4 git commands to generate.