File libwfut-0_2-1.spec of Package libwfut

Summary: A WorldForge Update Tool library
Name: libwfut-0_2-1
Version: 0.2.3
Release: 1
License: LGPL-2.1
Vendor: WorldForge
URL: https://www.worldforge.org/index.php/components/libwfut
Source0: libwfut-%{version}.tar.xz

BuildRequires: curl-devel zlib-devel gcc-c++ cmake

%if 0%{?fedora_version}
BuildRequires: libsigc++20-devel
%else
BuildRequires: libsigc++2-devel
%endif

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: glibc-all-langpacks
%endif

%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 devel
Summary: A WorldForge Update Tool library
Group: Development/Libraries
Requires: %{name} = %{version} curl-devel zlib-devel
%if 0%{?fedora_version}
Requires: libsigc++20-devel
%else
Requires: libsigc++2-devel
%endif

%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.

%if 0%{?suse_version}
%debug_package
%endif

%prep
%setup -q -n libwfut-%{version}

%build
cmake -DCMAKE_CXX_FLAGS="%{optflags}" -DCMAKE_INSTALL_PREFIX=%{_prefix}
%{__make} %{?_smp_mflags}

%install
%{__make} DESTDIR=%{buildroot} install

%check
%{__make} %{?jobs:-j%jobs} check

%post
ldconfig

%postun
ldconfig

%files
%{_libdir}/lib*.so.*
%{_bindir}/wfut
%{_mandir}/man1/wfut*
%doc AUTHORS README.md COPYING NEWS

%files devel
%{_libdir}/pkgconfig/*
%{_libdir}/lib*.so
%{_libdir}/cmake/wfut
%{_includedir}/*

%changelog
* Mon Mar 6 2017 Erik Ogenvik <erik@ogenvik.org> 0.2.3
- New version.

* Thu Mar 22 2007 Kai Blin <kai.blin@gmail.com>
- Fix curl_brain_dead.patch and build to regenerate configure on the fly.

* Fri Feb 16 2007 Kai Blin <kai.blin@gmail.com>
- Initial spec file for openSUSE.
- Add curl_brain_dead.patch to allow builds with SuSE 9.3 and 10.0.
openSUSE Build Service is sponsored by