diff --git a/README.md b/README.md index 2ce9aea..621ee9a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # muparser +Fast Math Parser library. + diff --git a/muparser.spec b/muparser.spec new file mode 100644 index 0000000..4d64546 --- /dev/null +++ b/muparser.spec @@ -0,0 +1,77 @@ +Name: muparser +Version: 2.3.2 +Release: 1mamba +Summary: Fast Math Parser library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://beltoforion.de/en/muparser/ +Source: https://github.com/beltoforion/muparser.git/v%{version}/muparser-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +BuildRequires: libgomp-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Fast Math Parser library. + +%package -n lib%{name} +Group: System/Libraries +Summary: Fast Math Parser library + +%description -n lib%{name} +Fast Math Parser library. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libmuparser.so.* +%doc License.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/muParser*.h +%{_libdir}/libmuparser.so +%{_libdir}/pkgconfig/muparser.pc +%doc README.rst + + +%changelog +* Mon Nov 09 2020 Silvan Calarco 2.3.2-1mamba +- package created using the webbuild interface