source: spec/trunk/SPECS/os2-rpm.spec@ 1129

Last change on this file since 1129 was 1086, checked in by dmik, 9 years ago

spec: os2-rpm: Release version 0-1.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1Summary: OS/2 specific RPM macros and scripts
2Name: os2-rpm
3Version: 0
4Release: 1%{?dist}
5License: GPLv2+
6Group: Development/System
7Vendor: bww bitwise works GmbH
8
9BuildArch: noarch
10
11Requires: rpm >= 4.13.0-15
12Provides: system-rpm-config = %{version}-%{release}
13
14Source0: macros.os2
15Source1: brp-strip-os2
16Source2: find-legacy-runtime.sh
17
18%description
19OS/2 specific RPM macros and scripts neecessary to install RPM packages on
20the OS/2 operating system.
21
22%package build
23Summary: OS/2 specific RPM macros and scripts to build RPM packages
24Provides: %{name} = %{version}-%{release}
25Requires: rpm-build >= 4.13.0-15
26
27%description build
28OS/2 specific RPM macros and scripts neecessary to build RPM packages for
29the 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
36cp -a %{sources} .
37
38# Note: we put the value of _rpmconfigdir_os2 unexpanded.
39sed -e 's|@RPMCONFIGDIR_OS2@|%%{_rpmconfigdir}/%%{_vendor}|' -i macros.os2
40
41%install
42mkdir -p %{buildroot}%{_rpmconfigdir_os2}
43install -p -m 644 macros.os2 %{buildroot}%{_rpmconfigdir_os2}/macros
44install -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.
Note: See TracBrowser for help on using the repository browser.