Name: mingw32-atk
Version: 1.25.2
-Release: 1%{?dist}
+Release: 5%{?dist}
Summary: MinGW Windows Atk library
License: LGPLv2+
# Need native one too for glib-genmarshal
BuildRequires: glib2-devel
+Requires: pkgconfig
+
%description
MinGW Windows Atk library.
%build
-%{_mingw32_configure}
+%{_mingw32_configure} --disable-static
make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_ROOT install
+# Native Fedora package removes this file, so we do the same.
rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
+# Documentation duplicates what is in the native Fedora package.
+rm -rf $RPM_BUILD_ROOT/%{_mingw32_datadir}/gtk-doc
+
+# Remove this file, only used while creating the DLL.
+# See: https://bugzilla.redhat.com/show_bug.cgi?id=467409#c8
+rm $RPM_BUILD_ROOT%{_mingw32_libdir}/atk-1.0.def
+
%find_lang atk10
+
%clean
rm -rf $RPM_BUILD_ROOT
%files -f atk10.lang
-%defattr(-,root,root)
+%defattr(-,root,root,-)
+%doc COPYING
%{_mingw32_bindir}/libatk-1.0-0.dll
%{_mingw32_includedir}/atk-1.0
-%{_mingw32_libdir}/atk-1.0.def
%{_mingw32_libdir}/libatk-1.0.dll.a
%{_mingw32_libdir}/libatk-1.0.la
%{_mingw32_libdir}/pkgconfig/atk.pc
-%{_mingw32_datadir}/gtk-doc/html/atk/
%changelog
+* Fri Feb 6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-5
+- Include license file.
+
+* Fri Jan 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-4
+- Remove gtk-doc.
+- Fix defattr line.
+- Requires pkgconfig.
+- Remove the atk*.def file.
+
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-1
- Rebase to latest Fedora native version 1.25.2.
- Use find_lang macro.