File wmclockmon.spec of Package wmclockmon
%define name wmclockmon
%define version 0.8.1
%define release 2
Summary: digital clock with 7 different styles in either LCD or LED style
Name: %name
Version: %version
Release: %release
License: GPL
URL: http://tnemeth.free.fr/projets/dockapps.html
Source0: http://tnemeth.free.fr/projets/programmes/wmclockmon-0.8.1.tar.gz
Patch1: patch1.patch
Patch2: patch2.patch
#Patches from http://gentoo-overlays.zugaina.org/gentoo/portage/x11-plugins/wmclockmon/files/wmclockmon-0.8.1-gtk.patch
BuildRoot: %{_tmppath}/%{name}-buildroot
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
Requires: gtk+ gdk-pixbuf
BuildRequires: gtk+-devel gdk-pixbuf-devel
BuildRequires: libcurl-devel fdupes
BuildRequires: libXt-devel libXext-devel libXpm-devel
BuildRequires: xorg-x11-apps
BuildRequires: xorg-x11-server-common
BuildRequires: xorg-x11-server-utils
BuildRequires: xorg-x11-server-Xorg xorg-x11-utils
BuildRequires: xorg-x11-utils
Group: AfterStep/Applets
%endif
%if 0%{?suse_version}
Requires: gtk2
BuildRequires: gtk2-devel
BuildRequires: libcurl-devel fdupes
BuildRequires: xorg-x11-devel xorg-x11-libXpm-devel
Group: System/GUI/Other
%endif
%if 0%{?mandriva_version}
Requires: gtk2
BuildRequires: gtk2-devel
BuildRequires: libxt-devel libxpm-devel
%ifarch x86_64
BuildRequires: lib64xorg-x11-devel
%endif
%ifarch %{ix86}
BuildRequires: libxorg-x11-devel
%endif
Group: AfterStep/Applets
%endif
%description
wmclockmon is a nice digital clock with 7 different styles in either
LCD or LED style; uses locales to display weekday and month names.
It also features the internet time.
Includes wmclockmon-cal, a calendar display and wmclockmon-config,
a configuration tool for the package.
Sample .wmclockmonrc files are included in with the doc files.
%prep
%setup -q
%if 0%{?suse_version} || 0%{?mandriva_version}
%patch1 -p1
%patch2
%endif
%build
%configure
make
%install
make install DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/wmclockmon/
rm -rf styles/Makefile*
install -m 644 styles/* $RPM_BUILD_ROOT%{_datadir}/wmclockmon/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}*
%{_mandir}/man1/*
%dir %{_datadir}/wmclockmon
%{_datadir}/wmclockmon/*
%doc doc/sample*.wmclockmonrc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%changelog
* Sat Jul 9 2011 agnelo@unixversal.com
- Applied GTK2 patch to Mandriva build
* Sat Jul 9 2011 malcolmlewis@opensuse.org
- Added patches
* Fri Jun 15 2007 rpm_speedy@yahoo.com
- added require for gtk+-devel, gtk+.
* Fri Apr 13 2007 rpm_speedy@yahoo.com
- added distro info to release.
* Wed Oct 18 2006 rpm_speedy@yahoo.com
- Updated Source path.
* Tue Mar 21 2006 rpm_speedy@yahoo.com
- changed prefix path to /usr.
* Sun Apr 10 2005 rpm_speedy@yahoo.com
- Updated to 0.8.1.
* Fri Mar 4 2005 rpm_speedy@yahoo.com
- Changed styles dir to /usr/X11R6/share from /usr/share.
* Tue Feb 22 2005 rpm_speedy@yahoo.com
- Initial build.