From 5ff04ff8aac384f9fb49d7164b05e27eff02459f62d8f36903d85d3d95f1d327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Mon, 2 Jul 2018 14:53:41 +0000 Subject: [PATCH] - Initial split of RPM vendor configuration from rpm package OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm-config-SUSE?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + rpm-config-SUSE-0.tar.gz | 3 ++ rpm-config-SUSE.changes | 5 +++ rpm-config-SUSE.spec | 82 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 rpm-config-SUSE-0.tar.gz create mode 100644 rpm-config-SUSE.changes create mode 100644 rpm-config-SUSE.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/rpm-config-SUSE-0.tar.gz b/rpm-config-SUSE-0.tar.gz new file mode 100644 index 0000000..9de9f4e --- /dev/null +++ b/rpm-config-SUSE-0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac84fff2b15df3638f0f3911d7ff17ee0a72f3a01118fa5ffc5b6d30c375b494 +size 16597 diff --git a/rpm-config-SUSE.changes b/rpm-config-SUSE.changes new file mode 100644 index 0000000..f3fe8f3 --- /dev/null +++ b/rpm-config-SUSE.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 26 03:48:20 UTC 2018 - Neal Gompa + +- Initial split of RPM vendor configuration from rpm package + diff --git a/rpm-config-SUSE.spec b/rpm-config-SUSE.spec new file mode 100644 index 0000000..0d9844d --- /dev/null +++ b/rpm-config-SUSE.spec @@ -0,0 +1,82 @@ +# +# spec file for package rpm-config-SUSE +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 Neal Gompa . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +Name: rpm-config-SUSE +Version: 0 +Release: 0 +Summary: SUSE specific RPM configuration files +License: GPL-2.0-or-later +Group: System/Packages +URL: https://github.com/openSUSE/rpm-config-SUSE +Source: %{name}-%{version}.tar.gz + +# RPM owns the directories we need +Requires: rpm + +BuildArch: noarch + +%description +This package contains the RPM configuration data for the SUSE Linux +distribution family. + +%prep +%setup -q + +%build +# Set up the SUSE Linux version macros +sed -e 's/@suse_version@/%{?suse_version}%{!?suse_version:0}/' \ + -e 's/@sles_version@/%{?sles_version}%{!?sles_version:0}/' \ + -e 's/@ul_version@/%{?ul_version}%{!?ul_version:0}/' \ + -e '/@is_opensuse@%{?is_opensuse:nomatch}/d' \ + -e 's/@is_opensuse@/%{?is_opensuse}%{!?is_opensuse:0}/' \ + -e '/@leap_version@%{?leap_version:nomatch}/d' \ + -e 's/@leap_version@/%{?leap_version}%{!?leap_version:0}/' \ +%if 0%{?is_opensuse} + -e '/@sle_version@%{?sle_version:nomatch}/d' \ + -e 's/@sle_version@/%{?sle_version}%{!?sle_version:0}/' \ +%else + -e '/@sle_version@/d' \ +%endif + < suse_macros.in > suse_macros + +%install +# Install SUSE vendor macros and rpmrc +mkdir -p %{buildroot}%{_rpmconfigdir}/suse +cp -a suse_macros %{buildroot}%{_rpmconfigdir}/suse/macros + +# Install vendor dependency generators +cp -a fileattrs %{buildroot}%{_rpmconfigdir} +cp -a scripts/* %{buildroot}%{_rpmconfigdir} +cp -a macros.d %{buildroot}%{_rpmconfigdir} + +%files +%license COPYING +%doc README.md +%{_rpmconfigdir}/suse/ +%{_rpmconfigdir}/macros.d/macros.* +%{_rpmconfigdir}/fileattrs/* +%{_rpmconfigdir}/brp-suse +%{_rpmconfigdir}/firmware.prov +%{_rpmconfigdir}/sysvinitdeps.sh +# kmod deps +%{_rpmconfigdir}/find-provides.ksyms +%{_rpmconfigdir}/find-requires.ksyms +%{_rpmconfigdir}/find-supplements.ksyms + +%changelog