diff --git a/.gitignore b/.gitignore index e69de29..875daf4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mingw-w64-src_20120124.tar.bz2 diff --git a/mingw-w64-tools.spec b/mingw-w64-tools.spec new file mode 100644 index 0000000..02cf473 --- /dev/null +++ b/mingw-w64-tools.spec @@ -0,0 +1,78 @@ +%global snapshot_date 20120124 + +Name: mingw-w64-tools +Version: 2.0.999 +Release: 0.2.trunk.%{snapshot_date}%{?dist} +Summary: Supplementary tools which are part of the mingw-w64 toolchain + +License: Public Domain +Group: Development/Libraries +URL: http://mingw-w64.sourceforge.net/ +%if 0%{?snapshot_date} +Source0: http://sourceforge.net/projects/mingw-w64/files/Toolchain%20sources/Automated%20Builds/mingw-w64-src_%{snapshot_date}.tar.bz2 +%else +Source0: http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v%{version}.tar.gz +%endif + +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} +tar -xf %{S:0} +%setup -q -D -T -n mingw-w64-v%{version}/mingw +%else +%setup -q -n mingw-w64-v%{version} +%endif + + +%build +pushd mingw-w64-tools + pushd gendef + %configure + make %{?_smp_mflags} + popd + + pushd genidl + %configure + make %{?_smp_mflags} + popd + + pushd widl + %configure + make %{?_smp_mflags} + popd +popd + + +%install +pushd mingw-w64-tools + make -C gendef DESTDIR=$RPM_BUILD_ROOT install + make -C genidl DESTDIR=$RPM_BUILD_ROOT install + make -C widl DESTDIR=$RPM_BUILD_ROOT install +popd + + +%files +%doc COPYING +%{_bindir}/gendef +%{_bindir}/genidl +%{_bindir}/mingw-w64-widl + + +%changelog +* Sun Mar 11 2012 Erik van Pienbroek - 2.0.999-0.1.trunk.20120124 +- Eliminated several conditionals + +* Mon Jan 30 2012 Erik van Pienbroek - 2.0.999-0.1.trunk.20120124 +- Initial package + diff --git a/sources b/sources index e69de29..c3a96e5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9fc9ded15caa57b1fa451cae9aff1ac8 mingw-w64-src_20120124.tar.bz2