]>
Commit | Line | Data |
---|---|---|
67935afd | 1 | Summary: A fast math parser library |
24b76bce | 2 | Summary(pl.UTF-8): Biblioteka szybkiego analizatora matematycznego |
67935afd | 3 | Name: muparser |
53e2a597 WF |
4 | Version: 2.2.5 |
5 | Release: 1 | |
67935afd | 6 | License: MIT |
24b76bce | 7 | Group: Libraries |
53e2a597 WF |
8 | Source0: https://github.com/beltoforion/muparser/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 02dae671aa5ad955fdcbcd3fee313fb7 | |
10 | URL: http://muparser.beltoforion.de/ | |
7c3beef7 | 11 | BuildRequires: libstdc++-devel |
20b21927 | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67935afd PG |
13 | |
14 | %description | |
15 | Many applications require the parsing of mathematical expressions. The | |
16 | main objective of this project is to provide a fast and easy way of | |
17 | doing this. muParser is an extensible high performance math parser | |
18 | library. It is based on transforming an expression into a bytecode and | |
19 | precalculating constant parts of it. | |
20 | ||
24b76bce JB |
21 | %description -l pl.UTF-8 |
22 | Wiele aplikacji wymaga analizowania wyrażeń matematycznych. Głównym | |
23 | celem tego projektu jest zapewnienie szybkiego i wygodnego sposobu | |
24 | wykonywania tego zadania. muParser to bardzo wydajna, rozszerzalna | |
25 | biblioteka analizatora matematycznego. Opiera się na przekształcaniu | |
26 | wyrażenia na bajtkod oraz wstępnym obliczaniu jego stałych części. | |
27 | ||
67935afd | 28 | %package devel |
24b76bce JB |
29 | Summary: Development and doc files for muParser library |
30 | Summary(pl.UTF-8): Pliki programistyczne i dokumentacja do biblioteki muParser | |
67935afd PG |
31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
7c3beef7 | 33 | Requires: libstdc++-devel |
67935afd PG |
34 | |
35 | %description devel | |
24b76bce JB |
36 | Development and doc files for muParser library. |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki programistyczne i dokumentacja do biblioteki muParser. | |
67935afd PG |
40 | |
41 | %prep | |
53e2a597 | 42 | %setup -q |
67935afd PG |
43 | |
44 | %build | |
45 | %configure \ | |
7c3beef7 JB |
46 | --disable-debug \ |
47 | --disable-samples \ | |
48 | --enable-shared | |
67935afd | 49 | |
24b76bce | 50 | %{__make} \ |
7c3beef7 JB |
51 | CPPFLAGS="%{rpmcppflags}" \ |
52 | CXXFLAGS="%{rpmcxxflags}" | |
67935afd PG |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
7c3beef7 | 56 | |
67935afd | 57 | %{__make} install \ |
7c3beef7 | 58 | DESTDIR=$RPM_BUILD_ROOT |
67935afd | 59 | |
67935afd PG |
60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
24b76bce JB |
63 | %post -p /sbin/ldconfig |
64 | %postun -p /sbin/ldconfig | |
65 | ||
67935afd PG |
66 | %files |
67 | %defattr(644,root,root,755) | |
7c3beef7 JB |
68 | %doc Changes.txt License.txt |
69 | %attr(755,root,root) %{_libdir}/libmuparser.so.*.*.* | |
70 | %attr(755,root,root) %ghost %{_libdir}/libmuparser.so.2 | |
67935afd PG |
71 | |
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
53e2a597 | 74 | #%doc docs/html/* |
24b76bce | 75 | %attr(755,root,root) %{_libdir}/libmuparser.so |
7c3beef7 | 76 | %{_includedir}/muParser*.h |
24b76bce | 77 | %{_pkgconfigdir}/muparser.pc |