]>
Commit | Line | Data |
---|---|---|
1 | Summary: A fast math parser library | |
2 | Summary(pl.UTF-8): Biblioteka szybkiego analizatora matematycznego | |
3 | Name: muparser | |
4 | Version: 2.2.0 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/muparser/%{name}_v2_2_0.zip | |
9 | # Source0-md5: 27024148b389b98f1821252a7ba87b19 | |
10 | URL: http://muparser.sourceforge.net/ | |
11 | BuildRequires: dos2unix | |
12 | BuildRequires: libstdc++-devel | |
13 | BuildRequires: unzip | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
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 | ||
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 | ||
30 | %package devel | |
31 | Summary: Development and doc files for muParser library | |
32 | Summary(pl.UTF-8): Pliki programistyczne i dokumentacja do biblioteki muParser | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | Requires: libstdc++-devel | |
36 | ||
37 | %description devel | |
38 | Development and doc files for muParser library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki programistyczne i dokumentacja do biblioteki muParser. | |
42 | ||
43 | %prep | |
44 | %setup -q -n muparser_v2_2_0 | |
45 | ||
46 | %build | |
47 | %configure \ | |
48 | --disable-debug \ | |
49 | --disable-samples \ | |
50 | --enable-shared | |
51 | ||
52 | %{__make} \ | |
53 | CPPFLAGS="%{rpmcppflags}" \ | |
54 | CXXFLAGS="%{rpmcxxflags}" | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc Changes.txt License.txt | |
71 | %attr(755,root,root) %{_libdir}/libmuparser.so.*.*.* | |
72 | %attr(755,root,root) %ghost %{_libdir}/libmuparser.so.2 | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %doc docs/html/* | |
77 | %attr(755,root,root) %{_libdir}/libmuparser.so | |
78 | %{_includedir}/muParser*.h | |
79 | %{_pkgconfigdir}/muparser.pc |