File bibview.spec of Package bibview

#
# spec file for package bibview (Version 2.2)
#
# Copyright (c) 2009 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:           bibview
BuildRequires:  xaw3d-devel xorg-x11-devel
License:        Any permissive
Group:          Productivity/Publishing/TeX/Utilities
Provides:       bibvw15 
AutoReqProv:    on
Version:        2.2
Release:        984
Summary:        X11 Front-End for BibTeX Databases
Source:         bibview-2.2.tar.gz
Patch:          bibview-2.2.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6"
%global _mandir     %{_exec_prefix}/man
%define _x11data    %{_exec_prefix}/lib/X11
%define _appdefdir  %{_x11data}/app-defaults
%else
%define _x11data    %{_datadir}/X11
%define _appdefdir  %{_x11data}/app-defaults
%endif

%description
Using bibview, entries in several BiB databases can be moved,
manipulated, created, and searched.

If you prefer German rather than English menus, copy the file
var/X11R6/lib/app-defaults/BibView.ger to
var/X11R6/lib/app-defaults/BibView.



Authors:
--------
    Holger Martin
    Peter Urban
    Armin Liebl <liebla@informatik.tu-muenchen.de>

%prep
%setup
%patch

%build
    xmkmf -a
    make XAWLIB=-lXaw3d

%install
    rm -rf %{buildroot}
    make DESTDIR=%{buildroot} install
    make DESTDIR=%{buildroot} install.man
    mkdir -p %{buildroot}%{_x11data}/de/app-defaults
    install -c -m 0444 BibView.ger.ad   %{buildroot}%{_x11data}/de/app-defaults/BibView
    install -c -m 0444 BibView-color.ad %{buildroot}%{_x11data}/de/app-defaults/BibView-color

%files
%defattr(-,root,root,755)
%{_bindir}/bibview
%dir %{_x11data}/de/
%dir %{_x11data}/de/app-defaults/
%config %{_appdefdir}/BibView
%config %{_appdefdir}/BibView-color
%config %{_x11data}/de/app-defaults/BibView
%config %{_x11data}/de/app-defaults/BibView-color
%doc %{_mandir}/man1/bibview.1x.gz

%changelog
* Fri Jun 01 2007 dmueller@suse.de
- fix buildrequires
* Thu Nov 30 2006 werner@suse.de
- Remove broken error handler declaration type
* Wed Aug 02 2006 werner@suse.de
- Make it build with X11R7
- Make german app-defaults file depending on LANG variable
- Use Xaw3d to get see 3d menue
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Apr 27 2004 werner@suse.de
- Avoid compiler warnings
- Use mkstemp(3) instead of tempnam(3)
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Fri Jun 13 2003 kukuk@suse.de
- fix filelist
* Thu Jun 12 2003 coolo@suse.de
- use BuildRoot
* Wed Sep 18 2002 ro@suse.de
- removed bogus self-provides
* Wed Sep 20 2000 werner@suse.de
- Workaround to avoid `XtMakeGeometryRequest - parent not composite'
  messages instead of working program. Done by simply adding the
  old version of _XtMakeGeometryRequest of Xfree86[tm]-3.3.6.
* Fri Jul 14 2000 werner@suse.de
- fix bug in annotation handling with update to bibview 2.2
- Use getcwd instead of getwd
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
openSUSE Build Service is sponsored by