File xbs.spec of Package xbs

#
# spec file for package xbs
#
# Copyright (c) 2015 SUSE LINUX 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:           xbs
Version:        0.8
Release:        0
Url:            https://github.com/dmt4/xbs
Summary:        X ball-and-sticks
License:        GPL-2.0
Group:          Productivity/Scientific/Chemistry
Source:         %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libX11-devel
%if 0%{?suse_version} > 1110
BuildRequires:  libXt-devel
%else
BuildRequires:  xorg-x11-libXt-devel
%endif
%if 0%{?suse_version}
BuildRequires:  fdupes
%endif
BuildRequires:  xz

%description
X ball-and-sticks shows pseudo-3D cartoon models of atomistic 
configurations. It has sophisticated data format and offers 
various labelling, shading, lighting and colouring options.


%package doc
Summary:        Documents and examples for %{name}
Group:          Productivity/Scientific/Chemistry
Requires:       %{name} = %{version}-%{release}
Requires:       perl-base
Requires:       tcsh

%description doc
Extra docs and examples for %{name}


%prep
%setup -q

%build
make %{?_smp_mflags}

%install
install -D -s -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -D    -m 644 debian/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
gzip -9 %{buildroot}%{_mandir}/man1/*

%if 0%{?suse_version}
%fdupes -s %{buildroot}%{_prefix}
%endif

%files
%defattr(-,root,root)
%doc README.md in.bs
%{_bindir}/*
%{_mandir}/man1/*

%files doc
%defattr(-,root,root)
%doc Changes.xbs debian/README.debian debian/changelog debian/runex misc/ examples/

%changelog
openSUSE Build Service is sponsored by