Accepting request 701538 from home:dimstar:Factory

Move RPM macros to %_rpmmacrodir.

OBS-URL: https://build.opensuse.org/request/show/701538
OBS-URL: https://build.opensuse.org/package/show/system:install:head/patterns-rpm-macros?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2019-05-10 09:15:10 +00:00 committed by Git OBS Bridge
parent 16ebf89edb
commit bab301a4f6
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 8 09:41:07 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
- Move RPM macros to %_rpmmacrodir.
-------------------------------------------------------------------
Thu Jun 14 16:35:38 UTC 2018 - avvissu@yandex.by

View File

@ -1,7 +1,7 @@
#
# spec file for package python-rpm-macros
# spec file for package patterns-rpm-macros
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -22,25 +22,25 @@ Release: 0
Summary: RPM macros for building of patterns modules
License: MIT
Group: Development/Tools/Other
Url: https://github.com/openSUSE/patterns
URL: https://github.com/openSUSE/patterns
Source0: create_macros
BuildRequires: perl(URI::Escape)
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains SUSE RPM macros to aid creating patterns.
%prep
%build
perl %{S:0} > macros.patterns
perl %{SOURCE0} > macros.patterns
%install
mkdir -p %{buildroot}%{_sysconfdir}/rpm
install -m 644 macros.patterns %{buildroot}%{_sysconfdir}/rpm
mkdir -p %{buildroot}%{_rpmmacrodir}
install -m 644 macros.patterns %{buildroot}%{_rpmmacrodir}
%files
%defattr(-,root,root)
%{_sysconfdir}/rpm/macros.patterns
%{_rpmmacrodir}/macros.patterns
%changelog