File doomseeker.spec of Package doomseeker

#
# spec file for package doomseeker
#
# Copyright (c) 2021 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:           doomseeker
Version:        1.5.1
Release:        0
Summary:        A cross-platform Doom server browser
License:        GPL-2.0-only
Group:          Amusements/Games/Other
URL:            https://doomseeker.drdteam.org/
#Git-Clone:     https://bitbucket.org/Doomseeker/doomseeker.git
Source:         https://doomseeker.drdteam.org/files/doomseeker-%{version}.tar.xz
BuildRequires:  cmake >= 3.5
BuildRequires:  desktop-file-utils
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  cmake(Qt5Multimedia)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(zlib)

%description
Doomseeker is a cross-platform server browser for Doom.
The goal of Doomseeker is to provide a smooth, consistent
experience for Doom players regardless of port or platform.

Doomseeker provides support for Chocolate Doom, Odamex, Vavoom,
and Zandronum. With its plugin system support for even more can
be added.

%package -n libwadseeker2
Summary:        A Library To Find Mods
Group:          System/Libraries

%description -n libwadseeker2
The Wadseeker library allows the automatic download of maps and mods.

%package -n libwadseeker-devel
Summary:        A Library To Find Mods
Group:          Development/Libraries/C and C++
Requires:       libwadseeker2 = %{version}

%description -n libwadseeker-devel
The Wadseeker library allows the automatic download of maps and mods.

%prep
%setup -q
chmod -x README.md LICENSE
dos2unix CHANGELOG.md

%build
%cmake
QT_HASH_SEED=1 %cmake_build

%install
%cmake_install

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/1024x1024/apps/
mv %{buildroot}%{_datadir}/icons/doomseeker.png %{buildroot}%{_datadir}/icons/hicolor/1024x1024/apps/doomseeker.png

%post -n libwadseeker2 -p /sbin/ldconfig
%postun -n libwadseeker2 -p /sbin/ldconfig

%files
%license LICENSE
%doc *.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/engines
%{_datadir}/applications/org.drdteam.Doomseeker.desktop
%dir %{_datadir}/icons/hicolor/1024x1024/
%dir %{_datadir}/icons/hicolor/1024x1024/apps/
%{_datadir}/icons/hicolor/1024x1024/apps/doomseeker.png

%files -n libwadseeker2
%{_libdir}/libwadseeker.so.*

%files -n libwadseeker-devel
%{_includedir}/wadseeker/
%{_libdir}/libwadseeker.so

%changelog
openSUSE Build Service is sponsored by