[profile-sync-daemon/f18] New version

Christopher Meng cicku at fedoraproject.org
Sun Jun 16 18:01:00 UTC 2013


commit 17668916ed2a6ff7bf93502553ceaaa5e7887b6e
Author: Christopher Meng <rpm at cicku.me>
Date:   Mon Jun 17 01:59:57 2013 +0800

    New version

 .gitignore               |    1 +
 profile-sync-daemon.spec |   38 ++++++++++++++++++++++++--------------
 sources                  |    1 +
 3 files changed, 26 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5b729aa..b1e09d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /v5.35.tar.gz
+/v5.36.2.tar.gz
diff --git a/profile-sync-daemon.spec b/profile-sync-daemon.spec
index 4f69d01..0181944 100644
--- a/profile-sync-daemon.spec
+++ b/profile-sync-daemon.spec
@@ -1,15 +1,19 @@
-%global aname psd
+%global   aname    psd
 
-Name:         profile-sync-daemon 
-Version:      5.35
-Release:      1%{?dist}
-Summary:      Offload browser profiles to RAM for speed a wear reduction
-License:      MIT
-URL:          https://github.com/graysky2/profile-sync-daemon 
-Source0:      https://github.com/graysky2/%{name}/archive/v%{version}.tar.gz
+Name:              profile-sync-daemon 
+Version:           5.36.2
+Release:           1%{?dist}
+Summary:           Offload browser profiles to RAM for speed a wear reduction
+License:           MIT
+URL:               https://github.com/graysky2/profile-sync-daemon 
+Source0:           https://github.com/graysky2/%{name}/archive/v%{version}.tar.gz
 
-BuildArch:    noarch
-Requires:     rsync
+BuildArch:         noarch
+BuildRequires:     systemd
+Requires:          rsync
+Requires(post):    systemd
+Requires(preun):   systemd
+Requires(postun):  systemd
 
 %description
 Symlinks and syncs browser profiles to RAM via tmpfs which will reduce HDD/SDD
@@ -17,13 +21,12 @@ calls and speed-up browsers.
 
 %prep
 %setup -q
-ln -s Makefile.fedora18 Makefile
 
 %build
 make %{?_smp_mflags}
 
 %install
-make install DESTDIR=%{buildroot}
+make install-systemd-all DESTDIR=%{buildroot}
 
 %post
 # http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
@@ -32,25 +35,32 @@ if [ $1 -eq 1 ]; then
 setsebool -P rsync_full_access 1 >/dev/null 2>&1 || :
 fi
 # upgrade is where $1 == 2
+%systemd_post %{aname}.service
 
 %preun
 # http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
 # clean unisntall is where $1 == 0
 if [ $1 -eq 0 ]; then
 	if [ -f /run/psd ]; then
-		systemctl stop psd.service
+		systemctl stop %{aname}.service
 	fi
 setsebool -P rsync_full_access 0 >/dev/null 2>&1 || :
 fi
 # upgrade is where $1 == 1
 
+%postun
+%systemd_postun_with_restart %{aname}.service
+
 %files
-%doc CHANGELOG LICENSE
+%doc CHANGELOG MIT
 %config(noreplace) %{_sysconfdir}/%{aname}.conf
 %{_bindir}/*
 %{_mandir}/man1/*.1*
 %{_unitdir}/%{aname}*.*
 
 %changelog
+* Sun Jun 16 2013 Christopher Meng <rpm at cicku.me> - 5.36.2-1
+- New upstream release.
+
 * Wed May 29 2013 Christopher Meng <rpm at cicku.me> - 5.35-1
 - Initial Package.
diff --git a/sources b/sources
index 70b8d64..a8c2a35 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 3b521b1bf9ec0d1cd7c311f3cb57e648  v5.35.tar.gz
+ca75f4618f7ea960a1015f5107681cd1  v5.36.2.tar.gz


More information about the scm-commits mailing list