2006-11-13 06:57:50 +01:00
|
|
|
#
|
|
|
|
# spec file for the CASA_auth_token native ( Version @VERSION@ )
|
|
|
|
#
|
|
|
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: CASA_auth_token_client
|
|
|
|
%define cfg Release
|
|
|
|
%define debug_opt ""
|
|
|
|
|
2008-06-03 19:44:40 +02:00
|
|
|
Url: http://www.novell.com/products
|
2009-04-07 07:52:24 +02:00
|
|
|
BuildRequires: CASA-devel curl-devel expat gcc-c++ glade-sharp2 glib2-devel krb5-devel libgcc libgssapi openssl-devel libstdc++ libstdc++-devel mono-devel pkgconfig update-alternatives
|
2007-06-28 22:38:31 +02:00
|
|
|
%if %suse_version > 1020
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
%endif
|
2006-11-13 06:57:50 +01:00
|
|
|
%define prefix /usr
|
2008-06-03 19:44:40 +02:00
|
|
|
License: LGPL v2.1 or later
|
2006-11-13 06:57:50 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Autoreqprov: on
|
|
|
|
%define bldno @VERSION@
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: 1
|
|
|
|
Summary: Novell CASA Authentication Token Libraries for Client Applications
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Group: System/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Requires: CASA >= 1.7.877 krb5 curl
|
|
|
|
PreReq: /usr/bin/awk, /usr/bin/test, /bin/grep, /bin/cat, /usr/bin/install, /bin/pwd
|
|
|
|
|
|
|
|
%description
|
|
|
|
CASA_auth_token is an authentication token infrastructure with support
|
|
|
|
for multiple authentication mechanisms with an emphasis on providing a
|
|
|
|
scalable single sign-on solution.
|
|
|
|
|
|
|
|
A key feature of CASA_auth_token is that its authentication tokens
|
|
|
|
contain identity information about the entity being authenticated. This
|
|
|
|
information contained in the tokens is configured on a per-service
|
|
|
|
basis. Because of this feature, we say that CASA_auth_token projects an
|
|
|
|
"Authenticated Identity".
|
|
|
|
|
|
|
|
The CASA_auth_token_client package contains the necessary library and
|
|
|
|
configuration files for client applications to obtain authentication
|
|
|
|
tokens.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Juan Carlos Luciani - jluciani@novell.com
|
|
|
|
Todd Throne
|
|
|
|
Jim Norman
|
|
|
|
|
|
|
|
|
|
|
|
%package -n CASA_auth_token_client-devel
|
2008-06-03 19:44:40 +02:00
|
|
|
License: LGPL v2.1 or later
|
2006-11-13 06:57:50 +01:00
|
|
|
Summary: Novell CASA Authentication Token Client Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: CASA-devel CASA_auth_token_client
|
|
|
|
|
|
|
|
%description -n CASA_auth_token_client-devel
|
2007-02-20 17:20:05 +01:00
|
|
|
CASA_auth_token is an authentication token infrastructure with support for
|
|
|
|
multiple authentication mechanisms with an emphasis on providing a scalable
|
|
|
|
single sign-on solution.
|
|
|
|
|
|
|
|
A key feature of CASA_auth_token is that its authentication tokens contain
|
|
|
|
identity information about the entity being authenticated. This information is
|
|
|
|
made available to the consuming services. The amount of information contained in
|
|
|
|
the tokens is configured on a per-service basis. Because of this feature, we say
|
|
|
|
that CASA_auth_token projects an "Authenticated Identity".
|
|
|
|
|
|
|
|
The CASA_auth_token_client-devel package contains the files necessary for the
|
|
|
|
development of client applications that utilize the CASA (Common Authentication
|
|
|
|
Service Adapter) authentication token infrastructure for authentication.
|
2006-11-13 06:57:50 +01:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Juan Carlos Luciani - jluciani@novell.com
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch
|
|
|
|
%if %{_lib} == "lib64"
|
|
|
|
%define binsource bin64
|
|
|
|
%else
|
|
|
|
%define binsource bin
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
export PATH=.:$PATH:/usr/%_lib/qt3/bin
|
|
|
|
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector"
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
export NO_BRP_CHECK_BYTECODE_VERSION="true"
|
|
|
|
|
|
|
|
## Prime the file system ##
|
|
|
|
install -d %{buildroot}%{prefix}
|
|
|
|
install -d %{buildroot}%{prefix}/%{_lib}
|
|
|
|
install -d %{buildroot}%{prefix}/%{_lib}/CASA
|
|
|
|
install -d %{buildroot}%{prefix}/%{_lib}/CASA/authtoken
|
|
|
|
install -d %{buildroot}%{prefix}/include
|
|
|
|
install -d %{buildroot}/etc/ld.so.conf.d
|
|
|
|
install -d -m 755 %{buildroot}/etc/CASA
|
|
|
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken
|
|
|
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken/client
|
|
|
|
install -d -m 755 %{buildroot}/etc/CASA/authtoken/client/mechanisms
|
|
|
|
|
|
|
|
|
|
|
|
## CASA_auth_token_client ##
|
|
|
|
# Libs
|
|
|
|
install -m 755 %{_lib}/%{cfg}/libcasa_c_authtoken.so %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so.%{bldno}
|
|
|
|
install -m 755 %{_lib}/%{cfg}/krb5mech.so %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.%{bldno}
|
|
|
|
install -m 755 %{_lib}/%{cfg}/pwmech.so %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.%{bldno}
|
|
|
|
|
|
|
|
# Symbolic Links
|
2007-01-29 14:11:18 +01:00
|
|
|
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
|
2006-11-13 06:57:50 +01:00
|
|
|
ln -sf krb5mech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so
|
|
|
|
ln -sf krb5mech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.1
|
|
|
|
ln -sf pwmech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so
|
|
|
|
ln -sf pwmech.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.1
|
|
|
|
|
|
|
|
# Others
|
2007-01-03 06:42:55 +01:00
|
|
|
install -m 644 library/client.conf %{buildroot}/etc/CASA/authtoken/client/client.conf
|
2006-11-13 06:57:50 +01:00
|
|
|
install -m 644 %{_lib}/%{cfg}/Krb5Authenticate.conf %{buildroot}/etc/CASA/authtoken/client/mechanisms/Krb5Authenticate.conf
|
|
|
|
install -m 644 %{_lib}/%{cfg}/PwdAuthenticate.conf %{buildroot}/etc/CASA/authtoken/client/mechanisms/PwdAuthenticate.conf
|
|
|
|
|
|
|
|
|
|
|
|
## CASA_auth_token_client-devel ##
|
|
|
|
# Header Files
|
|
|
|
install -m 644 include/casa_c_authtoken.h %{buildroot}%{prefix}/include
|
|
|
|
|
2008-06-03 19:44:40 +02:00
|
|
|
# Symbolic Links
|
|
|
|
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so
|
2006-11-13 06:57:50 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
## CASA_auth_token_client ##
|
|
|
|
%pre
|
|
|
|
# Nothing to do in this pre script
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
# Nothing to do in this preun script
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{prefix}/%{_lib}/CASA
|
|
|
|
%dir %{prefix}/%{_lib}/CASA/authtoken
|
|
|
|
%dir /etc/CASA
|
|
|
|
%dir /etc/CASA/authtoken
|
|
|
|
%dir /etc/CASA/authtoken/client
|
|
|
|
%dir /etc/CASA/authtoken/client/mechanisms
|
|
|
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so.%{bldno}
|
2007-01-29 14:11:18 +01:00
|
|
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
|
2006-11-13 06:57:50 +01:00
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.%{bldno}
|
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so
|
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/krb5mech.so.1
|
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.%{bldno}
|
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so
|
|
|
|
%{prefix}/%{_lib}/CASA/authtoken/pwmech.so.1
|
|
|
|
%config /etc/CASA/authtoken/client/client.conf
|
|
|
|
%config /etc/CASA/authtoken/client/mechanisms/Krb5Authenticate.conf
|
|
|
|
%config /etc/CASA/authtoken/client/mechanisms/PwdAuthenticate.conf
|
|
|
|
|
|
|
|
|
|
|
|
## CASA_auth_token_client-devel ##
|
|
|
|
%pre -n CASA_auth_token_client-devel
|
|
|
|
# Nothing to do in this pre script
|
|
|
|
|
|
|
|
%post -n CASA_auth_token_client-devel
|
|
|
|
# Nothing to do in this post script
|
|
|
|
|
|
|
|
%preun -n CASA_auth_token_client-devel
|
|
|
|
# Nothing to do in this preun script
|
|
|
|
|
|
|
|
%postun -n CASA_auth_token_client-devel
|
|
|
|
# Nothing to do in this postun script
|
|
|
|
|
|
|
|
%files -n CASA_auth_token_client-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{prefix}/include/casa_c_authtoken.h
|
2008-06-03 19:44:40 +02:00
|
|
|
%{prefix}/%{_lib}/libcasa_c_authtoken.so
|
2006-11-13 06:57:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
%changelog -n CASA_auth_token_client
|