FUSE CopyFS .spec
Posted 03-23-2008 at 06:32 PM by unSpawn
FUSE: http://fuse.sourceforge.net
CopyFS: http://n0x.org/copyfs/
CopyFS: http://n0x.org/copyfs/
Code:
%define origname copyfs %define name fuse-copyfs %define ver 1.0.1 %define rel 1 %define debug_packages %{nil} %define debug_package %{nil} Name: %{name} Summary: %{name}, a copy-on-write, versioned filesystem using FUSE Version: %{ver} Release: %{rel} License: GPL Group: Utilities/System Source0: %{origname}-%{ver}.tar.bz2 # "copyfs.html" is a copy of the sites HTML. Source1: %{origname}.html Prereq: kernel >= 2.6.14, fuse >= 2.7.3, libattr >= 2.4.32 Provides: %{name} Buildarch: noarch Vendor: Nicolas Vigier / Thomas Joubert URL: http://n0x.org/copyfs/ BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: fuse-devel >= 2.7.3, libattr-devel >= 2.4.32 %description CopyFS aims to solve a common problem : given a directory, especially one full of configuration files, or other files that one can modify, and which can affect the functionning of a system, or of programs, that may be important to other users (or to the user himself), how to be sure that a person modifying the files will do a backup of the working version first? Based on FUSE, the userspace filesystem frame- work for Linux, see http://fuse.sourceforge.net. %prep %setup -n %{origname}-%{ver} cp $RPM_SOURCE_DIR/%{origname}.html . %build %configure --prefix=/usr/local make %install if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then rm -rf $RPM_BUILD_ROOT #make install install -d $RPM_BUILD_ROOT/usr/local/bin install -d $RPM_BUILD_ROOT/usr/local/share/man/man1 install -m 755 copyfs-daemon $RPM_BUILD_ROOT/usr/local/bin install -m 755 copyfs-mount copyfs-fversion $RPM_BUILD_ROOT/usr/local/bin install -m 644 copyfs.1 copyfs-daemon.1 copyfs-mount.1 copyfs-fversion.1 $RPM_BUILD_ROOT/usr/local/share/man/man1 else echo "Invalid Build root \'"$RPM_BUILD_ROOT"\'" exit 1 fi %clean if [ "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}-%{version}" ]; then rm -rf $RPM_BUILD_ROOT else echo "Invalid Build root \'"$RPM_BUILD_ROOT"\'" exit 1 fi %files %defattr(-,root,root) %doc README TODO COPYING %{origname}.html %attr(755,root,root) /usr/local/bin/copyfs-daemon %attr(755,root,root) /usr/local/bin/copyfs-mount %attr(755,root,root) /usr/local/bin/copyfs-fversion %attr(644,root,root) /usr/local/share/man/man1/copyfs.1 %attr(644,root,root) /usr/local/share/man/man1/copyfs-daemon.1 %attr(644,root,root) /usr/local/share/man/man1/copyfs-mount.1 %attr(644,root,root) /usr/local/share/man/man1/copyfs-fversion.1 %changelog * Sun Mar 23 2008 unSpawn - - Initial .spec file.