From 2db213dee6edd444321c2b4a60f2dc4af3b362d9 Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Wed, 4 Dec 2013 15:23:09 +0100 Subject: libusbg: packaging: Add packaging for generating rpm package. Change-Id: I69eb6b752e35e0a718cce06b1634ece376c2bcb4 Signed-off-by: Krzysztof Opasiak --- .gbs.conf | 3 ++ packaging/libusbg.manifest | 6 ++++ packaging/libusbg.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 .gbs.conf create mode 100644 packaging/libusbg.manifest create mode 100644 packaging/libusbg.spec 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 @@ + + + + + + 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 -- cgit v1.2.3