Group :: Graphical desktop/Window Maker
RPM: wmmemload
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: wmmemload
Version: 0.1.6
Release: alt4
Summary: This dockapp displays memory and swap space usage
Summary(ru_RU.CP1251): Этот апплет отображает использование памяти и файла подкачки
License: GPL
Group: Graphical desktop/Window Maker
Url: http://markstaggs.net/wmmemload/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: http://markstaggs.net/wmmemload-download/%name-%version.tar.gz
Source1: %name.menu
Patch0: %name-0.1.6-alt-src-memory_leak_fix.patch
Patch1: %name-0.1.6-alt-warnings-fix.patch
Patch2: %name-0.1.6-alt-src-print_help_fix.patch
# For %%__autoreconf (-alt54) macros
BuildPreReq: rpm >= 4.0.4-alt54
BuildRequires: libXt-devel libXext-devel libXpm-devel
%description
Dockapp which displays memory and swap space usage in percent and uses
nice LCD-style.
%description -l ru_RU.CP1251
Апплет отображающий использование оперативной памяти и свопа в
процентах и выполненный в приятном LCD стиле.
%prep
%setup
# avoid autoreconf fails which appear after switch to using git/gear
# http://lists.altlinux.org/pipermail/devel/2007-October/064308.html
rm -rf autom4te.cache
# fix warnings from aclocal
sed -i 's|AC_DEFUN(DA_CHECK_LIB,|AC_DEFUN([DA_CHECK_LIB],|' acinclude.m4
sed -i 's|AC_DEFUN(DA_CHECK_HEADER,|AC_DEFUN([DA_CHECK_HEADER],|' acinclude.m4
# fix Makefile.am
sed -i 's|CPPFLAGS =|AM_CPPFLAGS =|' src/Makefile.am
%patch0
%patch1
%patch2
%__autoreconf
%build
%configure
%make_build --no-print-directory CFLAGS="%optflags -W -Werror"
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
install -pD -m 644 %SOURCE1 %buildroot%_menudir/%name
%post
%update_menus
%postun
%clean_menus
%files
%doc AUTHORS ChangeLog THANKS
%_bindir/%name
%_man1dir/%name.1.*
%_menudir/%name
%changelog
…
Full changelog you can see here
%define _unpackaged_files_terminate_build 1
Name: wmmemload
Version: 0.1.6
Release: alt4
Summary: This dockapp displays memory and swap space usage
Summary(ru_RU.CP1251): Этот апплет отображает использование памяти и файла подкачки
License: GPL
Group: Graphical desktop/Window Maker
Url: http://markstaggs.net/wmmemload/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: http://markstaggs.net/wmmemload-download/%name-%version.tar.gz
Source1: %name.menu
Patch0: %name-0.1.6-alt-src-memory_leak_fix.patch
Patch1: %name-0.1.6-alt-warnings-fix.patch
Patch2: %name-0.1.6-alt-src-print_help_fix.patch
# For %%__autoreconf (-alt54) macros
BuildPreReq: rpm >= 4.0.4-alt54
BuildRequires: libXt-devel libXext-devel libXpm-devel
%description
Dockapp which displays memory and swap space usage in percent and uses
nice LCD-style.
%description -l ru_RU.CP1251
Апплет отображающий использование оперативной памяти и свопа в
процентах и выполненный в приятном LCD стиле.
%prep
%setup
# avoid autoreconf fails which appear after switch to using git/gear
# http://lists.altlinux.org/pipermail/devel/2007-October/064308.html
rm -rf autom4te.cache
# fix warnings from aclocal
sed -i 's|AC_DEFUN(DA_CHECK_LIB,|AC_DEFUN([DA_CHECK_LIB],|' acinclude.m4
sed -i 's|AC_DEFUN(DA_CHECK_HEADER,|AC_DEFUN([DA_CHECK_HEADER],|' acinclude.m4
# fix Makefile.am
sed -i 's|CPPFLAGS =|AM_CPPFLAGS =|' src/Makefile.am
%patch0
%patch1
%patch2
%__autoreconf
%build
%configure
%make_build --no-print-directory CFLAGS="%optflags -W -Werror"
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
install -pD -m 644 %SOURCE1 %buildroot%_menudir/%name
%post
%update_menus
%postun
%clean_menus
%files
%doc AUTHORS ChangeLog THANKS
%_bindir/%name
%_man1dir/%name.1.*
%_menudir/%name
%changelog
…
Full changelog you can see here