]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- ver 0.12
authorklakier <klakier@pld-linux.org>
Mon, 23 Apr 2001 11:43:26 +0000 (11:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added BOOT package

Changed files:
    poldek.spec -> 1.2

poldek.spec

index 3ae93318edf9084776fa6fe07be9c36e560f15fb..bc7c0197c2cd1db3c61bf90d64ae1d5113074cde 100644 (file)
@@ -1,36 +1,61 @@
 Summary:       RPM packages management helper tool
 Name:          poldek
-Version:       0.1
+Version:       0.12
 Release:       1
 License:       GPL
-Group:         Utilities/System
-Group(pl):     Narzêdzia/System
-Source:                %{name}-%{version}.tar.gz
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
+Source0:       %{name}-%{version}.tar.gz
 Requires:      /bin/rpm
-BuildRequires:  db3-devel >= 3.1.14-2
+BuildRequires: db3-devel >= 3.1.14-2
 BuildRequires: rpm-devel >= 3.0.5
-BuildRequires: zlib-devel, zlib-static
-BuildRequires: bzip2-devel, bzip2-static
+BuildRequires: zlib-static
+BuildRequires: bzip2-static
 BuildRequires: /usr/bin/pod2man
-BuildRequires:  trurlib-devel >= 0.42
+BuildRequires: trurlib-devel >= 0.431
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 poldek is a cmdline tool which can be used to verify, install and
-upgrade given package sets. 
+upgrade given package sets.
+
+%if %{?BOOT:1}%{!?BOOT:0}
+%package BOOT
+Summary:       poldek for bootdisk
+Group:         Applications/System
+
+%description BOOT
+%endif
 
 %prep 
 %setup -q 
 
 %build
-make CFLAGS="$RPM_OPT_FLAGS" all
+%if %{?BOOT:1}%{!?BOOT:0}
+%configure --enable-static --disable-imode
+%{__make}
+mv -f %{name} %{name}-BOOT
+mv -f rpmvercmp rpmvercmp-BOOT
+%{__make} clean
+%endif
+
+%configure 
+%{__make} 
+
+#CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}" all
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_prefix}
+
+%if %{?BOOT:1}%{!?BOOT:0}
+install -d $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin
+install -s %{name}-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin/%{name}
+install -s rpmvercmp-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin/rpmvercmp
+%endif
 
 # no strip cause program's alpha stage and core may be useful
-make install DESTDIR=$RPM_BUILD_ROOT%{_prefix}
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 gzip -9nf README* *sample* poldek.1
 
@@ -39,6 +64,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/%{name}*
 %doc README* *sample*
+
+%if %{?BOOT:1}%{!?BOOT:0}
+%files BOOT
+%defattr(644,root,root,755)
+%attr(755,root,root) /usr/lib/bootdisk/sbin/*
+%endif
This page took 0.037689 seconds and 4 git commands to generate.