.
OBS-URL: https://build.opensuse.org/package/show/Archiving/avfs?expand=0&rev=1
This commit is contained in:
139
avfs.spec
Normal file
139
avfs.spec
Normal file
@@ -0,0 +1,139 @@
|
||||
#
|
||||
# spec file for package avfs
|
||||
#
|
||||
# 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: avfs
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: AVFS - A Virtual File System
|
||||
Group: Productivity/Archiving/Compression
|
||||
License: LGPL-2.1+
|
||||
Url: http://avf.sourceforge.net/
|
||||
BuildRequires: fuse-devel
|
||||
BuildRequires: help2man
|
||||
BuildRequires: libbz2-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libext2fs-devel
|
||||
BuildRequires: libneon-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: xz-devel
|
||||
Source: avfs-1.0.0.tar.bz2
|
||||
Patch: avfs-1.0.0.dif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
AVFS is a system, which enables all programs to look inside archived or
|
||||
compressed files, or access remote files without recompiling the programs
|
||||
or changing the kernel.
|
||||
|
||||
%package devel
|
||||
Summary: AVFS - the development part
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libavfs0
|
||||
|
||||
%description devel
|
||||
This package includes the development file for the package avfs.
|
||||
AVFS is a system, which enables all programs to look inside archived or
|
||||
compressed files, or access remote files without recompiling the programs
|
||||
or changing the kernel.
|
||||
|
||||
%package -n libavfs0
|
||||
Summary: AVFS - the shared library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libavfs0
|
||||
This package includes the runtime shared library for the package avfs.
|
||||
AVFS is a system, which enables all programs to look inside archived or
|
||||
compressed files, or access remote files without recompiling the programs
|
||||
or changing the kernel.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
%global optflags %{optflags} -D_REENTRANT -pipe
|
||||
%configure \
|
||||
--disable-avfscoda \
|
||||
--enable-library \
|
||||
--enable-fuse \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--with-system-zlib \
|
||||
--with-system-bzlib \
|
||||
--with-gnu-ld \
|
||||
--with-pic \
|
||||
--with-ssl \
|
||||
--with-xz
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
|
||||
pushd %{buildroot}/%{_libexecdir}/avfs/extfs/
|
||||
mv uzip ext-uzip
|
||||
mv urar ext-urar
|
||||
popd
|
||||
mkdir -p %{buildroot}/%{_mandir}/man1/
|
||||
pushd %{buildroot}/%{_mandir}/man1/
|
||||
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} \
|
||||
PATH=%{buildroot}/%{_bindir}:$PATH \
|
||||
help2man -s 1 -N --no-discard-stderr avfsd | \
|
||||
sed 's/^FUSE \\- .*/AVFS - A Virtual File System/' > \
|
||||
avfsd.1
|
||||
popd
|
||||
|
||||
rm -vf %{buildroot}/%{_libdir}/libavfs.la
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -n libavfs0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libavfs0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
%doc ChangeLog README COPYING NEWS TODO
|
||||
%doc doc/api-overview
|
||||
%doc doc/background
|
||||
%doc doc/FORMAT
|
||||
%doc doc/README.avfs-fuse
|
||||
%{_bindir}/avfsd
|
||||
%{_bindir}/davpass
|
||||
%{_bindir}/ftppass
|
||||
%{_bindir}/mountavfs
|
||||
%{_bindir}/umountavfs
|
||||
%dir %{_libexecdir}/avfs
|
||||
%dir %{_libexecdir}/avfs/extfs
|
||||
%{_libexecdir}/avfs/extfs/*
|
||||
%doc /%{_mandir}/man1/avfsd.1*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,0755)
|
||||
%{_bindir}/avfs-config
|
||||
%{_includedir}/avfs.h
|
||||
%{_includedir}/virtual.h
|
||||
%{_libdir}/libavfs.so
|
||||
|
||||
%files -n libavfs0
|
||||
%defattr(-,root,root,0755)
|
||||
%{_libdir}/libavfs.so.0
|
||||
%{_libdir}/libavfs.so.0.0.2
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user