muparser/muparser.spec
Ismail Dönmez 0e7ce186f5 Accepting request 112912 from home:jengelh:branches:science
- update to new upstream release 2.2.2
* Retrieving all results of expressions made up of comma separate
  subexpressions is now possible with a new Eval overload.
* Callback functions with fixed number of arguments can now have up
  to 10 parameters
* ternary if-then-else operator added (C-like; "x?y:z")
* new intrinsic binary operators: "&&", "||" (logical and, or)
* A new bulkmode allows submitting large arrays as variables to
  compute large numbers of expressions with a single call.- enable
  parallel build

OBS-URL: https://build.opensuse.org/request/show/112912
OBS-URL: https://build.opensuse.org/package/show/science/muparser?expand=0&rev=2
2012-04-07 17:30:56 +00:00

90 lines
2.7 KiB
RPMSpec

#
# spec file for package muparser
#
# Copyright (c) 2012 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/
#
Name: muparser
%define lname libmuparser2
Summary: A math parser library
License: MIT
Group: Productivity/Scientific/Math
Version: 2.2.2
Release: 0
Url: http://muparser.sf.net/
# quilt does not like zips very much. downloaded and repackaged.
Source: %name-%version.tar.bz2
Patch1: muparser-fix-ac.diff
Patch2: muparser-fix-undef.diff
Patch3: muparser-optflags.patch
Patch4: muparser-prereq.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf automake gcc-c++ libtool pkgconfig
%description
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.
%package -n %lname
Summary: Library to evaluate strings as mathematical functions
Group: System/Libraries
%description -n %lname
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.
%package devel
Summary: Development files for muparser
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
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.
%prep
%setup -q
%patch -P 1 -P 2 -P 3 -p1
%build
sh build/autoconf/acregen.sh
%configure --enable-samples --enable-shared
# bakafile not parallel sife - duh
make -j1
%install
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libmuparser.so.2*
%doc License.txt
%files devel
%defattr(-,root,root)
%_includedir/muParser*.h
%_libdir/libmuparser.so
%_libdir/pkgconfig/muparser.pc
%doc Changes.txt
%changelog