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