]> git.pld-linux.org Git - packages/muparser.git/commitdiff
- move into proper dir auto/th/muparser-1_30-1
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 5 Oct 2009 20:02:29 +0000 (20:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    muparser.spec -> 1.1

muparser.spec [new file with mode: 0644]

diff --git a/muparser.spec b/muparser.spec
new file mode 100644 (file)
index 0000000..ea1e4d1
--- /dev/null
@@ -0,0 +1,67 @@
+Summary:       A fast math parser library
+Name:          muparser
+Version:       1.30
+Release:       1
+License:       MIT
+Group:         Development/Libraries
+Source0:       http://dl.sourceforge.net/muparser/%{name}_v130.tar.gz
+# Source0-md5: f6b4d79aa0f762fd4bfeb38f47cf1d15
+URL:           http://muparser.sourceforge.net/
+BuildRequires: dos2unix
+Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Many applications require the parsing of mathematical expressions. The
+main objective of this project is to provide a fast and easy way of
+doing this. muParser is an extensible high performance math parser
+library. It is based on transforming an expression into a bytecode and
+precalculating constant parts of it.
+
+%package devel
+Summary:       Development and doc files for %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      pkgconfig
+
+%description devel
+Development files and the documentation
+
+%prep
+%setup -q -n muparser
+
+%build
+%configure \
+       --enable-shared=yes \
+       --enable-debug=no \
+       --enable-samples=no \
+
+%{__make} CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
+mv docs/html .
+dos2unix *.txt
+dos2unix html/sources/*
+dos2unix html/script/*
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       libdir=$RPM_BUILD_ROOT%{_libdir} \
+       prefix=$RPM_BUILD_ROOT%{_prefix}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes.txt Credits.txt License.txt
+%attr(755,root,root) %{_libdir}/libmuparser.so.0.0.0
+%attr(755,root,root) %ghost %{_libdir}/libmuparser.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%doc html
+%{_libdir}/libmuparser.so
+%{_pkgconfigdir}/muparser.pc
+%{_includedir}/*
This page took 0.121477 seconds and 4 git commands to generate.