]>
Commit | Line | Data |
---|---|---|
b44549bf | 1 | Summary: RPM packages management helper tool |
2 | Name: poldek | |
8efee472 | 3 | Version: 0.12 |
b44549bf | 4 | Release: 1 |
5 | License: GPL | |
8efee472 | 6 | Group: Applications/System |
7 | Group(de): Applikationen/System | |
8 | Group(pl): Aplikacje/System | |
9 | Source0: %{name}-%{version}.tar.gz | |
b44549bf | 10 | Requires: /bin/rpm |
8efee472 | 11 | BuildRequires: db3-devel >= 3.1.14-2 |
b44549bf | 12 | BuildRequires: rpm-devel >= 3.0.5 |
8efee472 | 13 | BuildRequires: zlib-static |
14 | BuildRequires: bzip2-static | |
b44549bf | 15 | BuildRequires: /usr/bin/pod2man |
22f02172 | 16 | BuildRequires: trurlib-devel >= 0.43.1 |
b44549bf | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | poldek is a cmdline tool which can be used to verify, install and | |
8efee472 | 21 | upgrade given package sets. |
22 | ||
23 | %if %{?BOOT:1}%{!?BOOT:0} | |
24 | %package BOOT | |
25 | Summary: poldek for bootdisk | |
26 | Group: Applications/System | |
a611e0bc | 27 | Group(de): Applikationen/System |
28 | Group(pl): Aplikacje/System | |
8efee472 | 29 | |
30 | %description BOOT | |
a611e0bc | 31 | poldek is a cmdline tool which can be used to verify, install and |
32 | upgrade given package sets. | |
33 | This version is for boot disk. | |
34 | ||
8efee472 | 35 | %endif |
b44549bf | 36 | |
37 | %prep | |
38 | %setup -q | |
39 | ||
40 | %build | |
8efee472 | 41 | %if %{?BOOT:1}%{!?BOOT:0} |
42 | %configure --enable-static --disable-imode | |
43 | %{__make} | |
44 | mv -f %{name} %{name}-BOOT | |
45 | mv -f rpmvercmp rpmvercmp-BOOT | |
46 | %{__make} clean | |
47 | %endif | |
48 | ||
49 | %configure | |
50 | %{__make} | |
51 | ||
b44549bf | 52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
8efee472 | 54 | |
55 | %if %{?BOOT:1}%{!?BOOT:0} | |
a611e0bc | 56 | install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin |
57 | install %{name}-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/%{name} | |
58 | install rpmvercmp-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/rpmvercmp | |
8efee472 | 59 | %endif |
b44549bf | 60 | |
61 | # no strip cause program's alpha stage and core may be useful | |
8efee472 | 62 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
b44549bf | 63 | |
64 | gzip -9nf README* *sample* poldek.1 | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
8efee472 | 71 | %attr(755,root,root) %{_bindir}/* |
b44549bf | 72 | %{_mandir}/man1/%{name}* |
73 | %doc README* *sample* | |
8efee472 | 74 | |
75 | %if %{?BOOT:1}%{!?BOOT:0} | |
76 | %files BOOT | |
77 | %defattr(644,root,root,755) | |
a611e0bc | 78 | %attr(755,root,root) %{_libdir}/bootdisk/sbin/poldek |
8efee472 | 79 | %endif |