2012-04-07 19:30:56 +02:00
|
|
|
#
|
|
|
|
# spec file for package muparser
|
|
|
|
#
|
2013-01-25 05:22:31 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-04-07 19:30:56 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-11-29 20:04:08 +01:00
|
|
|
|
|
|
|
|
2012-04-07 19:30:56 +02:00
|
|
|
Name: muparser
|
|
|
|
%define lname libmuparser2
|
|
|
|
Summary: A math parser library
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Scientific/Math
|
2013-01-25 05:22:31 +01:00
|
|
|
Version: 2.2.3
|
2012-04-07 19:30:56 +02:00
|
|
|
Release: 0
|
2012-11-29 20:04:08 +01:00
|
|
|
Url: http://muparser.beltoforion.de/
|
2012-04-07 19:30:56 +02:00
|
|
|
|
2013-01-25 05:22:31 +01:00
|
|
|
#DL-URL: http://downloads.sf.net/muparser/muparser_v2_2_3.zip
|
2012-04-07 19:30:56 +02:00
|
|
|
# quilt does not like zips very much. downloaded and repackaged.
|
2013-01-25 05:22:31 +01:00
|
|
|
Source: %name-%version.tar.xz
|
2012-11-29 20:04:08 +01:00
|
|
|
Patch3: muparser-optflags.patch
|
2012-04-07 19:30:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-29 20:04:08 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2013-01-25 05:22:31 +01:00
|
|
|
BuildRequires: xz
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%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
|
2013-01-25 05:22:31 +01:00
|
|
|
%patch -P 3 -p1
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%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
|