# No FUSE on RHEL5 %if %{?el5:1}0 %define _without_fuse 1 %endif Name: afpfs-ng Version: 0.8.1 Release: 30%{?dist} Summary: Apple Filing Protocol client License: GPL+ URL: http://alexthepuffin.googlepages.com/home Source0: http://downloads.sourceforge.net/afpfs-ng/%{name}-%{version}.tar.bz2 Patch0: afpfs-ng-0.8.1-overflows.patch Patch1: afpfs-ng-0.8.1-pointer.patch # Sent by e-mail to Alex deVries Patch2: afpfs-ng-0.8.1-formatsec.patch %{?!_without_fuse:BuildRequires: fuse-devel} BuildRequires: gcc BuildRequires: libgcrypt-devel gmp-devel readline-devel %description 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 %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 %endif %package devel Summary: Development files for afpfs-ng Requires: %{name} = %{version} %description devel Library for dynamic linking and header files of afpfs-ng. %prep %setup -q %patch0 -p1 -b .overflows %patch1 -p1 -b .pointer %patch2 -p1 -b .formatsec %build # make would rebuild the autoconf infrastructure due to the following: # Prerequisite `configure.ac' is newer than target `Makefile.in'. # Prerequisite `aclocal.m4' is newer than target `Makefile.in'. # Prerequisite `configure.ac' is newer than target `aclocal.m4'. touch --reference aclocal.m4 configure.ac Makefile.in export CFLAGS="${RPM_OPT_FLAGS} -fcommon" %configure %{?_without_fuse:--disable-fuse} --disable-static make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} install -d %{buildroot}%{_includedir}/afpfs-ng cp -p include/* %{buildroot}%{_includedir}/afpfs-ng %files %{_bindir}/afpcmd %{_bindir}/afpgetstatus %{_mandir}/man1/afpcmd.1* %{_mandir}/man1/afpgetstatus.1* %{_libdir}/*.so.* %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 %{_bindir}/afp_client %{_bindir}/afpfs %{_bindir}/afpfsd %{_bindir}/mount_afp %{_mandir}/man1/afp_client.1* %{_mandir}/man1/afpfsd.1* %{_mandir}/man1/mount_afp.1* %doc COPYING AUTHORS ChangeLog %endif %files devel %{_includedir}/afpfs-ng %{_libdir}/*.so %ldconfig_scriptlets %changelog * Wed Apr 22 2020 Michal Ambroz - 0.8.1-30 - fix FTBFS - multiple definition of - build legacy code with -fcommon * Tue Jan 28 2020 Fedora Release Engineering - 0.8.1-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 0.8.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 17 2019 Igor Gnatenko - 0.8.1-27 - Rebuild for readline 8.0 * Thu Jan 31 2019 Fedora Release Engineering - 0.8.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 0.8.1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0.8.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.8.1-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.8.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.8.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.8.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Fedora Release Engineering - 0.8.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Nov 25 2014 - 0.8.1-18 - Fix mount_afp crash (RHBZ #1165296) * Fri Aug 15 2014 Fedora Release Engineering - 0.8.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.8.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 22 2014 Tomáš Mráz - 0.8.1-15 - Rebuild for new libgcrypt * Wed Dec 04 2013 Lubomir Rintel - 0.8.1-14 - Fix build with -Werror=format-security * Thu Oct 24 2013 Lubomir Rintel - 0.8.1-13.3 - Bulk sad and useless attempt at consistent SPEC file formatting * Sat Aug 03 2013 Fedora Release Engineering - 0.8.1-12.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 0.8.1-11.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 0.8.1-10.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 0.8.1-9.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Oct 20 2011 Marcela Mašláňová - 0.8.1-8.3 - rebuild with new gmp without compat lib * Mon Oct 10 2011 Peter Schiffer - 0.8.1-8.2 - rebuild with new gmp * Mon Sep 26 2011 Peter Schiffer - 0.8.1-8.1 - rebuild with new gmp * Mon Jul 4 2011 Jan F. Chadima - 0.8.1-8 - Repair ponter arithmetic * Mon Feb 07 2011 Fedora Release Engineering - 0.8.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * 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 https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * 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