Add rpm packaging
authorWonYoung, Choi <wy80.choi@samsung.com>
Fri, 14 Oct 2011 05:26:36 +0000 (14:26 +0900)
committerWonYoung, Choi <wy80.choi@samsung.com>
Fri, 14 Oct 2011 05:26:36 +0000 (14:26 +0900)
Change-Id: I5ebf942fab20107c1a4e2195aa44f71f0b0740bd

packaging/no-doc.patch [new file with mode: 0644]
packaging/ragel.spec [new file with mode: 0644]

diff --git a/packaging/no-doc.patch b/packaging/no-doc.patch
new file mode 100644 (file)
index 0000000..6227025
--- /dev/null
@@ -0,0 +1,11 @@
+Index: ragel-6.6/Makefile.am
+===================================================================
+--- ragel-6.6.orig/Makefile.am
++++ ragel-6.6/Makefile.am
+@@ -1,5 +1,5 @@
+-SUBDIRS = ragel doc
++SUBDIRS = ragel 
+ DIST_SUBDIRS = $(SUBDIRS) aapl contrib examples test
+ dist_doc_DATA = CREDITS ChangeLog
diff --git a/packaging/ragel.spec b/packaging/ragel.spec
new file mode 100644 (file)
index 0000000..41de054
--- /dev/null
@@ -0,0 +1,36 @@
+Name:       ragel
+Summary:    Ragel
+Version:    6.6
+Release:    1
+Group:      TO_BE/FILLED_IN
+License:    TO BE FILLED IN
+Source0:    %{name}-%{version}.tar.gz
+Patch0:  no-doc.patch
+
+
+%description
+
+
+%prep
+%setup -q 
+%patch0 -p1
+
+
+%build
+./autogen.sh
+./configure --prefix=%{_prefix}
+
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+
+%files
+/usr/bin/ragel
+/usr/share/doc/ragel/CREDITS
+/usr/share/doc/ragel/ChangeLog
+