|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
Name: usbip
|
|
|
|
License: GPLv2+
|
|
|
|
Summary: USB/IP user-space
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Version: 4.9.9
|
|
|
|
Release: 2%{?dist}
|
|
|
|
#Source: https://www.kernel.org/pub/linux/kernel/v3.x/linux-%%{version}.tar.xz
|
|
|
|
# In the interests of keeping the source rpm from being ridiculously large,
|
|
|
|
# download the Linux kernel from above and run `extract_usbip.sh <version>`
|
|
|
|
# in the SOURCE directory.
|
|
|
|
URL: https://www.kernel.org
|
|
|
|
Source: usbip-%{version}.tar.xz
|
|
|
|
Source1: usbip-server.service
|
|
|
|
Source2: usbip-client.service
|
|
|
|
Source99: extract_usbip.sh
|
|
|
|
# The following patches have been submitted to the LKML (see the thread
|
|
|
|
# starting at https://www.spinics.net/lists/kernel/msg2448891.html) and are
|
|
|
|
# still in the process of being reviewed.
|
|
|
|
Patch1: 0001-usbip-Fix-format-overflow.patch
|
|
|
|
Patch2: 0002-usbip-Fix-implicit-fallthrough-warning.patch
|
|
|
|
Requires: kmod(usbip-core.ko)
|
|
|
|
Requires: kmod(usbip-host.ko)
|
|
|
|
Requires: kmod(vhci-hcd.ko)
|
|
|
|
Requires: kernel-modules-extra
|
|
|
|
Requires: hwdata
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libtool autoconf
|
|
|
|
|
|
|
|
# Use the same directory of the main package for subpackage licence and docs
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
%description
|
|
|
|
USB/IP allows you to share USB devices over a network. With USB/IP, you can
|
|
|
|
plug a USB device into one computer and use it on a different computer on the
|
|
|
|
network.
|
|
|
|
|
|
|
|
This package contains the user-space tools for USB/IP, both for servers and
|
|
|
|
clients
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: USB/IP headers and development libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains headers and static libraries for USB/IP user-space
|
|
|
|
development
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p4
|
|
|
|
%patch2 -p4
|
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
|
|
|
%configure --disable-static --with-usbids-dir=%{_datadir}/hwdata
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f %{buildroot}%{_libdir}/libusbip*.la
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
|
|
install -pm 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post usbip-client.service usbip-server.service
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun usbip-client.service usbip-server.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart usbip-client.service usbip-server.service
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc README AUTHORS
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_unitdir}/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license COPYING
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon Feb 20 2017 Jonathan Dieter <jdieter@lesbg.com> - 4.9.9-2
|
|
|
|
- Add patches to fix continuing build failures with GCC 7
|
|
|
|
|
|
|
|
* Sun Feb 12 2017 Jonathan Dieter <jdieter@lesbg.com> - 4.9.9-1
|
|
|
|
- Update to 4.9.9 with build fixes
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Apr 25 2016 Jonathan Dieter <jdieter@lesbg.com> - 4.5-1
|
|
|
|
- Update to 4.5 with very minor fixes
|
|
|
|
- Add dependency to kernel-modules-extra (fixes #1329313)
|
|
|
|
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.18-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 5 2015 - Jonathan Dieter <jdieter@lesbg.com> - 3.18-4
|
|
|
|
- Fix datadir (#1189855)
|
|
|
|
- Fix client service type
|
|
|
|
|
|
|
|
* Thu Jan 15 2015 - Jonathan Dieter <jdieter@lesbg.com> - 3.18-3
|
|
|
|
- Improve description
|
|
|
|
|
|
|
|
* Wed Jan 14 2015 - Jonathan Dieter <jdieter@lesbg.com> - 3.18-2
|
|
|
|
- Remove clean section
|
|
|
|
- Remove defattr in files list
|
|
|
|
- Use license macro for COPYING
|
|
|
|
- Use combined doc directory
|
|
|
|
- Combine systemd macros into one
|
|
|
|
- Remove /etc/default config file
|
|
|
|
- Stop rmmoding when services stop
|
|
|
|
- Remove unneeded After=syslog.target in services
|
|
|
|
- Update to 3.18
|
|
|
|
- Replace /usr/share with datadir macro in configure
|
|
|
|
- Switch to make_install macro
|
|
|
|
- When manually using install, preserve timestamps
|
|
|
|
|
|
|
|
* Tue Dec 16 2014 - Jonathan Dieter <jdieter@lesbg.com> - 3.17-1
|
|
|
|
- Initial release
|