File yast2-CASA.spec of Package yast2-CASA

#
# spec file for package yast2-CASA (Version 1.7.1535)
#
# 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

Url:            http://forge.novell.com

Name:           yast2-CASA
%if %suse_version == 1030
BuildRequires:  libgcc libstdc++ update-desktop-files yast2-devel-doc yast2-devtools
%else
BuildRequires:  libgcc libstdc++ update-desktop-files yast2-devel yast2-devtools
%endif
Version:        1.7.1535
Release:        1
License:        LGPL v2.1 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Prefix:         /usr
Requires:       yast2 CASA > 1.6.400 
Summary:        YaST2 - Configuration for Novell CASA (Common Authentication Services Adapter)

%description
Novell CASA (Common Authentication Services Adapter) YaST configuration
module. This module is designed to assist administrators to configure
and enable CASA through YaST after system installation.



Authors:
--------
    Cameron Mashayekhi

%prep
%setup -n yast2-CASA-1.7.1535

%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

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/CASA
/usr/share/YaST2/include/CASA/*
/usr/share/YaST2/clients/CASA.ycp
/usr/share/YaST2/clients/CASA_*.ycp
/usr/share/YaST2/modules/NovellCasa.*
%{prefix}/share/applications/YaST2/CASA.desktop
%doc %{prefix}/share/doc/packages/yast2-CASA
%changelog
* Thu May 29 2008 jluciani@novell.com
- Removed the yast icons for packages built for SuSE versions
  greater than 10.3 as part of the solution to BUG384744.
* Fri Apr 04 2008 schoi@novell.com
- BUG 259794 Fix for localizing the text in CASA.pot file for Yast module.
* Mon Sep 10 2007 schoi@novell.com
- BUG 299044 remove mo and po files to fix the conflict between yast2-CASA and yast2-trans-en_US
* Tue Jul 31 2007 schoi@novell.com
- fix the build break in STABLE branch due to yast2-devel package name change
* Fri Jul 06 2007 jnorman@novell.com
- Bug 288999. Change message from Configure CASA to
  Enable CASA.
* Tue Mar 27 2007 cmashayekhi@novell.com
- Bug 257766 : Misspelled message corrected.
* Wed Mar 07 2007 cmashayekhi@novell.com
- Bug 205355 : Changed the buttons' labels to "Enabled" & "Disabled".
* Tue Nov 21 2006 schoi@novell.com
- FateID 301736 : Submit yast2-CASA 1.7 to sled10-sp1
* Fri Jul 28 2006 schoi@novell.com
- Version change from 1.6 to 1.7
* Thu May 25 2006 cmashayekhi@novell.com
- Buttons start in grayed out state before internal check
  for insattation or not.
* Mon May 22 2006 cmashayekhi@novell.com
- Bug 171136. Fixed to gray out proper button before and
  after configuration in yast.
* Mon May 08 2006 cmashayekhi@novell.com
- PO and POT files were added for localization.
* Mon Apr 24 2006 cmashayekhi@novell.com
- miCASA.ycp, miCASA.pm and miCASA.ybc were renamed to
  NovellCasa.* to solve a load problem.
* Sat Apr 22 2006 cmashayekhi@novell.com
- This file has been created for yast2-CASA project for the first
  time.
openSUSE Build Service is sponsored by