bochecha pushed to fedorainfinity-backgrounds (f22). "Modernize the spec file a bit (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Jun 1 17:13:54 UTC 2015


From fc8e3517776577168fedab6de4b3b609cde42a53 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha at daitauha.fr>
Date: Sun, 31 May 2015 21:06:28 +0200
Subject: Modernize the spec file a bit

A few changes:
- drop old stuff (%clean, Group, Buildroot, ...)
- simplify the file listing
- use %license

diff --git a/fedorainfinity-backgrounds.spec b/fedorainfinity-backgrounds.spec
index ac6772a..ff03649 100644
--- a/fedorainfinity-backgrounds.spec
+++ b/fedorainfinity-backgrounds.spec
@@ -4,10 +4,8 @@ Release:	10%{?dist}
 Summary:	Fedora Infinity desktop backgrounds
 URL:		http://fedoraproject.org/wiki/Artwork/F8Themes/Infinity
 
-Group:		Applications/Multimedia         
 License:	LGPLv2
 Source0:	desktop-backgrounds-infinity-%{version}.tar.bz2
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 
 %description
@@ -19,7 +17,6 @@ which was the default theme for Fedora 8.
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 # copy image files
 mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/backgrounds/infinity
 cp -a $RPM_BUILD_DIR/desktop-backgrounds-infinity-%{version}/*.png \
@@ -33,18 +30,10 @@ cp -a $RPM_BUILD_DIR/desktop-backgrounds-infinity-%{version}/desktop-backgrounds
 	$RPM_BUILD_ROOT/%{_prefix}/share/gnome-background-properties
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
-%doc COPYING
-%dir %{_datadir}/backgrounds/infinity
-%{_datadir}/backgrounds/infinity/*.png
-%{_datadir}/backgrounds/infinity/infinity.xml
-%dir %{_datadir}/gnome-background-properties
-%{_datadir}/gnome-background-properties/desktop-backgrounds-infinity.xml
+%license COPYING
+%{_datadir}/backgrounds/infinity
+%{_datadir}/gnome-background-properties
 
 
 %changelog
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fedorainfinity-backgrounds.git/commit/?h=f22&id=fc8e3517776577168fedab6de4b3b609cde42a53


More information about the scm-commits mailing list