# # spec file for package netsurf # # Copyright (c) 2018 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: netsurf Version: 3.7 Release: 0 License: GPL-2.0 Summary: NetSurf is a multi-platform web browser. Url: http://www.netsurf-browser.org/ Group: Productivity/Networking/Web/Browsers Source0: http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-all-%{version}.tar.gz Source1: netsurf.desktop Source2: netsurf.png BuildRequires: java-1_8_0-openjdk-headless BuildRequires: gcc BuildRequires: flex BuildRequires: bison BuildRequires: clang BuildRequires: pkgconfig BuildRequires: check-devel BuildRequires: libcurl-devel BuildRequires: libcss-devel BuildRequires: libjpeg-devel BuildRequires: libexpat-devel BuildRequires: libpng-devel BuildRequires: openssl-devel BuildRequires: gperf BuildRequires: gtk3-devel BuildRequires: perl-HTML-Parser BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 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. %prep %setup -q -n %{name}-all-%{version} %build export WHICH_CMD=/usr/bin/which export HOST=$(gcc -dumpmachine) export TARGET=gtk3 mkdir -p %{buildroot}/netsurf/workspace export PKG_CONFIG_PATH=%{buildroot}/netsurf/workspace/inst/lib/pkgconfig export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:%{buildroot}/netsurf/workspace/inst/lib export PREFIX=%{buildroot}/netsurf/workspace/inst make PREFIX=/usr %{?_smp_mflags} %install mkdir -p %{buildroot}%{_datadir}/netsurf install -D -m0755 $RPM_BUILD_DIR/netsurf-all-3.7/netsurf/nsgtk3 %{buildroot}%{_bindir}/netsurf install -D -m0644 $RPM_BUILD_DIR/netsurf-all-3.7/netsurf/resources/SearchEngines %{buildroot}%{_datadir}/netsurf install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png %clean %__rm -rf $RPM_BUILD_ROOT %post %desktop_database_post %postun %desktop_database_postun %files %defattr(-,root,root) %doc README netsurf/COPYING %{_bindir}/netsurf %{_datadir}/%{name} %{_datadir}/%{name}/SearchEngines %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog