2012-04-07 19:30:56 +02:00
|
|
|
#
|
|
|
|
# spec file for package muparser
|
|
|
|
#
|
2022-01-22 22:13:16 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2019-07-06 12:38:54 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-07 19:30:56 +02:00
|
|
|
#
|
2012-11-29 20:04:08 +01:00
|
|
|
|
|
|
|
|
2012-04-07 19:30:56 +02:00
|
|
|
Name: muparser
|
2022-11-15 20:32:16 +01:00
|
|
|
%define lname libmuparser2_3_4
|
|
|
|
Version: 2.3.4
|
2015-02-03 00:54:01 +01:00
|
|
|
Release: 0
|
2012-04-07 19:30:56 +02:00
|
|
|
Summary: A math parser library
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Scientific/Math
|
2019-08-24 18:24:24 +02:00
|
|
|
URL: http://muparser.beltoforion.de/
|
2022-11-15 20:32:16 +01:00
|
|
|
Source: https://github.com/beltoforion/muparser/archive/v%version.tar.gz
|
2020-06-17 14:54:36 +02:00
|
|
|
Patch0: muparser-abiversion.diff
|
2016-11-27 18:50:43 +01:00
|
|
|
Source1: baselibs.conf
|
2020-06-17 14:54:36 +02:00
|
|
|
BuildRequires: cmake
|
2012-11-29 20:04:08 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2015-02-03 00:54:01 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%description
|
2019-07-06 12:38:54 +02:00
|
|
|
muParser is an extensible math parser library written in C++. It
|
|
|
|
works by transforming a mathematical expression into bytecode and
|
2012-04-07 19:30:56 +02:00
|
|
|
precalculating constant parts of the expression.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library to evaluate strings as mathematical functions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2019-07-06 12:38:54 +02:00
|
|
|
muParser is an extensible math parser library written in C++. It
|
|
|
|
works by transforming a mathematical expression into bytecode and
|
2012-04-07 19:30:56 +02:00
|
|
|
precalculating constant parts of the expression.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for muparser
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
2019-07-06 12:38:54 +02:00
|
|
|
muParser is an extensible math parser library written in C++. It
|
|
|
|
works by transforming a mathematical expression into bytecode and
|
2012-04-07 19:30:56 +02:00
|
|
|
precalculating constant parts of the expression.
|
|
|
|
|
|
|
|
%prep
|
2022-11-15 20:32:16 +01:00
|
|
|
%autosetup -p1
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%build
|
2022-11-15 20:32:16 +01:00
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX="%_prefix"
|
2020-06-17 14:54:36 +02:00
|
|
|
%cmake_build
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%install
|
2020-06-17 14:54:36 +02:00
|
|
|
%cmake_install
|
2012-04-07 19:30:56 +02:00
|
|
|
|
2015-02-03 00:54:01 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-04-07 19:30:56 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libmuparser.so.2*
|
2022-01-22 22:13:16 +01:00
|
|
|
%license LICENSE
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/muParser*.h
|
|
|
|
%_libdir/libmuparser.so
|
2022-01-22 22:13:16 +01:00
|
|
|
%_libdir/cmake/
|
2012-04-07 19:30:56 +02:00
|
|
|
%_libdir/pkgconfig/muparser.pc
|
2022-01-22 22:13:16 +01:00
|
|
|
%doc CHANGELOG
|
2012-04-07 19:30:56 +02:00
|
|
|
|
|
|
|
%changelog
|