File CASA_auth_token_client.spec of Package CASA_auth_token_client
#
# spec file for package CASA_auth_token_client (Version 1.7.1587 )
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: CASA_auth_token_client
%define cfg Release
%define debug_opt ""
Url: http://www.novell.com/products
BuildRequires: CASA-devel curl-devel expat gcc-c++ glade-sharp2 glib2-devel krb5-devel libgcc libgssapi libopenssl-devel libstdc++ libstdc++-devel mono-devel pkgconfig update-alternatives
%if %suse_version > 1020
BuildRequires: libexpat-devel
%endif
%define prefix /usr
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
AutoReqProv: on
%define bldno 1.7.1587
Version: 1.7.1587
Release: 1
Summary: Novell CASA Authentication Token Libraries for Client Applications
Source: %{name}-%{version}.tar.bz2
Group: Development/Libraries/C and C++
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
License: LGPL v2.1 or later
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
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.
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
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
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
install -m 644 library/client.conf %{buildroot}/etc/CASA/authtoken/client/client.conf
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
# Symbolic Links
ln -sf libcasa_c_authtoken.so.%{bldno} %{buildroot}%{prefix}/%{_lib}/libcasa_c_authtoken.so
%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}
%{prefix}/%{_lib}/libcasa_c_authtoken.so.1
%{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
%{prefix}/%{_lib}/libcasa_c_authtoken.so
%changelog
* Mon Sep 08 2008 nds_cm@novell.com
- Removed sysvinit dependency from the BuildRequire line.
* Mon Jun 30 2008 jluciani@novell.com
- Added RPC retry capabilities under connection failures to help
solve the scalability issue reported in BUG 401524.
* Tue Jun 03 2008 jluciani@novell.com
- Applied the patches being utilized to build the package under
stable to the source tree and merged spec file changes.
* Fri Apr 04 2008 meissner@suse.de
- build with gssapi -> gssglue renamed
* Mon Jan 28 2008 mmarek@suse.de
- fixed build with new libcurl-devel package
* added libopenssl-devel to BuildRequires
* removed unnecessary -lidn in library/linux/Makefile.am
* Wed Jan 02 2008 jluciani@novell.com
- Added time-stamp, process id , and thread id information to the
debug logs for Windows. This resolves BUG 310507.
* Thu Jul 05 2007 jluciani@novell.com
- Changed the engine to also use the DNS name of the ATS when
the caller passes us the dotted ip address of the server when
requesting a token in order to work when the server's certificate
has been issued using the server's DNS name. This resolves
BUG 288959.
* Thu Jun 28 2007 jluciani@novell.com
- Fixed libcasa_c_authtoken crash that would occur when the
was unloaded before previously been initialized. This addresses
BUG288073.
* Mon Jun 04 2007 jluciani@novell.com
- Commented out the line in the client.conf file which was allowing
clients to trust ATSs with Certificates that could not be validated.
This completes the changes necessary for the resolution of
BUG 242891.
- Changed the client to allow a list of ATSs to be configured in
the client.conf file for the purposes of Fault-tolerance and also
the client now tries to contact an ATS at the same location as
the AuthToken consuming service in addition to the configured
ATSs. These changes were necessary to resolve BUG 242891.
- The client now also attempts to access ATSs over port 443 in
addition to trying port 2645 if the ATS port number is not
configured. This will make it possible to access the ATSs
when connected to a Web Server. This addresses part of BUG287279.
* Mon Apr 30 2007 ro@suse.de
- added libexpat-devel to buildrequires
* Tue Apr 17 2007 jluciani@novell.com
- Added CleanUpAuthTokenCache() API to solve BUG260619.
* Mon Apr 02 2007 jluciani@novell.com
- Cleaned up 64bit platform issues.
- Fixed BUG245588 which dealt with the devel package windows
install.
- Fixed BUG258123 which dealt with recovery from errors in a
multi-ATS environment using the same REALMS.
* Wed Mar 21 2007 jluciani@novell.com
- Fixed BUG256571. The changes allows the server to instruct the
Pwd authentication mechanism to only utilize credentials that
match the specified REALM.
* Mon Mar 05 2007 jluciani@novell.com
- Fixed BUG 251374. The changes allow us to get around issues where
DNS is not setup correctly and forward lookups fail on names
that where obtained using a reverse DNS lookup.
- Added the capability to log debug messages to a file
under windows.
* Fri Feb 16 2007 schoi@novell.com
- fix build failure on x86_64
* Wed Feb 14 2007 jluciani@novell.com
- Fixed BUG225485.
- Added code to indicate that Authentication/Session tokens
should not be persisted in miCASA.
* Mon Feb 12 2007 aj@suse.de
- Remove unneeded dependency on glade-sharp.
* Wed Feb 07 2007 jluciani@novell.com
- Resolved Bugs 242890, 242893, 242894, 242895, 242896, 242898,
242899, 242900, 242901, 242902, 242903, 242906, 242908, 242909,
242911, 242913, 242914, 242915, 242916, 242919.
* Wed Jan 24 2007 jluciani@novell.com
- Resolved BUG233226 (CASA Authtoken Client library needs to
un-initialize itself when unloaded).
- Changed the files included in the client RPM to allow applications
to more easily dynamically link our libraries without neededing to
deal with library version changes.
* Fri Jan 12 2007 jluciani@novell.com
- Resolved BUG234411. The issue involved the client crashing
when receiving a response from an ATS with a successful
status but no payload.
* Fri Jan 05 2007 jluciani@novell.com
- Resolved BUG232243. The issue involved clearing memory used by the
client library to hold tokens since the tokens contain security
sensitive data.
* Fri Dec 01 2006 jluciani@novell.com
- Resolved BUG225118.
- Made changes to issues found during self-code review.
* Tue Nov 21 2006 schoi@novell.com
- FateID 301736 : Submit CASA_auth_token_client to sled10-sp1
* Mon Nov 13 2006 jluciani@novell.com
- Separated the non-java project into client and server projects in
order to better support distributions that target desktops.
From now on, this changes file will only contain information
that applies to the client project.
* Thu Nov 09 2006 jluciani@novell.com
- Finished the changes to enable client/ATS communications
over SSL.
* Tue Nov 07 2006 jluciani@novell.com
- Made changes to enable client/ats communication over SSL. (Not quite
done with this yet).
- Updated the make system to allow Windows builds to be made from
the command line using Cygwin.
* Thu Oct 19 2006 jluciani@novell.com
- Created client-devel RPM.
- Made changes to conform to updates made to the Java components
with regard to the layout of files.
* Tue Oct 10 2006 jluciani@novell.com
- Brought up to date the README and TODO files.
* Mon Oct 09 2006 jluciani@novell.com
- Cleaned up compiler warnings that were present in some of the
components.
* Fri Oct 06 2006 schoi@novell.com
- Add the CASA build check as dependency in spec file
* Thu Oct 05 2006 jluciani@novell.com
- Ported the client to Linux and created the CASA_auth_token_client package.
* Mon Oct 02 2006 jluciani@novell.com
- Made spec file modifications suggested by SuSE. The changes entailed
leveraging RPM macros instead of using my own scripts to make the
RPM more solid.
* Thu Sep 14 2006 jluciani@novell.com
- Added rc script for Validate AuthToken Service.
* Thu Sep 14 2006 jluciani@novell.com
- Created the Validate AuthToken Service and made all of the necessary changes
to allow it to be consumed by the AuthTokenValidate library.
- Also made necessary spec file changes to support our configuration.
* Tue Sep 05 2006 jluciani@novell.com
- Created client/server IPC libraries that will be utilized by libcasa_s_authtoken
to communicate with the Java Validate AuthToken Service (yet to be created) over
DOMAIN sockets. The service will utilize the libraries via JNI to be able to
process requests sent using DOMAIN sockets.
* Tue Aug 15 2006 schoi@novell.com
- Fixed CASA_auth_token_devel build requirement for CASA_auth_token_svc
* Mon Aug 07 2006 schoi@novell.com
- This file has been created for CASA_auth_token_native project for the first
time.