File archivemount.spec of Package archivemount
#
# spec file for package archivemount
#
# Copyright (c) 2015 SUSE LINUX 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: archivemount
Version: 0.8.4
Release: 0
Summary: Mounts an archive for access as a file system
License: LGPL-2.1+ and BSD-2-Clause
Group: Productivity/Archiving/Compression
Url: http://www.cybernoia.de/software/archivemount/
Source: http://www.cybernoia.de/software/archivemount/%{name}-%{version}.tar.gz
Patch0: archivemount-%{version}.dif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fuse-devel
BuildRequires: libarchive-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Archivemount is a piece of glue code between libarchive (http://code.google.com/p/libarchive/) and FUSE
(http://fuse.sourceforge.net). It can be used to mount a (possibly compressed) archive (as in .tar.gz or
.tar.bz2) and use it like an ordinary filesystem.
%prep
%setup -q
%patch0
%build
cflags ()
{
local flag=$1; shift
local var=$1; shift
test -n "${flag}" -a -n "${var}" || return
case "${!var}" in
*${flag}*) return
esac
set -o noclobber
case "$flag" in
-Wl,*)
if echo 'int main () { return 0; }' | \
${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then
eval $var=\${$var:+\$$var\ }$flag
fi
;;
*)
if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then
eval $var=\${$var:+\$$var\ }$flag
fi
if ${CXX:-g++} -Werror $flag -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then
eval $var=\${$var:+\$$var\ }$flag
fi
esac
set +o noclobber
}
LDFLAGS=
cflags -Wl,-O2 LDFLAGS
cflags -Wl,--as-needed LDFLAGS
cflags -Wl,--hash-size=8599 LDFLAGS
CFLAGS=
cflags -Wall CFLAGS
cflags -Wextra CFLAGS
cflags -pipe CFLAGS
cflags -pthread CFLAGS
cflags -pthreads CFLAGS
cflags -mthread CFLAGS
cflags -mthreads CFLAGS
cflags -g2 CFLAGS
cflags -ggdb CFLAGS
cflags -ftree-loop-im CFLAGS
cflags -funswitch-loops CFLAGS
cflags -fprefetch-loop-arrays CFLAGS
cflags -fgraphite-identity CFLAGS
cflags -ftree-loop-linear CFLAGS
cflags -floop-flatten CFLAGS
cflags -floop-parallelize-all CFLAGS
autoreconf --force --install
%global optflags %{optflags} -D_REENTRANT $LDFLAGS $CFLAGS
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root,0755)
%doc CHANGELOG README COPYING
%{_bindir}/archivemount
%{_mandir}/man1/archivemount.1.gz
%changelog