2 changed files with 112 additions and 0 deletions
@ -0,0 +1,31 @@
|
||||
Index: yyast/Makefile.in
|
||||
--- yyast/Makefile.in.orig 2013-10-17 21:42:34.000000000 +0200
|
||||
+++ yyast/Makefile.in 2013-10-19 00:14:13.142823858 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
test $$am__dry = yes; \
|
||||
}
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
-pkgincludedir = $(includedir)/@PACKAGE@
|
||||
+pkgincludedir = $(includedir)/yyast
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
@@ -295,7 +295,7 @@
|
||||
|
||||
# Do not link against yyast, as yyast was designed to be only linked against a lex & yacc program.
|
||||
yadump_SOURCES = yadump.c
|
||||
-library_includedir = $(includedir)/yyast-$(VERSION)/yyast
|
||||
+library_includedir = $(includedir)/yyast
|
||||
library_include_HEADERS = yyast.h types.h error.h utils.h count.h leaf.h node.h header.h main.h config.h
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = yyast.pc
|
||||
Index: yyast/yyast.pc.in
|
||||
--- yyast/yyast.pc.in.orig 2013-10-15 17:50:10.000000000 +0200
|
||||
+++ yyast/yyast.pc.in 2013-10-19 00:13:28.407817454 +0200
|
||||
@@ -8,5 +8,5 @@
|
||||
Requires:
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lyyast
|
||||
-Cflags: -I${includedir}/yyast-@VERSION@
|
||||
+Cflags: -I${includedir}/yyast
|
||||
|
||||
@ -0,0 +1,81 @@
|
||||
## |
||||
## yyast.spec -- OpenPKG RPM Package Specification |
||||
## Copyright (c) 2000-2013 OpenPKG Foundation e.V. <http://openpkg.net/> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
# package information |
||||
Name: yyast |
||||
Summary: Abstract Syntax Tree (AST) Library for Lex/Yacc |
||||
URL: https://github.com/takev/yyast/ |
||||
Vendor: Take Vos |
||||
Packager: OpenPKG Foundation e.V. |
||||
Distribution: OpenPKG Community |
||||
Class: EVAL |
||||
Group: CompilerCompiler |
||||
License: MIT |
||||
Version: 1.0.2 |
||||
Release: 20131019 |
||||
|
||||
# list of sources |
||||
Source0: https://github.com/takev/yyast/releases/download/v%{version}/yyast-%{version}.tar.gz |
||||
Patch0: yyast.patch |
||||
|
||||
# build information |
||||
BuildPreReq: OpenPKG, openpkg >= 20120101 |
||||
PreReq: OpenPKG, openpkg >= 20120101 |
||||
|
||||
%description |
||||
YYAST is a library which completes Lex and Yacc by adding an |
||||
Abstract Syntax Tree (AST) generator. The saved AST is designed to |
||||
be easily parsed by compilers. |
||||
|
||||
%track |
||||
prog yyast = { |
||||
version = %{version} |
||||
url = https://github.com/takev/yyast/releases |
||||
regex = yyast-(__VER__)\.tar\.gz |
||||
} |
||||
|
||||
%prep |
||||
%setup -q |
||||
%patch -p0 |
||||
|
||||
%build |
||||
CC="%{l_cc}" \ |
||||
CFLAGS="%{l_cflags -O}" \ |
||||
CPPFLAGS="%{l_cppflags}" \ |
||||
LDFLAGS="%{l_ldflags}" \ |
||||
./configure \ |
||||
--prefix=%{l_prefix} \ |
||||
--disable-doxygen-doc \ |
||||
--disable-shared |
||||
%{l_make} %{l_mflags -O} |
||||
|
||||
%install |
||||
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
||||
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/python |
||||
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
|
||||
Loading…
Reference in new issue