Changeset 1206 for spec/trunk/SPECS
- Timestamp:
- Jul 26, 2017, 6:44:34 PM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/kbuild.spec (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/kbuild.spec
r619 r1206 1 #2 # http://svn.netlabs.org/kbuild3 #4 5 1 Name: kbuild 6 2 Vendor: netlabs.org 7 3 License: BSD and GPLv2+ 8 Url: http ://svn.netlabs.org/kbuild4 Url: https://github.com/bitwiseworks/kbuild-os2 9 5 10 6 # Epoch is needed after dropping os2_release to keep proper updates. … … 12 8 13 9 Version: 0.1.9998 14 Release: 8%{?dist}10 Release: 9%{?dist} 15 11 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 22 13 23 14 %define descr_brief kBuild is a GNU Make fork with a set of scripts to simplify\ … … 26 17 27 18 %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.patch31 # Generate import libraries for DLL targets. Left w/o attention (#109).32 Patch5: kbuild-005-gcc3omf_gen_implib_for_dll.patch33 # Build with GCC4 (#124).34 Patch8: kbuild-008-gcc4.patch35 # Fix slashes in .rsp files for OpenWatcom (#125).36 Patch9: kbuild-009-OPENWATCOM_slashes.patch37 # Add major version suffix to Qt libs (#126).38 Patch10: kbuild-010-qt4_major_suff.patch39 # Fix unsetting env vars in kmk_redirect (#127).40 Patch11: kbuild-011-kmk_redirect.patch41 19 42 20 BuildRequires: kbuild gettext-devel … … 89 67 #------------------------------------------------------------------------------ 90 68 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 99 70 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. 114 73 echo \ 115 "KBUILD_SVN_URL := %{ svn_url}@%{svn_rev}116 KBUILD_SVN_REV := %{svn_rev}74 "KBUILD_SVN_URL := %{__source_url} 75 KBUILD_SVN_REV := 0x%{lua: print(string.sub(rpm.expand('%{__source_rev}'), 1, 7))} 117 76 " > SvnInfo.kmk 118 77 … … 148 107 %{kmk_env} 149 108 150 rm-rf "%{buildroot}"109 %{__rm} -rf "%{buildroot}" 151 110 152 111 cmd /c "kBuild\envos2.cmd" kmk $KMK_FLAGS PATH_INS="%{buildroot}" install 153 112 154 # We don't want LIBC*.DLL, there is a separate package for them155 rm "%{buildroot}%{_bindir}"/*.dll156 157 113 # 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}/" 159 115 160 116 # 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" 162 118 163 119 #------------------------------------------------------------------------------ … … 165 121 #------------------------------------------------------------------------------ 166 122 167 rm-rf "%{buildroot}"123 %{__rm} -rf "%{buildroot}" 168 124 169 125 #------------------------------------------------------------------------------ 170 126 %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. 171 139 172 140 * Thu Dec 17 2015 Dmitriy Kuminov <coding@dmik.org> 0.1.9998-8
Note:
See TracChangeset
for help on using the changeset viewer.
