# # spec file for package CASA (Version 1.6.0) # # 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 # For debug build, please replace Release to Debug and set debug_opt to --enable-debug %define cfg Release %define debug_opt "" Name: @PACKAGE@ URL: http://www.novell.com/products BuildRequires: gcc-c++ glade-sharp glib-sharp glib2-devel gnome-filesystem gnome-keyring-devel gtk-sharp gtk-sharp-gapi gtk2-devel java2-devel-packages mDNSResponder-devel kdelibs3-devel krb5-devel libgssapi libstdc++-devel mono-devel pam-devel pkgconfig qt3-devel %define prefix /usr/share/doc/packages %define bin_prefix /usr License: LGPL Group: Productivity/Other Autoreqprov: on %define bldno 1.1.1 Version: @VERSION@ Release: 0 Summary: Novell Common Authentication Service Adapter (CASA) Source: %{name}-%{version}.tar.bz2 #Patch: %{name}-%{version}.diff #Patch2: CASA-detect_lib64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: mono >= 1.1.13 mono-core >= 1.1.13 PreReq: %fillup_prereq %insserv_prereq #ExclusiveArch: %ix86 x86_64 #NoSource: 0 %description CASA (Common Authentication Services Adaptor) is a common authentication and security package providing a set of libraries for application and service developers to provide single sign-on to an enterprise network. CASA provides a local on box credential store that is purely session based in 1.0. This store is populated with your Desktop and Network Login credentials on Novell Linux Desktop, Windows and Apple workstations. %package devel Summary: Include Files and Libraries mandatory for Development. Group: Productivity/Other Requires: CASA >= 1.0.0 Provides: CASA-devel %description devel This package contains all necessary include files and libraries needed to develop applications that can use CASA (Common Authnetication Services Adapter) for credential storage and single sign-on. %package gui Summary: The CASA Console Utility Group: Productivity/Other Requires: CASA = %{version} gtk-sharp >= 1.0.9 kdelibs3 >= 3.2.1 gtk2 >= 2.4.14 Provides: CASA-gui %description gui This package contains the CASA (Common Authnetication Services Adapter) Management application that allows you to manage credentials within CASA and for your kwallet gnome keyring. Additionally, you can also link secrets to one another. %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 mkdir -p %{buildroot}%{prefix} mkdir -p %{buildroot}%{prefix}/CASA mkdir -p %{buildroot}%{bin_prefix}/%{_lib} mkdir -p %{buildroot}%{bin_prefix}/bin mkdir -p %{buildroot}%{bin_prefix}/sbin mkdir -p %{buildroot}%{bin_prefix}/include mkdir -p %{buildroot}%{prefix}/CASA/images mkdir -p %{buildroot}%{prefix}/CASA/help mkdir -p %{buildroot}%{prefix}/CASA/help/en mkdir -p %{buildroot}%{prefix}/CASA/doc mkdir -p %{buildroot}/%{_lib}/security mkdir -p %{buildroot}/etc/init.d mkdir -p %{buildroot}/etc/ld.so.conf.d install -m 755 %{_lib}/%{cfg}/libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.miCASAWrapper.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.Common.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.A-D.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.CASAPolicy.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.FireFox.dll %{buildroot}%{bin_prefix}/%{_lib} install -m 755 %{binsource}/%{cfg}/micasad.exe %{buildroot}%{bin_prefix}/bin install -m 755 %{binsource}/%{cfg}/CASAManager.exe %{buildroot}%{bin_prefix}/bin install -m 755 c_gui/CASAManager.sh %{buildroot}%{bin_prefix}/bin install -m 755 c_gui/CASAManager.exe.config %{buildroot}%{bin_prefix}/bin install -m 755 c_gui/images/* %{buildroot}%{prefix}/CASA/images install -m 755 c_gui/help/en/* %{buildroot}%{prefix}/CASA/help/en install -m 755 c_micasad/startup/micasad %{buildroot}/etc/init.d install -m 755 c_micasad/startup/micasad.sh %{buildroot}%{bin_prefix}/sbin install -m 755 c_micasad/startup/casacfgpam %{buildroot}%{bin_prefix}/sbin install -m 755 c_micasad/startup/casaucfgpam %{buildroot}%{bin_prefix}/sbin install -m 755 %{_lib}/%{cfg}/pam_micasa.so %{buildroot}/%{_lib}/security install -d %{buildroot}%{bin_prefix}/%{_lib} install -d %{buildroot}%{bin_prefix}/bin install -d %{buildroot}%{bin_prefix}/sbin install -d %{buildroot}%{bin_prefix}/include install -d %{buildroot}%{prefix}/CASA/doc install -d %{buildroot}%{prefix}/CASA/images install -d %{buildroot}%{prefix}/CASA/help/en install -d %{buildroot}/%{_lib}/security install -d %{buildroot}/etc/init.d #install -m 644 %{buildroot}%{prefix}/%{_lib}/miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib} install -m 644 doc/CASA_Reference_Guide.pdf %{buildroot}%{prefix}/CASA/doc install -m 644 doc/License.txt %{buildroot}%{prefix}/CASA/doc install -m 644 doc/Readme.txt %{buildroot}%{prefix}/CASA/doc install -m 644 include/micasa_mgmd.h %{buildroot}%{bin_prefix}/include install -m 644 include/micasa_types.h %{buildroot}%{bin_prefix}/include ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so.1 ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so.1 #ln -s miCASA.jar %{buildroot}%{bin_prefix}/CASA/%{_lib}/jmiCASA.jar ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libkwallets_rw.so ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libkwallets_rw.so.1 ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so.1 ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so.1 ln -s /etc/init.d/micasad %{buildroot}%{bin_prefix}/sbin/rcmicasad echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf install -d %{buildroot}/usr/share/applications install c_gui/CASAManager.desktop %{buildroot}/usr/share/applications %suse_update_desktop_file -r CASAManager X-SuSE-ControlCenter-Personal %post %{fillup_and_insserv micasad} #if [ "x$1" = "x1" ] || [ "x$1" = "x2" ] #then # casacfgpam #fi #/usr/sbin/casacfgpam /sbin/ldconfig %post gui /sbin/ldconfig %preun %stop_on_removal micasad #if [ "x$1" = "x0" ] #then # /usr/sbin/casaucfgpam #fi %postun %restart_on_update %insserv_cleanup /sbin/ldconfig %postun gui /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %dir %{prefix}/CASA %dir %{prefix}/CASA/doc %dir %{bin_prefix}/%{_lib}/libmicasa.so.%{bldno} %dir %{bin_prefix}/%{_lib}/libmicasa.so %dir %{bin_prefix}/%{_lib}/libmicasa.so.1 %dir %{bin_prefix}/%{_lib}/libjmicasa.so.%{bldno} %dir %{bin_prefix}/%{_lib}/libjmicasa.so %dir %{bin_prefix}/%{_lib}/libjmicasa.so.1 %dir %{bin_prefix}/%{_lib}/Novell.CASA.miCASAWrapper.dll %dir %{bin_prefix}/%{_lib}/Novell.CASA.Common.dll /etc/init.d/micasad /%{_lib}/security/pam_micasa.so /etc/ld.so.conf.d/CASA.conf %{bin_prefix}/sbin/rcmicasad %{bin_prefix}/sbin/casacfgpam %{bin_prefix}/sbin/casaucfgpam %{bin_prefix}/sbin/micasad.sh %{bin_prefix}/bin/micasad.exe %{prefix}/CASA/doc/CASA_Reference_Guide.pdf %{prefix}/CASA/doc/License.txt %{prefix}/CASA/doc/Readme.txt %files devel %defattr(-,root,root) %{bin_prefix}/include/micasa_mgmd.h %{bin_prefix}/include/micasa_types.h %files gui %defattr(-,root,root) %{bin_prefix}/bin/CASAManager.sh %{bin_prefix}/bin/CASAManager.exe.config %{bin_prefix}/bin/CASAManager.exe %{bin_prefix}/share/applications/CASAManager.desktop %{bin_prefix}/%{_lib}/libad_gk.so.%{bldno} %{bin_prefix}/%{_lib}/libad_gk.so %{bin_prefix}/%{_lib}/libad_gk.so.1 %{bin_prefix}/%{_lib}/libkwallets_rw.so.%{bldno} %{bin_prefix}/%{_lib}/libkwallets_rw.so %{bin_prefix}/%{_lib}/libkwallets_rw.so.1 %{bin_prefix}/%{_lib}/libad_ff.so.%{bldno} %{bin_prefix}/%{_lib}/libad_ff.so %{bin_prefix}/%{_lib}/libad_ff.so.1 %{bin_prefix}/%{_lib}/Novell.CASA.A-D.dll %{bin_prefix}/%{_lib}/Novell.CASA.CASAPolicy.dll %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.KWallet.dll %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.FireFox.dll %dir %{prefix}/CASA/images %{prefix}/CASA/images/* %dir %{prefix}/CASA/help %dir %{prefix}/CASA/help/en %{prefix}/CASA/help/en/* %changelog -n CASA