geoclue/geoclue.spec

182 lines
5.9 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: geoclue
Version: 1.99.3
Release: 1mamba
Summary: A modular geoinformation service
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.freedesktop.org/wiki/Software/GeoClue
Source0: http://www.freedesktop.org/software/geoclue/releases/%{majver}/geoclue-%{version}.tar.xz
Patch0: libgeoclue-0.11.1.1-nm08.patch
Patch1: libgeoclue-0.12.0-NMCrash.patch
Patch2: libgeoclue-0.12.0-gcc-4.7.patch
Patch3: libgeoclue-0.12.99-gpsd-3.7.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libffi-devel
BuildRequires: libGeoIP-devel
BuildRequires: libglib-devel
BuildRequires: libjson-glib-devel
BuildRequires: liblzma-devel
BuildRequires: libselinux-devel
BuildRequires: libsoup-devel
BuildRequires: libsqlite-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: dbus
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# checking for CONIC... no MAEMO libraries
%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 apidocs
Group: Documentation
Summary: %{name} API documentation
%description apidocs
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 %{name} API documentation.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description 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.
This package contains libraries and header files need for development.
%package gpsd
Summary: gpsd provider for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gpsd
%description gpsd
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 a gpsd provider for %{name}
%package gsmloc
Summary: gsmloc provider for %{name}
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%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 contains a gsmloc provider for %{name}
%package gui
Summary: Testing gui for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description gui
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 a testing gui for %{name}
%package gypsy
Summary: gypsy provider for %{name}
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libgypsy
%description gypsy
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 a libgypsy provider for %{name}
%package static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
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 static libraries need for development.
%prep
%setup -q -n geoclue-%{version}
#%patch0 -p1 -b .nm08
#%patch1 -p1 -b .nmCrash
#%patch2 -p1
#%patch3 -p1
#
#libtoolize
#gtkdocize
#autoreconf
%build
%configure \
--enable-gtk-doc \
--enable-networkmanager=yes \
--enable-gypsy=yes \
--enable-skyhook=yes \
--enable-gsmloc=yes
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
#mkdir %{buildroot}%{_bindir}
#install -pm 755 test/.libs/geoclue-test-gui %{buildroot}%{_bindir}/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/geoip-lookup
%{_bindir}/geoip-update
%{_libexecdir}/geoclue
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%{_datadir}/geoclue-2.0/geoclue-interface.xml
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/geoclue-2.0.pc
%doc README
%changelog
* Fri Nov 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.99.3-1mamba
- update to 1.99.3 (renamed to geoclue)
* Sun Jun 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.99-2mamba
- rebuild with gpsd 3.7
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 0.12.99-1mamba
- update to 0.12.99
* Wed Sep 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.0-4mamba
- added gcc 4.7 patch
* Mon Sep 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.0-3mamba
- rebuilt with NetworkManager 0.9
* Fri Feb 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.0-2mamba
- rebuilt in devel
* Tue Nov 09 2010 gil <puntogil@libero.it> 0.12.0-1mamba
- update to 0.12.0
* Wed Apr 01 2009 gil <puntogil@libero.it> 0.11.1-1mamba
- package created by autospec