geoclue2/geoclue2.spec

125 lines
3.6 KiB
RPMSpec
Raw Normal View History

2013-08-26 13:35:42 +00:00
Name: geoclue2
2013-10-06 08:44:11 +00:00
Version: 2.0.0
Release: 1%{?dist}
2013-08-26 13:35:42 +00:00
Summary: Geolocation service
License: GPLv2+
URL: http://www.freedesktop.org/wiki/Software/GeoClue/
2013-10-06 08:44:11 +00:00
Source0: http://www.freedesktop.org/software/geoclue/releases/2.0/geoclue-%{version}.tar.xz
2013-08-26 13:35:42 +00:00
BuildRequires: GeoIP-devel
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: json-glib-devel
BuildRequires: libsoup-devel
2013-09-19 12:57:25 +00:00
Requires(pre): shadow-utils
2013-08-26 13:35:42 +00:00
Requires: dbus
%description
Geoclue is a D-Bus service that provides location information. The primary goal
of the Geoclue project is to make creating location-aware applications as
simple as possible, while the secondary goal is to ensure that no application
can access location information without explicit permission from user.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains files for developing applications that
use %{name}.
%package server
Summary: Server for IP address geolocation
Requires: %{name}%{?_isa} = %{version}-%{release}
%description server
The %{name}-server package contains the geoip-lookup and geoip-update binaries
for running on IP address geolocation servers.
%prep
%setup -q -n geoclue-%{version}
%build
2013-09-19 12:57:25 +00:00
%configure --with-dbus-service-user=geoclue
2013-08-26 13:35:42 +00:00
make %{?_smp_mflags} V=1
%install
%make_install
# Home directory for the 'geoclue' user
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
2013-08-26 13:35:42 +00:00
2013-09-19 12:57:25 +00:00
%pre
# Update the home directory for existing users
getent passwd geoclue >/dev/null && \
usermod -d /var/lib/geoclue geoclue &>/dev/null
# Create a new user and group if they don't exist
2013-09-19 12:57:25 +00:00
getent group geoclue >/dev/null || groupadd -r geoclue
getent passwd geoclue >/dev/null || \
useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
2013-09-19 12:57:25 +00:00
-c "User for geoclue" geoclue
exit 0
2013-08-26 13:35:42 +00:00
%files
%doc COPYING NEWS
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
%{_libexecdir}/geoclue
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%{_datadir}/geoclue-2.0/
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
2013-08-26 13:35:42 +00:00
%files devel
%{_libdir}/pkgconfig/geoclue-2.0.pc
%files server
%doc src/geoip-server/API-Documentation.txt
%{_bindir}/geoip-lookup
%{_bindir}/geoip-update
%changelog
2013-10-06 08:44:11 +00:00
* Sun Oct 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.0.0-1
- Update to 2.0.0
- Create a home directory for the 'geoclue' user
2013-10-06 08:44:11 +00:00
2013-09-19 12:57:25 +00:00
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
- Run the service as 'geoclue' user
2013-09-18 20:33:45 +00:00
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
- Update to 1.99.4
2013-09-03 19:26:45 +00:00
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.3-1
- Update to 1.99.3
2013-08-26 13:35:42 +00:00
* Sun Aug 25 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-3
- Update -devel subpackage description (#999153)
* Sat Aug 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-2
- Review fixes (#999153)
- Drop ldconfig calls that are unnecessary now that the shared library is gone
- Drop the build dep on gobject-introspection-devel
- Include API-Documentation.txt in the -server subpackage
* Fri Aug 23 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-1
- Update to 1.99.2
- The shared library is gone in this release and all users should use the
dbus service directly
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-3
- Include geoip-lookup in the -server subpackage as well
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-2
- Ship geoip-update in -server subpackage
* Tue Aug 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-1
- Initial Fedora packaging