File neosurf.spec of Package neosurf

#
# spec file for package neosurf
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           neosurf
Version:        16
Release:        0
Summary:        A NetSurf fork with various improvements
License:        GPL-2.0-only
URL:            https://github.com/CobaltBSD/neosurf
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  bison
BuildRequires:  cmake
BuildRequires:  clang
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc
BuildRequires:  gperf
BuildRequires:  zsh
BuildRequires:  gtk3-devel
BuildRequires:  libcurl-devel
BuildRequires:  libjpeg-devel
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  libpng-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(libpsl)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xcb-atom)
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files

%description
A fork of Netsurf with various privacy-focused improvements and additions,
and a revamped build system.

%package devel
Summary:        Neosurf development files
Requires:       %{name} = %{version}

%description devel
This subpackage contains Neosurf development files.

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install

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

%ldconfig_scriptlets

%files
%license LICENSE
%doc README* ChangeLog
%{_bindir}/%{name}*
%{_libdir}/*.so.14
%{_datadir}/%{name}
%{_datadir}/%{name}-gtk

%files devel
%{_libdir}/*.so
%{_includedir}/parserutils
%{_includedir}/dom
%{_includedir}/neosurf
%{_includedir}/svgtiny.h
%{_includedir}/hubbub
%{_includedir}/libcss
%{_includedir}/nsutils
%{_includedir}/libwapcaplet
%{_includedir}/libnsbmp.h
%{_includedir}/nsgif.h

%changelog
openSUSE Build Service is sponsored by