File ccgfs.spec of Package ccgfs

#
# spec file for package ccgfs
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           ccgfs
Version:        0.81
Release:        0
Summary:        Transport-agnostic network filesystem
License:        GPL-3.0
Group:          System/Filesystems
Url:            http://ccgfs.sf.net/

#Git-Clone:	git://ccgfs.sf.net/gitroot/ccgfs/ccgfs
Source:         http://downloads.sf.net/ccgfs/%name-%version.tar.xz
Source2:        http://downloads.sf.net/ccgfs/%name-%version.tar.xz.asc
Source3:        %name.keyring
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  automake
BuildRequires:  libattr-devel
BuildRequires:  pkgconfig >= 0.19
BuildRequires:  systemd-rpm-macros
BuildRequires:  xz
BuildRequires:  pkgconfig(fuse) >= 2.6.5
BuildRequires:  pkgconfig(libHX) >= 3.12
BuildRequires:  pkgconfig(libcrypto) >= 0.9.7
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6

%description
ccgfs is a transport-agnostic filesystem. Common transport modes are
"pull" and "push", the latter of which makes it possible to export a
filesystem located in a LAN to a DMZ host without needing to allow
connections from the DMZ as would be the case with the pull model.
Any transport can be used, e.g. ssh for encryption.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
make install DESTDIR="%buildroot" unitdir="%{?_unitdir}";
ln -s ccgfs-super "%buildroot/%_sbindir/rcccgfs-super"
# Remove unwanted sysvinit script if system provides systemd support
rm -Rfv "%buildroot/%_initddir"

%pre
%service_add_pre ccgfs-super.service

%post
%service_add_post ccgfs-super.service

%preun
%service_del_preun ccgfs-super.service

%postun
%service_del_postun ccgfs-super.service

%files
%defattr(-,root,root)
%_unitdir/*.service
%_sbindir/*
%doc doc/*.txt
%doc %_mandir/*/*

%changelog
openSUSE Build Service is sponsored by