[novacom-client/f15] Initial release

Jonathan Dieter jdieter at fedoraproject.org
Mon May 7 14:06:25 UTC 2012


commit 945404387e20d789db5c4061688a76769334fb23
Author: Jonathan Dieter <jdieter at lesbg.com>
Date:   Mon May 7 17:03:34 2012 +0300

    Initial release
    
    Signed-off-by: Jonathan Dieter <jdieter at lesbg.com>

 .gitignore                   |    1 +
 novacom-client.spec          |   79 ++++++++++++++++++++++++++++++++++++++++++
 novacom-makefile-fixes.patch |   19 ++++++++++
 novacom-remove-base64.patch  |   22 ++++++++++++
 novaterm                     |    5 +++
 sources                      |    1 +
 6 files changed, 127 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef6fee2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/novacom-git-ff7641193a.tar.gz
diff --git a/novacom-client.spec b/novacom-client.spec
new file mode 100644
index 0000000..5da514a
--- /dev/null
+++ b/novacom-client.spec
@@ -0,0 +1,79 @@
+%global _gitver	ff7641193a
+Name:		novacom-client
+Version:	1.1.0
+Release:	0.4.rc1.git.%{_gitver}%{?dist}
+Summary:	Client for utility to connect to WebOS devices
+Group:		Development/Tools
+License:	ASL 2.0
+URL:		https://github.com/openwebos/novacom
+# git clone https://github.com/openwebos/novacom.git
+# cd novacom
+# git archive --prefix=novacom-git-ff7641193a/ --format tar.gz -o ../novacom-git-ff7641193a.tar.gz ff7641193a
+Source0:	novacom-git-%{_gitver}.tar.gz
+Source1:	novaterm
+# This patch forces the makefile to use our CFLAGS and link properly
+Patch0:		novacom-makefile-fixes.patch
+Patch1:		novacom-remove-base64.patch
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%description
+Novacom allows you to connect to WebOS devices that are connected over USB.
+You must have novacom-server installed to use it.
+
+%package -n novacom
+Summary:	Utility to connect to WebOS devices
+Group:		Development/Tools
+Requires:	novacom-client = %{version}-%{release}
+Requires:	novacom-server
+
+%description -n novacom
+Novacom allows you to connect to WebOS devices that are connected over USB.
+
+This package installs both the client and the server.  To use the client, you
+must first start the server using 'systemctl start novacomd.service' as root,
+and then run 'novacom' as a regular user.
+
+%prep
+%setup -q -n novacom-git-%{_gitver}
+%patch0 -p1
+%patch1 -p1
+# Remove bundled base64 library that's available in libtomcrypt
+rm -f src/base64.c src/base64.h
+
+%build
+make LDFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+install -m 755 build-novacom/novacom $RPM_BUILD_ROOT/%{_bindir}
+install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%doc README.md
+%{_bindir}/novacom
+%{_bindir}/novaterm
+
+%files -n novacom
+%doc README.md
+
+%changelog
+* Mon May  7 2012 Jonathan Dieter <jdieter at lesbg.com> - 1.1.0-0.4.rc1.git.ff7641193a
+- Fix Requires for novacom
+
+* Thu Apr 26 2012 Jonathan Dieter <jdieter at lesbg.com> - 1.1.0-0.3.rc1.git.ff7641193a
+- Remove unused base64 functions
+- Use consistent RPM_OPT_FLAGS and RPM_BUILD_ROOT variables
+- Change define macro to global
+- Remove unnecessary BR: glibc-devel
+
+* Thu Apr 12 2012 Jonathan Dieter <jdieter at lesbg.com> - 1.1.0-0.2.rc1.git.ff7641193a
+- Rename to novacom-client and add novacom subpackage that pulls in both
+  -client and -server
+- Remove unneeded defattr line
+
+* Mon Apr  2 2012 Jonathan Dieter <jdieter at lesbg.com> - 1.1.0-0.1.rc1.git.ff7641193a
+- Initial release
diff --git a/novacom-makefile-fixes.patch b/novacom-makefile-fixes.patch
new file mode 100644
index 0000000..933d07c
--- /dev/null
+++ b/novacom-makefile-fixes.patch
@@ -0,0 +1,19 @@
+Only in novacom-git-ff7641193a.b: build-novacom
+diff -urb novacom-git-ff7641193a/makefile novacom-git-ff7641193a.b/makefile
+--- novacom-git-ff7641193a/makefile	2012-03-29 15:35:44.000000000 +0300
++++ novacom-git-ff7641193a.b/makefile	2012-04-02 15:32:05.131365684 +0300
+@@ -32,11 +32,12 @@
+ 
+ 
+ # compiler flags, default libs to link against
+-CFLAGS := -Wall -W -Wno-multichar -Wno-unused-parameter -Wno-unused-function -g -DBUILDVERSION=$(BUILDVERSION)
++MYCFLAGS := -Wall -W -Wno-multichar -Wno-unused-parameter -Wno-unused-function -g -DBUILDVERSION=$(BUILDVERSION)
++override CFLAGS := $(MYCFLAGS) $(CFLAGS)
+ CPPFLAGS := -g
+ ASMFLAGS :=
+ LDFLAGS := 
+-LDLIBS := 
++LDLIBS := -lpthread
+ 
+ UNAME := $(shell uname -s)
+ ARCH := $(shell uname -m)
diff --git a/novacom-remove-base64.patch b/novacom-remove-base64.patch
new file mode 100644
index 0000000..653f160
--- /dev/null
+++ b/novacom-remove-base64.patch
@@ -0,0 +1,22 @@
+diff -urb novacom-git-ff7641193a/makefile novacom-git-ff7641193a.b/makefile
+--- novacom-git-ff7641193a/makefile	2012-03-29 15:35:44.000000000 +0300
++++ novacom-git-ff7641193a.b/makefile	2012-04-26 20:05:11.626876735 +0300
+@@ -56,7 +56,6 @@
+ 	src/packet.o \
+ 	src/tcprelay.o \
+ 	src/socket.o \
+-	src/base64.o \
+ 	src/sha1.o
+ 
+ OBJS := $(addprefix $(BUILDDIR)/,$(OBJS))
+diff -urb novacom-git-ff7641193a/src/main.c novacom-git-ff7641193a.b/src/main.c
+--- novacom-git-ff7641193a/src/main.c	2012-03-29 15:35:44.000000000 +0300
++++ novacom-git-ff7641193a.b/src/main.c	2012-04-26 20:05:22.389448640 +0300
+@@ -47,7 +47,6 @@
+ #include "packet.h"
+ #include "packet_struct.h"
+ #include "tcprelay.h"
+-#include "base64.h"
+ #include "cksum.h"
+ 
+ //#define DEBUG_NOVACOM
diff --git a/novaterm b/novaterm
new file mode 100644
index 0000000..7888a61
--- /dev/null
+++ b/novaterm
@@ -0,0 +1,5 @@
+#!/bin/sh
+# 
+# Open a terminal via novacom (shortcut)
+#
+exec /usr/bin/novacom $* -t open tty://0
diff --git a/sources b/sources
index e69de29..b11bce5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7552ce98678a4fdd649e30e4bf28af63  novacom-git-ff7641193a.tar.gz


More information about the scm-commits mailing list