[packages/uhubctl] new
atler
atler at pld-linux.org
Sun May 7 00:20:24 CEST 2023
commit 45b53a983ca3524ff83e78eedbee942a8cc57162
Author: Jan Palus <atler at pld-linux.org>
Date: Sun May 7 00:20:05 2023 +0200
new
uhubctl.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
---
diff --git a/uhubctl.spec b/uhubctl.spec
new file mode 100644
index 0000000..59e090c
--- /dev/null
+++ b/uhubctl.spec
@@ -0,0 +1,42 @@
+Summary: USB hub per-port power control
+Name: uhubctl
+Version: 2.5.0
+Release: 1
+License: GPL v2+
+Group: Applications/System
+Source0: https://github.com/mvp/uhubctl/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: e4e66d445ba8fda181ce4aa4abcd4247
+URL: https://github.com/mvp/uhubctl
+BuildRequires: libusb-devel
+BuildRequires: pkgconfig
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+uhubctl is utility to control USB power per-port on smart USB hubs.
+Smart hub is defined as one that implements per-port power switching.
+
+%prep
+%setup -q
+
+%build
+CPPFLAGS="%{rpmcppflags}" \
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+%{__make} \
+ CC="%{__cc}" \
+ GIT_VERSION="%{version}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ sbindir="%{_sbindir}" \
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_sbindir}/uhubctl
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/uhubctl.git/commitdiff/45b53a983ca3524ff83e78eedbee942a8cc57162
More information about the pld-cvs-commit
mailing list