commit 549ab4048bf4ba0fbe4450ded3d026b5aea374f62af4b8bf4f1a3240f66f052c Author: Werner Hoch Date: Wed Nov 10 18:35:35 2010 +0000 Accepting request 52748 from home:aeszter ok. OBS-URL: https://build.opensuse.org/request/show/52748 OBS-URL: https://build.opensuse.org/package/show/science/muparser?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libmuparser0.changes b/libmuparser0.changes new file mode 100644 index 0000000..4f61146 --- /dev/null +++ b/libmuparser0.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Wed Nov 10 19:00:00 CET 2010 - aeszter@gwdg.de + +- update to 1.34 + +Tue Nov 17 19:00:00 CET 2009 - aeszter@gwdg.de + +- fix parallel build + +------------------------------------------------------------------- +Sun Aug 30 21:12:08 CEST 2009 - lars@linux-schulserver.de + +- build for openSUSE-Education + +------------------------------------------------------------------- +Fri Apr 3 00:00:00 CEST 2009 - uli@suse.de + +- initial package + diff --git a/libmuparser0.spec b/libmuparser0.spec new file mode 100644 index 0000000..8b246a5 --- /dev/null +++ b/libmuparser0.spec @@ -0,0 +1,98 @@ +# norootforbuild + +Name: libmuparser0 +Summary: A fast math parser library +Version: 1.34 +Release: 0 +License: MIT +Group: Productivity/Scientific/Math +Source: muparser_v134.tar.bz2 +#Patch1: muparser-destdir.patch +Patch2: muparser-optflags.patch +#Patch3: muparser-version.patch +Patch4: muparser-prereq.patch +BuildRequires: gcc-c++ +%if 0%{?suse_version} +BuildRequires: pkg-config +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Many applications require the parsing of mathematical expressions. The main +objective of this library is to provide a fast and easy way of doing this. +muParser is an extensible high performance math parser library written in +C++. It works by transforming a mathematical expression into bytecode and +precalculating constant parts of the expression. + +The library is written in pure C++ and should compile on every standard +compliant compiler. The parser archive comes with projects for a variety of +platforms. The code runs on 32 bit and 64 bit architechture and has been +tested using MS VC++ V8.0 and GCC V4.2.4. It reportedly works on BCB too. +Code samples are provided in order to help you understand its usage. The +library is open source and distributed under the MIT license. + + +Author: +------- + Ingo Berg + +%package devel +Summary: A fast math parser library (development files) +Group: Development/Libraries/C and C++ +Requires: %name = %version + +%description devel +Development files for %name - the fast parser library. + +You need this package to develop applications using the %name library. + +Author: +------- + Ingo Berg + + +%prep +%setup -n muparser_v134 +#%patch1 -p0 +%patch2 -p1 +#%patch3 -p1 +%patch4 -p1 + +%build +export CXXFLAGS="%optflags" \ +export CPPFLAGS="%optflags" \ +%configure --enable-samples \ + --enable-shared + +make %{?jobs:-j%jobs} + +%install +%makeinstall +mv docs/html . +for file in *.txt $(find html/ -type f); do + if [ -f $file ]; then + chmod 644 $file + sed -i "s| ||" $file + fi +done + +%clean +rm -rf %buildroot + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc Changes.txt Credits.txt License.txt +%_libdir/libmuparser.so.0 +%_libdir/libmuparser.so.0.0.0 + +%files devel +%defattr(-,root,root) +%doc html +%_includedir/muParser*.h +%_libdir/libmuparser.so +%_libdir/pkgconfig/muparser.pc + +%changelog diff --git a/muparser-destdir.patch b/muparser-destdir.patch new file mode 100644 index 0000000..7bab08e --- /dev/null +++ b/muparser-destdir.patch @@ -0,0 +1,13 @@ +--- Makefile.in ++++ Makefile.in +@@ -192,8 +192,8 @@ + all: $(__muParser_lib___depname) $(__muParser_dll___depname) $(__example1___depname) + + install: all $(__install_muParser_lib___depname) $(__install_muParser_lib_headers___depname) $(__install_muParser_dll___depname) $(__install_muParser_dll_headers___depname) +- $(INSTALL_DIR) $(libdir)/pkgconfig +- $(INSTALL_DATA) build/autoconf/muparser.pc $(libdir)/pkgconfig ++ $(INSTALL_DIR) $(DESTDIR)$(libdir)/pkgconfig ++ $(INSTALL_DATA) build/autoconf/muparser.pc $(DESTDIR)$(libdir)/pkgconfig + + uninstall: $(__uninstall_muParser_lib___depname) $(__uninstall_muParser_lib_headers___depname) $(__uninstall_muParser_dll___depname) $(__uninstall_muParser_dll_headers___depname) + diff --git a/muparser-optflags.patch b/muparser-optflags.patch new file mode 100644 index 0000000..d48fb2a --- /dev/null +++ b/muparser-optflags.patch @@ -0,0 +1,13 @@ +--- muparser_v134/Makefile.in.orig 2010-11-10 17:20:25.613034414 +0100 ++++ muparser_v134/Makefile.in 2010-11-10 17:20:46.068784224 +0100 +@@ -104,8 +104,8 @@ + + ### Conditionally set variables: ### + +-@COND_DEPS_TRACKING_0@CXXC = $(CXX) +-@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX) ++@COND_DEPS_TRACKING_0@CXXC = $(CXX) $(CXXFLAGS) ++@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX) $(CXXFLAGS) + @COND_DEBUG_0@DEBUG_BUILD_POSTFIX = + @COND_DEBUG_1@DEBUG_BUILD_POSTFIX = d + @COND_SHARED_0@__muParser_lib___depname = \ diff --git a/muparser-prereq.patch b/muparser-prereq.patch new file mode 100644 index 0000000..179ae9b --- /dev/null +++ b/muparser-prereq.patch @@ -0,0 +1,11 @@ +--- muparser_v134/Makefile.in.orig 2010-11-10 17:20:25.613034414 +0100 ++++ muparser_v134/Makefile.in 2010-11-10 17:23:52.413284145 +0100 +@@ -291,7 +291,7 @@ + @COND_SHARED_1@ rm -f $(DESTDIR)$(prefix)/$$f; \ + @COND_SHARED_1@ done + +-@COND_SAMPLES_1@$(top_builddir)/samples/example1/example1$(EXEEXT): $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname) ++@COND_SAMPLES_1@$(top_builddir)/samples/example1/example1$(EXEEXT): $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname) $(__muParser_dll___depname) + @COND_SAMPLES_1@ $(CXX) -o $@ $(EXAMPLE1_OBJECTS) -L$(top_builddir)/lib -L$(srcdir)/lib $(LDFLAGS) -lmuparser$(DEBUG_BUILD_POSTFIX) $(LIBS) + @COND_SAMPLES_1@ + @COND_SAMPLES_1@ $(__example1___mac_setfilecmd) diff --git a/muparser-version.patch b/muparser-version.patch new file mode 100644 index 0000000..a4560c5 --- /dev/null +++ b/muparser-version.patch @@ -0,0 +1,77 @@ +Index: muparser/configure +=================================================================== +--- muparser.orig/configure ++++ muparser/configure +@@ -1,6 +1,6 @@ + #! /bin/sh + # Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.60 for muParser 1.27. ++# Generated by GNU Autoconf 2.60 for muParser 1.30. + # + # Report bugs to . + # +@@ -559,8 +559,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} + # Identity of this package. + PACKAGE_NAME='muParser' + PACKAGE_TARNAME='muparser' +-PACKAGE_VERSION='1.27' +-PACKAGE_STRING='muParser 1.27' ++PACKAGE_VERSION='1.30' ++PACKAGE_STRING='muParser 1.30' + PACKAGE_BUGREPORT='frm@users.sourceforge.net' + + ac_subst_vars='SHELL +@@ -1212,7 +1212,7 @@ if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +-\`configure' configures muParser 1.27 to adapt to many kinds of systems. ++\`configure' configures muParser 1.30 to adapt to many kinds of systems. + + Usage: $0 [OPTION]... [VAR=VALUE]... + +@@ -1278,7 +1278,7 @@ fi + + if test -n "$ac_init_help"; then + case $ac_init_help in +- short | recursive ) echo "Configuration of muParser 1.27:";; ++ short | recursive ) echo "Configuration of muParser 1.30:";; + esac + cat <<\_ACEOF + +@@ -1368,7 +1368,7 @@ fi + test -n "$ac_init_help" && exit $ac_status + if $ac_init_version; then + cat <<\_ACEOF +-muParser configure 1.27 ++muParser configure 1.30 + generated by GNU Autoconf 2.60 + + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +@@ -1382,7 +1382,7 @@ cat >config.log <<_ACEOF + This file contains any messages produced by compilers while + running configure, to aid debugging if configure makes a mistake. + +-It was created by muParser $as_me 1.27, which was ++It was created by muParser $as_me 1.30, which was + generated by GNU Autoconf 2.60. Invocation command line was + + $ $0 $@ +@@ -6629,7 +6629,7 @@ exec 6>&1 + # report actual input values of CONFIG_FILES etc. instead of their + # values after options handling. + ac_log=" +-This file was extended by muParser $as_me 1.27, which was ++This file was extended by muParser $as_me 1.30, which was + generated by GNU Autoconf 2.60. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES +@@ -6672,7 +6672,7 @@ Report bugs to ." + _ACEOF + cat >>$CONFIG_STATUS <<_ACEOF + ac_cs_version="\\ +-muParser config.status 1.27 ++muParser config.status 1.30 + configured by $0, generated by GNU Autoconf 2.60, + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" + diff --git a/muparser_v134.tar.bz2 b/muparser_v134.tar.bz2 new file mode 100644 index 0000000..053c5b8 --- /dev/null +++ b/muparser_v134.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f5c0905307a31e01d582c3298232ca8b6de3adf40e144f0a19cd39bf8ba3c95 +size 942360