File surfraw.spec of Package surfraw

#
# spec file for package surfraw
#
# Copyright (c) 2018 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:           surfraw
Version:        2.3.0
Release:        0
Summary:        Command Line Interface to WWW Search Engines
License:        SUSE-Public-Domain
Group:          Productivity/Networking/Web/Browsers
URL:            https://gitlab.com/surfraw/Surfraw
Source:         https://gitlab.com/surfraw/Surfraw/uploads/2de827b2786ef2fe43b6f07913ca7b7f/%{name}-%{version}.tar.gz
BuildRequires:  make
BuildRequires:  perl-HTML-Parser
BuildRequires:  perl-libwww-perl
BuildRequires:  sed
BuildRequires:  w3m
Requires:       w3m
Requires:       xdg-utils
BuildArch:      noarch

%description
Surfraw provides a Unix command line interface to a variety of
WWW search engines and other artifacts of information and makes
them available as extensions to the shell.
Surfraw abstracts the browser away from input. Interpretation of
linguistic forms is handed back to the shell.

%prep
%setup -q

%build
%configure --libdir=%{_libexecdir} \
            --disable-opensearch \
            --with-text-browser=w3m \
            --with-graphical-browser=xdg-open
make %{?_smp_mflags}

%install
%make_install

%files
%doc AUTHORS ChangeLog HACKING NEWS TODO surfraw.lsm
%license COPYING
%{_bindir}/sr
%{_bindir}/%{name}
%{_bindir}/surfraw-update-path
%{_sysconfdir}/xdg
%config(noreplace) %{_sysconfdir}/xdg/%{name}/bookmarks
%config(noreplace) %{_sysconfdir}/xdg/%{name}/conf
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}/*
%{_mandir}/man1/*.1*

%changelog
openSUSE Build Service is sponsored by