Accepting request 727240 from system:install:head
- introduce obsolete_legacy_pattern macro (forwarded request 727003 from lnussel) OBS-URL: https://build.opensuse.org/request/show/727240 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/patterns-rpm-macros?expand=0&rev=5
This commit is contained in:
commit
a8b768fa54
10
macros.patterns
Normal file
10
macros.patterns
Normal file
@ -0,0 +1,10 @@
|
||||
%obsolete_legacy_pattern() \
|
||||
%if 0%{?is_opensuse} \
|
||||
Provides: patterns-openSUSE-%1 = %{version} \
|
||||
Obsoletes: patterns-openSUSE-%1 < %{version} \
|
||||
%else \
|
||||
Provides: patterns-sled-%1 = %{version} \
|
||||
Obsoletes: patterns-sled-%1 < %{version} \
|
||||
Provides: patterns-sles-%1 = %{version} \
|
||||
Obsoletes: patterns-sles-%1 < %{version} \
|
||||
%endif
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 28 15:41:36 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
|
||||
|
||||
- introduce obsolete_legacy_pattern macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 8 09:41:07 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -24,6 +24,7 @@ License: MIT
|
||||
Group: Development/Tools/Other
|
||||
URL: https://github.com/openSUSE/patterns
|
||||
Source0: create_macros
|
||||
Source1: macros.patterns
|
||||
BuildRequires: perl(URI::Escape)
|
||||
BuildArch: noarch
|
||||
|
||||
@ -34,6 +35,7 @@ This package contains SUSE RPM macros to aid creating patterns.
|
||||
|
||||
%build
|
||||
perl %{SOURCE0} > macros.patterns
|
||||
cat %{SOURCE1} >> macros.patterns
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_rpmmacrodir}
|
||||
|
Loading…
Reference in New Issue
Block a user