File libgamerzilla.spec of Package libgamerzilla
#
# spec file for package libgamerzilla
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define sover 0
Name: libgamerzilla
Version: 0.1.1
Release: 0
Summary: Gamerzilla Integration Library
License: Zlib
Group: Development/Languages/C and C++
URL: https://github.com/dulsi/libgamerzilla
Source: https://github.com/dulsi/libgamerzilla/archive/refs/tags/release-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libcurl)
%description
Gamerzilla is trophy/achievement system for games. It integrates with a
hubzilla plugin to display your results online. Games can either connect
directly to hubzilla or connect to a game launcher with using this
library.
%package -n libgamerzilla%{sover}
Summary: Gamerzilla Integration Library
Group: System/Libraries
%description -n libgamerzilla%{sover}
Gamerzilla is trophy/achievement system for games. It integrates with a
hubzilla plugin to display your results online. Games can either connect
directly to hubzilla or connect to a game launcher with using this
library.
%package devel
Summary: Development and header files for libgamerzilla
Group: Development/Libraries/C and C++
Requires: libgamerzilla%{sover} = %{version}
%description devel
This package contains libraries and header files for
developing applications that use gamerzilla.
%package server
Summary: Simple Gamerzilla server to relay information to Hubzilla
%description server
The gamerzillaserver listens for trophies awarded by games. It logs into
the user's Hubzilla server and passes on the awards.
%prep
%setup -q -n %{name}-release-%{version}
%build
%cmake
%make_build
%install
%cmake_install
%post -n libgamerzilla%{sover} -p /sbin/ldconfig
%postun -n libgamerzilla%{sover} -p /sbin/ldconfig
%files -n libgamerzilla%{sover}
%license LICENSE
%doc README
%{_libdir}/libgamerzilla.so.%{sover}*
%files server
%{_bindir}/gamerzillaserver
%files devel
%dir %{_includedir}/gamerzilla
%{_includedir}/gamerzilla/gamerzilla.h
%{_libdir}/libgamerzilla.so
%{_libdir}/pkgconfig/gamerzilla.pc
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gamerzilla.deps
%{_datadir}/vala/vapi/gamerzilla.vapi
%changelog