]>
Commit | Line | Data |
---|---|---|
67935afd | 1 | Summary: A fast math parser library |
24b76bce | 2 | Summary(pl.UTF-8): Biblioteka szybkiego analizatora matematycznego |
67935afd PG |
3 | Name: muparser |
4 | Version: 1.30 | |
5 | Release: 1 | |
6 | License: MIT | |
24b76bce JB |
7 | Group: Libraries |
8 | Source0: http://downloads.sourceforge.net/muparser/%{name}_v130.tar.gz | |
67935afd PG |
9 | # Source0-md5: f6b4d79aa0f762fd4bfeb38f47cf1d15 |
10 | URL: http://muparser.sourceforge.net/ | |
11 | BuildRequires: dos2unix | |
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} | |
67935afd PG |
33 | |
34 | %description devel | |
24b76bce JB |
35 | Development and doc files for muParser library. |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki programistyczne i dokumentacja do biblioteki muParser. | |
67935afd PG |
39 | |
40 | %prep | |
41 | %setup -q -n muparser | |
42 | ||
43 | %build | |
44 | %configure \ | |
45 | --enable-shared=yes \ | |
46 | --enable-debug=no \ | |
47 | --enable-samples=no \ | |
48 | ||
24b76bce JB |
49 | %{__make} \ |
50 | CXXFLAGS="%{rpmcflags}" | |
67935afd PG |
51 | mv docs/html . |
52 | dos2unix *.txt | |
53 | dos2unix html/sources/* | |
54 | dos2unix html/script/* | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | %{__make} install \ | |
59 | libdir=$RPM_BUILD_ROOT%{_libdir} \ | |
60 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
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) | |
70 | %doc Changes.txt Credits.txt License.txt | |
71 | %attr(755,root,root) %{_libdir}/libmuparser.so.0.0.0 | |
72 | %attr(755,root,root) %ghost %{_libdir}/libmuparser.so.0 | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %doc html | |
24b76bce | 77 | %attr(755,root,root) %{_libdir}/libmuparser.so |
67935afd | 78 | %{_includedir}/* |
24b76bce | 79 | %{_pkgconfigdir}/muparser.pc |