1 |
anssi |
217426 |
%define major 0 |
2 |
|
|
%define libname %mklibname afpclient %major |
3 |
|
|
%define devname %mklibname afpclient -d |
4 |
|
|
|
5 |
|
|
Summary: An open source client for Apple Filing Protocol |
6 |
|
|
Name: afpfs-ng |
7 |
|
|
Version: 0.8.1 |
8 |
|
|
Release: %mkrel 1 |
9 |
|
|
License: GPLv2+ |
10 |
|
|
Group: Networking/File transfer |
11 |
|
|
URL: http://sites.google.com/site/alexthepuffin/home |
12 |
|
|
Source: http://sourceforge.net/projects/afpfs-ng/files/afpfs-ng/%version/afpfs-ng-%version.tar.bz2 |
13 |
|
|
# patches from Debian: |
14 |
|
|
Patch10: build-error-fixes.patch |
15 |
|
|
Patch11: header-path-fix.patch |
16 |
|
|
Patch12: include-headers-fix.patch |
17 |
|
|
BuildRequires: fuse-devel |
18 |
|
|
BuildRequires: readline-devel |
19 |
anssi |
217438 |
BuildRequires: ncurses-devel |
20 |
anssi |
217426 |
BuildRequires: libgcrypt-devel |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
afpfs-ng is a client for the Apple Filing Protocol (AFP) which will let |
24 |
|
|
you mount and access shared volumes from Mac OS X (or netatalk). |
25 |
|
|
|
26 |
|
|
There is a FUSE-based client which lets you mount a remote filesystem. |
27 |
|
|
|
28 |
|
|
There is also a simple, command-line AFP client; think about it as an |
29 |
|
|
FTP client for AFP. |
30 |
|
|
|
31 |
|
|
%package -n %libname |
32 |
|
|
Summary: Shared library of %name |
33 |
|
|
Group: System/Libraries |
34 |
|
|
Provides: %name = %version-%release |
35 |
|
|
|
36 |
|
|
%description -n %libname |
37 |
|
|
This package contains the library needed to run programs dynamically |
38 |
|
|
linked with libafpclient, an Apple Filing Protocol (AFP) client library. |
39 |
|
|
|
40 |
|
|
%package -n %devname |
41 |
|
|
Summary: Development headers for libafpclient |
42 |
|
|
Group: Development/C |
43 |
|
|
Requires: %libname = %version |
44 |
|
|
Provides: %name-devel = %version-%release |
45 |
|
|
Provides: afpclient-devel = %version-%release |
46 |
|
|
|
47 |
|
|
%description -n %devname |
48 |
|
|
This package contains the headers needed to compile programs that use |
49 |
|
|
libafpclient, an Apple Filing Protocol (AFP) client library. |
50 |
|
|
|
51 |
|
|
%prep |
52 |
|
|
%setup -q |
53 |
|
|
%apply_patches |
54 |
|
|
|
55 |
|
|
%build |
56 |
|
|
autoreconf -if |
57 |
|
|
%configure2_5x --disable-static |
58 |
|
|
%make |
59 |
|
|
|
60 |
|
|
%install |
61 |
|
|
rm -rf %{buildroot} |
62 |
|
|
%makeinstall_std |
63 |
|
|
|
64 |
|
|
find %{buildroot} -name '*.la' | xargs rm |
65 |
|
|
|
66 |
|
|
%clean |
67 |
|
|
rm -rf %{buildroot} |
68 |
|
|
|
69 |
|
|
%files |
70 |
|
|
%defattr(-,root,root) |
71 |
|
|
%doc docs/*.txt docs/README |
72 |
|
|
%{_bindir}/afp* |
73 |
|
|
%{_bindir}/mount_afp |
74 |
|
|
%{_mandir}/man1/*afp*.1* |
75 |
|
|
|
76 |
|
|
%files -n %libname |
77 |
|
|
%{_libdir}/*.so.%{major}* |
78 |
|
|
|
79 |
|
|
%files -n %devname |
80 |
|
|
%{_libdir}/*.so |
81 |
|
|
%{_includedir}/%{name} |