Changeset 619 for spec/trunk/SPECS
- Timestamp:
- Dec 17, 2015, 5:42:36 PM (10 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/kbuild.spec (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/kbuild.spec
r577 r619 1 1 # 2 2 # http://svn.netlabs.org/kbuild 3 #4 # NOTES:5 # 1. Build with rpmbuild -ba -D "master_mode 1" when packing a new release6 # and changing %svn_rev / %svn_url.7 # 2. Use -D "skip_unpack 1" to skip the unpack step when debugging the build.8 3 # 9 4 … … 13 8 Url: http://svn.netlabs.org/kbuild 14 9 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. 11 Epoch: 1 12 13 Version: 0.1.9998 14 Release: 8%{?dist} 22 15 23 16 %define svn_url http://svn.netlabs.org/repos/kbuild/trunk 24 %define svn_rev 2786 17 %define svn_rev 2803 18 19 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 20 21 BuildRequires: gcc make subversion zip 25 22 26 23 %define descr_brief kBuild is a GNU Make fork with a set of scripts to simplify\ … … 30 27 %define pkg_docdir %{_docdir}/%{name} 31 28 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). 41 30 Patch1: kbuild-001-os2_default_inst_dll_to_bin.patch 31 # Generate import libraries for DLL targets. Left w/o attention (#109). 42 32 Patch5: kbuild-005-gcc3omf_gen_implib_for_dll.patch 43 Patch7: kbuild-007-gcc3omf_add_rc_support-NEW.patch 33 # Build with GCC4 (#124). 44 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 45 41 46 42 BuildRequires: kbuild gettext-devel … … 93 89 #------------------------------------------------------------------------------ 94 90 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 97 94 %setup -n "%{name}-%{version}" -Tc 98 svn export %{svn_url}@%{svn_rev} . --force 99 # generate SvnInfo.kmk 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 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. 100 114 echo \ 101 115 "KBUILD_SVN_URL := %{svn_url}@%{svn_rev} 102 116 KBUILD_SVN_REV := %{svn_rev} 103 117 " > SvnInfo.kmk 104 # zip it up105 rm -f "%{_sourcedir}/%{name}-%{version}.zip"106 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}.zip" "%{name}-%{version}")107 %else108 # use source zip109 %if 0%{?skip_unpack}110 %setup -TD111 %else112 %setup -q113 %endif114 %endif115 116 %if ! 0%{?skip_unpack}117 %patch1118 [ $? = 0 ] || exit 1119 %patch5120 [ $? = 0 ] || exit 1121 #%patch7122 #[ $? = 0 ] || exit 1123 %patch8124 [ $? = 0 ] || exit 1125 %endif126 118 127 119 #------------------------------------------------------------------------------ … … 178 170 %changelog 179 171 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 180 178 * Wed Aug 05 2015 Dmitriy Kuminov <coding@dmik.org> 0.1.9998.7-1 181 179 - New SVN release 2786 of version 0.1.9998. 182 180 - Drop patches 2, 3 and 4 (applied upstream in r2774:2776). 183 181 - Disable patch 7 claimed to be not necessary (see ticket #109). 184 - Build with GCC 4 against LIBC 0.6.6 (patch 8, #12 5).182 - Build with GCC 4 against LIBC 0.6.6 (patch 8, #124). 185 183 186 184 * Thu Jul 11 2013 Dmitriy Kuminov <coding@dmik.org> 0.1.9998.6-1
Note:
See TracChangeset
for help on using the changeset viewer.
