File bibview.spec of Package bibview
#
# spec file for package bibview
#
# Copyright (c) 2011 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/
#
Name: bibview
BuildRequires: xaw3d-devel xorg-x11-devel
License: Any permissive
Group: Productivity/Publishing/TeX/Utilities
Provides: bibvw15
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.
%prep
%setup
%patch
%build
xmkmf -a
make XAWLIB=-lXaw3d %{?_smp_mflags}
%install
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