File libShake.spec of Package libShake
#
# spec file for package libShake
#
# 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: libShake
Version: 0.3.2
Release: 0
Summary: Simple, cross-platform haptic library
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/zear/libShake
Source: https://github.com/zear/libShake/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: mkdir.patch
Patch1: mkdir2.patch
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: pkgconfig
%description
libShake is a simple, cross-platform haptic library.
%package -n libshake2
Summary: Simple, cross-platform haptic library
Group: System/Libraries
%description -n libshake2
libShake is a simple, cross-platform haptic library.
%package devel
Summary: Development files for libShake
Group: Development/Libraries/C and C++
Requires: libshake2 = %{version}
%description devel
libShake is a simple, cross-platform haptic library,
%prep
%autosetup -p1
%build
BACKEND=LINUX %make_build
%install
BACKEND=LINUX %make_install
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
%post -n libshake2 -p /sbin/ldconfig
%postun -n libshake2 -p /sbin/ldconfig
%files -n libshake2
%license LICENSE.txt
%{_libdir}/libshake.so.2
%files devel
%{_includedir}/*.h
%{_libdir}/libshake.so
%changelog