Hi

I want to cleanup a little rc-boot.spec and all relative specs.

rc-boot has "R: bootloader" but bootloader is not enough for rc-boot. It need 
also functions which supports chosen bootloader.
This functions are in separate packages (rc-boot-lilo, rc-boot-grub, 
rc-boot-yaboot) which has "R:" for specific bootloader.

So I want to remove "R: bootloader" from rc-boot.spec, put there "R: 
rc-boot-bootloader" and to all packages with functions put "P: 
rc-boot-bootloader".

Also all Conflicts (C: lilo < 22.0.2-2, C: grub < 0.90-2) from rc-boot should 
be moved to packages with functions (rc-boot-lilo, rc-boot-grub).

After removing "R: bootloader" from rc-boot.spec, "P: bootloader" in all 
bootloaders will become useless becouse only rc-boot uses this provides.
But I think this Provide should stay for future.


What all this changes gives:
- rc-boot after install will be usable (becouse for example it will require 
rc-boot-lilo, which require lilo)
- require just bootloader was stupid becouse many bootloaders has "P: 
bootloader" but only 3 has functions with support for rc-boot
- you can install rc-boot and lilo < 22.0.2-2 or grub < 0.90-2 but without a 
support for rc-boot :P:P:P

Any objections?

Changes in attachments.

-- 
Regards, Kamil Dziedzic
--- grub.spec	19 Feb 2007 08:19:28 -0000	1.114
+++ grub.spec	5 Jan 2008 19:45:31 -0000
@@ -141,8 +141,10 @@
 Summary:	grub support for rc-boot
 Summary(pl.UTF-8):	Wsparcie gruba dla rc-boot
 Group:		Base
-Requires:	rc-boot
 Requires:	%{name} = %{version}-%{release}
+Requires:	rc-boot
+Provides:	rc-boot-bootloader
+Conflicts:	grub < 0.90-2
 
 %description -n rc-boot-grub
 grub support for rc-boot.
--- rc-boot.spec	5 Jan 2008 13:58:24 -0000	1.29
+++ rc-boot.spec	5 Jan 2008 19:45:53 -0000
@@ -12,11 +12,8 @@
 # Source0-md5:	2a6e4d604d938ab7567e419c21725d88
 Source1:	PLD.image
 Patch0:		%{name}-prefer-PLD.patch
-Requires:	bootloader
+Requires:	rc-boot-bootloader
 Requires:	sed
-Suggests:	rc-boot-lilo
-Conflicts:	grub < 0.90-2
-Conflicts:	lilo < 22.0.2-2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,7 +46,7 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/images,%{_mandir}/man8}
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-boot/images/PLD
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/images/PLD
 
 install src/rc-boot	$RPM_BUILD_ROOT/sbin
 install doc/config	$RPM_BUILD_ROOT%{_sysconfdir}
@@ -75,7 +72,7 @@
 
 %files -n rc-boot-image-PLD
 %defattr(644,root,root,755)
-%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-boot/images/PLD
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/images/PLD
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -214,4 +211,3 @@
 Revision 1.1.1.1  2001/02/07 12:54:03  dobrek
 - Initial import.
 - Some documentation in rc-boot/doc
-
--- lilo.spec	2 Jun 2007 22:23:32 -0000	1.152
+++ lilo.spec	5 Jan 2008 19:44:49 -0000
@@ -13,7 +13,7 @@
 Summary(zh_CN.UTF-8):	Linux 和其它系统的引导模块。
 Name:		lilo
 Version:	22.8
-Release:	3
+Release:	4
 Epoch:		2
 License:	BSD
 Group:		Applications/System
@@ -93,8 +93,10 @@
 Summary:	lilo support for rc-boot
 Summary(pl.UTF-8):	Wsparcie lilo dla rc-boot
 Group:		Base
-Requires:	rc-boot
 Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	rc-boot
+Provides:	rc-boot-bootloader
+Conflicts:	lilo < 22.0.2-2
 
 %description -n rc-boot-lilo
 lilo support for rc-boot.
@@ -643,40 +645,3 @@
 
 Revision 1.12  1999/07/12 23:06:06  kloczek
 - added using CVS keywords in %changelog (for automating them).
-
-* Sun Mar 14 1999 Michał Kuratczyk <[EMAIL PROTECTED]>
-  [0.21-4]
-- gzipping instead bzipping
-
-* Wed Mar 12 1999 Tomasz Kłoczko <[EMAIL PROTECTED]>
-  [0.21-3]
-- do not compress QuickInst,
-- removed man group from man pages.
-
-* Sat Mar 06 1999 Wojtek Ślusarczyk <[EMAIL PROTECTED]>
-- added Group(pl),
-- commpressed man pages && documentation (QuickInst script too ..),
-- fixed permissions,
-- build with optimization,
-- cleaning up spec.
-
-* Fri Mar 5 1999 Jacek Smyda <[EMAIL PROTECTED]>
-- change permission for lilo.conf
-
-* Sat Dec  7 1998 Tomasz Kłoczko <[EMAIL PROTECTED]>
-  [0.20-4]
-- removed doc/* from %doc,
-- added lilo(8) and lilo.conf(5) man pages (moved from man-pages
-  package).
-
-* Sun Nov  8 1998 Tomasz Kłoczko <[EMAIL PROTECTED]>
-  [0.20-3]
-- changed permission of lilo to 750,
-- removed doc/* from %doc,
-
-* Mon Jun 15 1998 Wojtek Ślusarczyk <[EMAIL PROTECTED]>
-- added pl translation,
-- changed permission of lilo to 711,
-- moved %changelog at the end of spec,
-- build against GNU libc-2.1,
-- start at RH spec.
--- yaboot.spec	5 Jan 2008 19:31:28 -0000	1.31
+++ yaboot.spec	5 Jan 2008 19:41:12 -0000
@@ -49,6 +49,7 @@
 Group:		Base
 Requires:	%{name} = %{version}-%{release}
 Requires:	rc-boot
+Provides:	rc-boot-bootloader
 
 %description -n rc-boot-yaboot
 yaboot support for rc-boot.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to