%define pkgver %(echo %version | tr . -) Name: ois Version: 1.5 Release: 1mamba Summary: Object Oriented Input System Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://sourceforge.net/projects/wgois/ Source: https://github.com/wgois/OIS.git/v%{version}/OIS-%{version}.tar.bz2 #Source: http://downloads.sourceforge.net/project/wgois/Source%20Release/%{version}/ois_v%{pkgver}.tar.gz Patch0: ois-1.3-gcc-4.8.patch License: zlib/libpng ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libXdmcp-devel BuildRequires: libbsd-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel BuildRequires: libxcb-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Object Oriented Input System (OIS) is meant to be a cross platform, simple solution for using all kinds of Input Devices (Keyboards, Mice, Joysticks, etc) and feedback devices (e.g. force feedback). Written in C++ using Object Oriented Design pattern. %package -n lib%{name} Group: System/Libraries Summary: Object Oriented Input System %description -n lib%{name} Object Oriented Input System (OIS) is meant to be a cross platform, simple solution for using all kinds of Input Devices (Keyboards, Mice, Joysticks, etc) and feedback devices (e.g. force feedback). Written in C++ using Object Oriented Design pattern. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: pkg-config %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n OIS-%{version} sed -i "s|\"lib\"|\"%{_lib}\"|" CMakeLists.txt sed -i "s|DESTINATION lib$|DESTINATION %{_lib}|" CMakeLists.txt %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libOIS.so.* %files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/ois %{_includedir}/ois/*.h %{_libdir}/libOIS.so %{_libdir}/pkgconfig/OIS.pc %changelog * Thu May 21 2020 Silvan Calarco 1.5-1mamba - update to 1.5 * Fri Feb 12 2016 Silvan Calarco 1.3-2mamba - rebuilt with gcc 5.3.0 * Thu Nov 28 2013 Silvan Calarco 1.3-1mamba - package created using the webbuild interface