Blob Blame History Raw
# No FUSE on RHEL5
%if %{?el5:1}0
%define _without_fuse 1

Name:           afpfs-ng
Version:        0.8.1
Release:        6%{?dist}
Summary:        Apple Filing Protocol client

Group:          System Environment/Base
License:        GPL+
Patch0:         afpfs-ng-0.8.1-overflows.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%{?!_without_fuse:BuildRequires: fuse-devel}
BuildRequires: libgcrypt-devel gmp-devel readline-devel

A command line client to access files exported from Mac OS system via
Apple Filing Protocol.
%{?!_without_fuse:The FUSE filesystem module for AFP is in fuse-afp package}

%if %{?!_without_fuse:1}0
%package -n fuse-afp
Summary:        FUSE driver for AFP filesystem
Group:          System Environment/Base

%description -n fuse-afp
A FUSE file system server to access files exported from Mac OS system
via AppleTalk or TCP using Apple Filing Protocol.
The command line client for AFP is in fuse-afp package

%package devel
Summary:        Development files for afpfs-ng
Group:          Development/Libraries
Requires:       %{name} = %{version}

%description devel
Library for dynamic linking and header files of afpfs-ng.

%setup -q
%patch0 -p1 -b .overflows

# make would rebuild the autoconf infrastructure due to the following:
# Prerequisite `' is newer than target `'.
# Prerequisite `aclocal.m4' is newer than target `'.
# Prerequisite `' is newer than target `aclocal.m4'.
touch --reference aclocal.m4

%configure %{?_without_fuse:--disable-fuse} --disable-static
make %{?_smp_mflags}

install -d $RPM_BUILD_ROOT%{_includedir}/afpfs-ng
cp -p include/* $RPM_BUILD_ROOT%{_includedir}/afpfs-ng


%exclude %{_libdir}/*.la
%doc COPYING AUTHORS ChangeLog docs/README docs/performance docs/FEATURES.txt docs/REPORTING-BUGS.txt

%if %{?!_without_fuse:1}0
%files -n fuse-afp

%files devel

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

* Thu Sep 17 2009 Peter Lemenkov <> - 0.8.1-6
- Rebuild with new fuse

* Fri Jul 24 2009 Fedora Release Engineering <> - 0.8.1-5
- Rebuilt for

* Fri Jul 17 2009 Lubomir Rintel <> - 0.8.1-4
- Don't refer to AppleTalk in Summary

* Tue Jul 14 2009 Lubomir Rintel <> - 0.8.1-3
- Fix up license tag

* Thu Mar 19 2009 Lubomir Rintel <> - 0.8.1-2
- Add more include files (Jan F. Chadima)
- Don't needlessly build static library (Stefan Kasal)
- Fix fuse-afp summary (Stefan Kasal)
- Remove redundant license file from -devel (Stefan Kasal)

* Mon Oct 6 2008 Lubomir Rintel <> - 0.8.1-1
- Initial packaging attempt