From 6e176062d84984a853b8ed052420a18d70113bdb Mon Sep 17 00:00:00 2001 From: "WonYoung, Choi" Date: Fri, 14 Oct 2011 14:26:36 +0900 Subject: [PATCH] Add rpm packaging Change-Id: I5ebf942fab20107c1a4e2195aa44f71f0b0740bd --- packaging/no-doc.patch | 11 +++++++++++ packaging/ragel.spec | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 packaging/no-doc.patch create mode 100644 packaging/ragel.spec diff --git a/packaging/no-doc.patch b/packaging/no-doc.patch new file mode 100644 index 0000000..6227025 --- /dev/null +++ b/packaging/no-doc.patch @@ -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 index 0000000..41de054 --- /dev/null +++ b/packaging/ragel.spec @@ -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 + -- 2.7.4