Package wmWeather: Specfile

Name: wmWeather
Version: 1.31
Release: alt5

Summary: Applet that displays the weather
License: GPLv2
Group: Graphical desktop/Window Maker

#Url: http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
Url: http://www.dockapps.org/file.php/id/17
Source: %name-%version.tar.gz
Source1: %name.menu
Source2: %name-README.ALT
Packager: Michael Shigorin <mike@altlinux.org>

# Automatically added by buildreq on Thu May 15 2008
BuildRequires: libXext-devel libXpm-devel

Summary(ru_RU.KOI8-R): \xe1\xd0\xd0\xcc\xc5\xd4, \xd0\xcf\xcb\xc1\xda\xd9\xd7\xc1\xc0\xdd\xc9\xca \xd0\xcf\xc7\xcf\xc4\xd5
Summary(uk_UA.KOI8-U): \xe1\xd0\xcc\xc5\xd4, \xdd\xcf \xd0\xcf\xcb\xc1\xdaդ \xd0\xcf\xc7\xcf\xc4\xd5
Summary(pl): Aplet wy\xb6wietlaj\xb1cy informacje o pogodzie

%description
wmWeather is a WindowMaker dockapp that displays the current weather
conditions for a given location, in an easy to read icon.

%description -l ru_RU.KOI8-R
wmWeather -- \xc4\xcf\xcb\xc1\xd0\xd0 \xc4\xcc\xd1 WindowMaker, \xcb\xcf\xd4\xcf\xd2\xd9\xca \xd0\xcf\xcb\xc1\xda\xd9\xd7\xc1\xc5\xd4 \xd4\xc5\xcb\xd5\xdd\xd5\xc0 \xd0\xcf\xc7\xcf\xc4\xd5 
\xd7 \xcf\xcb\xd2\xc5\xd3\xd4\xce\xcf\xd3\xd4\xc9 \xda\xc1\xc4\xc1\xce\xce\xcf\xc7\xcf \xc4\xc1\xd4\xde\xc9\xcb\xc1 METAR \xd7 \xd5\xc4\xcf\xc2\xce\xcf\xcd \xd7\xc9\xc4\xc5.

%description -l uk_UA.KOI8-U
wmWeather -- \xc4\xcf\xcb\xc1\xd0 \xc4\xcc\xd1 WindowMaker, \xdd\xcf \xd0\xcf\xcb\xc1\xdaդ \xd0\xcf\xd4\xcf\xde\xce\xd5 \xd0\xcf\xc7\xcf\xc4\xd5 
\xce\xc5\xd0\xcf\xc4\xc1̦\xcb צ\xc4 \xda\xc1\xd7\xc4\xc1\xce\xcf\xc7\xcf \xc4\xc1\xd7\xc1\xde\xc1 METAR \xd7 \xda\xd2\xd5\xde\xce\xcf\xcd\xd5 \xd7\xc9\xc7\xcc\xd1Ħ.

%description -l pl
wmWeather jest dokowalnym apletem dla WindowMakera, wy\xb6wietlaj\xb1cym
informacje o aktualnych warunkach atmosferycznych dla wybranego
miejsca.

%prep
%setup

%build
make -C Src CFLAGS="%optflags -fcommon"

%install
install -d %buildroot{%_x11bindir,%_bindir,%_menudir,%_man1dir}

install Src/%name %buildroot%_x11bindir/
install Src/GrabWeather %buildroot%_bindir/
install Src/%name.1 %buildroot%_man1dir/

install -m644 %SOURCE1 %buildroot%_menudir/%name
install -m644 %SOURCE2 $RPM_BUILD_DIR/%name-%version/README.ALT

%files
%doc HINTS BUGS CHANGES README.ALT
%_x11bindir/%name
%_bindir/GrabWeather
%_man1dir/*
%_menudir/*

# TODO: try to analyse /etc/localtime to get location?

%changelog
* Thu Mar 25 2021 Grigory Ustinov <grenka@altlinux.org> 1.31-alt5
- Fixed FTBFS with -fcommon.
- Updated license tag.

* Wed Apr 17 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1.31-alt4.qa1
- NMU: rebuilt for debuginfo.

* Thu Dec 04 2008 Michael Shigorin <mike@altlinux.org> 1.31-alt4
- applied repocop patch

* Thu May 15 2008 Michael Shigorin <mike@altlinux.org> 1.31-alt3
- buildreq
- minor spec cleanup

* Wed Jan 25 2006 Michael Shigorin <mike@altlinux.org> 1.31-alt2
- updated package Url (fixes #8921)

* Wed Dec 18 2002 Michael Shigorin <mike@altlinux.ru> 1.31-alt1
- built for ALT Linux
- added METAR site code list
- default site is Amundsen-Scott South Pole Station, Antarctica
  which should be reasonable for most Linux systems (sic!)
- spec based on PLD; credits:
    Rod Cordova <rcordova@ethernet.org>
    baggins@pld.org.pl
    blues@pld.org.pl
    kloczek@pld.org.pl
    pius@pld.org.pl
    qboosh@pld.org.pl
    wiget@pld.org.pl
    wrobell@pld.org.pl