Changeset 1149
- Timestamp:
- May 16, 2017, 10:58:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/os2tk45.spec
r1148 r1149 2 2 Name: os2tk45 3 3 Version: 4.5.2 4 Release: 3%{?dist}4 Release: 4%{?dist} 5 5 Group: System Environment/Libraries 6 6 License: IBM 7 7 Vendor: bww bitwise works GmbH 8 8 9 %define github_name os2tk45 10 %define github_url https://github.com/bitwiseworks/%{github_name}/archive 11 %define github_rev 660fdb07c929623bd9043c88f2734f08c741e714 12 13 Source: %{github_name}-%{github_rev}.zip 14 15 BuildRequires: curl zip 16 17 # os2-base 0.0.0-12 sets up BOOK and HELP for UNIXROOT in config.sys 18 Requires: os2-base >= 0.0.0-12 9 %scm_source github https://github.com/bitwiseworks/%{name} 660fdb07c929623bd9043c88f2734f08c741e714 19 10 20 11 # Act like a meta-package and install all essential subpackages 21 12 Requires: %{name}-headers = %{version}-%{release} 22 13 Requires: %{name}-libs = %{version}-%{release} 14 Requires: %{name}-rc = %{version}-%{release} 23 15 Requires: %{name}-books = %{version}-%{release} 24 16 … … 31 23 Summary: IBM OS/2 Developer's Toolkit readme 32 24 BuildArch: noarch 25 # The readme subpackage is required by everybody, so use it as a place for 26 # common dependencies (meta package isn't good for it as it may be not 27 # installed): 28 # - os2-base 0.0.0-12 sets up BOOK/HELP/DPATH for UNIXROOT in config.sys 29 Requires: os2-base >= 0.0.0-12 33 30 34 31 %description readme … … 46 43 Summary: IBM OS/2 Developer's Toolkit libraries 47 44 Requires: %{name}-readme = %{version}-%{release} 48 BuildArch: noarch49 45 50 46 %description libs 51 47 Provides IBM OS/2 Developer's Toolkit library files. 48 49 %package rc 50 Summary: IBM OS/2 Developer's Toolkit resource compilers 51 Requires: %{name}-readme = %{version}-%{release} 52 53 %description rc 54 Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit 55 resource compilers (version 5.xxx and 4.xxx, respectively) are included in this 56 package. 52 57 53 58 %package books … … 60 65 61 66 %prep 62 %if %(sh -c 'if test -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi') 63 %setup -n "%{github_name}-%{github_rev}" -q 64 %else 65 %setup -n "%{github_name}-%{github_rev}" -Tc 66 rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" 67 curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip" 68 unzip "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d .. 69 %endif 67 %scm_setup 70 68 71 69 %build … … 90 88 rm %{buildroot}%{_libdir}/crypto.lib 91 89 90 mkdir -p %{buildroot}%{_bindir} 91 mkdir -p %{buildroot}%{_datadir}/os2/lang 92 93 cp -p bin/rc*.exe %{buildroot}%{_bindir}/ 94 cp -p bin/rcpp.* %{buildroot}%{_bindir}/ 95 cp -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/ 96 92 97 mkdir -p %{buildroot}%{_datadir}/os2/book 93 98 cp -p book/* %{buildroot}%{_datadir}/os2/book/ 94 99 95 100 %files 101 # nothing of its own in the meta-package 96 102 97 103 %files readme … … 105 111 %{_libdir}/*.lib 106 112 113 %files rc 114 %{_bindir}/rc*.exe 115 %{_bindir}/rcpp.* 116 %{_datadir}/os2/lang/rc*.msg 117 107 118 %files books 108 119 %{_datadir}/os2/book/* 109 120 110 121 %post headers 111 if [ "$1" = 1 ] ; then112 # execute only on first install113 122 %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 114 fi115 123 116 124 %postun headers … … 121 129 122 130 %post libs 123 if [ "$1" = 1 ] ; then124 # execute only on first install125 131 %cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL 126 fi127 132 128 133 %postun libs 129 134 if [ "$1" = 0 ] ; then 130 135 # execute only on last uninstall 136 %cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL 131 137 fi 132 138 133 139 %post books 134 if [ "$1" = 1 ] ; then135 # execute only on first install136 140 %cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} c:\config.sys > NUL 137 141 %cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} c:\config.sys > NUL … … 139 143 %cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} c:\config.sys > NUL 140 144 %cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} c:\config.sys > NUL 141 fi142 145 143 146 %postun books … … 152 155 153 156 %changelog 157 * Tue May 16 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-4 158 - Add rc subpackage that contains resource compilers version 4 and 5. 159 - Remove noarch from libs subpackage. 160 - Make libs subpackage properly clean up LIB statement in config.sys. 161 - Update config.sys settings upon each update/reinstall. 162 154 163 * Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3 155 164 - Remove crypto.lib from libs package (conflicts with openssl-devel).
Note:
See TracChangeset
for help on using the changeset viewer.