Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3007311956
!13 [sync] PR-10: cleanup spec
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2025-02-17 07:14:15 +00:00
Funda Wang
9395e08903 cleanup spec
(cherry picked from commit 552ec57fa4e1ddfbfa4555913dd0eb3a30d3b379)
2025-01-26 16:55:39 +08:00
openeuler-ci-bot
c478c9968d
!9 update the version to 0.1.8
From: @LLamport 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2023-07-18 08:57:26 +00:00
yangkunlin
d0712009d4 update to 0.1.8 2023-07-17 20:56:35 +08:00
openeuler-ci-bot
dd873a5e2b !5 libusb delete -Sgit from %autosetup, and delete BuildRequires git
From: @chenyanpanHW
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-08-01 13:08:00 +00:00
chenyanpanHW
2a72f0fa37
delete -Sgit from %autosetup, and delete BuildRequires git 2021-07-30 23:03:50 +08:00
openeuler-ci-bot
8326fc7dfa !4 libusb添加make check
From: @lixiaokeng
Reviewed-by: @volcanodragon
Signed-off-by: @liuzhiqiang26
2020-11-05 14:39:32 +08:00
lixiaokeng
6542804f04 add make check 2020-11-04 20:54:24 +08:00
openeuler-ci-bot
f3856fac2b !3 libusb: remove useless readme files
Merge pull request !3 from liuzhiqiang/master
2020-07-07 14:35:00 +08:00
ZhiqiangLiu
f5406f24af libusb: remove useless readme files
libusb: remove useless readme files

Signed-off-by: Zhiqiang Liu <lzhq28@mail.ustc.edu.cn>
2020-07-05 12:11:56 +08:00
6 changed files with 37 additions and 125 deletions

View File

@ -1,7 +1,7 @@
From a9e8373030b39aadfc33af67443085df83e9e344 Mon Sep 17 00:00:00 2001
From c61d4088ab18ef327128d3776d93a5f80ff24875 Mon Sep 17 00:00:00 2001
From: Daniel Berrange <berrange@redhat.com>
Date: Wed, 14 Aug 2013 16:00:56 +0200
Subject: [libusb-compat PATCH] Link with -znodelete to disallow unloading
Subject: [PATCH] Link with -znodelete to disallow unloading
Since libusb-0.1 did not have any init / exit function, code using the
libusb-0.1 API will not call libusb_exit.
@ -25,27 +25,16 @@ Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libusb/Makefile.am b/libusb/Makefile.am
index 33a609a..a20fdb5 100644
index 651434b..21f973e 100644
--- a/libusb/Makefile.am
+++ b/libusb/Makefile.am
@@ -5,5 +5,5 @@ libusb_la_SOURCES = core.c usbi.h
libusb_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS)
@@ -9,5 +9,5 @@ else
libusb_la_LIBADD = $(LIBUSB_1_0_LIBS)
libusb_la_LDFLAGS = -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE) \
endif
libusb_la_LDFLAGS = -no-undefined -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE) \
- -release 0.1
+ -release 0.1 -Wl,-z -Wl,nodelete
--- libusb-compat-0.1.5.orig/libusb/Makefile.in 2013-05-21 00:40:35.000000000 +0100
+++ libusb-compat-0.1.5.orig/libusb/Makefile.in 2013-08-13 22:20:32.831532426 +0100
@@ -297,7 +297,7 @@ libusb_la_SOURCES = core.c usbi.h
libusb_la_CFLAGS = -fvisibility=hidden $(AM_CFLAGS) $(LIBUSB_1_0_CFLAGS)
libusb_la_LIBADD = $(LIBUSB_1_0_LIBS)
libusb_la_LDFLAGS = -version-info $(LT_MAJOR):$(LT_REVISION):$(LT_AGE) \
- -release 0.1
+ -release 0.1 -Wl,-z -Wl,nodelete
all: all-am
--
1.8.3.1
2.27.0

View File

@ -1,55 +0,0 @@
From eb590b4dac00a5188b93e1d6ebdd60b06f9ab3d7 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Thu, 13 Feb 2014 17:25:27 +0100
Subject: [libusb-compat PATCH 2/2] Revert "use atexit() to call libusb_exit()"
The use of atexit() breaks various users of libusb-compat,
see ie: https://bugzilla.redhat.com/show_bug.cgi?id=1003193
This reverts commit 0be16b8dd25733d242ae32b57823a9513ec21353.
Closes libusbx/libusb-compat-0.1#2
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
libusb/core.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/libusb/core.c b/libusb/core.c
index c0ccb1f..2dd1b5f 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -21,7 +21,6 @@
#include <config.h>
#include <errno.h>
#include <stdarg.h>
-#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -137,13 +136,6 @@ static void usbi_log(enum usbi_log_level level, const char *function,
fprintf(stream, "\n");
}
-static void _usb_finalize(void) {
- if (ctx) {
- libusb_exit(ctx);
- ctx = NULL;
- }
-}
-
API_EXPORTED void usb_init(void)
{
int r;
@@ -159,8 +151,6 @@ API_EXPORTED void usb_init(void)
/* usb_set_debug can be called before usb_init */
if (usb_debug)
libusb_set_debug(ctx, 3);
-
- atexit(_usb_finalize);
}
}
--
1.8.5.3

View File

@ -1,39 +0,0 @@
# libusb
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

BIN
libusb-compat-0.1.8.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,14 +1,15 @@
Name: libusb
Epoch: 1
Version: 0.1.5
Release: 15
Version: 0.1.8
Release: 2
Summary: USB Library
License: LGPLv2+
URL: http://sourceforge.net/projects/libusb/
Source0: http://downloads.sourceforge.net/libusb/libusb-compat-%{version}.tar.bz2
URL: https://sourceforge.net/projects/libusb/
Source0: https://downloads.sourceforge.net/libusb/libusb-compat-%{version}.tar.bz2
Patch0: 0000-Link-with-znodelete-to-disallow-unloading.patch
Patch1: 0001-Revert-use-atexit-to-call-libusb_exit.patch
BuildRequires: gcc libusb1-devel git
BuildRequires: gcc
BuildRequires: autoconf automake libtool
BuildREquires: pkgconfig(libusb-1.0) >= 0.9.1
%description
This package provides a library that allows userspace access to USB devices.
@ -21,23 +22,24 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
This package contains the files needed to develop applications that use libusb-0.1.
%prep
%autosetup -Sgit -n libusb-compat-%{version}
%autosetup -n libusb-compat-%{version} -p1
%build
./autogen.sh
%configure --disable-static
%make_build
%check
%make_build check
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%delete_la
%files
%doc AUTHORS COPYING ChangeLog NEWS README
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libusb-0.1.so.*
%{_libdir}/libusb.la
%files devel
%{_bindir}/*
@ -46,6 +48,21 @@ This package contains the files needed to develop applications that use libusb-0
%{_libdir}/libusb.so
%changelog
* Tue Sep 03 2024 Funda Wang <fundawang@yeah.net> - 1:0.1.8-2
- cleanup spec
* Mon Jul 17 2023 Kunlin Yang <yangkunlin7@huawei.com> - 1:0.1.8-1
- update from 0.1.5 to 0.1.8
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1:0.1.5-18
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Wed Nov 4 2020 lixiaokeng <lixiaokeng@hauwei.com> - 1:0.1.5-17
- add make check
* Sun Jul 5 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 1:0.1.5-16
- remove useless readme files.
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-15
- Type:enhancemnet
- ID:NA