%define srcdirname src %define scriptname getquote Name: wmstock Version: 0.11 Release: %mkrel 1 Summary: A dock application which displays stock quote data License: GPLv2 Group: Monitoring URL: http://www.mattfischer.com/wmstock Source0: http://www.mattfischer.com/wmstock/src/%{name}-%{version}.tar.gz #format int does not match sizeof() returning long unsigned Patch0: %{name}-0.11-format.patch #date[10] can be overflowed, pushed up to date[16] Patch1: %{name}-0.11-overflow.patch BuildRequires: glibc-devel BuildRequires: libxpm-devel BuildRequires: libx11-devel BuildRequires: libxext-devel BuildRequires: libxdmcp-devel Requires: wget Requires: perl %description Wmstock is another dockapp for WindowMaker, or any window manager and desktop environment that handles dock applications. It displays the current stock quote data and cycles through tickers. %prep %setup -q -n %{name} %patch0 -p0 -b .old %patch1 -p0 -b .old %build cd %{srcdirname} %make CFLAGS="%optflags" LIBDIR="%ldflags" %install rm -rf %{buildroot} cd %{srcdirname} install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} install -D -m 755 %{scriptname} %{buildroot}%{_bindir}/%{scriptname} install -D -m 644 wmstock.1x %{buildroot}%{_mandir}/man1/wmstock.1x %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES COPYING CREDITS README TODO %{_bindir}/%{scriptname} %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Fri Dec 09 2011 eatdirt <eatdirt> 0.11-1.mga2 + Revision: 179535 - imported package wmstock