Sisyphus
: 5 2022 | : 17717 | : 25062126
en ru br
ALT
S:0.3.1-alt7
5.1: 0.3.1-alt5
4.1: 0.3.1-alt4
4.0: 0.3.1-alt3
www.altlinux.org/Changes

:: /
: wmbday

             Sources      Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: wmbday
Version: 0.3.1
Release: alt7

Summary: This dockapp will remind you of birthdays
Summary(ru_RU.CP1251):

License: GPL-2
Group: Graphical desktop/Other
Url: http://buzzinhornetz.ath.cx/code/wmbday/
Packager: Slava Semushin <php-coder at altlinux.ru>

Source0: http://buzzinhornetz.ath.cx/code/wmbday/files/%name-%version.tar.gz
Source1: %name.menu

Patch0: %name-0.3.1-alt-warnings-x86_64.patch
Patch1: %name-0.3.1-alt-autotools-support.patch
Patch2: %name-0.3.1-alt-man-kill_x11_path.patch
Patch3: %name-0.3.1-alt-doc-update_my_email.patch
Patch4: %name-0.3.1-fix-build-with-gcc10.patch

BuildRequires: libXext-devel libXpm-devel

Requires: xmessage

%description
wmbday is a Window Maker dockapp for Linux und FreeBSD that will
remind you of birthdays. It can show up to four names of persons whose
birthday is next. On a particular birthday it will notify you by
highlighting the concerning person. The data is loaded either from a
simple text file or from a vCard file.

%description -l ru_RU.CP1251
wmbday Window Maker Linux FreeBSD,
. ,
.
.
vCard .

%prep
%setup

# fix modifier for size_t type

%patch0

# add autotools support

%patch1 -p1

# change path to rgb.txt in man page

%patch2

# update my email in ChangeLog

%patch3

%patch4 -p2

rm -f BSDmakefile configure Makefile
chmod -x *.[ch] wmbday.1 wmbday_text.xpm

mv build/wmbday-0.3.1.ebuild build/wmbday.ebuild
mv *.[ch] *.xpm src/
mv data.sample* data/
mv wmbday.1 doc/

autoheader &&
aclocal &&
automake --foreign --add-missing &&
autoconf

%build
export ac_cv_path_XM_PATH=/usr/bin/xmessage
%configure
%make_build CFLAGS="%optflags -Werror -U_FORTIFY_SOURCE" --silent --no-print-directory

%install
%make_install DESTDIR=%buildroot install --silent --no-print-directory
install -pD -m 644 %SOURCE1 %buildroot%_menudir/%name

%files
%doc ChangeLog data/data.sample.simple data/data.sample.vcard
%_bindir/%name
%_man1dir/%name.1.*
%_menudir/%name

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin