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