Changeset 649 for spec/trunk/SPECS/os2tk45.spec
- Timestamp:
- Jan 27, 2016, 10:13:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/os2tk45.spec
r648 r649 2 2 Name: os2tk45 3 3 Version: 4.5.2 4 Release: 1%{?dist}4 Release: 2%{?dist} 5 5 Group: System Environment/Libraries 6 6 License: IBM … … 20 20 # Act like a meta-package and install all essential subpackages 21 21 Requires: %{name}-headers = %{version} 22 Requires: %{name}-libs = %{version} 22 23 Requires: %{name}-books = %{version} 23 24 … … 41 42 %description headers 42 43 Provides IBM OS/2 Developer's Toolkit header files. 44 45 %package libs 46 Summary: IBM OS/2 Developer's Toolkit libraries 47 Requires: %{name}-readme = %{version}-%{release} 48 BuildArch: noarch 49 50 %description libs 51 Provides IBM OS/2 Developer's Toolkit library files. 43 52 44 53 %package books … … 68 77 # copy inc directory inside to avoid one more dir under include 69 78 cp -pR inc %{buildroot}%{_includedir}/os2tk45/ 79 # remove LIBC stuff, will go to a separate subpackage one day 80 rm -rf %{buildroot}%{_includedir}/os2tk45/libc 70 81 # remove SOM stuff, it will go to a separate subpackage one day 71 82 rm %{buildroot}%{_includedir}/os2tk45/wincfg.*h 72 83 rm %{buildroot}%{_includedir}/os2tk45/wp*.*h 84 85 mkdir -p %{buildroot}%{_libdir} 86 cp -pR lib/* %{buildroot}%{_libdir}/ 87 # remove LIBC stuff, will go to a separate subpackage one day 88 rm %{buildroot}%{_libdir}/libc*.lib 73 89 74 90 mkdir -p %{buildroot}%{_datadir}/os2/book … … 84 100 %{_includedir}/os2tk45 85 101 102 %files libs 103 %{_libdir}/*.lib 104 86 105 %files books 87 106 %{_datadir}/os2/book/* … … 90 109 if [ "$1" = 1 ] ; then 91 110 # execute only on first install 92 %cube {ADDSTRING "%UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45; %UNIXROOT%\usr\include\os2tk45\libc;" IN "SET INCLUDE=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL111 %cube {ADDSTRING "%UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45;" IN "SET INCLUDE=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL 93 112 fi 94 113 … … 96 115 if [ "$1" = 0 ] ; then 97 116 # execute only on last uninstall 98 %cube {DELSTRING "%UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45;%UNIXROOT%\usr\include\os2tk45\libc;" IN "SET INCLUDE=" (FIRST} c:\config.sys > NUL 117 %cube {DELSTRING "%UNIXROOT%\usr\include\os2tk45\inc;%UNIXROOT%\usr\include\os2tk45\gl;%UNIXROOT%\usr\include\os2tk45;" IN "SET INCLUDE=" (FIRST RS(%%)} c:\config.sys > NUL 118 fi 119 120 %post libs 121 if [ "$1" = 1 ] ; then 122 # execute only on first install 123 %cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL 124 fi 125 126 %postun libs 127 if [ "$1" = 0 ] ; then 128 # execute only on last uninstall 99 129 fi 100 130 … … 120 150 121 151 %changelog 152 * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-2 153 - Add libs package. 154 - Remove LIBC related files from headers and libraries. 155 122 156 * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1 123 157 - Initial package for Toolkit version 4.5.2.
Note:
See TracChangeset
for help on using the changeset viewer.