packages: muParser/muparser-gcc43.patch (NEW), muParser/muparser.spec (NEW)...

blues blues at pld-linux.org
Mon Oct 5 21:48:04 CEST 2009


Author: blues                        Date: Mon Oct  5 19:48:04 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rename

---- Files affected:
packages/muParser:
   muparser-gcc43.patch (NONE -> 1.1)  (NEW), muparser.spec (NONE -> 1.1)  (NEW), muParser-gcc43.patch (1.1 -> NONE)  (REMOVED), muParser.spec (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/muParser/muparser-gcc43.patch
diff -u /dev/null packages/muParser/muparser-gcc43.patch:1.1
--- /dev/null	Mon Oct  5 21:48:04 2009
+++ packages/muParser/muparser-gcc43.patch	Mon Oct  5 21:47:58 2009
@@ -0,0 +1,22 @@
+diff -up muparser/include/muParserTest.h.gcc43 muparser/include/muParserTest.h
+--- muparser/include/muParserTest.h.gcc43	2008-04-08 17:54:02.000000000 -0400
++++ muparser/include/muParserTest.h	2008-04-08 17:54:18.000000000 -0400
+@@ -26,6 +26,7 @@
+ #ifndef MU_PARSER_TEST_H
+ #define MU_PARSER_TEST_H
+ 
++#include <cstdlib>
+ #include <string>
+ #include <numeric> // for accumulate
+ #include "muParser.h"
+diff -up muparser/src/muParserTest.cpp.gcc43 muparser/src/muParserTest.cpp
+--- muparser/src/muParserTest.cpp.gcc43	2008-04-08 17:52:56.000000000 -0400
++++ muparser/src/muParserTest.cpp	2008-04-08 17:53:53.000000000 -0400
+@@ -25,6 +25,7 @@
+ 
+ #include "muParserTest.h"
+ 
++#include <cstdlib>
+ #include <cstdio>
+ #include <cmath>
+ #include <iostream>

================================================================
Index: packages/muParser/muparser.spec
diff -u /dev/null packages/muParser/muparser.spec:1.1
--- /dev/null	Mon Oct  5 21:48:04 2009
+++ packages/muParser/muparser.spec	Mon Oct  5 21:47:58 2009
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+Summary:	A fast math parser library
+Name:		muparser
+Version:	1.28
+Release:	0.1
+License:	MIT
+Group:		Development/Libraries
+Source0:	http://dl.sourceforge.net/muparser/%{name}_v128.tar.gz
+Patch0:		%{name}-gcc43.patch
+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
+%patch0 -p1
+
+%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}/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/10/05 19:47:58  blues
+- rename
+
================================================================


More information about the pld-cvs-commit mailing list