rpms/gypsy/F-10 0001-Make-gypsy-run-as-a-system-service.patch, NONE, 1.1 gypsy.spec, 1.2, 1.3
Peter Robinson
pbrobinson at fedoraproject.org
Sun Jun 21 15:59:51 UTC 2009
Author: pbrobinson
Update of /cvs/pkgs/rpms/gypsy/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32692
Modified Files:
gypsy.spec
Added Files:
0001-Make-gypsy-run-as-a-system-service.patch
Log Message:
- Gypsy is supposed to run as a system service, as root
0001-Make-gypsy-run-as-a-system-service.patch:
--- NEW FILE 0001-Make-gypsy-run-as-a-system-service.patch ---
>From bc78b39b170e6deda19327aa2ea1a08cdbc2a311 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Fri, 19 Jun 2009 12:59:24 +0100
Subject: [PATCH] Make gypsy run as a system service
Fix the location of the service file, and make sure gypsy gets
run as root.
---
configure.ac | 2 +-
org.freedesktop.Gypsy.service.in | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7aa1b3b..a8169b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
AC_SUBST(DBUS_SYS_DIR)
AC_DEFINE_UNQUOTED(DBUS_SYS_DIR, "$DBUS_SYS_DIR", [Where the system dir for D-Bus is])
-DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
+DBUS_SERVICES_DIR="${datadir}/dbus-1/system-services"
AC_SUBST(DBUS_SERVICES_DIR)
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for D-Bus is])
diff --git a/org.freedesktop.Gypsy.service.in b/org.freedesktop.Gypsy.service.in
index ae7b9ef..f93eed6 100644
--- a/org.freedesktop.Gypsy.service.in
+++ b/org.freedesktop.Gypsy.service.in
@@ -1,3 +1,4 @@
[D-BUS Service]
Name=org.freedesktop.Gypsy
Exec=@libexecdir@/gypsy-daemon
+User=root
--
1.6.2.2
Index: gypsy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gypsy/F-10/gypsy.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- gypsy.spec 11 Sep 2008 14:16:37 -0000 1.2
+++ gypsy.spec 21 Jun 2009 15:59:20 -0000 1.3
@@ -1,7 +1,7 @@
Name: gypsy
Version: 0.6
-Release: 4%{?dist}
-Summary: Gypsy is a GPS multiplexing daemon
+Release: 9%{?dist}
+Summary: A GPS multiplexing daemon
Group: System Environment/Libraries
# See LICENSE file for details
@@ -10,12 +10,18 @@ URL: http://gypsy.freedesktop
Source0: http://gypsy.freedesktop.org/gypsy-releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: 0001-Make-gypsy-run-as-a-system-service.patch
+
+BuildRequires: bluez-libs-devel
BuildRequires: dbus-devel
BuildRequires: dbus-glib-devel
-BuildRequires: bluez-libs-devel
BuildRequires: glib2-devel
+BuildRequires: gtk-doc
BuildRequires: libxslt
+# For patch0
+BuildRequires: automake autoconf libtool
+
Requires: dbus
%description
@@ -25,16 +31,30 @@ access GPS data from multiple GPS source
%package devel
Summary: Development package for gypsy
Group: Development/Libraries
-Requires: gypsy = %{PACKAGE_VERSION}
+Requires: %{name} = %{version}-%{release}
+Requires: dbus-glib-devel
Requires: pkgconfig
-Requires: gtk-doc
%description devel
Header files for development with gypsy.
+%package docs
+Summary: Documentation files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: gtk-doc
+BuildArch: noarch
+
+%description docs
+This package contains developer documentation for %{name}.
+
%prep
%setup -q
+%patch0 -p1 -b .dbus
+libtoolize -f
+autoreconf
+
%build
%configure --disable-static
make %{?_smp_mflags}
@@ -55,21 +75,37 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.lib LICENSE
%{_sysconfdir}/dbus-1/system.d/Gypsy.conf
-%{_datadir}/dbus-1/services/org.freedesktop.Gypsy.service
+%{_datadir}/dbus-1/system-services/org.freedesktop.Gypsy.service
%{_libexecdir}/gypsy-daemon
%{_libdir}/libgypsy.so.0
%{_libdir}/libgypsy.so.0.0.0
%files devel
-%defattr(-,root,root)
-%dir %{_includedir}/gypsy/
-%dir %{_datadir}/gtk-doc/html/gypsy/
-%doc %{_datadir}/gtk-doc/html/gypsy/*
+%defattr(-,root,root,-)
%{_libdir}/pkgconfig/gypsy.pc
-%{_includedir}/gypsy/*
+%{_includedir}/gypsy
%{_libdir}/libgypsy.so
+%files docs
+%defattr(-,root,root,-)
+%doc %{_datadir}/gtk-doc/html/gypsy
+
%changelog
+* Fri Jun 19 2009 Bastien Nocera <bnocera at redhat.com> 0.6-9
+- Gypsy is supposed to run as a system service, as root
+
+* Wed Mar 4 2009 Peter Robinson <pbrobinson at gmail.com> 0.6-8
+- Move docs to noarch, some spec file updates
+
+* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Thu Dec 18 2008 Peter Robinson <pbrobinson at gmail.com> 0.6-6
+- Add gtk-doc build req
+
+* Sat Nov 22 2008 Peter Robinson <pbrobinson at gmail.com> 0.6-5
+- Rebuild
+
* Thu Sep 11 2008 - Bastien Nocera <bnocera at redhat.com> 0.6-4
- Rebuild
More information about the fedora-extras-commits
mailing list