File xmbase-grok.spec of Package xmbase-grok

#
# spec file for package xmbase-grok (Version 1.5)
#
# Copyright (c) 2007 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:           xmbase-grok
BuildRequires:  bison openmotif openmotif-devel texlive-latex update-desktop-files xorg-x11-devel
URL:            http://me.in-berlin.de/~bitrot/grok.html
License:        Other uncritical OpenSource License
Group:          Productivity/Office/Organizers
Provides:       xgrok
Obsoletes:      xgrok 
Autoreqprov:    on
Version:        1.5
Release:        834
Summary:        Graphical Resource Organizer Kit
Source:         xmbase_grok-%{version}.tar.bz2
Source1:        %name.desktop
Patch:          %{name}-%{version}.diff
Patch1:         %{name}-%{version}-fonts.diff
Patch2:         %{name}-%{version}-ia64.diff
Patch3:         %{name}-%{version}-errno-fix.diff
Patch4:         %{name}-%{version}-hlp-fix.diff
Patch5:         %{name}-%{version}-gcc_warning.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%else
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6
%endif

%description
Grok is a simple database manager and UI builder that can:

*  keep phone and address lists (like a rolodex)

*  store phone call logs

*  keep todo lists

*  manage any other database after simple GUI-driven customization

More precisely, grok is a program for displaying and editing strings
arranged in a grid of rows and columns. Each row is presented as a
"card" consisting of multiple columns, or "fields", that allow data
entry. The presentation of the data is programmable. A user interface
builder that allows the user to arrange fields on a card graphically is
part of grok. Grok also supports a simple language that allows
sophisticated queries and data retrieval. Grok comes with the above
examples and a few others as prebuilt applications.



Authors:
--------
    Thomas Driemeyer <thomas@bitrot.in-berlin.de>

%prep
%setup -n xmbase_grok-%{version}
%patch
%patch1
%patch2
%patch3
%patch4
%patch5

%build
cd src
make CFLAGS="$RPM_OPT_FLAGS" "XLIBDIR=%{_xorg7_prefix}/%{_lib}" linux

%install
cd src
make "DESTDIR=$RPM_BUILD_ROOT" install
cd ..
install -d -m 0755 $RPM_BUILD_ROOT/%{_xorg7_mandir}/man1
install -m 644 man/grok.1 $RPM_BUILD_ROOT/%{_xorg7_mandir}/man1
chmod 0644 $RPM_BUILD_ROOT/usr/lib/grok/grokdir/*
chmod 0755 $RPM_BUILD_ROOT/usr/lib/grok/grokdir/procdemo
install -d -m 0755 $RPM_BUILD_ROOT/usr/%{_xorg7libs32}/X11/pixmaps
install misc/grok.xpm $RPM_BUILD_ROOT/usr/%{_xorg7libs32}/X11/pixmaps
install -d -m 0755 $RPM_BUILD_ROOT/usr/share/pixmaps
install misc/grok.xpm $RPM_BUILD_ROOT/usr/share/pixmaps
chmod 0755 $RPM_BUILD_ROOT/usr/lib/grok/grokdir/phone2.tm
%suse_update_desktop_file -i %name Office Database

%files
%defattr(-,root,root)
%doc doc/ README HISTORY 
%doc %{_xorg7_mandir}/man1/*
/usr/%{_xorg7libs32}/X11/pixmaps
/usr/share/applications/*
/usr/share/pixmaps/*
/usr/bin/grok
/usr/lib/grok

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

%changelog
* Sun Apr 22 2007 - ro@suse.de
- use texlive for building
* Fri Mar 30 2007 - lmichnovic@suse.cz
- added bison into BuildRequires
* Tue Nov 07 2006 - lmichnovic@suse.cz
- fixed executable manpage
* Fri Aug 11 2006 - lmichnovic@suse.cz
- fix build with new X.org 7.x
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Sep 21 2005 - lmichnovic@suse.cz
- fixed gcc warning
* Sat Jan 10 2004 - adrian@suse.de
- fix build as user
* Fri Aug 15 2003 - adrian@suse.de
- add desktop file and install icon
* Wed Aug 13 2003 - postadal@suse.cz
- fixed help text [#27519]
* Fri Nov 29 2002 - postadal@suse.cz
- added patch errno-fix (added missing #include <errno.h>)
* Tue Nov 12 2002 - postadal@suse.cz
- changed neededforbuild xf86 to x-devel-packages
- used -I/usr/X11R6/include instead of -I/usr/X11/include for compilation
* Tue Jul 30 2002 - postadal@suse.cz
- fixed permission /usr/lib/grok/grokdir/phone2.tm
  (missing execute access bug #17006)
* Wed Feb 13 2002 - postadal@suse.cz
- fix lib64
* Fri Jul 27 2001 - cihlar@suse.cz
- updated to version 1.5
* Mon Jun 04 2001 - cihlar@suse.cz
- fixed arguments to XtVa... functions for ia64 [bug #8612]
* Mon May 21 2001 - cihlar@suse.cz
- fixed cast warnings on ia64
- use $RPM_OPT_FLAGS
* Mon May 14 2001 - cihlar@suse.cz
- fixed to load only one font
* Mon Nov 20 2000 - cihlar@suse.cz
- renamed xgrok -> xmbase-grok
- switched to openmotif
* Fri May 19 2000 - cihlar@suse.cz
- /usr/doc/packages -> /usr/share/doc/packages
- Group sorted
* Tue Mar 28 2000 - cihlar@suse.cz
- upgrade to version 1.4.3
- added BuildRoot
* Mon Jan 03 2000 - fehr@suse.de
- interpret 2-digit years 00..38 correct as 2000..2038
* Sun Oct 10 1999 - ro@suse.de
- switch to lesstif
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Sat Sep 19 1998 - ro@suse.de
- dont redeclare sys_errlist for GLIBC
* 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
* Fri Aug 08 1997 - fehr@suse.de
- updated to version 1.4.1
* Wed May 14 1997 - fehr@suse.de
- updated to version 1.4
openSUSE Build Service is sponsored by