Search
j0ke.net Open Build Service
>
Projects
>
devel
:
tools
:
building
>
ragel5
> ragel5.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ragel5.spec of Package ragel5
# # spec file for package ragel5 (Version 5.25) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: ragel5 Version: 5.25 Release: 0 %define pkg_name ragel # License: GPL Group: Development/Languages/C and C++ # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: docbook-utils gcc-c++ gcc-objc ghostscript-fonts-std ghostscript-library gperf ruby-devel transfig vim Requires: vim Provides: %{pkg_name} = %{name}-%{release} Conflicts: ragel6 Obsoletes: ragel < %{version} # Url: http://www.cs.queensu.ca/home/thurston/ragel/ Source: http://www.cs.queensu.ca/home/thurston/ragel/%{pkg_name}-%{version}.tar.bz2 Source1: http://www.cs.queensu.ca/home/thurston/ragel/ragel-guide-%{version}.pdf Patch: ragel-5.25_gcc43.patch # Summary: Ragel State Machine Compiler %description Ragel compiles finite state machines from regular languages into executable C, C++, Objective-C, or D code. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language. Code embedding is done using inline operators that do not disrupt the regular language syntax. Authors: --------- Adrian Thurston %prep %setup -n %{pkg_name}-%{version} %patch %build %configure %{__make} %{__make} -C doc/ %check %{__make} -C test/ %install perl -p -i -e \ 's|../ragel/ragel|%{_bindir}/ragel|g; \ s|../rlgen-cd/rlgen-cd|%{_bindir}/rlgen-cd|g; \ s| \$\(RAGEL\) \$\(RLCODEGEN\)||g;' examples/Makefile %makeinstall \ prefix=%{buildroot}%{_prefix} %makeinstall -C doc/ \ docdir=%{buildroot}%{_docdir}/%{name}/ \ mandir=%{buildroot}%{_mandir}/ %{__install} -m 0644 COPYING CREDITS README TODO %{S:1} \ %{buildroot}%{_docdir}/%{name}/ %{__cp} -rv examples/ %{buildroot}%{_docdir}/%{name}/ %{__install} -D -m 0644 ragel.vim %{buildroot}%{_datadir}/vim/current/syntax/ragel.vim %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/ragel %{_bindir}/rlgen-cd %{_bindir}/rlgen-dot %{_bindir}/rlgen-java %{_bindir}/rlgen-ruby %{_mandir}/man1/ragel.1* %{_mandir}/man1/rlgen-cd.1* %{_mandir}/man1/rlgen-dot.1* %{_mandir}/man1/rlgen-java.1* %{_mandir}/man1/rlgen-ruby.1* %doc %{_docdir}/%{name}/ %{_datadir}/vim/current/syntax/ragel.vim %changelog