File xmoontool.spec of Package xmoontool
#
# spec file for package xmoontool (Version 22.9.94)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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: distributable
Group: Productivity/Scientific/Astronomy
Provides: moontool
Obsoletes: moontool
Autoreqprov: on
Version: 22.9.94
Release: 763
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 ;-)
Authors:
--------
John Walker <kelvin@Autodesk.com>
%prep
%setup -n xmoontool-22sep94
%patch
%patch1
%patch2
%if "%(xft-config --prefix)" == "/usr"
%patch3
%endif
%build
%if "%(xft-config --prefix)" == "/usr"
make CFLAGS="$RPM_OPT_FLAGS -I/usr/include" XLIBDIR=/usr/%{_lib}
%else
make CFLAGS="$RPM_OPT_FLAGS -I/usr/X11R6/include" XLIBDIR=/usr/X11R6/%{_lib}
%endif
%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 -n xmoontool
* Fri Aug 11 2006 - lmichnovic@suse.cz
- adjusting paths to omit X11R6 when X.org is 7.x (*xorg7.patch)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 - schwab@suse.de
- Don't strip binaries.
* Fri May 07 2004 - hmacht@suse.de
- added # norootforbuild in specfile
- added patch2 to correct filepermissions
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file
* Fri Jan 11 2002 - cihlar@suse.cz
- use %%{_lib}
* Sat Nov 03 2001 - sndirsch@suse.de
- fixed the "Fatal Error! No visuals that we can use" problem. It
is no longer necessary to execute "xmoontool -c" on non-8bit
visuals
* Thu Nov 09 2000 - cihlar@suse.cz
- renamed moontool -> xmoontool
- uses openmotif now
- fixed copyright
* Fri Jul 28 2000 - bjacke@suse.de
- fixed y2k bug
* Wed May 17 2000 - cihlar@suse.cz
- Group sorted
* Wed Mar 22 2000 - cihlar@suse.cz
- added BuildRoot
* Fri Mar 03 2000 - fehr@suse.de
- move man pages to /usr/share/man
* Thu Dec 09 1999 - kukuk@suse.de
- Use RPM_OPT_FLAGS
* Thu Sep 23 1999 - uli@suse.de
- fixed Makefile for PPC
* Mon Sep 20 1999 - uli@suse.de
- no builds with lesstif
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Feb 03 1999 - ro@suse.de
- no m486 on alpha
* Thu May 07 1998 - fehr@suse.de
- add library -lXp for Motif 2.1
* Tue Dec 09 1997 - ro@suse.de
- build static and dynamic version
* Wed Oct 08 1997 - fehr@suse.de
- prepare for automatic build of package