[Fwd: rpms/fedora-release-notes/F-11 fedora-release-notes.spec,1.36,1.37]

Paul W. Frields stickster at gmail.com
Wed Apr 29 23:26:43 UTC 2009


Spot,

Is this a kosher change?  A contributor brought it to Fedora Docs but
I can't tell to what extent anyone checked packaging guidelines.  No
bug was filed and there's no ML traffic about it.

Upshot is, using hardlink to save very significant space.  I only
found this draft, and no sign that it's approved or that the usage
below is explicitly forbidden, so I'm assuming it's peachy keen.

https://fedoraproject.org/wiki/PackagingDrafts/HardLinks

Paul


----- Forwarded message from Lubomir Rintel <lkundrak at fedoraproject.org> -----

Date: Wed, 29 Apr 2009 19:12:19 +0000 (UTC)
From: Lubomir Rintel <lkundrak at fedoraproject.org>
To: cvsextras at fedoraproject.org,
	fedora-release-notes-owner at fedoraproject.org
Subject: rpms/fedora-release-notes/F-11 fedora-release-notes.spec,1.36,1.37

Author: lkundrak

Update of /cvs/pkgs/rpms/fedora-release-notes/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5352

Modified Files:
	fedora-release-notes.spec 
Log Message:
* Wed Apr 29 2009 Lubomir Rintel <lkundrak at v3.sk> - 10.93.0-2
- Hardlink duplicate files to save space



Index: fedora-release-notes.spec
===================================================================
RCS file: /cvs/pkgs/rpms/fedora-release-notes/F-11/fedora-release-notes.spec,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -p -r1.36 -r1.37
--- fedora-release-notes.spec	21 Apr 2009 20:40:12 -0000	1.36
+++ fedora-release-notes.spec	29 Apr 2009 19:11:49 -0000	1.37
@@ -11,7 +11,7 @@
 
 Name:		fedora-release-notes
 Version:	10.93.0
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Release Notes for Fedora 11
 URL:		http://fedoraproject.org/wiki/Docs/Beats
 
@@ -29,6 +29,7 @@ BuildArch:	noarch
 BuildRequires:	desktop-file-utils
 BuildRequires:	publican
 BuildRequires:	publican-fedora
+BuildRequires:	hardlink
 
 %if %{HTMLVIEW}
 Requires:	htmlview
@@ -148,6 +149,10 @@ install -m 644 about-*omf $RPM_BUILD_ROO
 install -m 644 -D about-gnome.desktop $RPM_BUILD_ROOT%{_datadir}/applications/about-fedora.desktop
 popd
 
+# There are lot of duplicate files, save space by hardlinking them
+hardlink -cv $RPM_BUILD_ROOT%{_datadir}/doc
+hardlink -cv $RPM_BUILD_ROOT%{_datadir}/gnome
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -174,6 +179,9 @@ if [ -x /usr/bin/update-desktop-database
 
 
 %changelog
+* Wed Apr 29 2009 Lubomir Rintel <lkundrak at v3.sk> - 10.93.0-2
+- Hardlink duplicate files to save space
+
 * Tue Apr 14 2009 John J. McDonough <jjmcd at fedoraproject.org> - 10.93.0-1
 - Use publican for F11 Preview release
 


----- End forwarded message -----




More information about the docs mailing list