]> git.pld-linux.org Git - packages/libmatheval.git/blob - libmatheval.spec
Release: 2
[packages/libmatheval.git] / libmatheval.spec
1 Summary:        Library for evaluating mathematical expressions
2 Summary(pl.UTF-8):      Biblioteka do obliczania wyrażeń matematycznych
3 Name:           libmatheval
4 Version:        1.1.11
5 Release:        2
6 License:        GPL v3+
7 Group:          Libraries
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
16 BuildRequires:  bison
17 BuildRequires:  flex >= 2.5.33-2
18 # for config.rpath
19 BuildRequires:  gettext-tools
20 BuildRequires:  guile-devel
21 BuildRequires:  libtool
22 BuildRequires:  texinfo
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
34
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.
43
44 %package devel
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}
49 # -lfl
50 Requires:       flex
51
52 %description devel
53 Header files for libmatheval library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki libmatheval.
57
58 %package static
59 Summary:        Static libmatheval library
60 Summary(pl.UTF-8):      Statyczna biblioteka libmatheval
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static libmatheval library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libmatheval.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74 %patch2 -p1
75
76 %build
77 cp -f /usr/share/gettext/config.rpath config
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %post   devel -p /sbin/postshell
99 -/usr/sbin/fix-info-dir -c %{_infodir}
100
101 %postun devel -p /sbin/postshell
102 -/usr/sbin/fix-info-dir -c %{_infodir}
103
104 %files
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
109
110 %files devel
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*
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libmatheval.a
This page took 0.089184 seconds and 3 git commands to generate.