File ccgfs.spec of Package ccgfs
#
# spec file for package ccgfs
#
# Copyright (c) 2012 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: %name-%version.tar.xz
Source2: %name-%version.tar.xz.asc
Source3: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: libattr-devel
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
BuildRequires: pkgconfig >= 0.19
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
%if 0%{?suse_version} >= 1200
%define with_systemd 1
BuildRequires: systemd >= 37
%{?systemd_requires}
%endif
%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
%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot" unitdir="%{?_unitdir}";
%if 0%{?_unitdir:1}
%pre
%service_add_pre ccgfs-super.service
%endif
%if 0%{?_unitdir:1}
%post
%service_add_post ccgfs-super.service
%endif
%preun
%stop_on_removal ccgfs-super
%if 0%{?_unitdir:1}
%service_del_preun ccgfs-super.service
%endif
%postun
%restart_on_update ccgfs-super
%insserv_cleanup
%if 0%{?_unitdir:1}
%service_del_postun ccgfs-super.service
%endif
%files
%defattr(-,root,root)
%_initddir/*
%if 0%{?_unitdir:1}
%_unitdir/*.service
%endif
%_sbindir/*
%doc doc/*.txt
%doc %_mandir/*/*
%changelog