[skychart] Make doc package platform independent by building it as noarch Remove unneeded buildroot and files d

mattia mattia at fedoraproject.org
Sat Apr 6 09:27:45 UTC 2013


commit 9e2a921b417cf1db1830d4d187f9b9e656c34d1f
Author: Mattia Verga <mattia.verga at tiscali.it>
Date:   Sat Apr 6 09:25:45 2013 +0200

    Make doc package platform independent by building it as noarch
    Remove unneeded buildroot and files declarations as of more recent guidelines

 skychart.spec |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/skychart.spec b/skychart.spec
index 7992a66..1d368c6 100644
--- a/skychart.spec
+++ b/skychart.spec
@@ -2,7 +2,7 @@
 
 Name: skychart
 Version: 3.8
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Planetarium software for the advanced amateur astronomer
 
 Group: Amusements/Graphics
@@ -49,7 +49,8 @@ atlas more complete than a conventional planetarium.
 Summary:        Documentation files for Skychart
 Group:          Documentation
 License:        CC-BY-SA or GFDL
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+Requires:       %{name} = %{version}-%{release}
+BuildArch:      noarch
 
 %description doc
 Documentation files from the official Skychart wiki provided
@@ -85,8 +86,6 @@ make %{_smp_mflags} arch_flags="%{optflags}" -C skychart/library/wcs
 make # not concurrency-safe
 
 %install
-rm -rf %{buildroot}
-
 # Install main program
 make install PREFIX=%{buildroot}%{_prefix}
 
@@ -107,7 +106,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/skychart.desktop
 
 
 %files
-%defattr(-,root,root,-)
 %doc skychart/gpl.txt
 %{_bindir}/*
 %{_libdir}/*.so
@@ -124,7 +122,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/skychart.desktop
 %exclude /usr/share/doc/skychart/copyright
 
 %files doc
-%defattr(-,root,root,-)
 %doc %{_datadir}/skychart/doc/wiki_doc
 
 %post
@@ -143,6 +140,10 @@ fi
 
 
 %changelog
+* Sat Apr 06 2013 Mattia Verga <mattia.verga at tiscali.it> - 3.8-2
+- Make doc package platform independent
+- Remove unneeded buildroot and files declarations
+
 * Sat Mar 16 2013 Mattia Verga <mattia.verga at tiscali.it> - 3.8-1
 - Update to 3.8
 - Requires Lazarus >= 1.0.4


More information about the scm-commits mailing list