bc56ad5
Name:           geoclue2
1be9468
Version:        2.5.3
1be9468
Release:        1%{?dist}
bc56ad5
Summary:        Geolocation service
bc56ad5
bc56ad5
License:        GPLv2+
bc56ad5
URL:            http://www.freedesktop.org/wiki/Software/GeoClue/
1d733c2
Source0:        https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
bc56ad5
443b270
BuildRequires:  avahi-glib-devel
1d733c2
BuildRequires:  gettext
bc56ad5
BuildRequires:  glib2-devel
443b270
BuildRequires:  gobject-introspection-devel
1d733c2
BuildRequires:  gtk-doc
bc56ad5
BuildRequires:  json-glib-devel
bc56ad5
BuildRequires:  libsoup-devel
1d733c2
BuildRequires:  meson
Richard Hughes ba8cd6b
BuildRequires:  ModemManager-glib-devel
d2c2ba3
BuildRequires:  systemd
3dc707a
BuildRequires:  vala
8f2f176
Requires(pre):  shadow-utils
d2c2ba3
Requires(post): systemd
d2c2ba3
Requires(preun): systemd
d2c2ba3
Requires(postun): systemd
bc56ad5
Requires:       dbus
bc56ad5
fdf5dc2
Obsoletes:      geoclue2-server < 2.1.8
fdf5dc2
b337ed1
Obsoletes:      geoclue < 0.12.99-10
b337ed1
Obsoletes:      geoclue-devel < 0.12.99-10
b337ed1
Obsoletes:      geoclue-gsmloc < 0.12.99-10
b337ed1
Obsoletes:      geoclue-gui < 0.12.99-10
b337ed1
Obsoletes:      geoclue-gypsy < 0.12.99-10
b337ed1
bc56ad5
%description
bc56ad5
Geoclue is a D-Bus service that provides location information. The primary goal
bc56ad5
of the Geoclue project is to make creating location-aware applications as
bc56ad5
simple as possible, while the secondary goal is to ensure that no application
bc56ad5
can access location information without explicit permission from user.
bc56ad5
bc56ad5
443b270
%package        libs
443b270
Summary:        Geoclue client library
443b270
License:        LGPLv2+
443b270
Requires:       %{name}%{?_isa} = %{version}-%{release}
443b270
443b270
%description    libs
443b270
The %{name}-libs package contains a convenience library to interact with
443b270
Geoclue service.
443b270
443b270
bc56ad5
%package        devel
bc56ad5
Summary:        Development files for %{name}
bc56ad5
Requires:       %{name}%{?_isa} = %{version}-%{release}
443b270
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
bc56ad5
bc56ad5
%description    devel
bc56ad5
The %{name}-devel package contains files for developing applications that
bc56ad5
use %{name}.
bc56ad5
443b270
504657c
%package        demos
504657c
Summary:        Demo applications for %{name}
504657c
Requires:       %{name}%{?_isa} = %{version}-%{release}
4760a7b
BuildRequires:  libnotify-devel
504657c
504657c
%description    demos
504657c
The %{name}-demos package contains demo applications that use %{name}.
504657c
bc56ad5
bc56ad5
%prep
bc56ad5
%setup -q -n geoclue-%{version}
bc56ad5
bc56ad5
bc56ad5
%build
1d733c2
%meson -Ddbus-srv-user=geoclue
1d733c2
%meson_build
bc56ad5
bc56ad5
bc56ad5
%install
1d733c2
%meson_install
443b270
9d7f8fb
# Home directory for the 'geoclue' user
9d7f8fb
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
9d7f8fb
bc56ad5
8f2f176
%pre
2161982
# Update the home directory for existing users
2161982
getent passwd geoclue >/dev/null && \
2161982
    usermod -d /var/lib/geoclue geoclue &>/dev/null
2161982
# Create a new user and group if they don't exist
8f2f176
getent group geoclue >/dev/null || groupadd -r geoclue
8f2f176
getent passwd geoclue >/dev/null || \
9d7f8fb
    useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
8f2f176
    -c "User for geoclue" geoclue
