]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- requires trurlib 0.43.4; rel 3; STBR as soon as possible
[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:        3
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://team.pld.org.pl/~mis/poldek/download/%{name}/%{name}-%{version}.tar.gz
9 %{!?_with_static:Requires:      trurlib >= 0.43.4}
10 Requires:       /bin/rpm
11 BuildRequires:  bzip2-devel
12 BuildRequires:  db3-devel >= 3.1.14-2
13 BuildRequires:  curl-devel >= 7.8
14 BuildRequires:  openssl-devel
15 BuildRequires:  pcre-devel
16 BuildRequires:  popt-devel
17 BuildRequires:  readline-devel
18 BuildRequires:  rpm-devel >= 3.0.5
19 BuildRequires:  trurlib-devel >= 0.43.3
20 BuildRequires:  zlib-devel
21 BuildRequires:  /usr/bin/pod2man
22 %{?BOOT:BuildRequires:  bzip2-static}
23 %{?BOOT:BuildRequires:  curl-static}
24 %{?BOOT:BuildRequires:  openssl-static}
25 %{?BOOT:BuildRequires:  popt-static}
26 %{?BOOT:BuildRequires:  rpm-static}
27 %{?BOOT:BuildRequires:  trurlib-static}
28 %{?BOOT:BuildRequires:  zlib-static}
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 %description -l pl
51 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
52 instalacji i aktualizacji pakietów.
53
54 %package BOOT
55 Summary:        poldek for bootdisk
56 Summary(pl):    poldek dla bootkietki
57 Group:          Applications/System
58
59 %description BOOT
60 poldek is a cmdline tool which can be used to verify, install and
61 upgrade given package sets. This version is for boot disk.
62
63 %description BOOT -l pl
64 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
65 instalacji i aktualizacji pakietów. To jest wersja dla bootkietki.
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.082367 seconds and 3 git commands to generate.