File CASA-kwallet.spec of Package CASA-kwallet

#
# spec file for package CASA-kwallet (Version 1.7.758 )
#
# Copyright (c) 2008 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-kwallet
%define cfg Release
%define debug_opt ""
Url:            http://www.novell.com/products
BuildRequires:  kdelibs3-devel libgcc libstdc++ mono-devel
%define prefix		/usr/share/doc/packages
%define bin_prefix	/usr
License:        LGPL v2.1 or later
Group:          Productivity/Security
AutoReqProv:    on
%define	       bldno	1.1.1
Version:        1.7.758 
Release:        162
Summary:        CASA Aggregation and Distribution KWallet plugin
Source:         %{name}-%{version}.tar.bz2
#Patch:	       %{name}-%{version}.diff
Patch0:         gcc-4.3.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       CASA-gui >= 1.6.0 mono >= 1.1.13 mono-core >= 1.1.13 
PreReq:         %fillup_prereq %insserv_prereq
#ExclusiveArch: %ix86 x86_64
#NoSource:     0

%description
CASAK-kwallet (CASA Kwallet) is the KWallet plugin for enabling the
CASA GUI to perform Aggregation and Distribution tasks for managing
KWallet through CASA in KDE desktop.



%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}%{bin_prefix}/%{_lib}
install -m 755 %{_lib}/%{cfg}/libcasakwallet.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}
ln -s libcasakwallet.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libcasakwallet.so
ln -s libcasakwallet.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libcasakwallet.so.1

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{bin_prefix}/%{_lib}/libcasakwallet.so.%{bldno}
%{bin_prefix}/%{_lib}/libcasakwallet.so
%{bin_prefix}/%{_lib}/libcasakwallet.so.1

%changelog
* Mon Feb 25 2008 crrodriguez@suse.de
- fix library-without-ldconfig-post* errors
* Tue Nov 27 2007 dmueller@suse.de
- fix build against gcc 4.3
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Fri Jul 28 2006 schoi@novell.com
- update to 1.7.758
  add special linker command
  clean up src tarball
* Sat Apr 22 2006 schoi@novell.com
- CASAKWALLET (CASA Kwallet) is the KWallet plugin for enabling the
  CASA GUI to perform Aggregation and Distribution tasks for managing
  KWallet through CASA in KDE desktop.