File libmuparser2.spec of Package muparser
# norootforbuild
Name: muparser
%define lname libmuparser2_2_4
Summary: A fast math parser library
Version: 2.2.4
Release: 0
License: MIT
Group: Productivity/Scientific/Math
Source: muparser_v2_2_4.tar.xz
Patch1: muparser-abiversion.diff
Patch2: muparser-optflags.patch
#Patch3: muparser-version.patch
#Patch4: muparser-prereq.patch
BuildRequires: gcc-c++ libtool
BuildRequires: autoconf
BuildRequires: automake
%if 0%{?suse_version}
BuildRequires: pkg-config
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
muParser is an extensible high performance math expression
parser library written in C++. It works by transforming a
mathematical expression into bytecode and precalculating
constant parts of the expression.
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 -n %lname
Summary: A fast math parser library (development files)
Group: System/Libraries
%description -n %lname
muParser is an extensible high performance math expression
parser library written in C++. It works by transforming a
mathematical expression into bytecode and precalculating
constant parts of the expression.
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: %lname = %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_v2_2_4
%patch1 -p1
%patch2 -p1
#%patch3 -p1
#%patch4 -p1
#chmod 777 ./configure
%build
sh build/autoconf/acregen.sh
#export CXXFLAGS="%optflags" \
#export CPPFLAGS="%optflags" \
%configure --disable-samples --enable-shared
make -j1
%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 -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%doc License.txt
%_libdir/libmuparser.so.2*
%files devel
%defattr(-,root,root)
#%doc html
%_includedir/muParser*.h
%_libdir/libmuparser.so
%_libdir/pkgconfig/muparser.pc
%doc Changes.txt
%changelog