From 80f78e0c1db02798d3496df81d3ee0f0345742fa Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Dec 05 2016 11:32:50 +0000 Subject: Update to 7.0.0.9 Signed-off-by: Igor Gnatenko https://bugzilla.redhat.com/show_bug.cgi?id=1382861 --- diff --git a/.gitignore b/.gitignore index cbb1663..e8ade2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /ragel-6.8.tar.gz +/ragel-6.9.tar.gz +/ragel-7.0.0.9.tar.gz diff --git a/ragel.spec b/ragel.spec index e35d28e..92ebf9b 100644 --- a/ragel.spec +++ b/ragel.spec @@ -1,60 +1,88 @@ +%bcond_with bootstrap + Name: ragel -Version: 6.8 -Release: 6%{?dist} +Version: 7.0.0.9 +Release: 1%{?dist} Summary: Finite state machine compiler -Group: Development/Tools -License: GPLv2+ +# aapl/ is the LGPLv2+ +License: GPLv2+ and LGPLv2+ URL: http://www.complang.org/%{name}/ -Source0: http://www.complang.org/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -# for documentation building -BuildRequires: gcc-objc, autoconf, gcc-c++ -Requires: gawk +Source0: https://www.colm.net/files/%{name}/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make +%if %{with bootstrap} +BuildRequires: kelbt +BuildRequires: ragel +%endif +BuildRequires: colm-devel + +# Unfortunately, upstream doesn't exist and not possible to find version +Provides: bundled(aapl) %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. +Ragel compiles executable finite state machines from regular languages. +Ragel targets C, C++ and ASM. 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. -%prep -%setup -q +%package devel +Summary: Development libraries header files for %{name} +Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} -# Pass fedora cflags correctly -sed -i.flags \ - -e '\@^CXXFLAGS=@d' \ - configure{.in,} -touch timestamp -touch -r timestamp \ - aclocal.m4 configure.in configure config.h.in \ - Makefile.in */Makefile.in - -%build -# set the names of the other programming commandline programs -%configure --docdir=%{_docdir}/%{name} RUBY=ruby JAVAC=javac GMCS=gmcs +%description devel +%{summary}. -make %{?_smp_mflags} +%prep +%autosetup +# Do not pollute with docs +sed -i -e "/dist_doc_DATA/d" Makefile.am +# Put headers under subdir +sed -i -e "s/include_HEADERS/pkginclude_HEADERS/g" src/Makefile.am aapl/Makefile.am +%build +autoreconf -vfi +%configure --disable-static +%make_build %install -rm -rf %{buildroot} -make install DESTDIR=%{buildroot} - -%clean -rm -rf %{buildroot} +%make_install +find %{buildroot}%{_libdir} -type f -name '*.la' -print -delete +install -p -m 0644 -D %{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files -%defattr(-,root,root,-) -%doc COPYING ragel.vim CREDITS ChangeLog -%doc doc/ragel-guide.pdf -%{_bindir}/ragel -%{_mandir}/*/* +%license COPYING +%doc CREDITS ChangeLog +#doc doc/ragel-guide.pdf +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* +%{_libdir}/lib%{name}.so.* +%{_libdir}/libfsm.so.* +%dir %{_datadir}/vim +%dir %{_datadir}/vim/vimfiles +%dir %{_datadir}/vim/vimfiles/syntax +%{_datadir}/vim/vimfiles/syntax/%{name}.vim + +%files devel +%{_libdir}/lib%{name}.so +%{_libdir}/libfsm.so +%{_includedir}/%{name}/ %changelog +* Fri Oct 07 2016 Igor Gnatenko - 7.0.0.9-1 +- Fix FTBFS +- Update to 7.0.0.9 +- Trivial fixes in spec + * Thu Feb 04 2016 Fedora Release Engineering - 6.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index da464f7..d2ef53f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1bb39745ac23da449019f9f2cb4b0d01 ragel-6.8.tar.gz +29a4d8ced2f229966317d123a2d5af8a ragel-7.0.0.9.tar.gz