]> git.pld-linux.org Git - packages/muparser.git/blame - muparser.spec
- updated to 2.3.4 (includes security fixes); license is 2-clause BSD; fixed dirs...
[packages/muparser.git] / muparser.spec
CommitLineData
8eae8158
JB
1#
2# Conditional build:
3%bcond_without apidocs # API documentation
09e64e19 4%bcond_without openmp # OpenMP support
8eae8158 5#
67935afd 6Summary: A fast math parser library
24b76bce 7Summary(pl.UTF-8): Biblioteka szybkiego analizatora matematycznego
67935afd 8Name: muparser
93f6e737 9Version: 2.3.4
53e2a597 10Release: 1
93f6e737 11License: BSD
24b76bce 12Group: Libraries
8eae8158 13#Source0Download: https://github.com/beltoforion/muparser/releases
53e2a597 14Source0: https://github.com/beltoforion/muparser/archive/v%{version}/%{name}-%{version}.tar.gz
93f6e737 15# Source0-md5: b92180a648be88238008ea01a597ccb9
09e64e19
JB
16URL: https://github.com/beltoforion/muparser
17BuildRequires: cmake >= 3.1.0
8eae8158 18%{?with_apidocs:BuildRequires: doxygen}
09e64e19
JB
19%{?with_openmp:BuildRequires: libgomp-devel}
20BuildRequires: libstdc++-devel >= 6:4.7
93f6e737 21BuildRequires: rpm-build >= 4.6
09e64e19 22BuildRequires: rpmbuild(macros) >= 1.752
8eae8158 23BuildRequires: sed >= 4.0
20b21927 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67935afd
PG
25
26%description
27Many applications require the parsing of mathematical expressions. The
28main objective of this project is to provide a fast and easy way of
29doing this. muParser is an extensible high performance math parser
30library. It is based on transforming an expression into a bytecode and
31precalculating constant parts of it.
32
24b76bce
JB
33%description -l pl.UTF-8
34Wiele aplikacji wymaga analizowania wyrażeń matematycznych. Głównym
35celem tego projektu jest zapewnienie szybkiego i wygodnego sposobu
36wykonywania tego zadania. muParser to bardzo wydajna, rozszerzalna
37biblioteka analizatora matematycznego. Opiera się na przekształcaniu
38wyrażenia na bajtkod oraz wstępnym obliczaniu jego stałych części.
39
67935afd 40%package devel
24b76bce
JB
41Summary: Development and doc files for muParser library
42Summary(pl.UTF-8): Pliki programistyczne i dokumentacja do biblioteki muParser
67935afd
PG
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
7c3beef7 45Requires: libstdc++-devel
67935afd
PG
46
47%description devel
24b76bce
JB
48Development and doc files for muParser library.
49
50%description devel -l pl.UTF-8
51Pliki programistyczne i dokumentacja do biblioteki muParser.
67935afd 52
8eae8158
JB
53%package apidocs
54Summary: API documentation for muParser library
55Summary(pl.UTF-8): Dokumentacja API biblioteki muParser
56Group: Documentation
611651b8 57BuildArch: noarch
8eae8158
JB
58
59%description apidocs
60API documentation for muParser library.
61
62%description apidocs -l pl.UTF-8
63Dokumentacja API biblioteki muParser.
64
67935afd 65%prep
53e2a597 66%setup -q
67935afd 67
8eae8158
JB
68# html/misc/footer.html not present (even in git)
69%{__sed} -i -e '/^HTML_FOOTER .*/s/.*/HTML_FOOTER = /' docs/Doxyfile
70
67935afd 71%build
09e64e19
JB
72install -d build
73cd build
74%cmake .. \
93f6e737
JB
75 -DCMAKE_INSTALL_INCLUDEDIR=include \
76 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
09e64e19
JB
77 %{!?with_openmp:-DENABLE_OPENMP=OFF} \
78 -DENABLE_SAMPLES=OFF
67935afd 79
09e64e19 80%{__make}
67935afd 81
8eae8158 82%if %{with apidocs}
09e64e19 83cd ../docs
8eae8158
JB
84doxygen
85%endif
86
67935afd
PG
87%install
88rm -rf $RPM_BUILD_ROOT
7c3beef7 89
09e64e19 90%{__make} -C build install \
7c3beef7 91 DESTDIR=$RPM_BUILD_ROOT
67935afd 92
67935afd
PG
93%clean
94rm -rf $RPM_BUILD_ROOT
95
24b76bce
JB
96%post -p /sbin/ldconfig
97%postun -p /sbin/ldconfig
98
67935afd
PG
99%files
100%defattr(644,root,root,755)
93f6e737 101%doc CHANGELOG LICENSE README.rst docs/muparser_doc.html
7c3beef7
JB
102%attr(755,root,root) %{_libdir}/libmuparser.so.*.*.*
103%attr(755,root,root) %ghost %{_libdir}/libmuparser.so.2
67935afd
PG
104
105%files devel
106%defattr(644,root,root,755)
24b76bce 107%attr(755,root,root) %{_libdir}/libmuparser.so
7c3beef7 108%{_includedir}/muParser*.h
24b76bce 109%{_pkgconfigdir}/muparser.pc
93f6e737 110%{_libdir}/cmake/muparser
8eae8158
JB
111
112%if %{with apidocs}
113%files apidocs
114%defattr(644,root,root,755)
93f6e737 115%doc docs/html/classdocu/{d?,search,*.css,*.html,*.jpg,*.js,*.png}
8eae8158 116%endif
This page took 0.094128 seconds and 5 git commands to generate.