Ignore:
Timestamp:
Jan 27, 2016, 10:13:14 PM (10 years ago)
Author:
dmik
Message:

spec: os2tk45: Release 4.5.2-2.

File:
1 edited

Legend:

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

    r648 r649  
    22Name: os2tk45
    33Version: 4.5.2
    4 Release: 1%{?dist}
     4Release: 2%{?dist}
    55Group: System Environment/Libraries
    66License: IBM
     
    2020# Act like a meta-package and install all essential subpackages
    2121Requires: %{name}-headers = %{version}
     22Requires: %{name}-libs = %{version}
    2223Requires: %{name}-books = %{version}
    2324
     
    4142%description headers
    4243Provides IBM OS/2 Developer's Toolkit header files.
     44
     45%package libs
     46Summary: IBM OS/2 Developer's Toolkit libraries
     47Requires: %{name}-readme = %{version}-%{release}
     48BuildArch: noarch
     49
     50%description libs
     51Provides IBM OS/2 Developer's Toolkit library files.
    4352
    4453%package books
     
    6877# copy inc directory inside to avoid one more dir under include
    6978cp -pR inc %{buildroot}%{_includedir}/os2tk45/
     79# remove LIBC stuff, will go to a separate subpackage one day
     80rm -rf %{buildroot}%{_includedir}/os2tk45/libc
    7081# remove SOM stuff, it will go to a separate subpackage one day
    7182rm %{buildroot}%{_includedir}/os2tk45/wincfg.*h
    7283rm %{buildroot}%{_includedir}/os2tk45/wp*.*h
     84
     85mkdir -p %{buildroot}%{_libdir}
     86cp -pR lib/* %{buildroot}%{_libdir}/
     87# remove LIBC stuff, will go to a separate subpackage one day
     88rm %{buildroot}%{_libdir}/libc*.lib
    7389
    7490mkdir -p %{buildroot}%{_datadir}/os2/book
     
    84100%{_includedir}/os2tk45
    85101
     102%files libs
     103%{_libdir}/*.lib
     104
    86105%files books
    87106%{_datadir}/os2/book/*
     
    90109if [ "$1" = 1 ] ; then
    91110# 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 > NUL
     111%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
    93112fi
    94113
     
    96115if [ "$1" = 0 ] ; then
    97116# 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
     118fi
     119
     120%post libs
     121if [ "$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
     124fi
     125
     126%postun libs
     127if [ "$1" = 0 ] ; then
     128# execute only on last uninstall
    99129fi
    100130
     
    120150
    121151%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
    122156* Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 4.5.2-1
    123157- Initial package for Toolkit version 4.5.2.
Note: See TracChangeset for help on using the changeset viewer.