]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- release 3 - removed KDE3-Pack from poldek.conf - STBR after moving KDE3
[packages/poldek.git] / poldek.spec
1 # conditional build
2 #  --with static   -- don't use shared libraries
3 #  --without imode -- don't build interactive mode
4 #  --without curl  -- don't link curl
5 Summary:        RPM packages management helper tool
6 Summary(pl):    Pomocnicze narzêdzie do zarz±dzania pakietami RPM
7 Name:           poldek
8 Version:        0.17.8
9 Release:        3
10 License:        GPL v2
11 Group:          Applications/System
12 Source0:        http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.gz
13 Source1:        %{name}.conf
14 URL:            http://team.pld.org.pl/~mis/poldek/
15 #%{!?_with_static:Requires:     trurlib >= 0.43.6}
16 Requires:       rpm >= 4.0.2-62
17 BuildRequires:  bzip2-devel
18 %{?_with_curl:BuildRequires:    curl-devel >= 7.8}
19 BuildRequires:  db3-devel >= 3.1.14-2
20 BuildRequires:  openssl-devel
21 BuildRequires:  pcre-devel
22 BuildRequires:  popt-devel
23 BuildRequires:  readline-devel
24 BuildRequires:  rpm-devel >= 4.0.2
25 #BuildRequires: trurlib-devel >= 0.43.6
26 BuildRequires:  zlib-devel
27 BuildRequires:  /usr/bin/pod2man
28 %{?_with_static:BuildRequires:  bzip2-static}
29 %{?_with_curl:%{?_with_static:BuildRequires:   curl-static}}
30 %{?_with_static:BuildRequires:  openssl-static}
31 %{?_with_static:BuildRequires:  popt-static}
32 %{?_with_static:BuildRequires:  rpm-static}
33 #%{?_with_static:BuildRequires: trurlib-static}
34 %{?_with_static:BuildRequires:  zlib-static}
35 %{?_with_static:BuildRequires:  pcre-static}
36 %{?_with_static:BuildRequires:  db1-static}
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 poldek is an RPM package management tool which allows you to easily
41 perform package verification, installation (including system
42 installation from scratch), upgrading, and removal.
43
44 Program can be used in batch (like apt-get from Debian's APT) or
45 interactive mode. The interactive mode puts you into a readline
46 interface with command line autocompletion and history, similar to the
47 shell mode of Perl's CPAN.
48
49 %{?_with_static:This version is statically linked}
50
51 %{?_without_imode:This version hasn't got interactive mode.}
52
53 %description -l pl
54 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
55 instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji 
56 i usuwania pakietów.
57
58 Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get)
59 lub interaktywnym. Tryb interaktywny posiada interfejs readline 
60 z dope³nianiem komend i histori±, podobny do trybu shell perlowego 
61 modu³u CPAN. 
62
63 %{?_with_static:Ta wersja jest konsolidowana statycznie.}
64
65 %{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
66
67 %prep
68 %setup -q
69
70 %build
71 %configure \
72         %{?_with_static:--enable-static} \
73         %{?_without_imode:--disable-imode} \
74         %{?_with_curl:--with-curl}
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_sysconfdir}
80
81 # no strip cause program's beta stage and core may be useful
82 %{__make} install DESTDIR=$RPM_BUILD_ROOT
83 %{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
84 sed "s/i686/%{_target_cpu}/g" < %{SOURCE1} > $RPM_BUILD_ROOT/etc/%{name}.conf
85
86 %find_lang %{name}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc README* NEWS TODO *sample* conf/poldekrc*
94 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
95 %attr(755,root,root) %{_bindir}/*
96 %{_mandir}/man1/%{name}*
This page took 0.029919 seconds and 3 git commands to generate.