X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=example%2Fmingw32-example.spec;h=168466b29813dfd599c94b42d7226fd82fc6f7f1;hb=bb0d0ed22f660c4ffcaacdfecf68ac72138b70e1;hp=8b04aa050033a2bb644358613205ab538e13f073;hpb=52784ea95fea7c0fc96472a5ec80638c6f031b1c;p=fedora-mingw.git diff --git a/example/mingw32-example.spec b/example/mingw32-example.spec index 8b04aa0..168466b 100644 --- a/example/mingw32-example.spec +++ b/example/mingw32-example.spec @@ -11,13 +11,20 @@ Summary: License: LGPLv2+ Group: Development/Libraries + URL: Source0: -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Patches from native Fedora package: +#Patch0: ... + +# Patches for MinGW: +#Patch1000: ... + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: mingw32-filesystem >= 23 +BuildRequires: mingw32-filesystem >= 35 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils # Any additional BuildRequires. @@ -32,8 +39,8 @@ BuildRequires: mingw32-binutils %build -%{_mingw32_configure} -make +%{_mingw32_configure} --disable-static +make %{?_smp_mflags} %install @@ -41,7 +48,7 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # Remove static libraries but DON'T remove *.dll.a files. -rm $RPM_BUILD_ROOT%{mingw32_libdir}/libfoo.a +rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libfoo.a %clean @@ -50,11 +57,12 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) +%doc LICENSE %{_mingw32_bindir}/foo.dll %{_mingw32_libdir}/foo.dll.a # etc. %changelog -* Wed Sep 10 2008 Richard W.M. Jones - 1.2.3-1 +* Fri Jan 23 2009 Your Name - 1.2.3-1 - Initial RPM release.