Corrected the spec file to build the rpm

This commit is contained in:
Poorna Pushkala 2005-10-14 14:19:21 +00:00
parent cf1db52c84
commit 4158a69cc6

View File

@ -26,7 +26,7 @@ Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: mono >= 1.1.8
ExclusiveArch: %ix86 x86_64
NoSource: 0
#NoSource: 0
%description
NOVELL Common Authentication Service Adapter (CASA).
@ -54,16 +54,19 @@ to develop applications that require these.
%build
cp -r %{_topdir}/SOURCES/CASA-1.5.0/* %{buildroot}/
cd %{buildroot}/%{prefix}/src/
mk-cai-all
./%{buildroot}%{prefix}/src/mk-cai-all
#./%{buildroot}%{prefix}/src/mk-cai-all
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/libmicasa.so.%version %{buildroot}%{prefix}/%{_lib}
#cp -f $PR/lib/lux/ndbg/libmicasa.so.$BLD_NO $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/libad.so.%version %{buildroot}%{prefix}/%{_lib}
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/libad_gk.so.%version %{buildroot}%{prefix}/%{_lib}
#cp -f $PR/lib/lux/ndbg/libad_gk.so.$BLD_NO $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/libkwallets_rw.so.%version %{buildroot}%{prefix}/%{_lib}
#cp -f $PR/lib/lux/ndbg/libkwallets_rw.so.$BLD_NO $BR/pkg/BUILD/
cp -f $PR/lib/lux/ndbg/libjmicasa.so.$BLD_NO $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/libjmicasa.so.%version %{buildroot}%{prefix}/%{_lib}
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/Novell.CASA.miCASAWrapper.dll %{buildroot}%{prefix}/%{_lib}
#cp -f $PR/lib/lux/ndbg/Novell.CASA.miCASAWrapper.dll $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/Novell.CASA.Common.dll %{buildroot}%{prefix}/%{_lib}
@ -77,7 +80,7 @@ cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/Novell.CASA.DataEngines.GnomeKe
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{prefix}/%{_lib}
#cp -f $PR/lib/lux/ndbg/Novell.CASA.DataEngines.KWallet.dll $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{binsource}/lux/ndbg/micasa.exe %{buildroot}%{prefix}/%{binsource}
cp -f %{buildroot}%{prefix}/src/%{binsource}/lux/ndbg/micasad.exe %{buildroot}%{prefix}/%{binsource}
#cp -f $PR/bin/lux/ndbg/micasad.exe $BR/pkg/BUILD/
cp -f %{buildroot}%{prefix}/src/%{binsource}/lux/ndbg/CASATrayApp.exe %{buildroot}%{prefix}/%{binsource}
#cp -f $PR/bin/lux/ndbg/CASATrayApp.exe $BR/pkg/BUILD/
@ -92,7 +95,9 @@ cp -f %{buildroot}%{prefix}/src/c_micasad/startup/micasad %{buildroot}%{prefix}/
cp -f %{buildroot}%{prefix}/src/c_micasad/startup/micasad.sh %{buildroot}%{prefix}/%{binsource}
#cp -f $PR/c_micasad/startup/micasad.sh $BR/pkg/BUILD
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/pam_micasa.so %{buildroot}%{prefix}/%{_lib}
#Poorna
mkdir -p %{buildroot}/%{_lib}/security
cp -f %{buildroot}%{prefix}/src/%{_lib}/lux/ndbg/pam_micasa.so %{buildroot}/%{_lib}/security
#cp -f $PR/lib/lux/ndbg/pam_micasa.so $BR/pkg/BUILD/
@ -110,62 +115,62 @@ install -d %{buildroot}%{prefix}/CASA/images
install -d %{buildroot}/%{_lib}/security
install -m 644 %libsource/pam_micasa.so %{buildroot}/%{_lib}/security
install -m 644 %libsource/libmicasa.so.1.0.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/libjmicasa.so.1.0.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.miCASAWrapper.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.Common.dll %{buildroot}%{prefix}/CASA/%{_lib}
#install -m 644 %libsource/pam_micasa.so %{buildroot}/%{_lib}/security
install -m 644 %{buildroot}%{prefix}/%libsource/libmicasa.so.1.5.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/libjmicasa.so.1.5.0 %{buildroot}%{prefix}/CASA/%{_lib}
#install -m 644 %{buildroot}%{prefix}/%libsource/miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.miCASAWrapper.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.Common.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/libad_gk.so.1.0.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/libkwallets_rw.so.1.0.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.A-D.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.CASAPolicy.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %libsource/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/libad_gk.so.1.5.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/libkwallets_rw.so.1.5.0 %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.A-D.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.CASAPolicy.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 644 %{buildroot}%{prefix}/%libsource/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{prefix}/CASA/%{_lib}
install -m 755 images/casa-1.5.glade %{buildroot}%{prefix}/CASA/images
install -m 755 images/casa-1.5.gladep %{buildroot}%{prefix}/CASA/images
install -m 755 images/firefox-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/keyring-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/kwallet-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/casa-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/micasa-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/mozilla-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 images/novell-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/casa-1.5.glade %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/casa-1.5.gladep %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/firefox-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/keyring-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/kwallet-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/casa-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/micasa-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/mozilla-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %{buildroot}%{prefix}/%{binsource}/novell-logo.png %{buildroot}%{prefix}/CASA/images
install -m 755 %binsource/micasad.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %binsource/CASATrayApp.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %binsource/CASAManager.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %binsource/CASAManager.sh %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%{binsource}/micasad.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%{binsource}/CASATrayApp.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%{binsource}/CASAManager.exe %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%binsource/CASAManager.sh %{buildroot}%{prefix}/CASA/bin
install -m 755 startup/micasad %{buildroot}%{prefix}/CASA/bin
install -m 755 startup/micasad.sh %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%{binsource}/micasad %{buildroot}%{prefix}/CASA/bin
install -m 755 %{buildroot}%{prefix}/%{binsource}/micasad.sh %{buildroot}%{prefix}/CASA/bin
install -m 644 doc/CASA_Admin_Guide.pdf %{buildroot}%{prefix}/CASA/doc
install -m 644 doc/miCASA_API_Guide.pdf %{buildroot}%{prefix}/CASA/doc
install -m 644 doc/README.txt %{buildroot}%{prefix}/CASA/doc
install -m 644 include/micasa.h %{buildroot}%{prefix}/CASA/include
install -m 644 include/micasa_mgmd.h %{buildroot}%{prefix}/CASA/include
install -m 644 include/* %{buildroot}%{prefix}/CASA/include
#install -m 644 doc/CASA_Admin_Guide.pdf %{buildroot}%{prefix}/CASA/doc
#install -m 644 doc/miCASA_API_Guide.pdf %{buildroot}%{prefix}/CASA/doc
#install -m 644 doc/README.txt %{buildroot}%{prefix}/CASA/doc
install -m 644 %{buildroot}%{prefix}/src/include/micasa.h %{buildroot}%{prefix}/CASA/include
install -m 644 %{buildroot}%{prefix}/src/include/micasa_mgmd.h %{buildroot}%{prefix}/CASA/include
#install -m 644 %{buildroot}%{prefix}/include/* %{buildroot}%{prefix}/CASA/include
ln -s libmicasa.so.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libmicasa.so
ln -s libmicasa.so.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libmicasa.so.1
ln -s libjmicasa.so.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libjmicasa.so
ln -s libjmicasa.so.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libjmicasa.so.1
ln -s miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib}/jmiCASA.jar
#ln -s miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib}/jmiCASA.jar
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 ../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.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libkwallets_rw.so
ln -s libkwallets_rw.so.%{version} %{buildroot}%{prefix}/CASA/%{_lib}/libkwallets_rw.so.1
@ -291,11 +296,11 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/CASA/%{_lib}/Novell.CASA.A-D.dll
%{prefix}/CASA/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll
%{prefix}/CASA/%{_lib}/Novell.CASA.DataEngines.KWallet.dll
%{prefix}/CASA/%{_lib}/miCASA.jar
#%{prefix}/CASA/%{_lib}/miCASA.jar
%{prefix}/CASA/bin
%{prefix}/CASA/images/*
%{prefix}/CASA/doc/CASA_Admin_Guide.pdf
%{prefix}/CASA/doc/README.txt
#%{prefix}/CASA/doc/CASA_Admin_Guide.pdf
#%{prefix}/CASA/doc/README.txt
/etc/init.d/micasad
/%{_lib}/security/pam_micasa.so
@ -304,7 +309,7 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/include
%{prefix}/CASA/include
%{prefix}/CASA/%{_lib}/*.so
%{prefix}/CASA/doc/miCASA_API_Guide.pdf
#%{prefix}/CASA/doc/miCASA_API_Guide.pdf
%changelog -n CASA