[jj] Initial import (#831705)

Petr Šabata psabata at fedoraproject.org
Wed Jul 11 07:51:32 UTC 2012


commit 1bab3edb06f3f8d70cdd19083e3f97e7740825d1
Author: Petr Šabata <contyk at redhat.com>
Date:   Wed Jul 11 09:50:07 2012 +0200

    Initial import (#831705)

 .gitignore          |    1 +
 jj-1-optflags.patch |   11 +++++++++++
 jj.spec             |   41 +++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 4 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..55e2687 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jj-1.tar.gz
diff --git a/jj-1-optflags.patch b/jj-1-optflags.patch
new file mode 100644
index 0000000..f9ff7c4
--- /dev/null
+++ b/jj-1-optflags.patch
@@ -0,0 +1,11 @@
+diff --git a/Makefile b/Makefile
+index a07911b..cf43e46 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+ # Makefile for jj
+-cflags = -Wall\
++cflags = $(CFLAGS)\
+ 	`pkg-config --cflags loudmouth-1.0`\
+ 
+ libs = 	`pkg-config --libs loudmouth-1.0`\
diff --git a/jj.spec b/jj.spec
new file mode 100644
index 0000000..42e5046
--- /dev/null
+++ b/jj.spec
@@ -0,0 +1,41 @@
+Name:           jj
+Version:        1
+Release:        2%{?dist}
+Summary:        A FIFO and file-system based Jabber/XMPP client
+Group:          Applications/Internet
+License:        GPLv3
+URL:            http://23.fi/%{name}/
+Source0:        http://23.fi/%{name}/%{name}-%{version}.tar.gz
+# Utilize CFLAGS
+# https://github.com/Petteri/jj/pull/2
+Patch1:         %{name}-1-optflags.patch
+BuildRequires:  loudmouth-devel
+BuildRequires:  glib2-devel
+
+%description
+%{name} is more tool than traditional instant messenger client.  It can
+be easily extended with normal UNIX tools. It is perfect for bots and
+notifications.  Interaction is done by writing and reading files from
+the server directory which %{name} creates.
+
+%prep
+%setup -q -n %{name}
+%patch1 -p1 -b .optflags
+
+%build
+make %{?_smp_mflags} CFLAGS="%{optflags}"
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+install -p -m755 %{name} %{buildroot}%{_bindir}/%{name}
+
+%files
+%doc README gpl.txt 
+%{_bindir}/%{name}
+
+%changelog
+* Tue Jul 03 2012 Petr Šabata <contyk at redhat.com> - 1-2
+- Makefile patch modified, thanks Dan (#831705)
+
+* Wed Jun 13 2012 Petr Šabata <contyk at redhat.com> - 1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..ad18a3e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a0d8c60d0bd4333a7aeb7d8d58b88bf  jj-1.tar.gz


More information about the scm-commits mailing list