File mingw64-geoclue.spec of Package mingw64-geoclue
#
# spec file for package mingw64-geoclue
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw64-geoclue
Version: 0.12.99
Release: 0
Summary: Modular Geoinformation Service
License: LGPL-2.0-only
Group: Development/Libraries/C and C++
Url: http://geoclue.freedesktop.org/
Source: http://folks.o-hand.com/jku/geoclue-releases/geoclue-%{version}.tar.gz
Patch0: geoclue-0.12.0-win32reloc.patch
Patch1: geoclue-0.12.99-ldflags.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dbus-1-glib-devel
BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: libxslt
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-dbus-1-glib-devel
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-gconf2-devel
BuildRequires: mingw64-gettext-tools
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gtk2-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-win_iconv-devel
BuildRequires: python
%_mingw64_package_header_debug
BuildArch: noarch
%description
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%package -n mingw64-libgeoclue0
Summary: Modular Geoinformation Service - Library
Group: System/Libraries
Obsoletes: mingw64-libgeoclue < %version-%release
Provides: mingw64-libgeoclue = %version-%release
%description -n mingw64-libgeoclue0
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%package -n mingw64-libgeoclue-devel
Summary: Modular Geoinformation Service - Development Files
Group: Development/Libraries/C and C++
%description -n mingw64-libgeoclue-devel
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%package recommended
Summary: Modular Geoinformation Service - Recommended providers
Group: Development/Libraries
%description recommended
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package contains providers that do not require external
dependencies.
%package gsmloc
Summary: Modular Geoinformation Service - GSM backend
Group: Development/Libraries
%description gsmloc
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides a backend, using information coming from a GSM
(cellular) device through gammu and opencellid.org.
%package example
Summary: Modular Geoinformation Service - Example backend
Group: Development/Libraries
%description example
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides an example backend.
%_mingw64_debug_package
%prep
%setup -q -n geoclue-%{version}
%patch -P 0 -p1 -b .win32reloc
%patch -P 1 -p1 -b .ldflags
%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw64_libexecdir}/geoclue-master.exe
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Master.service
%{_mingw64_datadir}/GConf/gsettings/geoclue
%{_mingw64_datadir}/glib-2.0/schemas/org.freedesktop.Geoclue.gschema.xml
%files -n mingw64-libgeoclue0
%defattr(-,root,root)
%{_mingw64_bindir}/libgeoclue-0.dll
%files -n mingw64-libgeoclue-devel
%defattr(-,root,root)
%{_mingw64_includedir}/geoclue
%{_mingw64_datadir}/gtk-doc/html/geoclue
%{_mingw64_libdir}/libgeoclue.dll.a
%{_mingw64_libdir}/pkgconfig/geoclue.pc
%files recommended
%defattr(-,root,root)
%{_mingw64_libexecdir}/geoclue-geonames.exe
%{_mingw64_libexecdir}/geoclue-hostip.exe
%{_mingw64_libexecdir}/geoclue-localnet.exe
%{_mingw64_libexecdir}/geoclue-manual.exe
%{_mingw64_libexecdir}/geoclue-nominatim.exe
%{_mingw64_libexecdir}/geoclue-plazes.exe
%{_mingw64_libexecdir}/geoclue-yahoo.exe
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Geonames.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Hostip.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Localnet.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Manual.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Yahoo.service
%{_mingw64_datadir}/geoclue-providers/geoclue-geonames.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-hostip.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-localnet.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-manual.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-nominatim.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-plazes.provider
%{_mingw64_datadir}/geoclue-providers/geoclue-yahoo.provider
%files gsmloc
%defattr(-,root,root)
%{_mingw64_libexecdir}/geoclue-gsmloc.exe
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gsmloc.service
%{_mingw64_datadir}/geoclue-providers/geoclue-gsmloc.provider
%files example
%defattr(-,root,root)
%{_mingw64_libexecdir}/geoclue-example.exe
%{_mingw64_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Example.service
%{_mingw64_datadir}/geoclue-providers/geoclue-example.provider
%changelog