Changeset 619 for spec/trunk/SPECS


Ignore:
Timestamp:
Dec 17, 2015, 5:42:36 PM (10 years ago)
Author:
dmik
Message:

spec: kbuild: Release version 0.1.9998-8.

File:
1 edited

Legend:

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

    r577 r619  
    11#
    22# http://svn.netlabs.org/kbuild
    3 #
    4 # NOTES:
    5 # 1. Build with rpmbuild -ba -D "master_mode 1" when packing a new release
    6 #    and changing %svn_rev / %svn_url.
    7 # 2. Use -D "skip_unpack 1" to skip the unpack step when debugging the build.
    83#
    94
     
    138Url:        http://svn.netlabs.org/kbuild
    149
    15 %define ver_major   0
    16 %define ver_minor   1
    17 %define ver_patch   9998
    18 
    19 %define os2_release 7
    20 
    21 %define rpm_release 1
     10# Epoch is needed after dropping os2_release to keep proper updates.
     11Epoch:      1
     12
     13Version:    0.1.9998
     14Release:    8%{?dist}
    2215
    2316%define svn_url     http://svn.netlabs.org/repos/kbuild/trunk
    24 %define svn_rev     2786
     17%define svn_rev     2803
     18
     19Source:     %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     20
     21BuildRequires: gcc make subversion zip
    2522
    2623%define descr_brief kBuild is a GNU Make fork with a set of scripts to simplify\
     
    3027%define pkg_docdir      %{_docdir}/%{name}
    3128
    32 %if 0%{?os2_release}
    33 Version:    %{ver_major}.%{ver_minor}.%{ver_patch}.%{os2_release}
    34 %else
    35 Version:    %{ver_major}.%{ver_minor}.%{ver_patch}
    36 %endif
    37 Release:    %{rpm_release}
    38 
    39 Source:     %{name}-%{version}.zip
    40 
     29# Install DLLs to /bin rather than to /lib. Rejected upstream (#109).
    4130Patch1:     kbuild-001-os2_default_inst_dll_to_bin.patch
     31# Generate import libraries for DLL targets. Left w/o attention (#109).
    4232Patch5:     kbuild-005-gcc3omf_gen_implib_for_dll.patch
    43 Patch7:     kbuild-007-gcc3omf_add_rc_support-NEW.patch
     33# Build with GCC4 (#124).
    4434Patch8:     kbuild-008-gcc4.patch
     35# Fix slashes in .rsp files for OpenWatcom (#125).
     36Patch9:     kbuild-009-OPENWATCOM_slashes.patch
     37# Add major version suffix to Qt libs (#126).
     38Patch10:    kbuild-010-qt4_major_suff.patch
     39# Fix unsetting env vars in kmk_redirect (#127).
     40Patch11:    kbuild-011-kmk_redirect.patch
    4541
    4642BuildRequires: kbuild gettext-devel
     
    9389#------------------------------------------------------------------------------
    9490
    95 %if 0%{?master_mode}
    96 # get clean source tree from SVN (both for building and for SRPM)
     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
    9794%setup -n "%{name}-%{version}" -Tc
    98 svn export %{svn_url}@%{svn_rev} . --force
    99 # generate SvnInfo.kmk
     95svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     96rm -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
     99
     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.
    100114echo \
    101115"KBUILD_SVN_URL := %{svn_url}@%{svn_rev}
    102116KBUILD_SVN_REV := %{svn_rev}
    103117" > SvnInfo.kmk
    104 # zip it up
    105 rm -f "%{_sourcedir}/%{name}-%{version}.zip"
    106 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}.zip" "%{name}-%{version}")
    107 %else
    108 # use source zip
    109 %if 0%{?skip_unpack}
    110 %setup -TD
    111 %else
    112 %setup -q
    113 %endif
    114 %endif
    115 
    116 %if ! 0%{?skip_unpack}
    117 %patch1
    118 [ $? = 0 ] || exit 1
    119 %patch5
    120 [ $? = 0 ] || exit 1
    121 #%patch7
    122 #[ $? = 0 ] || exit 1
    123 %patch8
    124 [ $? = 0 ] || exit 1
    125 %endif
    126118
    127119#------------------------------------------------------------------------------
     
    178170%changelog
    179171
     172* Thu Dec 17 2015 Dmitriy Kuminov <coding@dmik.org> 0.1.9998-8
     173- New SVN release 2803 of version 0.1.9998.
     174- Fix slashes in .rsp files for OpenWatcom (#125).
     175- Add major version suffix to Qt libs (#126).
     176- Fix unsetting env vars in kmk_redirect (#127).
     177
    180178* Wed Aug 05 2015 Dmitriy Kuminov <coding@dmik.org> 0.1.9998.7-1
    181179- New SVN release 2786 of version 0.1.9998.
    182180- Drop patches 2, 3 and 4 (applied upstream in r2774:2776).
    183181- Disable patch 7 claimed to be not necessary (see ticket #109).
    184 - Build with GCC 4 against LIBC 0.6.6 (patch 8, #125).
     182- Build with GCC 4 against LIBC 0.6.6 (patch 8, #124).
    185183
    186184* Thu Jul 11 2013 Dmitriy Kuminov <coding@dmik.org> 0.1.9998.6-1
Note: See TracChangeset for help on using the changeset viewer.