File avfs.spec of Package avfs

#
# spec file for package avfs (Version 0.9.8)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#

# norootforbuild

Name:		libavfs0
Version:	0.9.8
Release:	SOAD.1
License:	GPL/LGPL
URL:		http://avf.sourceforge.net/
#Provides:	%{name} avfs
BuildRoot:	%{_tmppath}/-avfs-%{version}-build
Source: 	avfs-%{version}.tar.bz2
#Source1: 	avfs.desktop
Packager: 	sda00 <sda00@himki.net>
Group:		Utilities/Archives
Summary: 	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

# core
BuildRequires:	gcc-c++ gcc iputils cvs m4 autoconf automake libtool glibc-devel glibc glib2-devel glib2 zlib-devel zlib libjpeg-devel libjpeg doxygen  fontconfig-devel  fontconfig  kernel-source kernel-syms linux-kernel-headers fuse-devel fuse libfuse2
# X env
BuildRequires:	xorg-x11-devel xorg-x11-util-devel  xorg-x11-libX11-devel  xorg-x11-fonts-devel xorg-x11-libXfixes-devel xorg-x11-server-extra xorg-x11-server  xorg-x11 xorg-x11-libXpm-devel xorg-x11-libXpm xkeyboard-config 
# functional extensions
# BuildRequires:	gettext-devel gettext imlib2-devel imlib2 pkg-config libpng libpng-devel libxml2-devel libxml2 libxslt-devel libxslt  giflib-devel giflib pango pango-devel freetype2-devel freetype2 libtiff-devel tiff  librsvg-devel librsvg libsvg-devel libsvg gtk-devel gtk gtk2 gtk2-devel ncurses-devel ncurses  libsvg-cairo-devel libsvg-cairo cairo-devel cairo libcurl-devel curl openssl-devel openssl libnotify xdg-utils  xdg-menu libnotify notification-daemon pam pam-devel pam-modules pam-config  fdupes  libcurl-devel curl alsa-devel alsa alsa-tools-devel alsa-tools esound-devel fltk2 fltk2-devel

#BuildRequires:	xine-devel xine-lib 
BuildRequires:	dbus-1-devel

%description
What is 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. 

At the moment it supports floppies, tar and gzip files, zip, bzip2, ar and rar files, ftp sessions, http, webdav, rsh/rcp, ssh/scp. Quite a few other handlers are implemented with the Midnight Commander's external FS. 

AVFS is (C) under the GNU GPL (see the file COPYING). The shared library supporting AVFS with LD_PRELOAD is (C) under the GNU LGPL (see the file COPYING.LIB). 

AVFS comes with ABSOLUTELY NO WARRANTY, for details see the file COPYING. 

Authors:
Miklos Szeredi <mszeredi@inf.bme.hu>                                                                                                                          
Ralf Hoffmann <ralf@boomerangsworld.de>

Prepared by SOAD project.

%prep
rm -rf "$RPM_BUILD_ROOT"
# %setup -q
%{?suse_update_config:%{suse_update_config -f}} 

%build
%install

tar xfm $RPM_SOURCE_DIR/avfs-%{version}.tar.bz2
cd avfs-%{version} 

./configure --disable-rar
make || return 1
make DESTDIR=$RPM_BUILD_ROOT install || return 1

find $RPM_BUILD_ROOT/ -type f -iname '*.la'  -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f -iname '*.a'  -exec rm {} \;
# find $RPM_BUILD_ROOT/ -type f -perm 755  -exec strip -s {} \;

if [ "`uname -a | grep 64 | grep -v grep `" != ""  ] ; then
if [ -d  %{buildroot}/usr/lib ] ; then 
mkdir -p %{buildroot}%{_libdir}
mv  %{buildroot}/usr/lib/*   %{buildroot}%{_libdir}/
rm -rf  %{buildroot}/usr/lib
fi
fi

%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR

#%pre

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir %{_libdir}/avfs
%{_libdir}/avfs/*
%{_bindir}/*
%{_includedir}/*
%{_libdir}/lib*


%changelog
* Tue Oct  14 2008  first build for OpenSUSE <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files

openSUSE Build Service is sponsored by