gt: packaging: Add packaging for generating rpm package
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 31 Jul 2014 06:44:11 +0000 (08:44 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 31 Jul 2014 12:09:06 +0000 (14:09 +0200)
Change-Id: I5a2bb400aad2d8c4303a5b2dcf959cd7388efae2
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
packaging/gt.manifest [new file with mode: 0644]
packaging/gt.spec [new file with mode: 0644]

diff --git a/packaging/gt.manifest b/packaging/gt.manifest
new file mode 100644 (file)
index 0000000..4819ac2
--- /dev/null
@@ -0,0 +1,6 @@
+<manifest>
+  <request>
+     <domain name="_"/>
+  </request>
+</manifest>
+
diff --git a/packaging/gt.spec b/packaging/gt.spec
new file mode 100644 (file)
index 0000000..9992213
--- /dev/null
@@ -0,0 +1,34 @@
+Name:            gt
+Summary:         Command line tool for USB gadget management
+Version:         0.0.1
+Release:         0
+License:         Apache-2.0
+Group:           Base/Device Management
+
+Source0:         %{name}-%{version}.tar.gz
+Source1001:      %{name}.manifest
+BuildRequires:   cmake
+BuildRequires:   pkgconfig
+BuildRequires:   pkgconfig(libusbg)
+
+%description
+Gt is a command line tool for USB gadget management through
+ConfigFS. It allows user to create, modify and remove custom
+gadget and also load or save gadet from/to file.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+cmake ./source/
+
+%build
+make
+
+%install
+%make_install
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%defattr(-,root,root)
+/usr/local/bin/gt