summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2013-12-04 15:23:09 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2015-12-23 01:47:36 +0100
commit2db213dee6edd444321c2b4a60f2dc4af3b362d9 (patch)
tree3b43070aa055871c790a9b86ebb8c8defef2be1e
parent9d4f8291e497dc1adf434cfb2e7bdca5069815ee (diff)
downloadlibusbg-2db213dee6edd444321c2b4a60f2dc4af3b362d9.tar.gz
libusbg-2db213dee6edd444321c2b4a60f2dc4af3b362d9.tar.bz2
libusbg-2db213dee6edd444321c2b4a60f2dc4af3b362d9.zip
libusbg: packaging: Add packaging for generating rpm package.submit/tizen_common/20160304.143411accepted/tizen/common/20160304.195846
Change-Id: I69eb6b752e35e0a718cce06b1634ece376c2bcb4 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--.gbs.conf3
-rw-r--r--packaging/libusbg.manifest6
-rw-r--r--packaging/libusbg.spec74
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