add rpm macro to use in spec files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/strip-nondeterminism?expand=0&rev=6
This commit is contained in:
parent
7be7ffa194
commit
7ad528c53f
9
rpmmacros
Normal file
9
rpmmacros
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# use as
|
||||||
|
# %if 0%?have_strip_nondeterminism > 0
|
||||||
|
# %strip_nondeterminism path/to/file.zip
|
||||||
|
# %endif
|
||||||
|
|
||||||
|
%have_strip_nondeterminism 1
|
||||||
|
%strip_nondeterminism() \
|
||||||
|
strip-nondeterminism %{?*} \
|
||||||
|
%{nil}
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 7 09:47:22 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- add rpm macro to use in spec files
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 1 00:00:51 UTC 2017 - bwiedemann@suse.com
|
Sun Jan 1 00:00:51 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ License: GPL-3.0+
|
|||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git
|
Url: https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git
|
||||||
Source: http://http.debian.net/debian/pool/main/s/strip-nondeterminism/strip-nondeterminism_%{version}.orig.tar.gz
|
Source: http://http.debian.net/debian/pool/main/s/strip-nondeterminism/strip-nondeterminism_%{version}.orig.tar.gz
|
||||||
|
Source2: rpmmacros
|
||||||
# PATCH-FIX-OPENSUSE - apk files misdetected as OOXML
|
# PATCH-FIX-OPENSUSE - apk files misdetected as OOXML
|
||||||
Patch0: strip-nondeterminism-0.029-fix-apk.patch
|
Patch0: strip-nondeterminism-0.029-fix-apk.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -58,6 +59,8 @@ and the strip-nondeterminism command line utility.
|
|||||||
%{__make} test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
mkdir -p %buildroot/etc/rpm/
|
||||||
|
install -p %{SOURCE2} %buildroot/etc/rpm/macros.strip-nondeterminism
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
@ -65,5 +68,6 @@ and the strip-nondeterminism command line utility.
|
|||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc README TODO COPYING
|
%doc README TODO COPYING
|
||||||
|
/etc/rpm/macros.strip-nondeterminism
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user