]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - template.spec
- adjusted noarch subpackage rules and some descriptions, more pl
[projects/template-specs.git] / template.spec
index bd869a320be2cacd3d7a321ed2db8934d3097888..6e64c3e3301604b4e195342062b39c3d4a673f30 100644 (file)
@@ -11,12 +11,15 @@ Release:    0.1
 License:       - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
 Group:         Applications
 # SF URL: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# github URL https://github.com/USER/PROJECT/archive/v%{version}/%{name}-%{version}.tar.gz
 Source0:       %{name}-%{version}.tar.gz
 # Source0-md5: -
 #Source1:      -
 # Source1-md5: -
 #Patch0:               %{name}-DESTDIR.patch
 URL:           -
+# if using noarchpackage macro
+#BuildRequires:        rpmbuild(macros) >= 1.752
 %if %{with initscript}
 BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  /sbin/chkconfig
@@ -53,10 +56,7 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Summary:       -
 Summary(pl.UTF-8):     -
 Group:         -
-# noarch subpackages only when building with rpm5
-%if "%{_rpmversion}" >= "5"
-BuildArch:     noarch
-%endif
+%{?noarchpackage}
 
 %description subpackage
 
This page took 0.171468 seconds and 4 git commands to generate.