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