Created
January 11, 2013 02:02
netatalk3.spec for RHEL, Scientific Linux and CentOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: netatalk | |
Version: 3.0.1 | |
Release: 1%{?dist} | |
Summary: Netatalk is a freely-available Open Source AFP fileserver. | |
Group: System Environment/Daemons | |
License: GPL2 | |
URL: http://netatalk.sourceforge.net/ | |
Source0: http://download.sourceforge.net/netatalk/netatalk-%{version}.tar.bz2 | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
BuildRequires: cracklib-devel openssl-devel pam quota-devel libtool automake | |
BuildRequires: autoconf db4-devel pam-devel tcp_wrappers-devel libgcrypt-devel | |
BuildRequires: avahi-devel libacl-devel openldap-devel | |
Requires: pam | |
%description | |
Netatalk is a freely-available Open Source AFP fileserver. A *NIX/*BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server (AFP). | |
%package devel | |
Summary: Headers for Appletalk development | |
Group: Development/Libraries | |
%description devel | |
Headers for Netatalk | |
%prep | |
%setup -q | |
%build | |
./configure --with-init-style=redhat-sysv \ | |
--bindir=%{_bindir} \ | |
--libdir=%{_libdir} \ | |
--sbindir=%{_sbindir} \ | |
--sysconfdir=%{_sysconfdir} \ | |
--mandir=%{_mandir} \ | |
--localstatedir=%{_var} \ | |
--includedir=%{_includedir} \ | |
--datarootdir=%{_datarootdir} | |
make %{?_smp_mflags} | |
%install | |
rm -rf %{buildroot} | |
make install DESTDIR=%{buildroot} | |
# Clean up .a and .la files | |
find $RPM_BUILD_ROOT -name \*.a -exec rm {} \; | |
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \; | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(-,root,root,-) | |
%config(noreplace) %{_sysconfdir}/afp.conf | |
%config(noreplace) %{_sysconfdir}/pam.d/netatalk | |
%{_sbindir}/* | |
%{_bindir}/* | |
%exclude %{_bindir}/netatalk-config | |
%{_mandir}/man*/* | |
%exclude %{_mandir}/man*/netatalk-config* | |
%{_libdir}/*.so | |
%{_libdir}/*.so.* | |
%{_libdir}/netatalk/* | |
%{_var}/netatalk/* | |
%{_sysconfdir}/rc.d/init.d/netatalk | |
%files devel | |
%defattr(-,root,root) | |
%dir %{_includedir}/atalk | |
%attr(0644,root,root) %{_includedir}/atalk/* | |
%{_datadir}/aclocal/netatalk.m4 | |
%{_bindir}/netatalk-config | |
%{_mandir}/man*/netatalk-config.1* | |
# | |
# TODO: How to deal these files. | |
# | |
%exclude %{_includedir}/event2 | |
%exclude /usr/lib64/pkgconfig | |
%exclude /usr/include/ev* | |
%doc | |
%changelog | |
* Fri Jan 11 2013 Initial Hiroyuki Sato <hiroysato at gmail.com> | |
- Initial version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment