]> git.pld-linux.org Git - packages/muparser.git/blob - muparser.spec
- move into proper dir
[packages/muparser.git] / muparser.spec
1 Summary:        A fast math parser library
2 Name:           muparser
3 Version:        1.30
4 Release:        1
5 License:        MIT
6 Group:          Development/Libraries
7 Source0:        http://dl.sourceforge.net/muparser/%{name}_v130.tar.gz
8 # Source0-md5:  f6b4d79aa0f762fd4bfeb38f47cf1d15
9 URL:            http://muparser.sourceforge.net/
10 BuildRequires:  dos2unix
11 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 Many applications require the parsing of mathematical expressions. The
15 main objective of this project is to provide a fast and easy way of
16 doing this. muParser is an extensible high performance math parser
17 library. It is based on transforming an expression into a bytecode and
18 precalculating constant parts of it.
19
20 %package devel
21 Summary:        Development and doc files for %{name}
22 Group:          Development/Libraries
23 Requires:       %{name} = %{version}-%{release}
24 Requires:       pkgconfig
25
26 %description devel
27 Development files and the documentation
28
29 %prep
30 %setup -q -n muparser
31
32 %build
33 %configure \
34         --enable-shared=yes \
35         --enable-debug=no \
36         --enable-samples=no \
37
38 %{__make} CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
39 mv docs/html .
40 dos2unix *.txt
41 dos2unix html/sources/*
42 dos2unix html/script/*
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %{__make} install \
47         libdir=$RPM_BUILD_ROOT%{_libdir} \
48         prefix=$RPM_BUILD_ROOT%{_prefix}
49
50 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes.txt Credits.txt License.txt
59 %attr(755,root,root) %{_libdir}/libmuparser.so.0.0.0
60 %attr(755,root,root) %ghost %{_libdir}/libmuparser.so.0
61
62 %files devel
63 %defattr(644,root,root,755)
64 %doc html
65 %{_libdir}/libmuparser.so
66 %{_pkgconfigdir}/muparser.pc
67 %{_includedir}/*
This page took 0.07261 seconds and 4 git commands to generate.