2014-05-30 14:14:46 +00:00
|
|
|
%global snapshot_date 20140530
|
|
|
|
%global snapshot_rev 430863ffea2f6101fbfc0ee35ee098ab2f96b53c
|
2014-05-28 23:01:47 +00:00
|
|
|
%global snapshot_rev_short %(echo %snapshot_rev | cut -c1-6)
|
2014-01-04 21:24:59 +00:00
|
|
|
%global branch trunk
|
2012-03-17 14:40:55 +00:00
|
|
|
|
|
|
|
Name: mingw-w64-tools
|
2014-01-09 18:35:17 +00:00
|
|
|
Version: 3.1.999
|
2014-08-17 09:36:57 +00:00
|
|
|
Release: 0.6.%{branch}.git%{snapshot_rev_short}.%{snapshot_date}%{?dist}
|
2012-03-17 14:40:55 +00:00
|
|
|
Summary: Supplementary tools which are part of the mingw-w64 toolchain
|
|
|
|
|
2013-04-03 21:15:59 +00:00
|
|
|
# http://sourceforge.net/mailarchive/forum.php?thread_name=5157C0FC.1010309%40users.sourceforge.net&forum_name=mingw-w64-public
|
|
|
|
# The tools gendef and genidl are GPLv3+, widl is LGPLv2+
|
|
|
|
License: GPLv3+ and LGPLv2+
|
|
|
|
|
2012-03-17 14:40:55 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://mingw-w64.sourceforge.net/
|
|
|
|
%if 0%{?snapshot_date}
|
2014-05-28 23:01:47 +00:00
|
|
|
# To regenerate a snapshot:
|
|
|
|
# Use your regular webbrowser to open https://sourceforge.net/p/mingw-w64/mingw-w64/ci/%{snapshot_rev}/tarball
|
2013-09-07 13:32:16 +00:00
|
|
|
# This triggers the SourceForge instructure to generate a snapshot
|
|
|
|
# After that you can pull in the archive with:
|
|
|
|
# spectool -g mingw-w64-tools.spec
|
2014-05-28 23:01:47 +00:00
|
|
|
Source0: http://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{snapshot_rev}.zip
|
2012-03-17 14:40:55 +00:00
|
|
|
%else
|
2014-01-04 21:14:55 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}.tar.bz2
|
2012-03-17 14:40:55 +00:00
|
|
|
%endif
|
2012-03-28 12:35:09 +00:00
|
|
|
# just to make widl to build on s390
|
|
|
|
Patch0: %{name}-2.0.999-s390.patch
|
2012-03-17 14:40:55 +00:00
|
|
|
|
2014-01-04 20:49:39 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1047727
|
|
|
|
Patch1: %{name}-2.0.999-widl-includedir.patch
|
|
|
|
|
2012-03-17 14:40:55 +00:00
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Supplementary tools which are part of the mingw-w64 toolchain
|
|
|
|
It contains gendef, genidl and mingw-w64-widl
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%if 0%{?snapshot_date}
|
|
|
|
rm -rf mingw-w64-v%{version}
|
|
|
|
mkdir mingw-w64-v%{version}
|
|
|
|
cd mingw-w64-v%{version}
|
2013-09-07 13:32:16 +00:00
|
|
|
unzip %{S:0}
|
2014-05-28 23:01:47 +00:00
|
|
|
%setup -q -D -T -n mingw-w64-v%{version}/mingw-w64-mingw-w64-%{snapshot_rev}
|
2012-03-17 14:40:55 +00:00
|
|
|
%else
|
|
|
|
%setup -q -n mingw-w64-v%{version}
|
|
|
|
%endif
|
2012-03-28 12:35:09 +00:00
|
|
|
%patch0 -p2 -b .s390
|
2014-01-04 20:49:39 +00:00
|
|
|
%patch1 -p1 -b .widl-includedir
|
2012-03-17 14:40:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd mingw-w64-tools
|
|
|
|
pushd gendef
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd genidl
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd widl
|
2013-04-03 21:15:59 +00:00
|
|
|
# widl needs to be aware of the location of the IDL files belonging
|
|
|
|
# to the toolchain. Therefore it needs to be built for both the win32
|
|
|
|
# and win64 targets
|
|
|
|
%global _configure ../configure
|
|
|
|
mkdir win32
|
|
|
|
pushd win32
|
|
|
|
%configure --target=%{mingw32_target} --program-prefix=%{mingw32_target}-
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
mkdir win64
|
|
|
|
pushd win64
|
|
|
|
%configure --target=%{mingw64_target} --program-prefix=%{mingw64_target}-
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
2012-03-17 14:40:55 +00:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd mingw-w64-tools
|
|
|
|
make -C gendef DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
make -C genidl DESTDIR=$RPM_BUILD_ROOT install
|
2013-04-03 21:15:59 +00:00
|
|
|
make -C widl/win32 DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
make -C widl/win64 DESTDIR=$RPM_BUILD_ROOT install
|
2012-03-17 14:40:55 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/gendef
|
|
|
|
%{_bindir}/genidl
|
2013-04-03 21:15:59 +00:00
|
|
|
%{_bindir}/%{mingw32_target}-widl
|
|
|
|
%{_bindir}/%{mingw64_target}-widl
|
2012-03-17 14:40:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-08-17 09:36:57 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.999-0.6.trunk.git430863.20140530
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 10:21:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.999-0.5.trunk.git430863.20140530
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-30 14:14:46 +00:00
|
|
|
* Fri May 30 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.1.999-0.4.trunk.git430863.20140530
|
|
|
|
- Update to 20140530 snapshot (git rev 430863f)
|
|
|
|
- Fixes compilation on aarch64
|
|
|
|
|
2014-05-28 23:01:47 +00:00
|
|
|
* Wed May 28 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.1.999-0.3.trunk.git502c72.20140524
|
|
|
|
- Update to 20140524 snapshot (git rev 502c72)
|
|
|
|
- Upstream has switched from SVN to Git
|
|
|
|
|
2014-03-30 13:02:33 +00:00
|
|
|
* Sun Mar 30 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.1.999-0.2.trunk.r6559.20140330
|
|
|
|
- Update to r6559 (20140330 snapshot)
|
|
|
|
|
2014-01-09 18:35:17 +00:00
|
|
|
* Thu Jan 9 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.1.999-0.1.trunk.r6432.20140104
|
|
|
|
- Bump version to keep working upgrade path
|
|
|
|
|
2014-01-04 21:24:59 +00:00
|
|
|
* Sat Jan 4 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.0.999-0.1.trunk.r6432.20140104
|
|
|
|
- Update to r6432 (20140104 snapshot)
|
|
|
|
|
2014-01-04 21:14:55 +00:00
|
|
|
* Sat Jan 4 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.0.0-1
|
|
|
|
- Update to 3.0.0
|
|
|
|
|
2014-01-04 20:49:39 +00:00
|
|
|
* Wed Jan 1 2014 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> - 2.0.999-0.10.trunk.r6228.20130907
|
|
|
|
- Fix widl default includedir (RHBZ #1047727)
|
|
|
|
|
2013-09-07 13:32:16 +00:00
|
|
|
* Sat Sep 7 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.999-0.9.trunk.r6228.20130907
|
|
|
|
- Update to r6228 (20130907 snapshot)
|
|
|
|
- Updated instructions to regenerate snapshots
|
|
|
|
(SourceForge has changed their SVN infrastructure)
|
|
|
|
|
2013-08-03 11:09:04 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.999-0.8.trunk.20130403
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-03 21:15:59 +00:00
|
|
|
* Wed Apr 3 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.999-0.7.trunk.20130403
|
|
|
|
- Update to 20130403 snapshot
|
|
|
|
- Use a different source tarball which doesn't contain unrelevant code (like libiberty)
|
|
|
|
- Removed Provides: bundled(libiberty)
|
|
|
|
- Make sure the widl tool is built for both win32 and win64 toolchains
|
|
|
|
- Upstream has changed the license of the gendef and genidl tools to GPLv3+
|
|
|
|
The license of the widl tool is LGPLv2+
|
|
|
|
|
2013-02-14 07:12:13 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.999-0.6.trunk.20120124
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-15 21:07:13 +00:00
|
|
|
* Mon Oct 15 2012 Jon Ciesla <limburgher@gmail.com> - 2.0.999-0.5.trunk.20120124
|
|
|
|
- Provides: bundled(libiberty)
|
|
|
|
|
2012-07-20 01:54:27 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.999-0.4.trunk.20120124
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-28 12:35:09 +00:00
|
|
|
* Wed Mar 28 2012 Dan Horák <dan[at]danny.cz> - 2.0.999-0.3.trunk.20120124
|
|
|
|
- fix build on s390(x)
|
|
|
|
|
|
|
|
* Sun Mar 11 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.999-0.2.trunk.20120124
|
2012-03-17 14:40:55 +00:00
|
|
|
- Eliminated several conditionals
|
|
|
|
|
|
|
|
* Mon Jan 30 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.0.999-0.1.trunk.20120124
|
|
|
|
- Initial package
|
|
|
|
|