%{?mingw_package_header} %global mingw_pkg_name osm-gps-map3 %global gitver 3834f0e1095a856728afbbc0e5f3486fa0b4fe58 Name: mingw-%{mingw_pkg_name} Version: 0.8 Release: 0.0.%{gitver}%{?dist} Summary: MinGW Gtk+ widget for displaying OpenStreetMap tiles Group: System Environment/Libraries License: GPLv2+ URL: http://nzjrs.github.com/osm-gps-map/ Source0: osm-gps-map-%{gitver}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: mingw32-libsoup BuildRequires: mingw64-libsoup BuildRequires: mingw32-glib2 BuildRequires: mingw64-glib2 BuildRequires: mingw32-gtk3 BuildRequires: mingw64-gtk3 BuildRequires: mingw32-cairo BuildRequires: mingw64-cairo 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 osm-gps-map sed -e s,GOBJECT_INTROSPECTION_REQUIRE,GOBJECT_INTROSPECTION_CHECK, < configure.ac > t mv t configure.ac sed -e s,libosmgpsmap,libosmgpsmap3, < src/Makefile.am > t mv t src/Makefile.am sed -e s,libosmgpsmap,libosmgpsmap3, < examples/Makefile.am > t mv t examples/Makefile.am sed -e s,libosmgpsmap,libosmgpsmap3, < docs/reference/Makefile.am > t mv t docs/reference/Makefile.am mv docs/reference/libosmgpsmap-docs.xml docs/reference/libosmgpsmap3-docs.xml mv docs/reference/libosmgpsmap-overrides.txt docs/reference/libosmgpsmap3-overrides.txt mv docs/reference/libosmgpsmap-sections.txt docs/reference/libosmgpsmap3-sections.txt mv docs/reference/libosmgpsmap.types docs/reference/libosmgpsmap3.types ./autogen.sh make distclean %build %mingw_configure --enable-static --disable-introspection --disable-gtk-doc %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 {} ';' mv %{buildroot}%{mingw32_includedir}/osmgpsmap %{buildroot}%{mingw32_includedir}/osmgpsmap3 mv %{buildroot}%{mingw64_includedir}/osmgpsmap %{buildroot}%{mingw64_includedir}/osmgpsmap3 sed -e s,osmgpsmap,osmgpsmap3, -e s,osm-gps-map,osm-gps-map3, -e "s,gtk+-2.0,gtk+-3.0 cairo," < %{buildroot}%{mingw32_libdir}/pkgconfig/osmgpsmap.pc > %{buildroot}%{mingw32_libdir}/pkgconfig/osmgpsmap3.pc sed -e s,osmgpsmap,osmgpsmap3, -e s,osm-gps-map,osm-gps-map3, -e "s,gtk+-2.0,gtk+-3.0 cairo," < %{buildroot}%{mingw64_libdir}/pkgconfig/osmgpsmap.pc > %{buildroot}%{mingw64_libdir}/pkgconfig/osmgpsmap3.pc rm -f %{buildroot}%{mingw32_libdir}/pkgconfig/osmgpsmap.pc rm -f %{buildroot}%{mingw64_libdir}/pkgconfig/osmgpsmap.pc %files -n mingw32-%{mingw_pkg_name} %doc AUTHORS COPYING README NEWS %{mingw32_includedir}/* %{mingw32_libdir}/libosmgpsmap3.dll.a %{mingw32_bindir}/libosmgpsmap3-3.dll %{mingw32_libdir}/pkgconfig/osmgpsmap3.pc %files -n mingw32-%{mingw_pkg_name}-static %{mingw32_libdir}/libosmgpsmap3.a %files -n mingw64-%{mingw_pkg_name} %doc AUTHORS COPYING README NEWS %{mingw64_includedir}/* %{mingw64_libdir}/libosmgpsmap3.dll.a %{mingw64_bindir}/libosmgpsmap3-3.dll %{mingw64_libdir}/pkgconfig/osmgpsmap3.pc %files -n mingw64-%{mingw_pkg_name}-static %{mingw64_libdir}/libosmgpsmap3.a %changelog * Wed Apr 24 2013 Thomas Sailer - 0.8-0.0.3834f0e1095a856728afbbc0e5f3486fa0b4fe58 - Initial spec file from native package