CASA/casa-yast/tools/yast2-CASA.spec

97 lines
2.6 KiB
RPMSpec
Raw Normal View History

2006-04-27 18:26:32 +02:00
#
# spec file for package yast2-CASA (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
#
# spec file for package yast2-CASA (Version @VERSION@)
#
# norootforbuild
Name: yast2-CASA
BuildRequires: yast2-devel yast2-devtools update-desktop-files
Version: @VERSION@
Release: 0
License: LGPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
prefix: /usr
Requires: yast2 CASA > 1.6.400
Summary: Configuration for Novell CASA (Common Authentication Services Adapter)
%description
Novell CASA (Common Authentication Services Adapter) YaST Configuration module. This module
is designed to assist system administrators to configure and eanble CASA through Yast after
system installation.
%prep
%setup -n yast2-CASA-@VERSION@
%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs}
%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
d=${f##*/}
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done
chmod 555 $RPM_BUILD_ROOT/usr/share/applications/install_casa_yast_icons
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
echo "yast2-CASA post install script"
echo "installing the Novell CASA YaST icon files"
/usr/share/applications/install_casa_yast_icons install rpm
exit 0
%preun
if [ "$1" = 0 ]; then
echo "yast2-CASA pre uninstall script"
echo "removing the Novell CASA YaST icon files"
/usr/share/applications/install_casa_yast_icons uninstall rpm
fi
exit 0
%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/CASA
/usr/share/applications/install_casa_yast_icons
/usr/share/pixmaps/CASA_22.png
/usr/share/pixmaps/CASA_32.png
/usr/share/pixmaps/CASA_48.png
/usr/share/YaST2/include/CASA/*
/usr/share/YaST2/clients/CASA.ycp
/usr/share/YaST2/clients/CASA_*.ycp
/usr/share/YaST2/modules/NovellCasa.*
/usr/share/YaST2/locale/*
2006-04-27 18:26:32 +02:00
%{prefix}/share/applications/YaST2/CASA.desktop
%doc %{prefix}/share/doc/packages/yast2-CASA