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