Name: gssproxy Version: 0.0.1 Release: 2%{?dist} Summary: GSSAPI Proxy Group: System Environment/Libraries License: MIT URL: http://fedorahosted.org/gss-proxy Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gettext-devel, krb5-devel, iniparser-devel, libverto-devel, popt-devel BuildRequires: systemd-units Requires: krb5-libs %global servicename gssproxy %global gsspstatedir %{_localstatedir}/lib/gssproxy %global pipepath %{gsspstatedir}/pipes %global pubconfpath %{_sysconfdir}/gssproxy ### Build Dependencies ### %description A proxy for GSSAPI credential handling %prep %setup -q %build cd proxy autoreconf -f -i %configure \ --with-pipe-path=%{pipepath} \ --with-pubconf-path=%{pubconfpath} \ --with-init-dir=%{_initrddir} \ --disable-static \ --disable-rpath make %{?_smp_mflags} all %install rm -rf $RPM_BUILD_ROOT cd proxy make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_unitdir} install -m644 systemd/gssproxy.service $RPM_BUILD_ROOT%{_unitdir}/gssproxy.service %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README NOTES %doc proxy/examples/gssproxy-example.conf %{_unitdir}/gssproxy.service %{_sbindir}/gssproxy %dir %{gsspstatedir} %attr(755,root,root) %dir %{pipepath} %attr(755,root,root) %dir %{pubconfpath} %attr(750,root,root) %dir %{_var}/log/%{name} %attr(711,root,root) %dir /%{_sysconfdir}/gssproxy %ghost %attr(0600,root,root) %config(noreplace) /%%{_sysconfdir}/gssproxy/gssproxy.conf %{_mandir}/man5/gssproxy.conf.5* %{_mandir}/man8/gssproxy.8* %post /sbin/ldconfig /sbin/chkconfig --add %{servicename} if [ $1 -ge 1 ] ; then /sbin/service %{servicename} condrestart 2>&1 > /dev/null fi %preun if [ $1 = 0 ]; then /sbin/service %{servicename} stop 2>&1 > /dev/null /sbin/chkconfig --del %{servicename} fi %changelog * Mon Jul 02 2012 Guenther Deschner 0.0.1-2 - Add systemd packaging * Wed Mar 28 2012 Guenther Deschner 0.0.1-1 - Various fixes * Mon Dec 12 2011 Simo Sorce - @PACKAGE_VERSION@-0@PRERELEASE_VERSION@ - Automated build of the gssproxy daemon