Ignore:
Timestamp:
Jul 28, 2017, 6:52:53 PM (8 years ago)
Author:
dmik
Message:

spec: os2tk45: Release version 4.5.2-6.

File:
1 edited

Legend:

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

    r1190 r1209  
    22Name: os2tk45
    33Version: 4.5.2
    4 Release: 5%{?dist}
     4Release: 6%{?dist}
    55Group: System Environment/Libraries
    66License: IBM
     
    88
    99%scm_source github https://github.com/bitwiseworks/%{name} 660fdb07c929623bd9043c88f2734f08c741e714
     10
     11%global os2_ipfcdir %{_datadir}/os2/ipfc
     12%global os2tk45_includedir %{_includedir}/os2tk45
    1013
    1114# Act like a meta-package and install all essential subpackages
     
    1316Requires: %{name}-libs = %{version}-%{release}
    1417Requires: %{name}-rc = %{version}-%{release}
     18Requires: %{name}-utils = %{version}-%{release}
    1519Requires: %{name}-books = %{version}-%{release}
     20
     21# For os2_dos_path, os2_langdir etc. macros
     22Requires: os2-rpm >= 0-4
    1623
    1724%description
     
    5663package.
    5764
     65%package utils
     66Summary: IBM OS/2 Developer's Toolkit utilities
     67Requires: %{name}-readme = %{version}-%{release}
     68
     69%description utils
     70Provides IBM OS/2 Developer's Toolkit utility programs.
     71
     72%package ipfc
     73Summary: IBM OS/2 Developer's Toolkit IPFC tool
     74Requires: %{name}-readme = %{version}-%{release}
     75
     76%description ipfc
     77Provides IBM OS/2 Developer's Toolkit Information Presentation Facility tool
     78including the IPF complier and support files.
     79
    5880%package books
    5981Summary: IBM OS/2 Developer's Toolkit books
     
    7193%install
    7294
    73 %{__mkdir_p} %{buildroot}%{_includedir}/os2tk45
    74 %{__cp} -pR h/* %{buildroot}%{_includedir}/os2tk45/
     95%{__mkdir_p} %{buildroot}%{os2tk45_includedir}
     96%{__cp} -pR h/* %{buildroot}%{os2tk45_includedir}
    7597# copy inc directory inside to avoid one more dir under include
    76 %{__cp} -pR inc %{buildroot}%{_includedir}/os2tk45/
     98%{__cp} -pR inc %{buildroot}%{os2tk45_includedir}
    7799# remove LIBC stuff, will go to a separate subpackage one day
    78 %{__rm} -rf %{buildroot}%{_includedir}/os2tk45/libc
     100%{__rm} -rf %{buildroot}%{os2tk45_includedir}/libc
    79101# remove SOM stuff, it will go to a separate subpackage one day
    80 %{__rm} %{buildroot}%{_includedir}/os2tk45/wincfg.*h
    81 %{__rm} %{buildroot}%{_includedir}/os2tk45/wp*.*h
     102%{__rm} %{buildroot}%{os2tk45_includedir}/wincfg.*h
     103%{__rm} %{buildroot}%{os2tk45_includedir}/wp*.*h
    82104
    83105%{__mkdir_p} -p %{buildroot}%{_libdir}
    84 %{__cp} -pR lib/* %{buildroot}%{_libdir}/
     106%{__cp} -pR lib/* %{buildroot}%{_libdir}
    85107# remove LIBC stuff, will go to a separate subpackage one day
    86108%{__rm} %{buildroot}%{_libdir}/libc*.lib
     
    89111
    90112%{__mkdir_p} %{buildroot}%{_bindir}
    91 %{__mkdir_p} %{buildroot}%{_datadir}/os2/lang
    92 
    93 %{__cp} -p bin/rc.exe %{buildroot}%{_bindir}/
    94 %{__cp} -p bin/rc16.exe %{buildroot}%{_bindir}/
    95 %{__cp} -p bin/rcpp.* %{buildroot}%{_bindir}/
    96 %{__cp} -p msg/rc*.msg %{buildroot}%{_datadir}/os2/lang/
    97 %{__cp} -p msg/messages.msg %{buildroot}%{_datadir}/os2/lang/
    98 
    99 %{__mkdir_p} %{buildroot}%{_datadir}/os2/book
    100 %{__cp} -p book/* %{buildroot}%{_datadir}/os2/book/
     113%{__mkdir_p} %{buildroot}%{os2_langdir}
     114
     115# rc
     116%{__cp} -p bin/rc.exe %{buildroot}%{_bindir}
     117%{__cp} -p bin/rc16.exe %{buildroot}%{_bindir}
     118%{__cp} -p bin/rcpp.* %{buildroot}%{_bindir}
     119%{__cp} -p msg/rc*.msg %{buildroot}%{os2_langdir}
     120%{__cp} -p msg/messages.msg %{buildroot}%{os2_langdir}
     121
     122# utils
     123%{__cp} -p bin/exehdr.exe %{buildroot}%{_bindir}
     124%{__cp} -p bin/alp.exe %{buildroot}%{_bindir}
     125%{__cp} -p bin/alp.msg %{buildroot}%{os2_langdir}
     126%{__cp} -p bin/mapsym.exe %{buildroot}%{_bindir}
     127
     128# ipfc
     129%{__mkdir_p} %{buildroot}%{os2_ipfcdir}
     130%{__cp} -p bin/ipfc.exe %{buildroot}%{_bindir}
     131%{__cp} -p ipfc/* %{buildroot}%{os2_ipfcdir}
     132
     133# books
     134%{__mkdir_p} %{buildroot}%{os2_bookdir}
     135%{__cp} -p book/* %{buildroot}%{os2_bookdir}
    101136
    102137%files
     
    108143
    109144%files headers
    110 %{_includedir}/os2tk45
     145%dir %{os2tk45_includedir}
     146%{os2tk45_includedir}
    111147
    112148%files libs
     
    117153%{_bindir}/rc16.exe
    118154%{_bindir}/rcpp.*
    119 %{_datadir}/os2/lang/rc*.msg
    120 %{_datadir}/os2/lang/messages.msg
     155%{os2_langdir}/rc*.msg
     156%{os2_langdir}/messages.msg
     157
     158%files utils
     159%{_bindir}/exehdr.exe
     160%{_bindir}/alp.exe
     161%{os2_langdir}/alp.msg
     162%{_bindir}/mapsym.exe
     163
     164%files ipfc
     165%{_bindir}/ipfc.exe
     166%{os2_ipfcdir}/*
    121167
    122168%files books
    123 %{_datadir}/os2/book/*
     169%{os2_bookdir}/*
    124170
    125171%post headers
    126 %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
     172%cube {ADDSTRING "%{os2_dos_path %{os2tk45_includedir}/inc;%{os2tk45_includedir}/gl;%{os2tk45_includedir}};" IN "SET INCLUDE=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
    127173
    128174%postun headers
    129175if [ "$1" = 0 ] ; then
    130176# execute only on last uninstall
    131 %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
     177%cube {DELSTRING "%{os2_dos_path %{os2tk45_includedir}/inc;%{os2tk45_includedir}/gl;%{os2tk45_includedir}};" IN "SET INCLUDE=" (FIRST RS(%%)} c:\config.sys > NUL
     178fi
     179
     180%post ipfc
     181%cube {ADDSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
     182
     183%postun ipfc
     184if [ "$1" = 0 ] ; then
     185# execute only on last uninstall
     186%cube {DELSTRING "%{os2_dos_path %{_datadir}/os2/ipfc};" IN "SET IPFC=" (FIRST RS(%%)} c:\config.sys > NUL
    132187fi
    133188
    134189%post libs
    135 %cube {ADDSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
     190%cube {ADDSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST IFNEW BEFORE ADDBOTTOM RS(%%)} c:\config.sys > NUL
    136191
    137192%postun libs
    138193if [ "$1" = 0 ] ; then
    139194# execute only on last uninstall
    140 %cube {DELSTRING "%UNIXROOT%\usr\lib;" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
     195%cube {DELSTRING "%{os2_dos_path %{_libdir}};" IN "SET LIB=" (FIRST RS(%%)} c:\config.sys > NUL
    141196fi
    142197
     
    159214
    160215%changelog
     216* Fri Jul 28 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-6
     217- Add utils sub-package (currently with EXEHDR, ALP and MAPSYM).
     218- Add ipfc sub-package with IPFC and support files.
     219- Use handy os2_dos_path, os2_langdir etc. macros from os2-rpm.
     220
    161221* Sat Jun 10 2017 Dmitriy Kuminov <coding@dmik.org> 4.5.2-5
    162222- Add messages.msg to os2tk45-rc sub-package.
Note: See TracChangeset for help on using the changeset viewer.