OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 22-Sep-2008 08:50:31 Branch: HEAD Handle: 2008092207503100 Added files: openpkg-src/seed7 seed7.patch seed7.spec Log: new package: seed7 05.20080921 (Seed7 Programming Language) Summary: Revision Changes Path 1.1 +25 -0 openpkg-src/seed7/seed7.patch 1.1 +97 -0 openpkg-src/seed7/seed7.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/seed7/seed7.patch ============================================================================ $ cvs diff -u -r0 -r1.1 seed7.patch --- /dev/null 2008-09-22 08:50:17 +0200 +++ seed7.patch 2008-09-22 08:50:31 +0200 @@ -0,0 +1,25 @@ +Index: src/makefile +--- src/makefile.orig 2008-09-21 22:36:27 +0200 ++++ src/makefile 2008-09-22 08:47:22 +0200 +@@ -4,10 +4,10 @@ + # make + # If you are under windows you should use MinGW with mk_mingw.mak, mk_nmake.mak or mk_msys.mak instead. + +-# CFLAGS = ++CFLAGS = + # CFLAGS = -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith + # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith +-CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith ++# CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith + # CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith + # CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall + # CFLAGS = -O2 -funroll-loops -Wall -pg +@@ -179,7 +179,7 @@ + echo "#define SEED7_LIB \"`pwd`/$(SEED7_LIB)\"" >> version.h + echo "#define COMP_DATA_LIB \"`pwd`/$(COMP_DATA_LIB)\"" >> version.h + echo "#define COMPILER_LIB \"`pwd`/$(COMPILER_LIB)\"" >> version.h +- cd ../lib; echo "#define SEED7_LIBRARY" \"`pwd`\" >> ../src/version.h; cd ../src ++ cd ../lib; echo "#define SEED7_LIBRARY" \"$(SEED7_LIBRARY)\" >> ../src/version.h; cd ../src + + hi.o: hi.c + $(CC) $(CFLAGS) -c hi.c @@ . patch -p0 <<'@@ .' Index: openpkg-src/seed7/seed7.spec ============================================================================ $ cvs diff -u -r0 -r1.1 seed7.spec --- /dev/null 2008-09-22 08:50:17 +0200 +++ seed7.spec 2008-09-22 08:50:31 +0200 @@ -0,0 +1,97 @@ +## +## seed7.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 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 version +%define V_opkg 05.20080921 +%define V_dist 05_20080921 + +# package information +Name: seed7 +Summary: Seed7 Programming Language +URL: http://www.seed7.org/ +Vendor: Thomas Mertes +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Language +License: LGPL +Version: %{V_opkg} +Release: 20080922 + +# list of sources +Source0: http://switch.dl.sourceforge.net/seed7/seed7_%{V_dist}.tgz +Patch0: seed7.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, make +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: X11, ncurses +PreReq: X11, ncurses +AutoReq: no +AutoReqProv: no + +%description + Seed7 is an extensible general purpose programming language. It is + a higher level language compared to Ada, C/C++ and Java. Its major + features include: user defined statements and operators, abstract + data types, templates without special syntax, OO with interfaces and + multiple dispatch, statically typed, interpreted or compiled, and + portability. + +%track + prog seed7 = { + version = %{version} + url = http://prdownloads.sourceforge.net/seed7/ + regex = seed7_(\d+_\d+)\.tgz + } + +%prep + %setup -q -n seed7 + %patch -p0 + +%build + cd src + %{l_make} %{l_mflags} \ + CFLAGS="%{l_cflags} %{l_cppflags} -I`%{l_rc} --query x11_incdir`" \ + LFLAGS="%{l_ldflags} -L`%{l_rc} --query x11_libdir`" \ + SEED7_LIBRARY="%{l_prefix}/lib/seed7" \ + depend hi + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/lib/seed7 + %{l_shtool} install -c -s -m 755 \ + src/hi $RPM_BUILD_ROOT%{l_prefix}/bin/hi + %{l_shtool} install -c -m 644 \ + lib/*.s7i $RPM_BUILD_ROOT%{l_prefix}/lib/seed7/ + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org