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