%{?mingw_package_header} %global mingw_pkg_name osm-gps-map Name: mingw-%{mingw_pkg_name} Version: 0.7.3 Release: 1%{?dist} Summary: MinGW Gtk+ widget for displaying OpenStreetMap tiles Group: System Environment/Libraries License: GPLv2 URL: http://nzjrs.github.com/osm-gps-map/ Source0: http://www.johnstowers.co.nz/files/%{mingw_pkg_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: mingw32-libsoup BuildRequires: mingw64-libsoup BuildRequires: mingw32-gtk2 BuildRequires: mingw64-gtk2 BuildArch: noarch %description A Gtk+ widget that when given GPS co-ordinates, draws a GPS track, and points of interest on a moving map display. Downloads map data from a number of websites, including openstreetmap.org. # Mingw32 %package -n mingw32-%{mingw_pkg_name} Summary: %{summary} %description -n mingw32-%{mingw_pkg_name} A Gtk+ widget that when given GPS co-ordinates, draws a GPS track, and points of interest on a moving map display. Downloads map data from a number of websites, including openstreetmap.org. %package -n mingw32-%{mingw_pkg_name}-static Summary: Static libraries for mingw32-%{mingw_pkg_name} development Group: Development/Libraries Requires: mingw32-%{mingw_pkg_name} = %{version}-%{release} %description -n mingw32-%{mingw_pkg_name}-static The mingw32-%{mingw_pkg_name}-static package contains static library for mingw32-%{mingw_pkg_name} development. # Mingw64 %package -n mingw64-%{mingw_pkg_name} Summary: %{summary} %description -n mingw64-%{mingw_pkg_name} A Gtk+ widget that when given GPS co-ordinates, draws a GPS track, and points of interest on a moving map display. Downloads map data from a number of websites, including openstreetmap.org. %package -n mingw64-%{mingw_pkg_name}-static Summary: Static libraries for mingw64-%{mingw_pkg_name} development Group: Development/Libraries Requires: mingw64-%{mingw_pkg_name} = %{version}-%{release} %description -n mingw64-%{mingw_pkg_name}-static The mingw64-%{mingw_pkg_name}-static package contains static library for mingw64-%{mingw_pkg_name} development. %{?mingw_debug_package} %prep %setup0 -q -n %{mingw_pkg_name}-%{version} libtoolize -f aclocal -I m4 autoheader autoconf automake -a -c %build %mingw_configure --enable-static --disable-introspection %mingw_make V=1 %{?_smp_mflags} %install %mingw_make install DESTDIR=%{buildroot} rm -rf %{buildroot}/usr/doc/osm-gps-map rm -rf %{buildroot}/%{mingw32_prefix}/doc/osm-gps-map rm -rf %{buildroot}/%{mingw64_prefix}/doc/osm-gps-map rm -rf %{buildroot}/%{mingw32_datadir}/gtk-doc rm -rf %{buildroot}/%{mingw64_datadir}/gtk-doc find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' %files -n mingw32-%{mingw_pkg_name} %doc AUTHORS COPYING README NEWS %{mingw32_includedir}/* %{mingw32_libdir}/libosmgpsmap.dll.a %{mingw32_bindir}/libosmgpsmap-2.dll %{mingw32_libdir}/pkgconfig/osmgpsmap.pc %files -n mingw32-%{mingw_pkg_name}-static %{mingw32_libdir}/libosmgpsmap.a %files -n mingw64-%{mingw_pkg_name} %doc AUTHORS COPYING README NEWS %{mingw64_includedir}/* %{mingw64_libdir}/libosmgpsmap.dll.a %{mingw64_bindir}/libosmgpsmap-2.dll %{mingw64_libdir}/pkgconfig/osmgpsmap.pc %files -n mingw64-%{mingw_pkg_name}-static %{mingw64_libdir}/libosmgpsmap.a %changelog * Wed Apr 24 2013 Thomas Sailer - 0.7.3-1 - Initial spec file from native package