LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File netsurf.spec of Package netsurf (Project network:utilities)

# spec file for package netsurf
# 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:           netsurf
Version:        3.7
Release:        0
Summary:        A multi-platform web browser
License:        GPL-2.0
Group:          Productivity/Networking/Web/Browsers
URL:            http://www.netsurf-browser.org/
Source0:        http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-all-%{version}.tar.gz
Source1:        netsurf.desktop
Source2:        netsurf.png
Patch0:         nsgenbind-parser.y.patch
BuildRequires:  bison
BuildRequires:  check-devel
BuildRequires:  clang
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc
BuildRequires:  gperf
BuildRequires:  gtk3-devel
BuildRequires:  java-1_8_0-openjdk-headless
BuildRequires:  libcss-devel
BuildRequires:  libcurl-devel
BuildRequires:  libexpat-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  openssl-devel
BuildRequires:  perl-HTML-Parser
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files

Small as a mouse, fast as a cheetah and available for free.
NetSurf is a multi-platform web browser for RISC OS,
UNIX-like platforms (including Linux), Mac OS X, and more.

Whether you want to check your webmail, read the news or post
to discussion forums, NetSurf is your lightweight gateway
to the world wide web.
Actively developed, NetSurf is continually evolving and improving.
Written in C, this award winning open source project features
its own layout engine. It is licensed under GPL version 2.

%setup -q -n %{name}-all-%{version}
%patch0 -p1

export HOST=$(gcc -dumpmachine)
export TARGET=gtk3
make PREFIX=%{_prefix} %{?_smp_mflags}

mkdir -p %{buildroot}%{_datadir}/netsurf
export HOST=$(gcc -dumpmachine)
export TARGET=gtk3
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png

%fdupes -s %{buildroot}/%{_prefix}



%doc README netsurf/COPYING