[generic-release/f19] Put the macro file in the correct directory

Bruno Wolff III bruno at fedoraproject.org
Sun Mar 9 14:54:33 UTC 2014


commit d75726f38fa49751e1aff42952f511415e58e2c6
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sun Mar 9 09:54:09 2014 -0500

    Put the macro file in the correct directory

 generic-release.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/generic-release.spec b/generic-release.spec
index 77f534c..e9e450b 100644
--- a/generic-release.spec
+++ b/generic-release.spec
@@ -4,7 +4,7 @@
 Summary:	Generic release files
 Name:		generic-release
 Version:	19
-Release:	3
+Release:	4
 License:	GPLv2
 Group:		System Environment/Base
 Source:		%{name}-%{version}.tar.gz
@@ -96,8 +96,8 @@ for file in fedora*repo ; do
 done
 
 # Set up the dist tag macros
-install -d -m 755 $RPM_BUILD_ROOT/etc/rpm
-cat >> $RPM_BUILD_ROOT/etc/rpm/macros.dist << EOF
+install -d -m 755 $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
+cat >> $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.dist << EOF
 # dist macros.
 
 %%fedora		%{dist_version}
@@ -121,7 +121,7 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) /etc/yum.repos.d/fedora-updates*.repo
 %config(noreplace) %attr(0644,root,root) /etc/issue
 %config(noreplace) %attr(0644,root,root) /etc/issue.net
-%attr(0644,root,root) /etc/rpm/macros.dist
+%attr(0644,root,root) %{_rpmconfigdir}/macros.d/macros.dist
 %dir /etc/pki/rpm-gpg
 /etc/pki/rpm-gpg/*
 
@@ -134,6 +134,9 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) /etc/yum.repos.d/fedora-rawhide.repo
 
 %changelog
+* Sun Mar 09 2014 Bruno Wolff III <bruno at wolff.to> - 19-4
+- Put the macro file in the correct directory
+
 * Sat Dec 21 2013 Bruno Wolff III <bruno at wolff.to> - 19-3
 - Changed to work with recent yum change (bug 1040607)
 


More information about the scm-commits mailing list