File xmbase-grok.spec of Package xmbase-grok
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xmbase-grok
Version: 1.5
Release: 834
License: Other uncritical OpenSource License
Summary: Graphical Resource Organizer Kit
Url: http://me.in-berlin.de/~bitrot/grok.html
Group: Productivity/Office/Organizers
Source: xmbase_grok-%{version}.tar.bz2
Source1: %{name}.desktop
Patch0: %{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
BuildRequires: bison
BuildRequires: openmotif
BuildRequires: openmotif-devel
BuildRequires: texlive-latex
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -n xmbase_grok-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%build
cd src
make CFLAGS="%{optflags}" "XLIBDIR=%{_libdir}" linux
%install
cd src
make "DESTDIR=%{buildroot}" install
cd ..
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 man/grok.1 %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/pixmaps
install misc/grok.xpm %{buildroot}%{_datadir}/pixmaps
chmod 0644 %{buildroot}%{_datadir}/pixmaps/grok.xpm
chmod 0644 %{buildroot}%{_prefix}/lib/grok/grokdir/phone2.tm/Palm-Pilot
chmod 0755 %{buildroot}%{_prefix}/lib/grok/grokdir/biblio.mktex.pl
%suse_update_desktop_file -i %{name} Office Database
%files
%defattr(-,root,root)
%doc doc/ README HISTORY
%doc %{_mandir}/man1/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_bindir}/grok
%{_prefix}/lib/grok
%clean
rm -rf %{buildroot}
%changelog