English Portuguese (Brazil)
%description -n mingw32-example-static
Static version of the MinGW Win32 compiled example library.
# Win64
%package -n mingw64-example
Summary: MinGW compiled example library for the Win64 target
%description -n mingw64-example
MinGW compiled example library for the Win64 target.
%package -n mingw64-example-static
Summary: Static version of the MinGW Win64 compiled example library
Requires: mingw64-example = %{version}-%{release}
%description -n mingw64-example-static
Static version of the MinGW Win64 compiled example library.
%{?mingw_debug_package}
%prep
%autosetup -p1 -n example-%{version}
%build
%mingw_configure --enable-static --enable-shared --enable-foo
%mingw_make_build
%install
%mingw_make_install
# Libtool files don't need to be bundled
find %{buildroot} -name "*.la" -delete
%mingw_find_lang example
# Note: there should be no %%files section for the main package!
# Static subpackages are optional (as mentioned earlier)
# Win32
%files -n mingw32-example -f mingw32-example.lang
%{mingw32_bindir}/libexample-0.dll
%{mingw32_includedir}/example/
%{mingw32_libdir}/libexample.dll.a
%{mingw32_libdir}/pkgconfig/example.pc
%files -n mingw32-example-static
%{mingw32_libdir}/libexample.a
# Win64
%files -n mingw64-example -f mingw64-example.lang
%{mingw64_bindir}/libexample-0.dll
%{mingw64_includedir}/example/
%{mingw64_libdir}/libexample.dll.a
%{mingw64_libdir}/pkgconfig/example.pc
%files -n mingw64-example-static
%{mingw64_libdir}/libexample-0.a
%changelog
* Sun Apr 15 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0-1
- Initial release