]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- autoupdated to 0.16
[packages/poldek.git] / poldek.spec
1 Summary:        RPM packages management helper tool
2 Summary(pl):    Pomocnicze narzêdzie do zarz±dzania pakietami RPM
3 Name:           poldek
4 Version:        0.16
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        http://team.pld.org.pl/~mis/poldek/download/%{name}/%{name}-%{version}.tar.gz
11 Requires:       trurlib >= 0.43.3
12 Requires:       /bin/rpm
13 BuildRequires:  bzip2-devel
14 BuildRequires:  db3-devel >= 3.1.14-2
15 BuildRequires:  curl-devel >= 7.8
16 BuildRequires:  rpm-devel >= 3.0.5
17 BuildRequires:  popt-static
18 BuildRequires:  openssl-devel
19 BuildRequires:  readline-devel
20 BuildRequires:  trurlib-devel >= 0.43.3
21 BuildRequires:  zlib-devel
22 BuildRequires:  /usr/bin/pod2man
23 BuildRequires:  pcre-devel
24 %{?BOOT:BuildRequires:  bzip2-static}
25 %{?BOOT:BuildRequires:  curl-static}
26 %{?BOOT:BuildRequires:  openssl-static}
27 %{?BOOT:BuildRequires:  rpm-static}
28 %{?BOOT:BuildRequires:  trurlib-static}
29 %{?BOOT:BuildRequires:  zlib-static}
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 poldek is an RPM package management tool which allows you to easily
34 perform package verification, installation (including system
35 installation from scratch), upgrading, and removal. 
36
37 Program can be used in batch (like apt-get from Debian's
38 APT) or interactive mode. The interactive mode puts you into a
39 readline interface with command line autocompletion and history,
40 similar to the shell mode of Perl's CPAN.
41
42 %description -l pl
43 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
44 instalacji i aktualizacji pakietów.
45
46 %if %{?BOOT:1}%{!?BOOT:0}
47 %package BOOT
48 Summary:        poldek for bootdisk
49 Group:          Applications/System
50 Group(de):      Applikationen/System
51 Group(pl):      Aplikacje/System
52
53 %description BOOT
54 poldek is a cmdline tool which can be used to verify, install and
55 upgrade given package sets. This version is for boot disk.
56
57 %endif
58
59 %prep 
60 %setup -q
61
62 %build
63 %if %{?BOOT:1}%{!?BOOT:0}
64 %configure --enable-static --disable-imode
65 %{__make} CFLAGS="-O0 -g"
66 mv -f %{name} %{name}-BOOT
67 %{__make} clean
68 %endif
69
70 %configure 
71 %{__make} 
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_sysconfdir}
76
77 %if %{?BOOT:1}%{!?BOOT:0}
78 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
79 install %{name}-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/%{name}
80 %endif
81
82 # no strip cause program's alpha stage and core may be useful
83 %{__make} install DESTDIR=$RPM_BUILD_ROOT
84
85 sed "s/i686/%{_target_cpu}/g" < poldekrc.sample-pld > $RPM_BUILD_ROOT/etc/%{name}.conf
86
87 gzip -9nf README* *sample* NEWS TODO
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
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}*
97 %doc *.gz
98
99 %if %{?BOOT:1}%{!?BOOT:0}
100 %files BOOT
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/bootdisk/sbin/poldek
103 %endif
This page took 0.043575 seconds and 4 git commands to generate.