Compare commits

..

No commits in common. "rawhide" and "f40" have entirely different histories.

View file

@ -2,13 +2,6 @@
# services that don't work properly in mock
%bcond_with tests
# Python bindings fail to build with Python 3.13 (RHBZ#2247291)
%if 0%{?fedora} > 40
%bcond_with python
%else
%bcond_without python
%endif
%global common_description %{expand:
The Virtual-Reality Peripheral Network (VRPN) is a set of classes within a
library and a set of servers that are designed to implement a
@ -17,7 +10,7 @@ physical devices (tracker, etc.) used in a virtual-reality (VR) system.}
Name: vrpn
Version: 07.35
Release: 11%{?dist}
Release: 2%{?dist}
Summary: Virtual-Reality Peripheral Network
# According to upstream, linking to the wiiuse (GPLv3+) and gpm (GPLv2+)
@ -34,18 +27,14 @@ Source1: vrpn.service
Patch: %{url}/commit/1b4676b3cf8bbaff2f75c8e41b005401b189b2e2.patch
# Fix modbus libraries detection
Patch: vrpn-find_modbus.patch
%if %{with python}
# Fix Python modules installation
Patch: vrpn-python_install.patch
%endif
# Add soversion to all libraries
Patch: vrpn-soversion.patch
# Do not install binaries only used for unit tests
Patch: vrpn-dont-install-tests.patch
%if %{with python}
BuildRequires: chrpath
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: doxygen
@ -67,13 +56,7 @@ BuildRequires: libi2c-devel
BuildRequires: libmodbus-devel
BuildRequires: libudev-devel
BuildRequires: libusb1-devel
%if %{with python}
BuildRequires: python3-devel
%else
# Drop once f40 is EOL
Provides: python3-vrpn = %{version}-%{release}
Obsoletes: python3-vrpn < 07.35-5
%endif
BuildRequires: wiiuse-devel
%description %{common_description}
@ -109,14 +92,12 @@ BuildArch: noarch
This package contains generated VRPN source code documentation.
%if %{with python}
%package -n python3-%{name}
Summary: Python 3 bindings for the Virtual-Reality Peripheral Network
%description -n python3-%{name} %{common_description}
This package contains Python 3 bindings for the VRPN libraries.
%endif
%prep
%autosetup -p1
@ -126,14 +107,11 @@ sed -i 's:/usr/local/bin:%{_bindir}:g' vrpn_Connection.C
%build
%cmake \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DOpenGL_GL_PREFERENCE=GLVND \
-DVRPN_GPL_SERVER=ON \
-DBUILD_TESTING=ON \
%if %{with python}
-DVRPN_BUILD_PYTHON_HANDCODED_3X=ON \
-DVRPN_PYTHON_INSTALL_DIR=%{python3_sitearch} \
%endif
%{nil}
%cmake_build
%cmake_build --target doc
@ -141,11 +119,9 @@ sed -i 's:/usr/local/bin:%{_bindir}:g' vrpn_Connection.C
%install
%cmake_install
%if %{with python}
# Install Python module and strip broken rpath
chrpath -d %{_vpath_builddir}/python/vrpn.so
install -Dpm0755 -t %{buildroot}%{python3_sitearch} %{_vpath_builddir}/python/vrpn.so
%endif
# Install systemd service
install -Dpm644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
@ -194,40 +170,10 @@ mv %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}.cfg.sample .
%exclude %{_docdir}/%{name}-%{version}/source-docs/html/*.map
%exclude %{_docdir}/%{name}-%{version}/source-docs/html/*.md5
%if %{with python}
%files -n python3-%{name}
%{python3_sitearch}/*.so
%endif
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sun Mar 22 2026 Björn Esser <besser82@fedoraproject.org> - 07.35-10
- Rebuild (jsoncpp)
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Feb 27 2025 Björn Esser <besser82@fedoraproject.org> - 07.35-7
- Rebuild (jsoncpp)
- Explicitly set CMAKE_POLICY_VERSION_MINIMUM=3.5
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Aug 12 2024 Davide Cavalca <dcavalca@fedoraproject.org> - 07.35-5
- Disable Python bindings on f41 and later; Fixes: RHBZ#2247291
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 07.35-3
- Rebuilt for Python 3.13
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 07.35-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild