Changeset 1149


Ignore:
Timestamp:
May 16, 2017, 10:58:48 PM (8 years ago)
Author:
dmik
Message:

spec: os2tk45: Release version 4.5.2-4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/os2tk45.spec

    r1148 r1149  
    22Name: os2tk45
    33Version: 4.5.2
    4 Release: 3%{?dist}
     4Release: 4%{?dist}
    55Group: System Environment/Libraries
    66License: IBM
    77Vendor: bww bitwise works GmbH
    88
    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
    1910
    2011# Act like a meta-package and install all essential subpackages
    2112Requires: %{name}-headers = %{version}-%{release}
    2213Requires: %{name}-libs = %{version}-%{release}
     14Requires: %{name}-rc = %{version}-%{release}
    2315Requires: %{name}-books = %{version}-%{release}
    2416
     
    3123Summary: IBM OS/2 Developer's Toolkit readme
    3224BuildArch: 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
     29Requires: os2-base >= 0.0.0-12
    3330
    3431%description readme
     
    4643Summary: IBM OS/2 Developer's Toolkit libraries
    4744Requires: %{name}-readme = %{version}-%{release}
    48 BuildArch: noarch
    4945
    5046%description libs
    5147Provides IBM OS/2 Developer's Toolkit library files.
     48
     49%package rc
     50Summary: IBM OS/2 Developer's Toolkit resource compilers
     51Requires: %{name}-readme = %{version}-%{release}
     52
     53%description rc
     54Provides IBM OS/2 Developer's Toolkit resource compilers. Both 32-bit and 16-bit
     55resource compilers (version 5.xxx and 4.xxx, respectively) are included in this
     56package.
    5257
    5358%package books
     
    6065
    6166%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
    7068
    7169%build
     
    9088rm %{buildroot}%{_libdir}/crypto.lib
    9189
     90mkdir -p %{buildroot}%{_bindir}
     91mkdir -p %{buildroot}%{_datadir}/os2/lang
     92
     93cp -p bin/rc*.exe %{buildroot}%{_bindir}/
     94cp -p bin/rcpp.* %{buildroot}%{_bindir}/
     95cp -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/
     96
    9297mkdir -p %{buildroot}%{_datadir}/os2/book
    9398cp -p book/* %{buildroot}%{_datadir}/os2/book/
    9499
    95100%files
     101# nothing of its own in the meta-package
    96102
    97103%files readme
     
    105111%{_libdir}/*.lib
    106112
     113%files rc
     114%{_bindir}/rc*.exe
     115%{_bindir}/rcpp.*
     116%{_datadir}/os2/lang/rc*.msg
     117
    107118%files books
    108119%{_datadir}/os2/book/*
    109120
    110121%post headers
    111 if [ "$1" = 1 ] ; then
    112 # execute only on first install
    113122%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 fi
    115123
    116124%postun headers
     
    121129
    122130%post libs
    123 if [ "$1" = 1 ] ; then
    124 # execute only on first install
    125131%cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
    126 fi
    127132
    128133%postun libs
    129134if [ "$1" = 0 ] ; then
    130135# execute only on last uninstall
     136%cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
    131137fi
    132138
    133139%post books
    134 if [ "$1" = 1 ] ; then
    135 # execute only on first install
    136140%cube {REPLINE "SET CPREF=" WITH "SET CPREF=CP1.INF+CP2.INF+CP3.INF" (ADDBOTTOM} c:\config.sys > NUL
    137141%cube {REPLINE "SET GPIREF=" WITH "SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF" (ADDBOTTOM} c:\config.sys > NUL
     
    139143%cube {REPLINE "SET PMREF=" WITH "SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF" (ADDBOTTOM} c:\config.sys > NUL
    140144%cube {REPLINE "SET WPSREF=" WITH "SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF" (ADDBOTTOM} c:\config.sys > NUL
    141 fi
    142145
    143146%postun books
     
    152155
    153156%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
    154163* Thu Feb 4 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-3
    155164- Remove crypto.lib from libs package (conflicts with openssl-devel).
Note: See TracChangeset for help on using the changeset viewer.