summaryrefslogtreecommitdiff
path: root/packaging/libusbgx.spec
blob: 9d2516affd893ff74339dbd7089e000bddbf8e11 (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
76
77
78
79
80
81
82
83
84
85
86
87
Name:           libusbgx
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:        libusbgx-%{version}.tar.gz
Source1001:     libusbgx.manifest
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libconfig)

%description
libusbgx 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 libusbgx. Contains headers and binaries required for
compilation of applications which use libusbgx.

%package examples
Summary:    Examples of libusbgx usage
Group:      Applications/Other
Requires:   %{name} = %{version}-%{release}

%description examples
Sample applications which shows how to use libusbgx.

%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}/libusbgx.so.*
%{_libdir}/libusbgx.so.*.*.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_includedir}/usbg/usbg.h
%{_includedir}/usbg/function/ffs.h
%{_includedir}/usbg/function/loopback.h
%{_includedir}/usbg/function/midi.h
%{_includedir}/usbg/function/ms.h
%{_includedir}/usbg/function/net.h
%{_includedir}/usbg/function/phonet.h
%{_includedir}/usbg/function/serial.h
%{_includedir}/usbg/function/hid.h
%{_includedir}/usbg/function/uac2.h
%{_libdir}/pkgconfig/libusbgx.pc
%{_libdir}/libusbgx.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-midi
%{_bindir}/gadget-ms
%{_bindir}/gadget-hid
%{_bindir}/gadget-export
%{_bindir}/gadget-import
%{_bindir}/gadget-uac2
%{_bindir}/show-udcs
%{_bindir}/gadget-rndis-os-desc

%changelog