]>
Commit | Line | Data |
---|---|---|
ff7641db | 1 | # TODO: AFS support? |
8a32d727 | 2 | # system talloc |
8047d1c9 JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without kerberos5 # Kerberos V UAM | |
6 | %bcond_without systemtap # SystemTap/DTrace support | |
7 | %bcond_without tracker # Spotlight support via tracker | |
8 | # | |
8a32d727 JB |
9 | Summary: Netatalk AFP fileserver for Apple clients |
10 | Summary(pl.UTF-8): Netatalk - serwer plików AFP dla klientów Apple | |
96efc9d6 | 11 | Name: netatalk |
fa966902 | 12 | Version: 3.1.13 |
c37eacb6 | 13 | Release: 2 |
a8a9ff5f | 14 | Epoch: 2 |
8047d1c9 | 15 | License: GPL v2+ (with BSD parts) |
6e3a6ad8 | 16 | Group: Daemons |
fa966902 JB |
17 | Source0: https://downloads.sourceforge.net/netatalk/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: 697421623c32ee0ab9c8076191766e5f | |
33c394e5 | 19 | Source1: %{name}.init |
20 | Source2: %{name}.pamd | |
21 | Source3: %{name}.sysconfig | |
96efc9d6 | 22 | Source4: ICDumpSuffixMap |
6e3a6ad8 | 23 | URL: http://www.umich.edu/~rsug/netatalk/ |
8047d1c9 JB |
24 | BuildRequires: acl-devel |
25 | BuildRequires: attr-devel | |
26 | BuildRequires: autoconf >= 2.50 | |
33c394e5 | 27 | BuildRequires: automake |
8047d1c9 JB |
28 | BuildRequires: avahi-devel |
29 | BuildRequires: bison | |
f8da9629 | 30 | BuildRequires: cracklib-devel |
e9b2531a | 31 | BuildRequires: db-devel >= 4.6.0 |
8047d1c9 JB |
32 | BuildRequires: dbus-devel >= 1.1 |
33 | BuildRequires: dbus-glib-devel | |
34 | BuildRequires: docbook-dtd412-xml | |
35 | BuildRequires: docbook-style-xsl | |
36 | BuildRequires: flex | |
c9e4118e | 37 | BuildRequires: gettext-tools |
8047d1c9 JB |
38 | BuildRequires: glib2-devel >= 2.0 |
39 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
674a8ac8 | 40 | BuildRequires: libevent-devel |
8047d1c9 | 41 | BuildRequires: libgcrypt >= 1.4.5 |
d615c0cf | 42 | BuildRequires: libltdl-devel |
33c394e5 | 43 | BuildRequires: libtool |
8047d1c9 JB |
44 | BuildRequires: libwrap-devel |
45 | BuildRequires: libxslt-progs | |
46 | BuildRequires: mysql-devel | |
47 | BuildRequires: openldap-devel | |
34aacecf | 48 | BuildRequires: openssl-devel >= 0.9.7d |
f8da9629 | 49 | BuildRequires: pam-devel |
8047d1c9 JB |
50 | BuildRequires: perl-base |
51 | BuildRequires: pkgconfig | |
52 | BuildRequires: sed >= 4.0 | |
53 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
54 | BuildRequires: tdb-devel | |
55 | %{?with_tracker:BuildRequires: tracker-devel >= 1.0} | |
0ccf5911 | 56 | Requires(post): /sbin/ldconfig |
5bfd569a | 57 | Requires(post,preun): /sbin/chkconfig |
ff7641db | 58 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
8047d1c9 | 59 | Requires: dbus >= 1.1 |
eeebb591 | 60 | Requires: libgcrypt >= 1.4.5 |
0de20f22 | 61 | Requires: pam >= 0.99.7.1 |
96efc9d6 | 62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
63 | ||
8047d1c9 JB |
64 | # it uses ${_localstatedir}/netatalk |
65 | %define _localstatedir /var/lib | |
66 | ||
96efc9d6 | 67 | %description |
8a32d727 JB |
68 | Netatalk is a freely-available Open Source AFP fileserver. A *NIX/*BSD |
69 | system running Netatalk is capable of serving many Apple clients | |
70 | simultaneously as an AppleShare file server (AFP). | |
96efc9d6 | 71 | |
9d26fa9f | 72 | %description -l pl.UTF-8 |
8a32d727 JB |
73 | Netatalk to wolnodostępny, mający otwarte źródła serwer plików oparty |
74 | na protokole AFP. System uniksowy z działającym Netatalkiem potrafi | |
75 | serwować wielu klientom Apple jednocześnie jako serwer plików | |
76 | AppleShare (AFP). | |
f8da9629 | 77 | |
ff7641db | 78 | %package libs |
8a32d727 JB |
79 | Summary: Netatalk shared library |
80 | Summary(pl.UTF-8): Biblioteka współdzielona Netatalk | |
ff7641db JB |
81 | Group: Libraries |
82 | Conflicts: netatalk < 2:3.1.7-2 | |
83 | ||
84 | %description libs | |
8a32d727 | 85 | Netatalk shared library. |
ff7641db JB |
86 | |
87 | %description libs -l pl.UTF-8 | |
8a32d727 | 88 | Biblioteka współdzielona Netatalk. |
ff7641db | 89 | |
96efc9d6 | 90 | %package devel |
8a32d727 JB |
91 | Summary: Header files for Netatalk development |
92 | Summary(pl.UTF-8): Pliki nagłówkowe Netatalk | |
93 | Summary(pt_BR.UTF-8): Arquivos de inclusão para o desenvolvimento de aplicativos baseados no protocolo Netatalk | |
96efc9d6 | 94 | Group: Development/Libraries |
ff7641db JB |
95 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
96 | Requires: acl-devel | |
97 | Requires: attr-devel | |
98 | Requires: cracklib-devel | |
99 | Requires: libwrap-devel | |
100 | Requires: mysql-devel | |
101 | Requires: openldap-devel | |
102 | Requires: openssl-devel | |
103 | Requires: pam-devel | |
104 | Requires: tdb-devel | |
96efc9d6 | 105 | |
106 | %description devel | |
8a32d727 | 107 | This packge contains the header files for building Netatalk |
ff7641db | 108 | networking programs. |
96efc9d6 | 109 | |
9d26fa9f | 110 | %description devel -l pl.UTF-8 |
ff7641db | 111 | Ten pakiet zawiera pliki nagłówkowe do tworzenia oprogramowania |
8a32d727 | 112 | wykorzystującego protokół Netatalk. |
96efc9d6 | 113 | |
9d26fa9f | 114 | %description devel -l pt_BR.UTF-8 |
ff7641db | 115 | Arquivos de inclusão para o desenvolvimento de aplicativos baseados no |
8a32d727 | 116 | protocolo Netatalk. |
ff7641db JB |
117 | |
118 | %package static | |
8a32d727 JB |
119 | Summary: Static Netatalk library |
120 | Summary(pl.UTF-8): Statyczna biblioteka Netatalk | |
ff7641db JB |
121 | Group: Development/Libraries |
122 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
123 | ||
124 | %description static | |
8a32d727 | 125 | Static Netatalk library. |
ff7641db JB |
126 | |
127 | %description static -l pl.UTF-8 | |
8a32d727 | 128 | Statyczna biblioteka Netatalk. |
96efc9d6 | 129 | |
130 | %prep | |
674a8ac8 | 131 | %setup -q |
96efc9d6 | 132 | |
fa966902 JB |
133 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ |
134 | contrib/shell_utils/afpstats | |
8047d1c9 | 135 | |
96efc9d6 | 136 | %build |
6d0dde9e | 137 | %{__libtoolize} |
f27074c5 | 138 | %{__aclocal} -I macros |
dccfd8d9 | 139 | %{__autoconf} |
140 | %{__automake} | |
f27074c5 | 141 | %{__autoheader} |
8047d1c9 JB |
142 | # "ac_cv_header_dns_sd_h=no" passes over mDNSResponder check to native avahi check |
143 | # "netatalk_cv_iconv=no" is a hack to use iconv from glibc even if libiconv exists | |
144 | # "--with-init-style=debian-systemd" installs systemd service file in PLD-compatible location | |
145 | # "--without-tdb" disables bundled tdb in favour of system | |
33c394e5 | 146 | %configure \ |
8047d1c9 JB |
147 | ac_cv_header_dns_sd_h=no \ |
148 | netatalk_cv_iconv=no \ | |
149 | --disable-silent-rules \ | |
150 | %{?with_kerberos5:--enable-krbV-uam} \ | |
151 | --enable-lastdid \ | |
152 | --enable-pgp-uam \ | |
153 | --enable-timelord \ | |
33c394e5 | 154 | --with-config-dir=%{_sysconfdir}/atalk \ |
8047d1c9 | 155 | --with-msg-dir=%{_sysconfdir}/atalk/msg \ |
33c394e5 | 156 | --with-pkgconfdir=%{_sysconfdir}/atalk \ |
157 | --with-uams-path=%{_libdir}/atalk \ | |
674a8ac8 | 158 | --with-cracklib=%{_datadir}/dict/cracklib_dict \ |
8a32d727 | 159 | --with-docbook=%{_datadir}/sgml/docbook/xsl-stylesheets \ |
8047d1c9 JB |
160 | %{!?with_systemtap:--without-dtrace} \ |
161 | --with-init-style=debian-systemd \ | |
8a32d727 | 162 | --with-libevent-lib=%{_libdir} \ |
674a8ac8 JR |
163 | --with-pam \ |
164 | --with-shadow \ | |
674a8ac8 | 165 | --with-ssl \ |
8047d1c9 JB |
166 | --with-tcp-wrappers \ |
167 | --without-tdb \ | |
168 | --with-tracker-pkgconfig-version=%{?with_tracker:1.0}%{!?with_tracker:no} | |
33c394e5 | 169 | |
33c394e5 | 170 | %{__make} |
96efc9d6 | 171 | |
24ac22ac JB |
172 | %{__make} -C doc/manual html-local |
173 | ||
96efc9d6 | 174 | %install |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
8047d1c9 | 177 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,sysconfig,atalk/msg} |
96efc9d6 | 178 | |
b0f16d38 | 179 | %{__make} install \ |
180 | DESTDIR=$RPM_BUILD_ROOT \ | |
181 | MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
182 | m4datadir=%{_aclocaldir} | |
96efc9d6 | 183 | |
0632c91e | 184 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atalk |
33c394e5 | 185 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/netatalk |
186 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/netatalk | |
187 | install %{SOURCE4} . | |
96efc9d6 | 188 | |
189 | > $RPM_BUILD_ROOT/etc/security/blacklist.netatalk | |
190 | ||
8047d1c9 JB |
191 | # loadable modules |
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/atalk/*.{la,a} | |
193 | # obsolete(?) utility | |
194 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/uniconv.1 | |
96efc9d6 | 195 | |
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
199 | %post | |
38c1cf0c | 200 | /sbin/chkconfig --add atalk |
b095cd86 | 201 | if [ "$1" = "1" ] ; then |
0632c91e | 202 | echo "Run \"/etc/rc.d/init.d/atalk start\" to start netatalk." >&2 |
96efc9d6 | 203 | fi |
748b298a | 204 | |
96efc9d6 | 205 | %preun |
38c1cf0c | 206 | if [ "$1" = "0" ]; then |
0632c91e | 207 | /etc/rc.d/init.d/atalk stop >&2 |
b095cd86 | 208 | /sbin/chkconfig --del atalk |
96efc9d6 | 209 | fi |
210 | ||
ff7641db JB |
211 | %post libs -p /sbin/ldconfig |
212 | %postun libs -p /sbin/ldconfig | |
b095cd86 | 213 | |
96efc9d6 | 214 | %files |
215 | %defattr(644,root,root,755) | |
24ac22ac | 216 | %doc AUTHORS CONTRIBUTORS COPYRIGHT NEWS ICDumpSuffixMap doc/manual/{configuration,example-toc,index,installation,intro,manual-index,netatalk,pr01,table-toc,upgrade}.html |
af6d9eb1 | 217 | %dir %{_sysconfdir}/atalk |
33c394e5 | 218 | %dir %{_sysconfdir}/atalk/msg |
674a8ac8 | 219 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/afp.conf |
3b7c5f9f | 220 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/extmap.conf |
8047d1c9 | 221 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/dbus-session.conf |
7a543aa2 | 222 | |
7a543aa2 LM |
223 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/netatalk-dbus.conf |
224 | ||
5bfd569a | 225 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/netatalk |
3b7c5f9f | 226 | %attr(754,root,root) %config /etc/rc.d/init.d/atalk |
8047d1c9 JB |
227 | %{systemdunitdir}/netatalk.service |
228 | ||
5bfd569a ER |
229 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/netatalk |
230 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.netatalk | |
96efc9d6 | 231 | |
8047d1c9 JB |
232 | %attr(755,root,root) %{_bindir}/ad |
233 | %attr(755,root,root) %{_bindir}/afpldaptest | |
234 | %attr(755,root,root) %{_bindir}/afppasswd | |
235 | %attr(755,root,root) %{_bindir}/afpstats | |
236 | %attr(755,root,root) %{_bindir}/apple_dump | |
237 | %attr(755,root,root) %{_bindir}/asip-status.pl | |
238 | %attr(755,root,root) %{_bindir}/cnid2_create | |
239 | %attr(755,root,root) %{_bindir}/dbd | |
240 | %attr(755,root,root) %{_bindir}/macusers | |
241 | %attr(755,root,root) %{_sbindir}/afpd | |
242 | %attr(755,root,root) %{_sbindir}/cnid_dbd | |
243 | %attr(755,root,root) %{_sbindir}/cnid_metad | |
244 | %attr(755,root,root) %{_sbindir}/netatalk | |
af6d9eb1 | 245 | %dir %{_libdir}/atalk |
8047d1c9 JB |
246 | %attr(755,root,root) %{_libdir}/atalk/uams_*.so |
247 | %{_mandir}/man1/ad.1* | |
248 | %{_mandir}/man1/afpldaptest.1* | |
249 | %{_mandir}/man1/afppasswd.1* | |
250 | %{_mandir}/man1/afpstats.1* | |
251 | %{_mandir}/man1/apple_dump.1* | |
252 | %{_mandir}/man1/asip-status.pl.1* | |
253 | %{_mandir}/man1/dbd.1* | |
254 | %{_mandir}/man1/macusers.1* | |
255 | %{_mandir}/man5/afp.conf.5* | |
256 | %{_mandir}/man5/afp_signature.conf.5* | |
257 | %{_mandir}/man5/afp_voluuid.conf.5* | |
258 | %{_mandir}/man5/extmap.conf.5* | |
259 | %{_mandir}/man8/afpd.8* | |
260 | %{_mandir}/man8/cnid_dbd.8* | |
261 | %{_mandir}/man8/cnid_metad.8* | |
262 | %{_mandir}/man8/netatalk.8* | |
96efc9d6 | 263 | |
ff7641db JB |
264 | %files libs |
265 | %defattr(644,root,root,755) | |
266 | %attr(755,root,root) %{_libdir}/libatalk.so.*.*.* | |
416dedd4 | 267 | %attr(755,root,root) %ghost %{_libdir}/libatalk.so.18 |
ff7641db | 268 | |
96efc9d6 | 269 | %files devel |
6e3a6ad8 | 270 | %defattr(644,root,root,755) |
b0f16d38 | 271 | %attr(755,root,root) %{_bindir}/netatalk-config |
674a8ac8 | 272 | %attr(755,root,root) %{_libdir}/libatalk.so |
7553fcbc | 273 | %{_libdir}/libatalk.la |
6e3a6ad8 | 274 | %{_includedir}/atalk |
8047d1c9 JB |
275 | %{_aclocaldir}/netatalk.m4 |
276 | %{_mandir}/man1/netatalk-config.1* | |
ff7641db JB |
277 | |
278 | %files static | |
279 | %defattr(644,root,root,755) | |
280 | %{_libdir}/libatalk.a |