%global majorversion 4 %global minorversion 5 %global patchversion 2 Name: fparser Version: %{majorversion}.%{minorversion}.%{patchversion} Release: 32%{?dist} Summary: Function parser library for C++ License: LGPL-3.0-only URL: http://warp.povusers.org/FunctionParser/ # Revived in this Copr for f45 and rawhide only: Fedora retired fparser after f44 # (orphaned, dead.package "Orphaned for 6+ weeks"), and CSXCAD and openEMS need it. # Fedora 44 keeps its own build (4.5.2-31), so this is not built for f44; -32 lets an # f44 -> f45 upgrade replace it. Unchanged from the f44 dist-git branch, including # fparser.pc's Cflags pointing one level above the installed headers (openEMS.spec). # Upstream is http://warp.povusers.org/FunctionParser/fparser%%{version}.zip, plain HTTP only, which Copr's # rpkg refuses (curl --proto -all,+https). Fedora's lookaside still serves the same file (md5 as in the # retired dist-git's `sources`). Source0: https://src.fedoraproject.org/repo/pkgs/fparser/fparser%{version}.zip/md5/ce805d2f827f25e61f266e176b8d338d/fparser%{version}.zip BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: make # upstream doesn't provide a build system and won't include this patch Patch0: fparser.autotools.patch Patch1: fparser.includes.patch Patch2: fparser.config.patch %description This C++ library offers a class which can be used to parse and evaluate a mathematical function from a string (which might be for example requested from the user). The syntax of the function string is similar to mathematical expressions written in C/C++. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -c -p1 -n %{name}-%{version} mkdir m4 autoreconf -f -i %build %configure make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT rm $RPM_BUILD_ROOT/%{_libdir}/*.la %files %doc docs/gpl.txt docs/lgpl.txt %{_libdir}/libfparser-%{majorversion}.%{minorversion}.so %files devel %doc docs/fparser.html docs/style.css %{_includedir}/* %{_libdir}/libfparser.so %{_libdir}/pkgconfig/fparser.pc %changelog * Mon Oct 26 2026 Morgan Hough - 4.5.2-32 - Revived from the retired Fedora package (f44 branch, last build 4.5.2-31, unchanged apart from the explicit release, changelog and an HTTPS Source0) for f45 and rawhide, where Fedora no longer ships it; CSXCAD and openEMS build against it.