2024-01-06 08:07:10 +01:00
|
|
|
%define pkgver %(echo %version | tr . -)
|
|
|
|
Name: ois
|
2024-01-06 08:07:10 +01:00
|
|
|
Version: 1.5
|
|
|
|
Release: 1mamba
|
2024-01-06 08:07:10 +01:00
|
|
|
Summary: Object Oriented Input System
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://sourceforge.net/projects/wgois/
|
2024-01-06 08:07:10 +01:00
|
|
|
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
|
2024-01-06 08:07:10 +01:00
|
|
|
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
|
2024-01-06 08:07:10 +01:00
|
|
|
BuildRequires: libbsd-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libxcb-devel
|
2024-01-06 08:07:10 +01:00
|
|
|
## 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
|
2024-01-06 08:07:10 +01:00
|
|
|
%setup -q -n OIS-%{version}
|
|
|
|
|
|
|
|
sed -i "s|\"lib\"|\"%{_lib}\"|" CMakeLists.txt
|
|
|
|
sed -i "s|DESTINATION lib$|DESTINATION %{_lib}|" CMakeLists.txt
|
2024-01-06 08:07:10 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 08:07:10 +01:00
|
|
|
%cmake -d build
|
|
|
|
|
2024-01-06 08:07:10 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 08:07:10 +01:00
|
|
|
%makeinstall -C build
|
2024-01-06 08:07:10 +01:00
|
|
|
|
|
|
|
%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)
|
2024-01-06 08:07:10 +01:00
|
|
|
%{_libdir}/libOIS.so.*
|
2024-01-06 08:07:10 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 08:07:10 +01:00
|
|
|
%dir %{_includedir}/ois
|
|
|
|
%{_includedir}/ois/*.h
|
2024-01-06 08:07:10 +01:00
|
|
|
%{_libdir}/libOIS.so
|
|
|
|
%{_libdir}/pkgconfig/OIS.pc
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:07:10 +01:00
|
|
|
* Thu May 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5-1mamba
|
|
|
|
- update to 1.5
|
|
|
|
|
2024-01-06 08:07:10 +01:00
|
|
|
* Fri Feb 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-2mamba
|
|
|
|
- rebuilt with gcc 5.3.0
|
|
|
|
|
2024-01-06 08:07:10 +01:00
|
|
|
* Thu Nov 28 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
|
|
|
|
- package created using the webbuild interface
|