File libwfut.spec of Package libwfut
#
# spec file for package libwfut
#
# 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 http://bugs.opensuse.org/
#
Name: libwfut
Version: 0.2.3
Release: 0
%define soname 0_2-1
Summary: A WorldForge Update Tool library
License: GPL-2.0
Group: System/Libraries
Url: https://www.worldforge.org/index.php/components/wfmath/
Source: https://github.com/worldforge/libwfut/archive/refs/tags/libwfut-%{version}.tar.gz
BuildRequires: automake
BuildRequires: curl-devel
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRequires: pkgconfig(sigc++-2.0)
%description
Originally a Java tool designed for easily distributing updates to game
client media libwfut is a C++ port of the tool and conversion into a
library that can be imported into clients directly.
%package -n %{name}-%{soname}
Summary: A WorldForge Update Tool library
Group: System/Libraries
%description -n %{name}-%{soname}
Originally a Java tool designed for easily distributing updates to game
client media libwfut is a C++ port of the tool and conversion into a
library that can be imported into clients directly.
%package devel
Summary: A WorldForge Update Tool library
Group: Development/Libraries/C and C++
Requires: %{name}-%{soname} = %{version}
%description devel
Originally a Java tool designed for easily distributing updates to game
client media libwfut is a C++ port of the tool and conversion into a
library that can be imported into clients directly.
%prep
%setup -q -n %{name}-%{name}-%{version}
%build
autoreconf -fi
export CXXFLAGS="%{optflags}"
%configure --disable-static
%make_build
%install
%make_install
%post -n %{name}-%{soname} -p /sbin/ldconfig
%postun -n %{name}-%{soname} -p /sbin/ldconfig
%files
%doc AUTHORS README NEWS
%{_bindir}/wfut
%{_mandir}/man1/wfut*
%files -n %{name}-%{soname}
%license COPYING
%{_libdir}/libwfut-0.2.so.*
%files devel
%{_includedir}/libwfut-0.2/
%{_libdir}/libwfut-0.2.la
%{_libdir}/libwfut-0.2.so
%{_libdir}/pkgconfig/libwfut-0.2.pc
%changelog