Blame mingw32-atk.spec

ce739c7
%define __strip %{_mingw32_strip}
ce739c7
%define __objdump %{_mingw32_objdump}
ce739c7
%define _use_internal_dependency_generator 0
ce739c7
%define __find_requires %{_mingw32_findrequires}
ce739c7
%define __find_provides %{_mingw32_findprovides}
ce739c7
ce739c7
Name:           mingw32-atk
ce739c7
Version:        1.25.2
3199811
Release:        7%{?dist}
ce739c7
Summary:        MinGW Windows Atk library
ce739c7
ce739c7
License:        LGPLv2+
ce739c7
Group:          Development/Libraries
ce739c7
URL:            http://projects.gnome.org/accessibility/
ce739c7
Source:         http://ftp.gnome.org/pub/GNOME/sources/atk/1.25/atk-%{version}.tar.bz2
ce739c7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ce739c7
ce739c7
BuildArch:      noarch
ce739c7
cd5b1f3
BuildRequires:  mingw32-filesystem >= 49
ce739c7
BuildRequires:  mingw32-gcc
ce739c7
BuildRequires:  mingw32-binutils
ce739c7
BuildRequires:  mingw32-iconv
ce739c7
BuildRequires:  mingw32-gettext
ce739c7
BuildRequires:  mingw32-glib2
ce739c7
BuildRequires:  pkgconfig
ce739c7
# Need native one too for msgfmt
ce739c7
BuildRequires:  gettext
ce739c7
# Need native one too for  glib-genmarshal
ce739c7
BuildRequires:  glib2-devel
ce739c7
ce739c7
Requires:       pkgconfig
ce739c7
ce739c7
ce739c7
%description
ce739c7
MinGW Windows Atk library.
ce739c7
ce739c7
cd5b1f3
%package static
cd5b1f3
Summary:        Static version of the MinGW Windows Atk library
cd5b1f3
Requires:       %{name} = %{version}-%{release}
3199811
Group:          Development/Libraries
cd5b1f3
cd5b1f3
%description static
cd5b1f3
Static version of the MinGW Windows Atk library.
cd5b1f3
cd5b1f3
ce739c7
%prep
ce739c7
%setup -q -n atk-%{version}
ce739c7
ce739c7
ce739c7
%build
cd5b1f3
%{_mingw32_configure} --enable-static --enable-shared
ce739c7
make %{?_smp_mflags}
ce739c7
ce739c7
ce739c7
%install
ce739c7
rm -rf $RPM_BUILD_ROOT
ce739c7
ce739c7
make DESTDIR=$RPM_BUILD_ROOT install
ce739c7
ce739c7
# Native Fedora package removes this file, so we do the same.
ce739c7
rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
ce739c7
ce739c7
# Documentation duplicates what is in the native Fedora package.
ce739c7
rm -rf $RPM_BUILD_ROOT/%{_mingw32_datadir}/gtk-doc
ce739c7
ce739c7
# Remove this file, only used while creating the DLL.
ce739c7
# See: https://bugzilla.redhat.com/show_bug.cgi?id=467409#c8
ce739c7
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/atk-1.0.def
ce739c7
ce739c7
%find_lang atk10
ce739c7
ce739c7
ce739c7
%clean
ce739c7
rm -rf $RPM_BUILD_ROOT
ce739c7
ce739c7
ce739c7
%files -f atk10.lang
ce739c7
%defattr(-,root,root,-)
ce739c7
%doc COPYING
ce739c7
%{_mingw32_bindir}/libatk-1.0-0.dll
ce739c7
%{_mingw32_includedir}/atk-1.0
ce739c7
%{_mingw32_libdir}/libatk-1.0.dll.a
ce739c7
%{_mingw32_libdir}/libatk-1.0.la
ce739c7
%{_mingw32_libdir}/pkgconfig/atk.pc
ce739c7
cd5b1f3
%files static
cd5b1f3
%defattr(-,root,root,-)
cd5b1f3
%{_mingw32_libdir}/libatk-1.0.a
ce739c7
cd5b1f3
  
ce739c7
%changelog
3199811
* Fri Feb 20 2009 Erik van Pienbroek <info@nntpgrab.nl> - 1.25.2-7
cd5b1f3
- Added -static subpackage
cd5b1f3
- Rebuild for mingw32-gcc 4.4
cd5b1f3
ce739c7
* Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-5
ce739c7
- Include license file.
ce739c7
ce739c7
* Fri Jan 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-4
ce739c7
- Remove gtk-doc.
ce739c7
- Fix defattr line.
ce739c7
- Requires pkgconfig.
ce739c7
- Remove the atk*.def file.
ce739c7
ce739c7
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.25.2-1
ce739c7
- Rebase to latest Fedora native version 1.25.2.
ce739c7
- Use find_lang macro.
ce739c7
- Use smp_mflags.
ce739c7
- Fix URL.
ce739c7
- Fix Source URL.
ce739c7
ce739c7
* Wed Sep 24 2008 Daniel P. Berrange <berrange@redhat.com> - 1.24.0-2
ce739c7
- Rename mingw -> mingw32.
ce739c7
ce739c7
* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 1.24.0-1
ce739c7
- Update to 1.24.0 release
ce739c7
ce739c7
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.23.5-2
ce739c7
- Added dep on pkgconfig and glib2-devel (native)
ce739c7
ce739c7
* Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.23.5-1
ce739c7
- Initial RPM release