blob: 8b99ea1883e6eb79e8b31297b97a1665e10b8419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
Name: libusbg
Version: 0.1.0
Release: 0
License: LGPL-2.1+ and GPL-2.0+
Summary: USB gadget with ConfigFS Library
Group: Base/Device Management
Source0: libusbg-%{version}.tar.gz
Source1001: libusbg.manifest
BuildRequires: pkg-config
BuildRequires: pkgconfig(libconfig)
%description
Libusbg is a librarary for all USB gadget operations using ConfigFS.
%package devel
Summary: USB gadget with ConfigFS Library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development package for libusbg. Contains headers and binaries required for
compilation of applications which use libusbg.
%package examples
Summary: Examples of libusbg usage
Group: Applications/Other
Requires: %{name} = %{version}-%{release}
%description examples
Sample applications which shows how to use libusbg.
%prep
%setup -q
cp %{SOURCE1001} .
%reconfigure
%build
make
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING.LGPL
%{_libdir}/libusbg.so.*
%{_libdir}/libusbg.so.*.*.*
%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/usbg/usbg.h
%{_libdir}/pkgconfig/libusbg.pc
%{_libdir}/libusbg.so
%files examples
%manifest %{name}.manifest
%license COPYING
%{_bindir}/gadget-acm-ecm
%{_bindir}/show-gadgets
%{_bindir}/gadget-vid-pid-remove
%{_bindir}/gadget-ffs
%{_bindir}/gadget-export
%{_bindir}/gadget-import
%{_bindir}/show-udcs
%{_bindir}/gadget-ms
%{_bindir}/gadget-midi
%changelog
|