From 17e8626f811e988c5b629019d9dcfcc3f947b03c Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Sun, 22 Mar 2009 06:57:31 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + import.log | 1 + simspark-0.1-cmakefix.patch | 15 ++++++ simspark-0.1-devilfix.patch | 22 ++++++++ simspark.spec | 105 ++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 145 insertions(+) create mode 100644 import.log create mode 100644 simspark-0.1-cmakefix.patch create mode 100644 simspark-0.1-devilfix.patch create mode 100644 simspark.spec diff --git a/.cvsignore b/.cvsignore index e69de29..46aa8b5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +simspark-0.1.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..ab42a29 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +simspark-0_1-3_fc10:HEAD:simspark-0.1-3.fc10.src.rpm:1237704716 diff --git a/simspark-0.1-cmakefix.patch b/simspark-0.1-cmakefix.patch new file mode 100644 index 0000000..77cd8bf --- /dev/null +++ b/simspark-0.1-cmakefix.patch @@ -0,0 +1,15 @@ +diff -up simspark-0.1/CMakeLists.txt.cmakefix simspark-0.1/CMakeLists.txt +--- simspark-0.1/CMakeLists.txt.cmakefix 2009-03-17 11:00:37.000000000 +0330 ++++ simspark-0.1/CMakeLists.txt 2009-03-17 11:02:03.000000000 +0330 +@@ -76,8 +76,10 @@ endif (NOT FUNC_HSTRERROR_EXISTS) + add_definitions(-DHAVE_CONFIG_H) + include_directories(${CMAKE_BINARY_DIR}) + if (UNIX) +- set(CMAKE_CXX_FLAGS "-Wno-deprecated" CACHE ++ set(CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE + STRING "Common C++ compiler flags" FORCE) ++ set(CMAKE_C_FLAGS $ENV{CFLAGS} CACHE ++ STRING "Common C compiler flags" FORCE) + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -W -Wall -Woverloaded-virtual" CACHE + STRING "C++ compiler flags for Debug builds" FORCE) + set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE diff --git a/simspark-0.1-devilfix.patch b/simspark-0.1-devilfix.patch new file mode 100644 index 0000000..dda268e --- /dev/null +++ b/simspark-0.1-devilfix.patch @@ -0,0 +1,22 @@ +diff -up simspark-0.1/lib/kerosin/imageserver/imageserver.h.devilfix simspark-0.1/lib/kerosin/imageserver/imageserver.h +--- simspark-0.1/lib/kerosin/imageserver/imageserver.h.devilfix 2009-03-16 11:31:54.000000000 +0330 ++++ simspark-0.1/lib/kerosin/imageserver/imageserver.h 2009-03-16 11:33:29.000000000 +0330 +@@ -27,6 +27,9 @@ + #endif + #ifdef HAVE_IL_IL_H + #include ++#ifndef IL_ILBM ++#define IL_ILBM IL_LBM ++#endif + #endif + + #include +@@ -66,7 +69,7 @@ public: + eICO = IL_ICO, + eJPG = IL_JPG, + eJFIF = IL_JFIF, +- eLBM = IL_LBM, ++ eLBM = IL_ILBM, + ePCD = IL_PCD, + ePCX = IL_PCX, + ePIC = IL_PIC, diff --git a/simspark.spec b/simspark.spec new file mode 100644 index 0000000..b97a4e4 --- /dev/null +++ b/simspark.spec @@ -0,0 +1,105 @@ +Name: simspark +Version: 0.1 +Release: 3%{?dist} +Summary: Spark physical simulation system + +Group: Development/Libraries +License: GPLv2 +URL: http://simspark.sourceforge.net +Source0: http://downloads.sourceforge.net/simspark/%{name}-%{version}.tar.gz +Patch0: %{name}-0.1-cmakefix.patch +Patch1: %{name}-0.1-devilfix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: cmake boost-devel ruby ruby-devel SDL-devel tex(latex) +BuildRequires: ode-devel libGL-devel DevIL-devel freetype-devel libGLU-devel +BuildRequires: ImageMagick +Conflicts: rcssserver3d < 0.6.1 +Requires: ruby ruby(abi) = 1.8 +%if 0%{?fedora} <= 10 +Requires: dejavu-fonts +%else +Requires: dejavu-sans-mono-fonts +%endif + +%description +Spark is a physical simulation system. The primary purpose of this system is +to provide a *generic* simulator for different kinds of simulations. +In these simulations, agents can participate as external processes. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: boost-devel ruby-devel ode-devel DevIL-devel +Requires: libGL-devel libGLU-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +%patch0 -p1 -b .cmakefix +%patch1 -p1 -b .devilfix + +%build +mkdir build +cd build +export CXXFLAGS="${CXXFLAGS:-%optflags}" +export CFLAGS="${CFLAGS:-%optflags}" +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR:PATH=%{_lib} .. +make VERBOSE=1 %{?_smp_mflags} +make pdf +cp doc/devel/manual.pdf ../doc/devel/ + +%install +rm -rf %{buildroot} +make -C build install DESTDIR=%{buildroot} + +ln -fs %{_datadir}/fonts/dejavu/DejaVuSansMono.ttf \ + %{buildroot}/%{_datadir}/%{name}/fonts/VeraMono.ttf +rm -rf %{buildroot}/%{_datadir}/%{name}/*.h + +mkdir package_docs +mv %{buildroot}/%{_datadir}/doc/%{name}/* package_docs/ +rm -rf %{buildroot}/%{_datadir}/doc + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc package_docs/* +%dir %{_libdir}/%{name} +# Notice: the package needs .so files for running so +# they can't be moved to -devel package +%{_libdir}/%{name}/[^l]*.so* +%{_libdir}/%{name}/lib*.so.* +%{_datadir}/%{name} + +%files devel +%defattr(-,root,root,-) +%{_bindir}/* +%{_includedir}/%{name} +%{_libdir}/%{name}/lib*.so +%doc doc/devel/howtos doc/devel/manual.pdf + +%changelog +* Wed Mar 18 2009 Hedayat Vatankhah 0.1-3 +- fixed lib directory variable for cmake + +* Thu Mar 17 2009 Hedayat Vatankhah 0.1-2 +- Added cmake and DevIL patches +- Removed redundant gcc-c++ requirement +- Add verbose output for make +- Added CXXFLAGS +- Font package name fix for different distros + +* Thu Feb 19 2009 Hedayat Vatankhah 0.1-1 +- Some cleanup +- fixed package documentation installation +- added tex(latex) and ImageMagic as a build requirement + +* Fri Feb 13 2009 Hedayat Vatankhah 0.1-1 +- Initial version diff --git a/sources b/sources index e69de29..6b22c3b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +94ef43347083d72d09ab33d89d486d55 simspark-0.1.tar.gz