diff options
-rw-r--r-- | .gbs.conf | 3 | ||||
-rw-r--r-- | packaging/libusbg.manifest | 6 | ||||
-rw-r--r-- | packaging/libusbg.spec | 74 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..2290232 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = v${upstreamversion} diff --git a/packaging/libusbg.manifest b/packaging/libusbg.manifest new file mode 100644 index 0000000..4819ac2 --- /dev/null +++ b/packaging/libusbg.manifest @@ -0,0 +1,6 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> + diff --git a/packaging/libusbg.spec b/packaging/libusbg.spec new file mode 100644 index 0000000..41e98a4 --- /dev/null +++ b/packaging/libusbg.spec @@ -0,0 +1,74 @@ +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 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 +%{_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 |