1 Summary: Library for evaluating mathematical expressions
2 Summary(pl.UTF-8): Biblioteka do obliczania wyrażeń matematycznych
8 Source0: http://ftp.gnu.org/gnu/libmatheval/%{name}-%{version}.tar.gz
9 # Source0-md5: 595420ea60f6ddd75623847f46ca45c4
10 Patch0: %{name}-info.patch
11 Patch1: %{name}-guile2.patch
12 Patch2: %{name}-texinfo.patch
13 URL: http://www.gnu.org/software/libmatheval/
14 BuildRequires: autoconf >= 2.53
15 BuildRequires: automake
17 BuildRequires: flex >= 2.5.33-2
19 BuildRequires: gettext-tools
20 BuildRequires: guile-devel
21 BuildRequires: libtool
22 BuildRequires: texinfo
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 GNU libmatheval is a library which contains several procedures that
27 make it possible to create an in-memory tree from the string
28 representation of a mathematical function over single or multiple
29 variables. This tree can be used later to evaluate a function for
30 specified variable values, to create a corresponding tree for the
31 function derivative over a specified variable, or to write a textual
32 tree representation to a specified string. The library exposes C and
33 Fortran 77 interfaces.
35 %description -l pl.UTF-8
36 GNU libmatheval to biblioteka zawierająca różne procedury
37 umożliwiające tworzenie w pamięci drzew ze znakowej reprezentacji
38 funkcji matematycznych jednej lub wielu zmiennych. Drzewo może być
39 później użyte do obliczenia wartości funkcji dla podanych wartości
40 parametrów, stworzenia drzewa dla pochodnej funkcji po danej zmiennej
41 lub zapisania tekstowej reprezentacji drzewa do podanego łańcucha.
42 Biblioteka udostępnia interfejsy dla C i Fortranu 77.
45 Summary: Header files for libmatheval library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmatheval
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
53 Header files for libmatheval library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki libmatheval.
59 Summary: Static libmatheval library
60 Summary(pl.UTF-8): Statyczna biblioteka libmatheval
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static libmatheval library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libmatheval.
77 cp -f /usr/share/gettext/config.rpath config
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
98 %post devel -p /sbin/postshell
99 -/usr/sbin/fix-info-dir -c %{_infodir}
101 %postun devel -p /sbin/postshell
102 -/usr/sbin/fix-info-dir -c %{_infodir}
105 %defattr(644,root,root,755)
106 %doc AUTHORS NEWS README THANKS
107 %attr(755,root,root) %{_libdir}/libmatheval.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libmatheval.so.1
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libmatheval.so
113 %{_libdir}/libmatheval.la
114 %{_includedir}/matheval.h
115 %{_pkgconfigdir}/libmatheval.pc
116 %{_infodir}/libmatheval.info*
119 %defattr(644,root,root,755)
120 %{_libdir}/libmatheval.a