Compare commits
No commits in common. "rawhide" and "f27" have entirely different histories.
5 changed files with 47 additions and 94 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,5 +1,3 @@
|
|||
/wiiuse_v0.12_src.tar.gz
|
||||
/0.14.0.tar.gz
|
||||
/wiiuse-e7fcdf8.tar.gz
|
||||
/wiiuse-0.15.4.tar.gz
|
||||
/wiiuse-0.15.5.tar.gz
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (wiiuse-0.15.5.tar.gz) = 51a5abb8473b02a4537a73beb3f0012207294a828c332163ed2e99fa06e9905f590c7a0dc756a9182547c055c9b2218106e0a90dee7373fe33b8187c797cd3b8
|
||||
06258054f8692832a32de564a2bceda1 wiiuse-e7fcdf8.tar.gz
|
||||
|
|
|
|||
113
wiiuse.spec
113
wiiuse.spec
|
|
@ -1,17 +1,16 @@
|
|||
%undefine __cmake_in_source_build
|
||||
%global commit dfbe3d2cd21d3d88d7ba9de39cfc8aa901a6041b
|
||||
%global commit e7fcdf815b11068d9bd2dfc05633018d5792f1f3
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: wiiuse
|
||||
Version: 0.15.5
|
||||
Release: 18%{?dist}
|
||||
Version: 0.15.0
|
||||
Release: 0.5.git%{shortcommit}%{?dist}
|
||||
Summary: The wiiuse library is used to access and control multiple Nintendo Wiimotes
|
||||
License: GPL-3.0-or-later
|
||||
License: GPLv3+
|
||||
URL: https://github.com/rpavlik/wiiuse
|
||||
Source0: https://github.com/rpavlik/wiiuse/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
Source0: https://github.com/rpavlik/wiiuse/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
|
||||
Patch01: wiiuse_zero_addr.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: bluez-libs-devel
|
||||
BuildRequires: mesa-libGL-devel
|
||||
BuildRequires: freeglut-devel
|
||||
|
|
@ -24,6 +23,7 @@ BuildRequires: /usr/bin/chrpath
|
|||
A library that implements access to wiiremote controllers via bluetooth.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Developer tools for the wiiuse library
|
||||
Requires: bluez-libs-devel
|
||||
Requires: wiiuse = %{version}-%{release}
|
||||
|
|
@ -32,6 +32,7 @@ Requires: wiiuse = %{version}-%{release}
|
|||
Header files needed to develop programs that link against the wiiuse library.
|
||||
|
||||
%package examples
|
||||
Group: Development/Libraries
|
||||
Summary: Example programs for the wiiuse library
|
||||
Requires: wiiuse = %{version}-%{release}
|
||||
|
||||
|
|
@ -39,29 +40,33 @@ Requires: wiiuse = %{version}-%{release}
|
|||
Example programs to test accessing wiiremote controllers
|
||||
|
||||
%prep
|
||||
%autosetup -p0
|
||||
%autosetup -n %{name}-%{commit} -p1
|
||||
|
||||
#Convert all relevant files to unix charset
|
||||
for i in CHANGELOG.mkd README.mkd; do dos2unix $i; done
|
||||
for i in example*/*; do dos2unix $i; done
|
||||
for i in src/*; do dos2unix $i; done
|
||||
|
||||
mkdir build
|
||||
|
||||
%build
|
||||
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
%cmake_build
|
||||
%cmake .
|
||||
%make_build
|
||||
|
||||
%install
|
||||
# Can't use make install as it is a pathetic copy into fixed paths and won't
|
||||
# work on x86_64
|
||||
install -Dpm 0755 %{_vpath_builddir}/src/libwiiuse.so %{buildroot}%{_libdir}/libwiiuse.so.0
|
||||
|
||||
install -Dpm 0755 src/libwiiuse.so %{buildroot}%{_libdir}/libwiiuse.so.0
|
||||
ln -s libwiiuse.so.0 %{buildroot}%{_libdir}/libwiiuse.so
|
||||
install -Dpm 0644 src/wiiuse.h %{buildroot}%{_includedir}/wiiuse.h
|
||||
install -Dpm 0755 %{_vpath_builddir}/example/wiiuseexample %{buildroot}%{_bindir}/wiiuseexample
|
||||
install -Dpm 0755 %{_vpath_builddir}/example-sdl/wiiuseexample-sdl %{buildroot}%{_bindir}/wiiuseexample-sdl
|
||||
install -Dpm 0755 example/wiiuseexample %{buildroot}%{_bindir}/wiiuseexample
|
||||
install -Dpm 0755 example-sdl/wiiuseexample-sdl %{buildroot}%{_bindir}/wiiuseexample-sdl
|
||||
chrpath -d %{buildroot}%{_bindir}/wiiuseexample*
|
||||
|
||||
%files
|
||||
%{_libdir}/libwiiuse.so.0
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.mkd README.mkd
|
||||
|
||||
|
|
@ -74,85 +79,11 @@ chrpath -d %{buildroot}%{_bindir}/wiiuseexample*
|
|||
%{_bindir}/wiiuseexample
|
||||
%{_bindir}/wiiuseexample-sdl
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jul 17 2025 Gwyn Ciesla <gwync@protonmail.com> - 0.15.5-15
|
||||
- Cmake fix.
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Feb 28 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.15.5-10
|
||||
- migrated to SPDX license
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-4
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Nov 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.15.5-1
|
||||
- 0.15.5
|
||||
|
||||
* Tue Sep 17 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.15.4-4
|
||||
- Rebuilt for new freeglut
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Dec 03 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.15.4-1
|
||||
- Latest upstream.
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-0.8.gite7fcdf8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-0.7.gite7fcdf8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.0-0.6.gite7fcdf8
|
||||
- Switch to %%ldconfig_scriptlets
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-0.5.gite7fcdf8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
12
wiiuse_fix_soname.patch
Normal file
12
wiiuse_fix_soname.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -uPr wiiuse_v0.12.orig/src/Makefile wiiuse_v0.12/src/Makefile
|
||||
--- wiiuse_v0.12.orig/src/Makefile 2008-03-02 18:30:04.000000000 -0500
|
||||
+++ wiiuse_v0.12/src/Makefile 2010-11-20 17:37:50.987825850 -0500
|
||||
@@ -32,7 +32,7 @@
|
||||
#
|
||||
# Linking flags
|
||||
#
|
||||
-LDFLAGS = -shared -lm -lbluetooth
|
||||
+LDFLAGS = -shared -Wl,-soname,libwiiuse.so.0 -lm -lbluetooth
|
||||
|
||||
#
|
||||
# Target binaries (always created as BIN)
|
||||
12
wiiuse_zero_addr.patch
Normal file
12
wiiuse_zero_addr.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/os_nix.c b/src/os_nix.c
|
||||
index 9d5f62d..4b32a6d 100644
|
||||
--- a/src/os_nix.c
|
||||
+++ b/src/os_nix.c
|
||||
@@ -180,6 +180,7 @@ static int wiiuse_os_connect_single(struct wiimote_t* wm, char* address) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
+ memset(&addr, 0, sizeof(addr));
|
||||
addr.l2_family = AF_BLUETOOTH;
|
||||
bdaddr_t *bdaddr = &wm->bdaddr;
|
||||
if (address)
|
||||
Loading…
Add table
Add a link
Reference in a new issue