CASA/CASA-auth-token/client/package/linux/CASA_auth_token_client.spec.in

199 lines
6.7 KiB
RPMSpec
Raw Normal View History

#
# 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 ""
URL: http://www.novell.com/products
BuildRequires: CASA-devel curl-devel expat gcc-c++ glade-sharp2 glib2-devel krb5-devel libgcc libgssapi libstdc++ libstdc++-devel mono-devel pkgconfig sysvinit update-alternatives
%define prefix /usr
License: LGPL
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
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
%if %suse_version > 1000
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector"
%endif
./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
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
%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
%{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
%changelog -n CASA_auth_token_client