]> git.pld-linux.org Git - packages/poldek.git/blame - poldek.spec
- finam cleanups.
[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
22f02172 16BuildRequires: trurlib-devel >= 0.43.1
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
a611e0bc 27Group(de): Applikationen/System
28Group(pl): Aplikacje/System
8efee472 29
30%description BOOT
a611e0bc 31poldek is a cmdline tool which can be used to verify, install and
32upgrade given package sets.
33This 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}
44mv -f %{name} %{name}-BOOT
45mv -f rpmvercmp rpmvercmp-BOOT
46%{__make} clean
47%endif
48
49%configure
50%{__make}
51
b44549bf 52%install
53rm -rf $RPM_BUILD_ROOT
8efee472 54
55%if %{?BOOT:1}%{!?BOOT:0}
a611e0bc 56install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
57install %{name}-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/%{name}
58install 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
64gzip -9nf README* *sample* poldek.1
65
66%clean
67rm -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
This page took 0.049748 seconds and 4 git commands to generate.