]>
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 |
7a543aa2 | 12 | Version: 3.1.7 |
641355cd | 13 | Release: 6 |
a8a9ff5f | 14 | Epoch: 2 |
8047d1c9 | 15 | License: GPL v2+ (with BSD parts) |
6e3a6ad8 | 16 | Group: Daemons |
3b7c5f9f | 17 | Source0: http://downloads.sourceforge.net/netatalk/%{name}-%{version}.tar.bz2 |
7a543aa2 | 18 | # Source0-md5: 831ec8bf9e084b64f965d16c528af299 |
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 | |
8047d1c9 JB |
133 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' contrib/shell_utils/afpstats |
134 | ||
96efc9d6 | 135 | %build |
6d0dde9e | 136 | %{__libtoolize} |
f27074c5 | 137 | %{__aclocal} -I macros |
dccfd8d9 | 138 | %{__autoconf} |
139 | %{__automake} | |
f27074c5 | 140 | %{__autoheader} |
8047d1c9 JB |
141 | # "ac_cv_header_dns_sd_h=no" passes over mDNSResponder check to native avahi check |
142 | # "netatalk_cv_iconv=no" is a hack to use iconv from glibc even if libiconv exists | |
143 | # "--with-init-style=debian-systemd" installs systemd service file in PLD-compatible location | |
144 | # "--without-tdb" disables bundled tdb in favour of system | |
33c394e5 | 145 | %configure \ |
8047d1c9 JB |
146 | ac_cv_header_dns_sd_h=no \ |
147 | netatalk_cv_iconv=no \ | |
148 | --disable-silent-rules \ | |
149 | %{?with_kerberos5:--enable-krbV-uam} \ | |
150 | --enable-lastdid \ | |
151 | --enable-pgp-uam \ | |
152 | --enable-timelord \ | |
33c394e5 | 153 | --with-config-dir=%{_sysconfdir}/atalk \ |
8047d1c9 | 154 | --with-msg-dir=%{_sysconfdir}/atalk/msg \ |
33c394e5 | 155 | --with-pkgconfdir=%{_sysconfdir}/atalk \ |
156 | --with-uams-path=%{_libdir}/atalk \ | |
674a8ac8 | 157 | --with-cracklib=%{_datadir}/dict/cracklib_dict \ |
8a32d727 | 158 | --with-docbook=%{_datadir}/sgml/docbook/xsl-stylesheets \ |
8047d1c9 JB |
159 | %{!?with_systemtap:--without-dtrace} \ |
160 | --with-init-style=debian-systemd \ | |
8a32d727 | 161 | --with-libevent-lib=%{_libdir} \ |
674a8ac8 JR |
162 | --with-pam \ |
163 | --with-shadow \ | |
674a8ac8 | 164 | --with-ssl \ |
8047d1c9 JB |
165 | --with-tcp-wrappers \ |
166 | --without-tdb \ | |
167 | --with-tracker-pkgconfig-version=%{?with_tracker:1.0}%{!?with_tracker:no} | |
33c394e5 | 168 | |
33c394e5 | 169 | %{__make} |
96efc9d6 | 170 | |
24ac22ac JB |
171 | %{__make} -C doc/manual html-local |
172 | ||
96efc9d6 | 173 | %install |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
8047d1c9 | 176 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,security,sysconfig,atalk/msg} |
96efc9d6 | 177 | |
b0f16d38 | 178 | %{__make} install \ |
179 | DESTDIR=$RPM_BUILD_ROOT \ | |
180 | MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
181 | m4datadir=%{_aclocaldir} | |
96efc9d6 | 182 | |
0632c91e | 183 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atalk |
33c394e5 | 184 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/netatalk |
185 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/netatalk | |
186 | install %{SOURCE4} . | |
96efc9d6 | 187 | |
188 | > $RPM_BUILD_ROOT/etc/security/blacklist.netatalk | |
189 | ||
8047d1c9 JB |
190 | # loadable modules |
191 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/atalk/*.{la,a} | |
192 | # obsolete(?) utility | |
193 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/uniconv.1 | |
96efc9d6 | 194 | |
195 | %clean | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | ||
198 | %post | |
38c1cf0c | 199 | /sbin/chkconfig --add atalk |
b095cd86 | 200 | if [ "$1" = "1" ] ; then |
0632c91e | 201 | echo "Run \"/etc/rc.d/init.d/atalk start\" to start netatalk." >&2 |
96efc9d6 | 202 | fi |
748b298a | 203 | |
96efc9d6 | 204 | %preun |
38c1cf0c | 205 | if [ "$1" = "0" ]; then |
0632c91e | 206 | /etc/rc.d/init.d/atalk stop >&2 |
b095cd86 | 207 | /sbin/chkconfig --del atalk |
96efc9d6 | 208 | fi |
209 | ||
ff7641db JB |
210 | %post libs -p /sbin/ldconfig |
211 | %postun libs -p /sbin/ldconfig | |
b095cd86 | 212 | |
96efc9d6 | 213 | %files |
214 | %defattr(644,root,root,755) | |
24ac22ac | 215 | %doc AUTHORS CONTRIBUTORS COPYRIGHT NEWS ICDumpSuffixMap doc/manual/{configuration,example-toc,index,installation,intro,manual-index,netatalk,pr01,table-toc,upgrade}.html |
af6d9eb1 | 216 | %dir %{_sysconfdir}/atalk |
33c394e5 | 217 | %dir %{_sysconfdir}/atalk/msg |
674a8ac8 | 218 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/afp.conf |
3b7c5f9f | 219 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/extmap.conf |
8047d1c9 | 220 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atalk/dbus-session.conf |
7a543aa2 | 221 | |
7a543aa2 LM |
222 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/netatalk-dbus.conf |
223 | ||
5bfd569a | 224 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/netatalk |
3b7c5f9f | 225 | %attr(754,root,root) %config /etc/rc.d/init.d/atalk |
8047d1c9 JB |
226 | %{systemdunitdir}/netatalk.service |
227 | ||
5bfd569a ER |
228 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/netatalk |
229 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.netatalk | |
96efc9d6 | 230 | |
8047d1c9 JB |
231 | %attr(755,root,root) %{_bindir}/ad |
232 | %attr(755,root,root) %{_bindir}/afpldaptest | |
233 | %attr(755,root,root) %{_bindir}/afppasswd | |
234 | %attr(755,root,root) %{_bindir}/afpstats | |
235 | %attr(755,root,root) %{_bindir}/apple_dump | |
236 | %attr(755,root,root) %{_bindir}/asip-status.pl | |
237 | %attr(755,root,root) %{_bindir}/cnid2_create | |
238 | %attr(755,root,root) %{_bindir}/dbd | |
239 | %attr(755,root,root) %{_bindir}/macusers | |
240 | %attr(755,root,root) %{_sbindir}/afpd | |
241 | %attr(755,root,root) %{_sbindir}/cnid_dbd | |
242 | %attr(755,root,root) %{_sbindir}/cnid_metad | |
243 | %attr(755,root,root) %{_sbindir}/netatalk | |
af6d9eb1 | 244 | %dir %{_libdir}/atalk |
8047d1c9 JB |
245 | %attr(755,root,root) %{_libdir}/atalk/uams_*.so |
246 | %{_mandir}/man1/ad.1* | |
247 | %{_mandir}/man1/afpldaptest.1* | |
248 | %{_mandir}/man1/afppasswd.1* | |
249 | %{_mandir}/man1/afpstats.1* | |
250 | %{_mandir}/man1/apple_dump.1* | |
251 | %{_mandir}/man1/asip-status.pl.1* | |
252 | %{_mandir}/man1/dbd.1* | |
253 | %{_mandir}/man1/macusers.1* | |
254 | %{_mandir}/man5/afp.conf.5* | |
255 | %{_mandir}/man5/afp_signature.conf.5* | |
256 | %{_mandir}/man5/afp_voluuid.conf.5* | |
257 | %{_mandir}/man5/extmap.conf.5* | |
258 | %{_mandir}/man8/afpd.8* | |
259 | %{_mandir}/man8/cnid_dbd.8* | |
260 | %{_mandir}/man8/cnid_metad.8* | |
261 | %{_mandir}/man8/netatalk.8* | |
96efc9d6 | 262 | |
ff7641db JB |
263 | %files libs |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_libdir}/libatalk.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libatalk.so.16 | |
267 | ||
96efc9d6 | 268 | %files devel |
6e3a6ad8 | 269 | %defattr(644,root,root,755) |
b0f16d38 | 270 | %attr(755,root,root) %{_bindir}/netatalk-config |
674a8ac8 | 271 | %attr(755,root,root) %{_libdir}/libatalk.so |
7553fcbc | 272 | %{_libdir}/libatalk.la |
6e3a6ad8 | 273 | %{_includedir}/atalk |
8047d1c9 JB |
274 | %{_aclocaldir}/netatalk.m4 |
275 | %{_mandir}/man1/netatalk-config.1* | |
ff7641db JB |
276 | |
277 | %files static | |
278 | %defattr(644,root,root,755) | |
279 | %{_libdir}/libatalk.a |