8f2f176
exit 0
8f2f176
d2c2ba3
%post
d2c2ba3
%systemd_post geoclue.service
d2c2ba3
d2c2ba3
%preun
d2c2ba3
%systemd_preun geoclue.service
d2c2ba3
d2c2ba3
%postun
d2c2ba3
%systemd_postun_with_restart geoclue.service
d2c2ba3
8f2f176
bc56ad5
%files
839d00f
%license COPYING
839d00f
%doc NEWS
9ecebc5
%config %{_sysconfdir}/geoclue/
Bastien Nocera 82abd08
%dir %{_libexecdir}/geoclue-2.0
Bastien Nocera 82abd08
%dir %{_libexecdir}/geoclue-2.0/demos
bc56ad5
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
Richard Hughes ba8cd6b
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
Bastien Nocera 82abd08
%{_sysconfdir}/xdg/autostart/geoclue-demo-agent.desktop
bc56ad5
%{_libexecdir}/geoclue
bc56ad5
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
Bastien Nocera 82abd08
%{_datadir}/applications/geoclue-demo-agent.desktop
1be9468
%{_mandir}/man5/geoclue.5*
Richard Hughes ba8cd6b
%{_unitdir}/geoclue.service
Bastien Nocera 82abd08
%{_libexecdir}/geoclue-2.0/demos/agent
9d7f8fb
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
bc56ad5
443b270
%files libs
443b270
%license COPYING.LIB
5cac156
%dir %{_libdir}/girepository-1.0
443b270
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
443b270
%{_libdir}/libgeoclue-2.so.0*
443b270
bc56ad5
%files devel
b0ae45a
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
5cac156
%dir %{_datadir}/gir-1.0
443b270
%{_datadir}/gir-1.0/Geoclue-2.0.gir
1d733c2
%dir %{_datadir}/gtk-doc
1d733c2
%dir %{_datadir}/gtk-doc/html
1d733c2
%{_datadir}/gtk-doc/html/geoclue/
1d733c2
%{_datadir}/gtk-doc/html/libgeoclue/
3dc707a
%dir %{_datadir}/vala
3dc707a
%dir %{_datadir}/vala/vapi
3dc707a
%{_datadir}/vala/vapi/libgeoclue-2.0.*
443b270
%{_includedir}/libgeoclue-2.0/
bc56ad5
%{_libdir}/pkgconfig/geoclue-2.0.pc
443b270
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
443b270
%{_libdir}/libgeoclue-2.so
bc56ad5
504657c
%files demos
504657c
%{_libexecdir}/geoclue-2.0/demos/where-am-i
504657c
%{_datadir}/applications/geoclue-where-am-i.desktop
bc56ad5
1d733c2
bc56ad5
%changelog
1be9468
* Thu May 16 2019 Kalev Lember <klember@redhat.com> - 2.5.3-1
1be9468
- Update to 2.5.3
1be9468
47231ca
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
47231ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
47231ca
4f6c761
* Fri Jan 11 2019 Kalev Lember <klember@redhat.com> - 2.5.2-1
4f6c761
- Update to 2.5.2
4f6c761
4f65db1
* Tue Oct 16 2018 Kalev Lember <klember@redhat.com> - 2.5.1-1
4f65db1
- Update to 2.5.1
4f65db1
1d733c2
* Sun Oct 14 2018 Kalev Lember <klember@redhat.com> - 2.5.0-1
1d733c2
- Update to 2.5.0
1d733c2
- Switch to the meson build system
1d733c2
- Build gtk-doc documentation
e11cf63
- Remove ldconfig scriptlets
1d733c2
391ec52
* Thu Jul 26 2018 Kalev Lember <klember@redhat.com> - 2.4.11-1
391ec52
- Update to 2.4.11
3dc707a
- Include vala bindings
5cac156
- Fix gir directory ownership
391ec52
b69cab1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.10-2
b69cab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b69cab1
Bastien Nocera 40c7448
* Thu May 03 2018 Bastien Nocera <bnocera@redhat.com> - 2.4.10-1
Bastien Nocera 40c7448
+ geoclue2-2.4.10-1
Bastien Nocera 40c7448
- Update to 2.4.10
Bastien Nocera 40c7448
Bastien Nocera 57eab3b
* Thu May 03 2018 Bastien Nocera <bnocera@redhat.com> - 2.4.9-1
Bastien Nocera 57eab3b
+ geoclue2-2.4.9-1
Bastien Nocera 57eab3b
- Update to 2.4.9
Bastien Nocera 57eab3b
9ea9896
* Thu Apr 12 2018 Kalev Lember <klember@redhat.com> - 2.4.8-1
9ea9896
- Update to 2.4.8
9ea9896
c933602
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-4
c933602
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c933602
63f78ee
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4.7-3
63f78ee
- Switch to %%ldconfig_scriptlets
63f78ee
b337ed1
* Wed Nov 29 2017 Lubomir Rintel <lkundrak@v3.sk> - 2.4.7-2
b337ed1
- Obsolete old geoclue
b337ed1
c2fc2df
* Tue Sep 05 2017 Kalev Lember <klember@redhat.com> - 2.4.7-1
c2fc2df
- Update to 2.4.7
c2fc2df
f992002
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-6
f992002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f992002
7e24ed0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-5
7e24ed0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7e24ed0
Florian Müllner 5509b93
* Fri Mar 24 2017 Florian Müllner <fmuellner@redhat.com> - 32.4.5-4
Florian Müllner 5509b93
- Add gnome-shell's weather integration to the whitelist
Florian Müllner 5509b93
be189f2
* Wed Mar 01 2017 Kalev Lember <klember@redhat.com> - 2.4.5-3
be189f2
- Add "Night Light" functionality to the whitelist
be189f2
bb204bc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-2
bb204bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb204bc
08fc0bd
* Fri Jan 27 2017 Kalev Lember <klember@redhat.com> - 2.4.5-1
08fc0bd
- Update to 2.4.5
08fc0bd
Bastien Nocera 3341ad4
* Tue Sep 06 2016 Bastien Nocera <bnocera@redhat.com> - 2.4.4-1
Bastien Nocera 3341ad4
- Update to 2.4.4
Bastien Nocera 3341ad4
4092cd7
* Tue Mar 08 2016 Zeeshan Ali <zeenix@redhat.com> 2.4.3-1
4092cd7
- Update to 2.4.3.
4092cd7
39c014d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
39c014d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
39c014d
6375558
* Tue Dec 08 2015 Kalev Lember <klember@redhat.com> - 2.4.1-1
6375558
- Update to 2.4.1
6375558
443b270
* Wed Nov 04 2015 Kalev Lember <klember@redhat.com> - 2.4.0-1
443b270
- Update to 2.4.0
443b270
- Package new libgeoclue-2.0 library in -libs subpackage
8cad104
- Fix directory ownership for /usr/libexec/geoclue-2.0/demos/
839d00f
- Use license macro for COPYING
443b270
acac179
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
acac179
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
acac179
eed4a70
* Thu Apr 16 2015 Zeeshan Ali <zeenix@redhat.com> 2.2.0-1
eed4a70
- Update to 2.2.0.
eed4a70
504657c
* Tue Apr  7 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-2
504657c
- Package demo applications too.
504657c
f0d3ff8
* Tue Jan  6 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.10-1
f0d3ff8
- Update to 2.1.10
f0d3ff8
f0578a6
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-2
f0578a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f0578a6
1be4713
* Sat Jun 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.9-1
1be4713
- Update to 2.1.9
1be4713
8dba767
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.8-2
8dba767
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8dba767
fdf5dc2
* Wed Apr 16 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.8-1
fdf5dc2
- Update to 2.1.8
fdf5dc2
- Remove and obsolete the -server subpackage
fdf5dc2
b0ae45a
* Wed Mar 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.7-1
b0ae45a
- Update to 2.1.7
b0ae45a
9ecebc5
* Fri Mar 07 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.6-1
9ecebc5
- Update to 2.1.6
9ecebc5
d2c2ba3
* Thu Feb 06 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.2-2
d2c2ba3
- Add systemd rpm scripts
14f49a5
- Don't install the demo .desktop files
d2c2ba3
Richard Hughes ba8cd6b
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.1.2-1
Richard Hughes ba8cd6b
- Update to 2.1.2
Richard Hughes ba8cd6b
2b2a493
* Sun Oct 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.0.0-1
2b2a493
- Update to 2.0.0
9d7f8fb
- Create a home directory for the 'geoclue' user
2b2a493
8f2f176
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
8f2f176
- Run the service as 'geoclue' user
8f2f176
690ae44
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
690ae44
- Update to 1.99.4
690ae44
c5b4d11
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.3-1
c5b4d11
- Update to 1.99.3
c5b4d11
bc56ad5
* Sun Aug 25 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-3
bc56ad5
- Update -devel subpackage description (#999153)
bc56ad5
bc56ad5
* Sat Aug 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-2
bc56ad5
- Review fixes (#999153)
bc56ad5
- Drop ldconfig calls that are unnecessary now that the shared library is gone
bc56ad5
- Drop the build dep on gobject-introspection-devel
bc56ad5
- Include API-Documentation.txt in the -server subpackage
bc56ad5
bc56ad5
* Fri Aug 23 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-1
bc56ad5
- Update to 1.99.2
bc56ad5
- The shared library is gone in this release and all users should use the
bc56ad5
  dbus service directly
bc56ad5
bc56ad5
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-3
bc56ad5
- Include geoip-lookup in the -server subpackage as well
bc56ad5
bc56ad5
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-2
bc56ad5
- Ship geoip-update in -server subpackage
bc56ad5
bc56ad5
* Tue Aug 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-1
bc56ad5
- Initial Fedora packaging