Compare commits
11 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cc4ad025b | ||
|
|
0ca817235e |
||
|
|
100d52baf1 | ||
|
|
6aedab9e0f | ||
|
|
3fcc719285 |
||
|
|
617c606139 |
||
|
|
24969a0d53 | ||
| 06a5bf061c | |||
|
|
458e1369ed | ||
|
|
e72e1a6bdf | ||
|
|
7e44a75cae |
1 changed files with 58 additions and 1 deletions
59
vrpn.spec
59
vrpn.spec
|
|
@ -2,6 +2,13 @@
|
|||
# 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
|
||||
|
|
@ -10,7 +17,7 @@ physical devices (tracker, etc.) used in a virtual-reality (VR) system.}
|
|||
|
||||
Name: vrpn
|
||||
Version: 07.35
|
||||
Release: 1%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Virtual-Reality Peripheral Network
|
||||
|
||||
# According to upstream, linking to the wiiuse (GPLv3+) and gpm (GPLv2+)
|
||||
|
|
@ -27,14 +34,18 @@ 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
|
||||
|
|
@ -56,7 +67,13 @@ 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}
|
||||
|
|
@ -92,12 +109,14 @@ 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
|
||||
|
|
@ -107,11 +126,14 @@ 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
|
||||
|
|
@ -119,9 +141,11 @@ 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
|
||||
|
|
@ -170,10 +194,43 @@ 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
|
||||
|
||||
* Sat Oct 28 2023 Davide Cavalca <dcavalca@fedoraproject.org> - 07.35-1
|
||||
- Unretire and update to 07.35; Fixes: RHBZ#2246766
|
||||
- Rework specfile to comply with the latest packaging guidelines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue