112 lines
2.8 KiB
RPMSpec
112 lines
2.8 KiB
RPMSpec
|
Name: gssproxy
|
||
|
Version: 0.0.2
|
||
|
Release: 3%{?dist}
|
||
|
Summary: GSSAPI Proxy
|
||
|
|
||
|
Group: System Environment/Libraries
|
||
|
License: MIT
|
||
|
URL: http://fedorahosted.org/gss-proxy
|
||
|
Source0: http://fedorahosted.org/released/gss-proxy/%{name}-%{version}.tar.gz
|
||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||
|
|
||
|
%global servicename gssproxy
|
||
|
%global gsspstatedir %{_localstatedir}/lib/gssproxy
|
||
|
%global pipepath %{gsspstatedir}/pipes
|
||
|
%global pubconfpath %{_sysconfdir}/gssproxy
|
||
|
|
||
|
Requires: krb5-libs >= 1.10
|
||
|
Requires(post): systemd-units
|
||
|
Requires(preun): systemd-units
|
||
|
Requires(postun): systemd-units
|
||
|
|
||
|
### Build Dependencies ###
|
||
|
|
||
|
BuildRequires: gettext-devel, krb5-devel, iniparser-devel, libverto-devel, popt-devel
|
||
|
BuildRequires: autoconf
|
||
|
BuildRequires: automake
|
||
|
BuildRequires: libtool
|
||
|
BuildRequires: m4
|
||
|
BuildRequires: libxslt
|
||
|
BuildRequires: libxml2
|
||
|
BuildRequires: docbook-style-xsl
|
||
|
BuildRequires: doxygen
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: findutils
|
||
|
BuildRequires: systemd-units
|
||
|
|
||
|
|
||
|
%description
|
||
|
A proxy for GSSAPI credential handling
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
|
||
|
%build
|
||
|
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 %{buildroot}
|
||
|
make install DESTDIR=%{buildroot}
|
||
|
install -d -m755 %{buildroot}%{_sysconfdir}/gssproxy
|
||
|
install -d -m755 %{buildroot}%{_unitdir}
|
||
|
install -m644 examples/gssproxy-example.conf %{buildroot}%{_sysconfdir}/gssproxy/gssproxy.conf
|
||
|
install -m644 systemd/gssproxy.service %{buildroot}%{_unitdir}/gssproxy.service
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%{_unitdir}/gssproxy.service
|
||
|
%{_sbindir}/gssproxy
|
||
|
%dir %{gsspstatedir}
|
||
|
%attr(755,root,root) %dir %{pipepath}
|
||
|
%attr(755,root,root) %dir %{pubconfpath}
|
||
|
%attr(700,root,root) %dir /%{_sysconfdir}/gssproxy
|
||
|
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/gssproxy.conf
|
||
|
%{_mandir}/man5/gssproxy.conf.5*
|
||
|
%{_mandir}/man8/gssproxy.8*
|
||
|
|
||
|
%post
|
||
|
if [ $1 -eq 1 ] ; then
|
||
|
# Initial installation
|
||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||
|
fi
|
||
|
|
||
|
%preun
|
||
|
if [ $1 -eq 0 ] ; then
|
||
|
# Package removal, not upgrade
|
||
|
/bin/systemctl --no-reload disable gssproxy.service > /dev/null 2>&1 || :
|
||
|
/bin/systemctl stop gssproxy.service > /dev/null 2>&1 || :
|
||
|
fi
|
||
|
|
||
|
%postun
|
||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||
|
if [ $1 -ge 1 ] ; then
|
||
|
# Package upgrade, not uninstall
|
||
|
/bin/systemctl try-restart gssproxy.service >/dev/null 2>&1 || :
|
||
|
fi
|
||
|
|
||
|
%changelog
|
||
|
* Fri Jul 13 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-3
|
||
|
- Fix various packaging issues
|
||
|
|
||
|
* Mon Jul 02 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.1-2
|
||
|
- Add systemd packaging
|
||
|
|
||
|
* Wed Mar 28 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.1-1
|
||
|
- Various fixes
|
||
|
|
||
|
* Mon Dec 12 2011 Simo Sorce <simo@redhat.com> - 0.0.2-0
|
||
|
- Automated build of the gssproxy daemon
|