File xmoontool.spec of Package xmoontool
#
# spec file for package xmoontool (Version 22.9.94)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xmoontool
BuildRequires: openmotif openmotif-devel update-desktop-files xorg-x11 xorg-x11-devel
License: Public Domain, Freeware
Group: Productivity/Scientific/Astronomy
Provides: moontool
Obsoletes: moontool
AutoReqProv: on
Version: 22.9.94
Release: 970
Summary: The Moon in focus
Url: http://www.fourmilab.ch/earthview/vplanet.html
Source: xmoontool-22sep94.tar.gz
Source1: xmoontool.desktop
Patch: xmoontool-22sep94.patch
Patch1: xmoontool-22sep94-y2kfix.patch
Patch2: xmoontool-22.9.24-filepermissions.patch
Patch3: xmoontool-22sep94-xorg7.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
One of the most important programs existing :-) Using this program, you
can display all important information about the moon constantly. At
last...
Hint: The option -c makes it also work with color ;-)
%prep
%setup -n xmoontool-22sep94
%patch
%patch1
%patch2
%patch3
%build
make CFLAGS="$RPM_OPT_FLAGS -I/usr/include" XLIBDIR=/usr/%{_lib}
%install
make "DESTDIR=$RPM_BUILD_ROOT" install
%suse_update_desktop_file -i %name Edutainment Astronomy
%files
%defattr(-,root,root)
/usr/bin/xmoontool
/usr/share/applications/*.desktop
%doc /usr/share/man/man1/xmoontool.1.gz
%clean
rm -rf $RPM_BUILD_ROOT
%changelog