File wmcalc.spec of Package wmcalc
%define name wmcalc
%define version 0.4
%define release 1
Summary: Wmcalc is an applet calculator.
Name: %name
Version: %version
Release: %release
License: GPL
Group: AfterStep/Applets
URL: http://www.dockapps.com/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-buildroot
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: lib64xorg-x11-devel lib64xext6-devel
%endif
%ifarch %{ix86}
BuildRequires: libxorg-x11-devel libxext6-devel
%endif
BuildRequires: libxpm-devel
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires: libX11-devel libXpm-devel libXext-devel
%endif
%if 0%{?suse_version}
BuildRequires: xorg-x11-devel xorg-x11-libX11-devel
BuildRequires: xorg-x11-libXpm-devel xorg-x11-libXext-devel
%endif
%description
Wmcalc is a 64x64 pixel application that performs all the
functions (and eventually more) of a simple four function
calculator. It includes a 10 digit alpha-numeric display,
and twenty buttons for user input. Clicking on the display
will clear the calculator.
%prep
%setup -q -n wmcalc-%{version}
%build
%{__make} CFLAGS="${RPM_OPT_FLAGS}" INCLUDES="-I%{_includedir} -I%{_includedir}/X11" LIBINC="-L%{_libdir}" PREFIX="%{_prefix}"
%install
%{__mkdir_p} -m 0755 %{buildroot}%{_bindir}
%{__install} -s -m 755 wmcalc %{buildroot}%{_bindir}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING README wmcalc.conf
%{_bindir}/*
%changelog
* Wed Mar 23 2011 Agnelo de la Crotche <agnelo@unixversal.com> - 0.4-1
- package for openSUSE 11.3/11.4
* Fri Feb 18 2005 J. Krebs <rpm_speedy@yahoo.com> - 0.4-1
- Initial build.