| 1 | Summary: OS/2 specific RPM macros and scripts
|
|---|
| 2 | Name: os2-rpm
|
|---|
| 3 | Version: 0
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: GPLv2+
|
|---|
| 6 | Group: Development/System
|
|---|
| 7 | Vendor: bww bitwise works GmbH
|
|---|
| 8 |
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 |
|
|---|
| 11 | Requires: rpm >= 4.13.0-15
|
|---|
| 12 | Provides: system-rpm-config = %{version}-%{release}
|
|---|
| 13 |
|
|---|
| 14 | Source0: macros.os2
|
|---|
| 15 | Source1: brp-strip-os2
|
|---|
| 16 | Source2: find-legacy-runtime.sh
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | OS/2 specific RPM macros and scripts neecessary to install RPM packages on
|
|---|
| 20 | the OS/2 operating system.
|
|---|
| 21 |
|
|---|
| 22 | %package build
|
|---|
| 23 | Summary: OS/2 specific RPM macros and scripts to build RPM packages
|
|---|
| 24 | Provides: %{name} = %{version}-%{release}
|
|---|
| 25 | Requires: rpm-build >= 4.13.0-15
|
|---|
| 26 |
|
|---|
| 27 | %description build
|
|---|
| 28 | OS/2 specific RPM macros and scripts neecessary to build RPM packages for
|
|---|
| 29 | the OS/2 operating system.
|
|---|
| 30 |
|
|---|
| 31 | %global _rpmconfigdir_os2 %{_rpmconfigdir}/%{_vendor}
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | # Move all sources to build subdir to reference them by name instead of SOURCEx
|
|---|
| 35 | %setup -c -T
|
|---|
| 36 | cp -a %{sources} .
|
|---|
| 37 |
|
|---|
| 38 | # Note: we put the value of _rpmconfigdir_os2 unexpanded.
|
|---|
| 39 | sed -e 's|@RPMCONFIGDIR_OS2@|%%{_rpmconfigdir}/%%{_vendor}|' -i macros.os2
|
|---|
| 40 |
|
|---|
| 41 | %install
|
|---|
| 42 | mkdir -p %{buildroot}%{_rpmconfigdir_os2}
|
|---|
| 43 | install -p -m 644 macros.os2 %{buildroot}%{_rpmconfigdir_os2}/macros
|
|---|
| 44 | install -p -m 644 -t %{buildroot}%{_rpmconfigdir_os2} brp-strip-os2 find-legacy-runtime.sh
|
|---|
| 45 |
|
|---|
| 46 | %files
|
|---|
| 47 | # TODO WPS and WarpIn scripts will move here from rpm
|
|---|
| 48 |
|
|---|
| 49 | %files build
|
|---|
| 50 | %dir %{_rpmconfigdir_os2}
|
|---|
| 51 | %{_rpmconfigdir_os2}/macros
|
|---|
| 52 | %{_rpmconfigdir_os2}/brp-strip-os2
|
|---|
| 53 | %{_rpmconfigdir_os2}/find-legacy-runtime.sh
|
|---|
| 54 |
|
|---|
| 55 | %changelog
|
|---|
| 56 | * Thu Apr 6 2017 Dmitriy Kuminov <coding@dmik.org> 0-1
|
|---|
| 57 | - Initial release.
|
|---|