File iceWMCP.spec of Package iceWMCP

#
# spec file for package iceWMCP (Version 3.2)
#
# 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/
#



Name:           iceWMCP
License:        GPL v2 or later
Group:          System/GUI/Other
Requires:       python python-gtk
AutoReqProv:    on
Version:        3.2
Release:        83
Summary:        An IceWM Configuration Panel
Url:            http://www.phrozensmoke.com/projects/icewmcp/
Source:         IceWMControlPanel-%{version}.tar.bz2
Source1:        iceWMCP         
Patch:          %{name}-%{version}-applets.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
IceWM Control Panel (IceWMCP) is full-featured, Gtk-based control panel
for IceWM. It is meant to run in IceWM, but can be used in ANY window
manager as a general-purpose control panel.



Authors:
--------
    Erica Andrews PhrozenSmoke@yahoo.com

%package addons
Summary:        An IceWM Configuration Panel
Group:          System/GUI/Other
Requires:       %{name} = %{version} gnome-utils java-sun xscreensaver usbview kdeadmin3

%description addons
IceWM Control Panel (IceWMCP) is full-featured, Gtk-based control panel
for IceWM. It is meant to run in IceWM, but can be used in ANY window
manager as a general-purpose control panel.



Authors:
--------
    Erica Andrews PhrozenSmoke@yahoo.com

%prep
%setup -n INSTALL-IceWMCP
# remove not wanted applets
for APPLET in tkantivir gpassword userinfo gfcc gnorpm usermount godbc sysinfo; do
	rm applets/$APPLET.cpl
	rm applets/es/$APPLET.cpl
	rm applets/fr/$APPLET.cpl
	rm applets/ru/$APPLET.cpl
	rm applets/zh_tw/$APPLET.cpl
	rm applet-icons/$APPLET.png
done
%patch

%build
#nothing

%install
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -a doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -ar licenses $RPM_BUILD_ROOT%{_docdir}/%{name}
rm -r doc licenses
rm .cvsignore INSTALL-ME.sh install-pix.gif PyInstallShield
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}
cp -ra * $RPM_BUILD_ROOT/usr/share/%{name}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cp -a $RPM_SOURCE_DIR/iceWMCP $RPM_BUILD_ROOT%{_bindir}
%find_lang icewmcp-iceme
%find_lang icewmcp-icepref icewmcp-iceme.lang
%find_lang icewmcp-ism icewmcp-iceme.lang
%find_lang icewmcp icewmcp-iceme.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f icewmcp-iceme.lang
%defattr(-,root,root)
/usr/share/%{name}
%doc %{_docdir}/%{name}
%{_bindir}/iceWMCP
%exclude /usr/share/%{name}/applets/gfloppy.cpl
%exclude /usr/share/%{name}/applets/*/gfloppy.cpl
%exclude /usr/share/%{name}/applet-icons/gfloppy.png
%exclude /usr/share/%{name}/applets/java.cpl
%exclude /usr/share/%{name}/applets/*/java.cpl
%exclude /usr/share/%{name}/applet-icons/java.png
%exclude /usr/share/%{name}/applets/gtop.cpl
%exclude /usr/share/%{name}/applets/*/gtop.cpl
%exclude /usr/share/%{name}/applet-icons/gtop.png
%exclude /usr/share/%{name}/applets/xscreensaver.cpl
%exclude /usr/share/%{name}/applets/*/xscreensaver.cpl
%exclude /usr/share/%{name}/applet-icons/screensaver.png
%exclude /usr/share/%{name}/applets/usbview.cpl
%exclude /usr/share/%{name}/applets/*/usbview.cpl
%exclude /usr/share/%{name}/applet-icons/usbview.png
%exclude /usr/share/%{name}/applets/soundprop.cpl
%exclude /usr/share/%{name}/applets/*/soundprop.cpl
%exclude /usr/share/%{name}/applet-icons/soundprop.png
%exclude /usr/share/%{name}/applets/kcron.cpl
%exclude /usr/share/%{name}/applets/*/kcron.cpl
%exclude /usr/share/%{name}/applet-icons/kcron.png
%exclude /usr/share/%{name}/applets/kusers.cpl
%exclude /usr/share/%{name}/applets/*/kusers.cpl
%exclude /usr/share/%{name}/applet-icons/kusers.png

%files addons
%defattr(-,root,root)
/usr/share/%{name}/applets/gfloppy.cpl
/usr/share/%{name}/applets/*/gfloppy.cpl
/usr/share/%{name}/applet-icons/gfloppy.png
/usr/share/%{name}/applets/java.cpl
/usr/share/%{name}/applets/*/java.cpl
/usr/share/%{name}/applet-icons/java.png
/usr/share/%{name}/applets/gtop.cpl
/usr/share/%{name}/applets/*/gtop.cpl
/usr/share/%{name}/applet-icons/gtop.png
/usr/share/%{name}/applets/xscreensaver.cpl
/usr/share/%{name}/applets/*/xscreensaver.cpl
/usr/share/%{name}/applet-icons/screensaver.png
/usr/share/%{name}/applets/usbview.cpl
/usr/share/%{name}/applets/*/usbview.cpl
/usr/share/%{name}/applet-icons/usbview.png
/usr/share/%{name}/applets/soundprop.cpl
/usr/share/%{name}/applets/*/soundprop.cpl
/usr/share/%{name}/applet-icons/soundprop.png
/usr/share/%{name}/applets/kcron.cpl
/usr/share/%{name}/applets/*/kcron.cpl
/usr/share/%{name}/applet-icons/kcron.png
/usr/share/%{name}/applets/kusers.cpl
/usr/share/%{name}/applets/*/kusers.cpl
/usr/share/%{name}/applet-icons/kusers.png

%changelog
* Sun Mar 16 2008 crrodriguez@suse.de
- fix file-not-in-lang rpmlint errors
* Sun Feb 11 2007 ro@suse.de
- added defattr to subpackage
* Fri Sep 15 2006 anosek@suse.cz
- new package, version 3.2
openSUSE Build Service is sponsored by