diff --git a/shsrc/lshsrc/CASA_dbg.spec b/shsrc/lshsrc/CASA_dbg.spec index b5cccc9a..4cefa574 100644 --- a/shsrc/lshsrc/CASA_dbg.spec +++ b/shsrc/lshsrc/CASA_dbg.spec @@ -9,24 +9,27 @@ # # norootforbuild -# neededforbuild glade-sharp gnome-filesystem mono mono-core gtk2-devel gtk2 gtk-sharp gtk-sharp-gapi glib-sharp glib2 glib2-devel qt3-devel gcc-c++ kdeutils3 kdelibs3-devel kdelibs3 qt3 qt3-devel kdesdk3 libstdc++-devel pkgconfig gnome-keyring gnome-keyring-devel glib-devel glib pam pam-devel java2 krb5-devel libgssapi + + Name: CASA -#BuildRequires: glade-sharp gnome-filesystem mono mono-core gtk2-devel gtk2 gtk-sharp gtk-sharp-gapi glib-sharp glib2 glib2-devel qt3-devel gcc-c++ kdeutils3 kdelibs3-devel kdelibs3 qt3 qt3-devel kdesdk3 libstdc++-devel pkgconfig gnome-keyring gnome-keyring-devel glib-devel glib pam pam-devel java2 krb5-devel libgssapi - URL: http://www.novell.com/products -%define prefix /opt/novell -License: LGPL -Group: Productivity/Other -Autoreqprov: on -%define bldno 1.1.1 -Version: 1.6.000 -Release: 0 -Summary: Novell Common Authentication Service Adapter (CASA) -Source: %{name}-%{version}.tar.bz2 -#Patch: %{name}-%{version}.dif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -requires: mono >= 1.1.13 mono-core >= 1.1.13 +BuildRequires: glade-sharp gnome-filesystem mono mono-core gtk2-devel gtk2 gtk-sharp gtk-sharp-gapi glib-sharp glib2 glib2-devel qt3-devel gcc-c++ kdeutils3 kdelibs3-devel kdelibs3 qt3 qt3-devel kdesdk3 libstdc++-devel pkgconfig gnome-keyring gnome-keyring-devel glib-devel glib pam pam-devel java2 krb5-devel libgssapi +%define prefix /usr/share/doc/packages +%define bin_prefix /usr +License: LGPL +Group: Productivity/Other +Autoreqprov: on +%define bldno 1.1.1 +Version: 1.6.000 +Release: 0 +Summary: Novell Common Authentication Service Adapter (CASA) +Source: %{name}-%{version}.tar.bz2 +#Patch: %{name}-%{version}.dif +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 @@ -52,7 +55,7 @@ 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 gnome-keyring >= 0.2.1 kdelibs3 >= 3.2.1 gtk2 >= 2.4.14 +Requires: CASA = %{version} gtk-sharp >= 1.0.9 kdelibs3 >= 3.2.1 gtk2 >= 2.4.14 Provides: CASA-gui %description gui @@ -63,8 +66,8 @@ to one another. %prep %setup -q -#%patch -%ifarch x86_64 +%patch2 +%if %{_lib} == "lib64" %define binsource bin64 %else %define binsource bin @@ -80,118 +83,96 @@ mk-cai-all mkdir -p %{buildroot}%{prefix} mkdir %{buildroot}%{prefix}/CASA -mkdir %{buildroot}%{prefix}/CASA/%{_lib} -mkdir %{buildroot}%{prefix}/CASA/bin -mkdir %{buildroot}%{prefix}/CASA/include +mkdir %{buildroot}%{bin_prefix}/%{_lib} +mkdir %{buildroot}%{bin_prefix}/bin +mkdir %{buildroot}%{bin_prefix}/include mkdir %{buildroot}%{prefix}/CASA/images mkdir %{buildroot}%{prefix}/CASA/help mkdir %{buildroot}%{prefix}/CASA/help/en mkdir %{buildroot}%{prefix}/CASA/doc mkdir -p %{buildroot}/%{_lib}/security -install -m 755 %{_lib}/lux/dbg/libmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/libad_gk.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/libkwallets_rw.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/libjmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.miCASAWrapper.dll %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.Common.dll %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.A-D.dll %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.CASAPolicy.dll %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{prefix}/CASA/%{_lib} -install -m 755 %{_lib}/lux/dbg/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{prefix}/CASA/%{_lib} +install -m 755 %{_lib}/lux/dbg/libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.miCASAWrapper.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.Common.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.A-D.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.CASAPolicy.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{bin_prefix}/%{_lib} +install -m 755 %{_lib}/lux/dbg/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{bin_prefix}/%{_lib} -install -m 755 %{binsource}/lux/dbg/micasad.exe %{buildroot}%{prefix}/CASA/bin -install -m 755 %{binsource}/lux/dbg/CASAManager.exe %{buildroot}%{prefix}/CASA/bin -install -m 755 c_gui/CASAManager.sh %{buildroot}%{prefix}/CASA/bin -install -m 755 c_gui/CASAManager.exe.config %{buildroot}%{prefix}/CASA/bin +install -m 755 %{binsource}/lux/dbg/micasad.exe %{buildroot}%{bin_prefix}/bin +install -m 755 %{binsource}/lux/dbg/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/CASAManager.desktop %{buildroot}%{prefix}/CASA/ 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}%{prefix}/CASA/bin -install -m 755 c_micasad/startup/micasad.sh %{buildroot}%{prefix}/CASA/bin +install -m 755 c_micasad/startup/micasad %{buildroot}%{bin_prefix}/bin +install -m 755 c_micasad/startup/micasad.sh %{buildroot}%{bin_prefix}/bin +install -m 755 c_micasad/startup/casacfgpam %{buildroot}%{bin_prefix}/bin +install -m 755 c_micasad/startup/casaucfgpam %{buildroot}%{bin_prefix}/bin install -m 755 %{_lib}/lux/dbg/pam_micasa.so %{buildroot}/%{_lib}/security -install -d %{buildroot}%{prefix}/%{_lib} -install -d %{buildroot}%{prefix}/bin -install -d %{buildroot}%{prefix}/include -install -d %{buildroot}%{prefix}/CASA/%{_lib} -install -d %{buildroot}%{prefix}/CASA/bin +install -d %{buildroot}%{bin_prefix}/%{_lib} +install -d %{buildroot}%{bin_prefix}/bin +install -d %{buildroot}%{bin_prefix}/include install -d %{buildroot}%{prefix}/CASA/doc -install -d %{buildroot}%{prefix}/CASA/include install -d %{buildroot}%{prefix}/CASA/images install -d %{buildroot}%{prefix}/CASA/help/en install -d %{buildroot}/%{_lib}/security - #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}%{prefix}/CASA/include -install -m 644 include/* %{buildroot}%{prefix}/CASA/include +install -m 644 include/micasa_mgmd.h %{buildroot}%{bin_prefix}/include +install -m 644 include/micasa_types.h %{buildroot}%{bin_prefix}/include -ln -s ../CASA/bin/micasad.exe %{buildroot}%{prefix}/bin/micasad.exe -ln -s ../CASA/bin/micasad.sh %{buildroot}%{prefix}/bin/micasad.sh -ln -s ../CASA/bin/micasad %{buildroot}%{prefix}/bin/micasad -ln -s ../CASA/bin/CASAManager.exe %{buildroot}%{prefix}/bin/CASAManager.exe -ln -s ../CASA/bin/CASAManager.sh %{buildroot}%{prefix}/bin/CASAManager.sh -ln -s ../CASA/bin/CASAManager.exe.config %{buildroot}%{prefix}/bin/CASAManager.exe.config +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 libmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libmicasa.so -ln -s libmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libmicasa.so.1 -ln -s libjmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libjmicasa.so -ln -s libjmicasa.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libjmicasa.so.1 -#ln -s miCASA.jar %{buildroot}%{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 ../CASA/%{_lib}/libmicasa.so %{buildroot}%{prefix}/%{_lib}/libmicasa.so -ln -s ../CASA/%{_lib}/libmicasa.so.1 %{buildroot}%{prefix}/%{_lib}/libmicasa.so.1 -ln -s ../CASA/%{_lib}/libjmicasa.so %{buildroot}%{prefix}/%{_lib}/libjmicasa.so -ln -s ../CASA/%{_lib}/libjmicasa.so.1 %{buildroot}%{prefix}/%{_lib}/libjmicasa.so.1 -#ln -s ../CASA/%{_lib}/miCASA.jar %{buildroot}%{prefix}/%{_lib}/jmiCASA.jar -ln -s ../CASA/%{_lib}/Novell.CASA.miCASAWrapper.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.miCASAWrapper.dll -ln -s ../CASA/%{_lib}/Novell.CASA.Common.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.Common.dll -ln -s ../CASA/%{_lib}/Novell.CASA.CASAPolicy.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.CASAPolicy.dll -ln -s ../CASA/%{_lib}/Novell.CASA.A-D.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.A-D.dll -ln -s ../CASA/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll -ln -s ../CASA/%{_lib}/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{prefix}/%{_lib}/Novell.CASA.DataEngines.KWallet.dll - -ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libkwallets_rw.so -ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libkwallets_rw.so.1 - -ln -s ../CASA/%{_lib}/libkwallets_rw.so %{buildroot}%{prefix}/%{_lib}/libkwallets_rw.so -ln -s ../CASA/%{_lib}/libkwallets_rw.so.1 %{buildroot}%{prefix}/%{_lib}/libkwallets_rw.so.1 -ln -s libad_gk.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libad_gk.so -ln -s libad_gk.so.%{bldno} %{buildroot}%{prefix}/CASA/%{_lib}/libad_gk.so.1 - -ln -s ../CASA/%{_lib}/libad_gk.so %{buildroot}%{prefix}/%{_lib}/libad_gk.so -ln -s ../CASA/%{_lib}/libad_gk.so.1 %{buildroot}%{prefix}/%{_lib}/libad_gk.so.1 - -ln -s ../CASA/include/micasa.h %{buildroot}%{prefix}/include/micasa.h -ln -s ../CASA/include/micasa_mgmd.h %{buildroot}%{prefix}/include/micasa_mgmd.h +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 mkdir -p %{buildroot}/etc/init.d mkdir -p %{buildroot}/etc/ld.so.conf.d -cp %{buildroot}%{prefix}/CASA/bin/micasad %{buildroot}/etc/init.d -echo "/opt/novell/CASA/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf +cp %{buildroot}%{bin_prefix}/bin/micasad %{buildroot}/etc/init.d +echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf %post -if [ $1 -eq 1 ] +%{fillup_and_insserv -y micasad} +if [ $1 -eq 1 ] || [ $1 -eq 2 ] then - insserv /etc/init.d/micasad + casacfgpam fi + /sbin/ldconfig %post gui /sbin/ldconfig %preun - - %stop_on_removal micasad +if [ "x$1" == "x0" ] +then + casaucfgpam +fi + %postun -%restart_on_update micasad +%restart_on_update + %insserv_cleanup /sbin/ldconfig @@ -202,41 +183,30 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%dir %{prefix} +#%dir %{prefix} %dir %{prefix}/CASA -%dir %{prefix}/%{_lib} -%dir %{prefix}/CASA/%{_lib} +#%dir %{bin_prefix}/%{_lib} %dir %{prefix}/CASA/doc -%dir %{prefix}/CASA/%{_lib}/libmicasa.so.%{bldno} -%dir %{prefix}/CASA/%{_lib}/libmicasa.so -%dir %{prefix}/CASA/%{_lib}/libmicasa.so.1 -%dir %{prefix}/CASA/%{_lib}/libjmicasa.so.%{bldno} -%dir %{prefix}/CASA/%{_lib}/libjmicasa.so -%dir %{prefix}/CASA/%{_lib}/libjmicasa.so.1 -%dir %{prefix}/CASA/%{_lib}/Novell.CASA.miCASAWrapper.dll -%dir %{prefix}/CASA/%{_lib}/Novell.CASA.Common.dll +%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 -%dir %{prefix}/%{_lib}/libmicasa.so -%dir %{prefix}/%{_lib}/libmicasa.so.1 -%dir %{prefix}/%{_lib}/libjmicasa.so -%dir %{prefix}/%{_lib}/libjmicasa.so.1 - -%dir %{prefix}/%{_lib}/Novell.CASA.miCASAWrapper.dll -%dir %{prefix}/%{_lib}/Novell.CASA.Common.dll - -%dir %{prefix}/bin -%dir %{prefix}/CASA/bin -%{prefix}/CASA/bin/micasad -%{prefix}/CASA/bin/micasad.sh -%{prefix}/CASA/bin/micasad.exe +#%dir %{bin_prefix}/bin +%{bin_prefix}/bin/micasad +%{bin_prefix}/bin/micasad.sh +%{bin_prefix}/bin/casacfgpam +%{bin_prefix}/bin/casaucfgpam +%{bin_prefix}/bin/micasad.exe %{prefix}/CASA/doc/CASA_Reference_Guide.pdf %{prefix}/CASA/doc/License.txt %{prefix}/CASA/doc/Readme.txt -%{prefix}/bin/micasad -%{prefix}/bin/micasad.sh -%{prefix}/bin/micasad.exe /etc/init.d/micasad /%{_lib}/security/pam_micasa.so @@ -244,41 +214,31 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(-,root,root) -%{prefix}/include -%{prefix}/CASA/include -%{prefix}/CASA/%{_lib}/*.so +#%{bin_prefix}/include +%{bin_prefix}/include/micasa_mgmd.h +%{bin_prefix}/include/micasa_types.h %files gui %defattr(-,root,root) -%dir %{prefix}/CASA/bin/ -%{prefix}/CASA/bin/CASAManager.sh -%{prefix}/CASA/bin/CASAManager.exe.config -%{prefix}/CASA/bin/CASAManager.exe +#%dir %{bin_prefix}/bin/ +%{bin_prefix}/bin/CASAManager.sh +%{bin_prefix}/bin/CASAManager.exe.config +%{bin_prefix}/bin/CASAManager.exe %{prefix}/CASA/CASAManager.desktop +#%dir %{bin_prefix}/%{_lib}/ -%dir %{prefix}/CASA/%{_lib}/ - -%{prefix}/CASA/%{_lib}/libad_gk.so.%{bldno} -%{prefix}/CASA/%{_lib}/libad_gk.so -%{prefix}/CASA/%{_lib}/libad_gk.so.1 -%{prefix}/CASA/%{_lib}/libkwallets_rw.so.%{bldno} -%{prefix}/CASA/%{_lib}/libkwallets_rw.so -%{prefix}/CASA/%{_lib}/libkwallets_rw.so.1 -%{prefix}/CASA/%{_lib}/Novell.CASA.A-D.dll -%{prefix}/CASA/%{_lib}/Novell.CASA.CASAPolicy.dll -%{prefix}/CASA/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll -%{prefix}/CASA/%{_lib}/Novell.CASA.DataEngines.KWallet.dll - -%{prefix}/%{_lib}/libad_gk.so -%{prefix}/%{_lib}/libad_gk.so.1 -%{prefix}/%{_lib}/libkwallets_rw.so -%{prefix}/%{_lib}/libkwallets_rw.so.1 -%{prefix}/%{_lib}/Novell.CASA.A-D.dll -%{prefix}/%{_lib}/Novell.CASA.CASAPolicy.dll -%{prefix}/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll -%{prefix}/%{_lib}/Novell.CASA.DataEngines.KWallet.dll +%{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}/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 %dir %{prefix}/CASA/images %{prefix}/CASA/images/*