User:Kalev/MinGW old specfile

Example Specfile
%global __strip %{_mingw32_strip} %global __objdump %{_mingw32_objdump} %global _use_internal_dependency_generator 0 %global __find_requires %{_mingw32_findrequires} %global __find_provides %{_mingw32_findprovides} %define __debug_install_post %{_mingw32_debug_install_post}

Name:          mingw-example Version:       1.2.3 Release:       1%{?dist} Summary:

License:       LGPLv2+ Group:         Development/Libraries URL: Source0:

BuildArch:     noarch

BuildRequires: mingw32-filesystem BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils
 * 1) Any additional BuildRequires.

%description
 * 1) description

%package -n mingw32-example Summary: %description -n mingw32-example
 * 1) description

%{?_mingw32_debug_package}

%prep %setup -q -n example-%{version}

%build %{_mingw32_configure} make %{?_smp_mflags}

%install make DESTDIR=$RPM_BUILD_ROOT install

rm $RPM_BUILD_ROOT%{mingw32_libdir}/libfoo.a
 * 1) Remove static libraries but DON'T remove *.dll.a files.

%files -n mingw32-example %doc COPYING %{_mingw32_bindir}/foo.dll %{_mingw32_libdir}/foo.dll.a
 * 1) etc.

%changelog - Initial RPM release.
 * Wed Sep 10 2008 Richard W.M. Jones  - 1.2.3-1