1a9d372
# No FUSE on RHEL5
1a9d372
%if %{?el5:1}0
1a9d372
%define _without_fuse 1
1a9d372
%endif
1a9d372
1a9d372
Name:           afpfs-ng
1a9d372
Version:        0.8.1
Jan F. Chadima dae616b
Release:        8%{?dist}
1a9d372
Summary:        Apple Filing Protocol client
1a9d372
1a9d372
Group:          System Environment/Base
64607b8
License:        GPL+
1a9d372
URL:            http://alexthepuffin.googlepages.com/home
1a9d372
Source0:        http://downloads.sourceforge.net/afpfs-ng/%{name}-%{version}.tar.bz2
1a9d372
Patch0:         afpfs-ng-0.8.1-overflows.patch
Jan F. Chadima dae616b
Patch1:         afpfs-ng-0.8.1-pointer.patch
1a9d372
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1a9d372
1a9d372
%{?!_without_fuse:BuildRequires: fuse-devel}
1a9d372
BuildRequires: libgcrypt-devel gmp-devel readline-devel
1a9d372
1a9d372
%description
1a9d372
A command line client to access files exported from Mac OS system via
415a2ed
Apple Filing Protocol.
1a9d372
%{?!_without_fuse:The FUSE filesystem module for AFP is in fuse-afp package}
1a9d372
1a9d372
1a9d372
%if %{?!_without_fuse:1}0
1a9d372
%package -n fuse-afp
1a9d372
Summary:        FUSE driver for AFP filesystem
1a9d372
Group:          System Environment/Base
1a9d372
1a9d372
%description -n fuse-afp
1a9d372
A FUSE file system server to access files exported from Mac OS system
1a9d372
via AppleTalk or TCP using Apple Filing Protocol.
1a9d372
The command line client for AFP is in fuse-afp package
1a9d372
%endif
1a9d372
1a9d372
1a9d372
%package devel
1a9d372
Summary:        Development files for afpfs-ng
1a9d372
Group:          Development/Libraries
1a9d372
Requires:       %{name} = %{version}
1a9d372
1a9d372
%description devel
1a9d372
Library for dynamic linking and header files of afpfs-ng.
1a9d372
1a9d372
1a9d372
%prep
1a9d372
%setup -q
1a9d372
%patch0 -p1 -b .overflows
Jan F. Chadima dae616b
%patch1 -p1 -b .pointer
1a9d372
1a9d372
1a9d372
%build
1a9d372
# make would rebuild the autoconf infrastructure due to the following:
1a9d372
# Prerequisite `configure.ac' is newer than target `Makefile.in'.
1a9d372
# Prerequisite `aclocal.m4' is newer than target `Makefile.in'.
1a9d372
# Prerequisite `configure.ac' is newer than target `aclocal.m4'.
1a9d372
touch --reference aclocal.m4 configure.ac Makefile.in
1a9d372
1a9d372
%configure %{?_without_fuse:--disable-fuse} --disable-static
1a9d372
make %{?_smp_mflags}
1a9d372
1a9d372
1a9d372
%install
1a9d372
rm -rf $RPM_BUILD_ROOT
1a9d372
make install DESTDIR=$RPM_BUILD_ROOT
1a9d372
install -d $RPM_BUILD_ROOT%{_includedir}/afpfs-ng
1a9d372
cp -p include/* $RPM_BUILD_ROOT%{_includedir}/afpfs-ng
1a9d372
1a9d372
1a9d372
%clean
1a9d372
rm -rf $RPM_BUILD_ROOT
1a9d372
1a9d372
1a9d372
%files
1a9d372
%defattr(-,root,root,-)
1a9d372
%{_bindir}/afpcmd
1a9d372
%{_bindir}/afpgetstatus
1a9d372
%{_mandir}/man1/afpcmd.1*
1a9d372
%{_mandir}/man1/afpgetstatus.1*
1a9d372
%{_libdir}/*.so.*
1a9d372
%exclude %{_libdir}/*.la
1a9d372
%doc COPYING AUTHORS ChangeLog docs/README docs/performance docs/FEATURES.txt docs/REPORTING-BUGS.txt
1a9d372
1a9d372
1a9d372
%if %{?!_without_fuse:1}0
1a9d372
%files -n fuse-afp
1a9d372
%defattr(-,root,root,-)
1a9d372
%{_bindir}/afp_client
1a9d372
%{_bindir}/afpfs
1a9d372
%{_bindir}/afpfsd
1a9d372
%{_bindir}/mount_afp
1a9d372
%{_mandir}/man1/afp_client.1*
1a9d372
%{_mandir}/man1/afpfsd.1*
1a9d372
%{_mandir}/man1/mount_afp.1*
1a9d372
%doc COPYING AUTHORS ChangeLog
1a9d372
%endif
1a9d372
1a9d372
1a9d372
%files devel
1a9d372
%defattr(-,root,root,-)
1a9d372
%{_includedir}/afpfs-ng
1a9d372
%{_libdir}/*.so
1a9d372
1a9d372
1a9d372
%post -p /sbin/ldconfig
1a9d372
1a9d372
1a9d372
%postun -p /sbin/ldconfig
1a9d372
1a9d372
1a9d372
%changelog
Jan F. Chadima dae616b
* Mon Jul  4 2011 Jan F. Chadima <jchadima@redhat.com> - 0.8.1-8
Jan F. Chadima dae616b
- Repair ponter arithmetic
Jan F. Chadima dae616b
1ac35f0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-7
1ac35f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1ac35f0
90e65a6
* Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> - 0.8.1-6
90e65a6
- Rebuild with new fuse
90e65a6
d988137
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-5
d988137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d988137
415a2ed
* Fri Jul 17 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.8.1-4
415a2ed
- Don't refer to AppleTalk in Summary
415a2ed
64607b8
* Tue Jul 14 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.8.1-3
64607b8
- Fix up license tag
64607b8
1a9d372
* Thu Mar 19 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.8.1-2
1a9d372
- Add more include files (Jan F. Chadima)
1a9d372
- Don't needlessly build static library (Stefan Kasal)
1a9d372
- Fix fuse-afp summary (Stefan Kasal)
1a9d372
- Remove redundant license file from -devel (Stefan Kasal)
1a9d372
1a9d372
* Mon Oct 6 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.8.1-1
1a9d372
- Initial packaging attempt