]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- added 'static' bcond
[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 %{!?_with_static: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 %{?_with_static:BuildRequires:  bzip2-static}
31 %{?_with_static:BuildRequires:  curl-static}
32 %{?_with_static:BuildRequires:  openssl-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
44 APT) or interactive mode. The interactive mode puts you into a
45 readline interface with command line autocompletion and history,
46 similar to the shell mode of Perl's CPAN.
47
48 %{?_with_static:This version is statically linked}
49
50 %description -l pl
51 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
52 instalacji i aktualizacji pakietów.
53
54 %if %{?BOOT:1}%{!?BOOT:0}
55 %package BOOT
56 Summary:        poldek for bootdisk
57 Group:          Applications/System
58 Group(de):      Applikationen/System
59 Group(pl):      Aplikacje/System
60
61 %description BOOT
62 poldek is a cmdline tool which can be used to verify, install and
63 upgrade given package sets. This version is for boot disk.
64
65 %endif
66
67 %prep 
68 %setup -q
69
70 %build
71 %if %{?BOOT:1}%{!?BOOT:0}
72 %configure --enable-static --disable-imode
73 %{__make} CFLAGS="-O0 -g"
74 mv -f %{name} %{name}-BOOT
75 %{__make} clean
76 %endif
77
78 %configure %{?_with_static:--enable-static}
79 %{__make} 
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{_sysconfdir}
84
85 %if %{?BOOT:1}%{!?BOOT:0}
86 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
87 install %{name}-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/%{name}
88 %endif
89
90 # no strip cause program's alpha stage and core may be useful
91 %{__make} install DESTDIR=$RPM_BUILD_ROOT
92 %{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
93 sed "s/i686/%{_target_cpu}/g" < poldekrc.sample-pld > $RPM_BUILD_ROOT/etc/%{name}.conf
94
95 gzip -9nf README* *sample* NEWS TODO
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
103 %attr(755,root,root) %{_bindir}/*
104 %{_mandir}/man1/%{name}*
105 %doc *.gz
106
107 %if %{?BOOT:1}%{!?BOOT:0}
108 %files BOOT
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/bootdisk/sbin/poldek
111 %endif
This page took 0.160745 seconds and 3 git commands to generate.