mirror of
https://github.com/linux-usb-gadgets/libusbgx.git
synced 2025-07-13 00:30:06 +03:00
libusbgx: packaging: Add packaging for generating rpm package.
Change-Id: I69eb6b752e35e0a718cce06b1634ece376c2bcb4 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
parent
bd24a4b60b
commit
af9a006f07
3 changed files with 83 additions and 0 deletions
3
.gbs.conf
Normal file
3
.gbs.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[general]
|
||||||
|
upstream_branch = upstream
|
||||||
|
upstream_tag = libusbgx-v${upstreamversion}
|
6
packaging/libusbgx.manifest
Normal file
6
packaging/libusbgx.manifest
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<manifest>
|
||||||
|
<request>
|
||||||
|
<domain name="_"/>
|
||||||
|
</request>
|
||||||
|
</manifest>
|
||||||
|
|
74
packaging/libusbgx.spec
Normal file
74
packaging/libusbgx.spec
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
Name: libusbgx
|
||||||
|
Version: 0.0.1
|
||||||
|
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 COPYING.LGPL
|
||||||
|
%{_libdir}/libusbgx.so.*
|
||||||
|
%{_libdir}/libusbgx.so.*.*.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%manifest %{name}.manifest
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/usbg/usbg.h
|
||||||
|
%{_libdir}/pkgconfig/libusbgx.pc
|
||||||
|
%{_libdir}/libusbgx.so
|
||||||
|
|
||||||
|
%files examples
|
||||||
|
%manifest %{name}.manifest
|
||||||
|
%{_bindir}/gadget-acm-ecm
|
||||||
|
%{_bindir}/show-gadgets
|
||||||
|
%{_bindir}/gadget-vid-pid-remove
|
||||||
|
%{_bindir}/gadget-ffs
|
||||||
|
%{_bindir}/gadget-midi
|
||||||
|
%{_bindir}/gadget-ms
|
||||||
|
%{_bindir}/gadget-export
|
||||||
|
%{_bindir}/gadget-import
|
||||||
|
%{_bindir}/show-udcs
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Add table
Add a link
Reference in a new issue