Changeset 1206 for spec/trunk/SPECS


Ignore:
Timestamp:
Jul 26, 2017, 6:44:34 PM (8 years ago)
Author:
dmik
Message:

spec: kbuild: Release version 0.1.9998-9.

File:
1 edited

Legend:

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

    r619 r1206  
    1 #
    2 # http://svn.netlabs.org/kbuild
    3 #
    4 
    51Name:       kbuild
    62Vendor:     netlabs.org
    73License:    BSD and GPLv2+
    8 Url:        http://svn.netlabs.org/kbuild
     4Url:        https://github.com/bitwiseworks/kbuild-os2
    95
    106# Epoch is needed after dropping os2_release to keep proper updates.
     
    128
    139Version:    0.1.9998
    14 Release:    8%{?dist}
     10Release:    9%{?dist}
    1511
    16 %define svn_url     http://svn.netlabs.org/repos/kbuild/trunk
    17 %define svn_rev     2803
    18 
    19 Source:     %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    20 
    21 BuildRequires: gcc make subversion zip
     12%scm_source github https://github.com/bitwiseworks/kbuild-os2 7130a2f60fed139c31dc06710f59a02da990e992
    2213
    2314%define descr_brief kBuild is a GNU Make fork with a set of scripts to simplify\
     
    2617
    2718%define pkg_docdir      %{_docdir}/%{name}
    28 
    29 # Install DLLs to /bin rather than to /lib. Rejected upstream (#109).
    30 Patch1:     kbuild-001-os2_default_inst_dll_to_bin.patch
    31 # Generate import libraries for DLL targets. Left w/o attention (#109).
    32 Patch5:     kbuild-005-gcc3omf_gen_implib_for_dll.patch
    33 # Build with GCC4 (#124).
    34 Patch8:     kbuild-008-gcc4.patch
    35 # Fix slashes in .rsp files for OpenWatcom (#125).
    36 Patch9:     kbuild-009-OPENWATCOM_slashes.patch
    37 # Add major version suffix to Qt libs (#126).
    38 Patch10:    kbuild-010-qt4_major_suff.patch
    39 # Fix unsetting env vars in kmk_redirect (#127).
    40 Patch11:    kbuild-011-kmk_redirect.patch
    4119
    4220BuildRequires: kbuild gettext-devel
     
    8967#------------------------------------------------------------------------------
    9068
    91 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    92 %setup -q
    93 %else
    94 %setup -n "%{name}-%{version}" -Tc
    95 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    96 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    97 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    98 %endif
     69%scm_setup
    9970
    100 %patch1
    101 [ $? = 0 ] || exit 1
    102 %patch5
    103 [ $? = 0 ] || exit 1
    104 %patch8
    105 [ $? = 0 ] || exit 1
    106 %patch9
    107 [ $? = 0 ] || exit 1
    108 %patch10
    109 [ $? = 0 ] || exit 1
    110 %patch11
    111 [ $? = 0 ] || exit 1
    112 
    113 # Makefiles expect SVN info, generate it.
     71# Makefiles expect SVN info, generate it. Note that we shorten the commit hash
     72# to 7 digits and add 0x before to make it a valid C integer number.
    11473echo \
    115 "KBUILD_SVN_URL := %{svn_url}@%{svn_rev}
    116 KBUILD_SVN_REV := %{svn_rev}
     74"KBUILD_SVN_URL := %{__source_url}
     75KBUILD_SVN_REV := 0x%{lua: print(string.sub(rpm.expand('%{__source_rev}'), 1, 7))}
    11776" > SvnInfo.kmk
    11877
     
    148107%{kmk_env}
    149108
    150 rm -rf "%{buildroot}"
     109%{__rm} -rf "%{buildroot}"
    151110
    152111cmd /c "kBuild\envos2.cmd" kmk $KMK_FLAGS PATH_INS="%{buildroot}" install
    153112
    154 # We don't want LIBC*.DLL, there is a separate package for them
    155 rm "%{buildroot}%{_bindir}"/*.dll
    156 
    157113# Additional docs (not installed by install)
    158 cp -dp COPYING ChangeLog kBuild/doc/COPYING-FDL-1.3 "%{buildroot}%{pkg_docdir}/"
     114%{__cp} -dp COPYING ChangeLog kBuild/doc/COPYING-FDL-1.3 "%{buildroot}%{pkg_docdir}/"
    159115
    160116# To make GNU Make we simply copy kmk_gmake.exe, this should be enough
    161 cp -dp "%{buildroot}%{_bindir}/kmk_gmake.exe" "%{buildroot}%{_bindir}/make.exe"
     117%{__cp} -dp "%{buildroot}%{_bindir}/kmk_gmake.exe" "%{buildroot}%{_bindir}/make.exe"
    162118
    163119#------------------------------------------------------------------------------
     
    165121#------------------------------------------------------------------------------
    166122
    167 rm -rf "%{buildroot}"
     123%{__rm} -rf "%{buildroot}"
    168124
    169125#------------------------------------------------------------------------------
    170126%changelog
     127* Wed Jul 26 2017 Dmitriy Kuminov <coding@dmik.org> 0.1.9998-9
     128- Use a forked GitHub repository where all previous patches have been applied.
     129- Drop changing the default DLL install dir from /lib to /bin (in an RPM
     130  Unix-like environment which is our primary target this is not needed).
     131- Update sources to SVN r3051 from vendor.
     132- Disable annoying wlink warning 1121 for GCC3OMF/GXX3OMF tools.
     133- Install qt-Q_OBJECT.sed needed by qt3 and qt4 units.
     134- Support SDL RPM install in LIBSDL sdk.
     135- Use abbveviated commit hash instead of SVN revision in kmk version strings.
     136- Add missing spaces after -i and -d in RC invocation for GCC3OMF/GXX3OMF tools.
     137- Add current directory to RC include path for GCC3OMF/GXX3OMF/OPENWATCOM tools.
     138- Fix failure to create an import library for a DLL in GXX3OMF tool.
    171139
    172140* Thu Dec 17 2015 Dmitriy Kuminov <coding@dmik.org> 0.1.9998-8
Note: See TracChangeset for help on using the changeset viewer.