[mathex] Initial import

Sandro Mani smani at fedoraproject.org
Wed Jun 18 17:49:29 UTC 2014


commit 5b22679d76fc8052b9a1814168bb676191d06f2b
Author: Sandro Mani <manisandro at gmail.com>
Date:   Wed Jun 18 19:48:55 2014 +0200

    Initial import

 .gitignore     |    1 +
 CMakeLists.txt |   20 +++++++++++++++++
 mathex.spec    |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 4 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2719762 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mathex-0.3-b.zip
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..7836db2
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Set  the minimum  required version  of cmake  for a  project.
+cmake_minimum_required(VERSION 2.6)
+project(MATHEX)
+
+add_library(mathex SHARED mathex.cpp)
+set_target_properties(mathex PROPERTIES VERSION 0.0.0 SOVERSION 0)
+
+add_executable(curvetest curvetest.cpp)
+add_executable(tabletest tabletest.cpp)
+add_executable(userfunctest userfunctest.cpp)
+add_executable(inttest inttest.cpp)
+
+link_directories (${MATHEX_BINARY_DIR})
+target_link_libraries(curvetest mathex) 
+target_link_libraries(tabletest mathex) 
+target_link_libraries(userfunctest mathex) 
+target_link_libraries(inttest mathex) 
+
+install(TARGETS mathex LIBRARY DESTINATION lib${LIB_SUFFIX})
+install(FILES mathex.h DESTINATION include)
diff --git a/mathex.spec b/mathex.spec
new file mode 100644
index 0000000..24e8009
--- /dev/null
+++ b/mathex.spec
@@ -0,0 +1,64 @@
+Name:           mathex
+Version:        0.3b
+Release:        2%{?dist}
+Summary:        C++ library to parse/evaluate mathematical expressions
+
+# Exceptions apply to static linking, see license.txt
+License:        LGPLv2+ with exceptions
+URL:            http://sscilib.sourceforge.net/
+Source0:        http://sourceforge.net/projects/sscilib/files/%{name}/%{name}-0.3-b.zip
+Source1:        CMakeLists.txt
+
+BuildRequires:  cmake
+
+%description
+C++ library to parse/evaluate mathematical expressions.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -n %{name}
+cp %{SOURCE1} .
+sed -i 's|\r||g' changelog.txt license.txt lesser.txt
+
+
+%build
+mkdir build
+(
+cd build
+%cmake ..
+make %{?_smp_mflags}
+)
+
+
+%install
+%make_install -C build
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc changelog.txt license.txt lesser.txt
+%{_libdir}/*.so.*
+
+%files devel
+%{_includedir}/*
+%{_libdir}/*.so
+
+
+%changelog
+* Sun Jun 15 2014 Sandro Mani <manisandro at gmail.com> - 0.3b-2
+- Fix line endings
+
+* Sat Jun 14 2014 Sandro Mani <manisandro at gmail.com> - 0.3b-1
+- Initial package
diff --git a/sources b/sources
index e69de29..b0bca76 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6c1699ad14b0bc2de5eeb0a72ba3e88f  mathex-0.3-b.zip


More information about the scm-commits mailing list