From c8f37fabc6f47bb90067dcbe88cc0ebca285b70f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 2 May 2014 09:22:32 +0100 Subject: [PATCH] Move macros to _rpmconfigdir (RHBZ#1093528). --- ocaml-srpm-macros.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ocaml-srpm-macros.spec b/ocaml-srpm-macros.spec index 7ef9ca7..f6df570 100644 --- a/ocaml-srpm-macros.spec +++ b/ocaml-srpm-macros.spec @@ -8,8 +8,10 @@ # # See also: https://bugzilla.redhat.com/show_bug.cgi?id=1087794 +%global macros_dir %{_rpmconfigdir}/macros.d + Name: ocaml-srpm-macros -Version: 1 +Version: 2 Release: 1%{?dist} Summary: OCaml architecture macros @@ -34,14 +36,17 @@ SRPMS. It does not pull in any other OCaml dependencies. %install -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm -install -m 0644 %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.ocaml-srpm +mkdir -p $RPM_BUILD_ROOT%{macros_dir} +install -m 0644 %{SOURCE0} $RPM_BUILD_ROOT%{macros_dir}/macros.ocaml-srpm %files -%{_sysconfdir}/rpm/macros.ocaml-srpm +%{macros_dir}/macros.ocaml-srpm %changelog +* Fri May 2 2014 Richard W.M. Jones - 2-1 +- Move macros to _rpmconfigdir (RHBZ#1093528). + * Tue Apr 22 2014 Richard W.M. Jones - 1-1 - New package.