]> git.pld-linux.org Git - packages/muparser.git/blame - muparser.spec
- move into proper dir
[packages/muparser.git] / muparser.spec
CommitLineData
67935afd
PG
1Summary: A fast math parser library
2Name: muparser
3Version: 1.30
4Release: 1
5License: MIT
6Group: Development/Libraries
7Source0: http://dl.sourceforge.net/muparser/%{name}_v130.tar.gz
8# Source0-md5: f6b4d79aa0f762fd4bfeb38f47cf1d15
9URL: http://muparser.sourceforge.net/
10BuildRequires: dos2unix
11Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14Many applications require the parsing of mathematical expressions. The
15main objective of this project is to provide a fast and easy way of
16doing this. muParser is an extensible high performance math parser
17library. It is based on transforming an expression into a bytecode and
18precalculating constant parts of it.
19
20%package devel
21Summary: Development and doc files for %{name}
22Group: Development/Libraries
23Requires: %{name} = %{version}-%{release}
24Requires: pkgconfig
25
26%description devel
27Development 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}
39mv docs/html .
40dos2unix *.txt
41dos2unix html/sources/*
42dos2unix html/script/*
43
44%install
45rm -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
54rm -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.124994 seconds and 4 git commands to generate.