File profile-sync-daemon.spec of Package profile-sync-daemon

#
# spec file for package profile-sync-daemon
#



%global shortname psd
Name:           profile-sync-daemon
Version:        6.x
Release:        0
Summary:        Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls
License:        MIT
URL:            https://github.com/graysky2/profile-sync-daemon
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  rsync
BuildRequires:  systemd-rpm-macros
BuildRequires:  fdupes
BuildRequires:  zsh
Requires:       rsync
BuildArch:      noarch

%description
Profile-sync-daemon (psd) is a tiny pseudo-daemon designed to manage your
browser's profile in tmpfs and to periodically sync it back to your physical
disc (HDD/SSD). This is accomplished via a symlinking step and an innovative
use of rsync to maintain back-up and synchronization between the two. One of
the major design goals of psd is a completely transparent user experience.

%package        zsh-completion
Summary:        zsh completion for %{name}
Requires:       %{name} = %{version}
Supplements:    (%{name} and zsh)

%description    zsh-completion
Zsh completion for %{name}.

%prep
%autosetup -p1


%build
%make_build


%install
%make_install
%fdupes %{buildroot}/%{_datadir}/%{shortname}/


%post
%{systemd_user_post %{shortname}.service}

%preun
%{systemd_user_preun %{shortname}.service}

%postun
%{systemd_user_postun_with_restart %{shortname}.service}

%files
%doc README.md
%license MIT LICENSE
%{_bindir}/%{name}
%{_bindir}/%{shortname}
%{_bindir}/%{shortname}-overlay-helper
%{_bindir}/%{shortname}-suspend-sync
%{_datadir}/%{shortname}/
%{_mandir}/man1/*.1%{?ext_man}
%{_userunitdir}/*.{service,timer}

%files zsh-completion
%{_datadir}/zsh/site-functions/_%{shortname}


%changelog
openSUSE Build Service is sponsored by