summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2012-04-04 17:24:48 +0200
committerGünther Deschner <gdeschner@redhat.com>2012-06-26 14:44:44 +0200
commit6bcd3444c367c1af8b44db85566820f899e0c843 (patch)
tree69c5bbafb8658d41c5dcca9403adb3fb5fb5483e
parent78cb953ab5d61be42630593002b78568f0049dc3 (diff)
downloadgss-proxy-6bcd3444c367c1af8b44db85566820f899e0c843.tar.gz
gss-proxy-6bcd3444c367c1af8b44db85566820f899e0c843.tar.xz
gss-proxy-6bcd3444c367c1af8b44db85566820f899e0c843.zip
WIP: Add various fixes to gssproxy.spec.
Guenther
-rw-r--r--proxy/contrib/gssproxy.spec.in116
1 files changed, 28 insertions, 88 deletions
diff --git a/proxy/contrib/gssproxy.spec.in b/proxy/contrib/gssproxy.spec.in
index 668b9ae..3d57042 100644
--- a/proxy/contrib/gssproxy.spec.in
+++ b/proxy/contrib/gssproxy.spec.in
@@ -1,75 +1,34 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%endif
-
-Name: @PACKAGE_NAME@
-Version: @PACKAGE_VERSION@
-Release: 0@PRERELEASE_VERSION@%{?dist}
-Group: Applications/System
-Summary: System Security Services Daemon
-License: MIT
-URL: http://fedorahosted.org/gss-proxy/
-Source0: %{name}-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-### Patches ###
-
-### Dependencies ###
-
-Requires: krb5-libs
-Requires: keyutils-libs
-Requires(post): initscripts chkconfig /sbin/ldconfig
-Requires(preun): initscripts chkconfig
-Requires(postun): initscripts chkconfig /sbin/ldconfig
+Name: gssproxy
+Version: 0.0.1
+Release: 1%{?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
+Requires: krb5-libs
%global servicename gssproxy
%global gsspstatedir %{_localstatedir}/lib/gssproxy
%global pipepath %{gsspstatedir}/pipes
-%global pubconfpath %{sysconfdir}/gssproxy
+%global pubconfpath %{_sysconfdir}/gssproxy
### Build Dependencies ###
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
-BuildRequires: m4
-%{?fedora:BuildRequires: popt-devel}
-%if 0%{?rhel} <= 5
-BuildRequires: popt
-%endif
-%if 0%{?rhel} >= 6
-BuildRequires: popt-devel
-%endif
-BuildRequires: libxslt
-BuildRequires: libxml2
-BuildRequires: docbook-style-xsl
-BuildRequires: krb5-devel
-BuildRequires: doxygen
-BuildRequires: libselinux-devel
-BuildRequires: keyutils-libs-devel
-BuildRequires: gettext-devel
-BuildRequires: pkgconfig
-BuildRequires: findutils
-
%description
A proxy for GSSAPI credential handling
%prep
%setup -q
-%build
-
-# RHEL 5 uses an old libtool, so we need to force it to reconfigure
-# This is safe to do on newer packages too, as it will just
-# gather the appropriate m4 files from the libtool package
-for i in libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
-do
- find . -name $i -exec rm -f {} \;
-done
-
-autoreconf -ivf
+%build
+cd proxy
+autoreconf -f -i
%configure \
--with-pipe-path=%{pipepath} \
--with-pubconf-path=%{pubconfpath} \
@@ -80,45 +39,29 @@ autoreconf -ivf
make %{?_smp_mflags} all
-# Only build docs on recent distros
-%if 0%{?fedora}
-make %{?_smp_mflags} docs
-%endif
-
-%if 0%{?rhel} >= 6
-make %{?_smp_mflags} docs
-%endif
-
%install
rm -rf $RPM_BUILD_ROOT
-
+cd proxy
make install DESTDIR=$RPM_BUILD_ROOT
-# Prepare language files
-/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gssproxy
-
-# Remove .la files created by libtool
-find $RPM_BUILD_ROOT -name "*.la" -exec rm -f {} \;
-
-# Suppress developer-only documentation
-rm -Rf ${RPM_BUILD_ROOT}/%{_docdir}/%{name}/doc
%clean
rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(-,root,root,-)
-%doc COPYING
-%doc examples/gssproxy-example.conf
-%{_initrddir}/%{name}
+%doc README NOTES
+%doc proxy/examples/gssproxy-example.conf
+#%{_initrddir}/%{name}
%{_sbindir}/gssproxy
-%{_libdir}/%{name}/
+#%{_libdir}/%{name}/
%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
+%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*
@@ -136,12 +79,9 @@ if [ $1 = 0 ]; then
/sbin/chkconfig --del %{servicename}
fi
-%postun -p /sbin/ldconfig
-
-%post client -p /sbin/ldconfig
-
-%postun client -p /sbin/ldconfig
-
%changelog
+* Wed Mar 28 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.1-1
+- Various fixes
+
* Mon Dec 12 2011 Simo Sorce <simo@redhat.com> - @PACKAGE_VERSION@-0@PRERELEASE_VERSION@
- Automated build of the gssproxy daemon