%global aname psd
Name: profile-sync-daemon
Version: 5.43
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
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
calls and speed-up browsers.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
make install-systemd-all DESTDIR=%{buildroot}
%post
# http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
# clean install is where $1 == 1
if [ $1 -eq 1 ]; then
setsebool -P rsync_full_access 1 >/dev/null 2>&1 || :
fi
%systemd_post %{aname}.service
%preun
# http://fedoraproject.org/wiki/PackagingDrafts/ScriptletSnippets
# clean unisntall is where $1 == 0
if [ $1 -eq 0 ]; then
setsebool -P rsync_full_access 0 >/dev/null 2>&1 || :
fi
%systemd_preun apache-httpd.service
%postun
%systemd_postun_with_restart %{aname}.service
%files
%doc CHANGELOG MIT
%config(noreplace) %{_sysconfdir}/%{aname}.conf
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_unitdir}/%{aname}*.*
%changelog
* Sun Nov 03 2013 Christopher Meng <rpm@cicku.me> - 5.43-1
- New version.
* Mon Sep 16 2013 Christopher Meng <rpm@cicku.me> - 5.40.1-1
- New upstream release.
* Mon Sep 02 2013 Christopher Meng <rpm@cicku.me> - 5.39-1
- New upstream release.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.38.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Jul 25 2013 Christopher Meng <rpm@cicku.me> - 5.38.2-1
- New upstream release.
* Sun Jun 16 2013 Christopher Meng <rpm@cicku.me> - 5.36.2-1
- New upstream release.
* Wed May 29 2013 Christopher Meng <rpm@cicku.me> - 5.35-1
- Initial Package.