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