yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07107
[Branch ~yade-dev/yade/trunk] Rev 2747: Update of spec-file for RPM packaging
------------------------------------------------------------
revno: 2747
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Thu 2011-02-17 21:20:54 +0100
message:
Update of spec-file for RPM packaging
modified:
scripts/RPM_packaging/yade.spec
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'scripts/RPM_packaging/yade.spec'
--- scripts/RPM_packaging/yade.spec 2011-02-14 07:41:53 +0000
+++ scripts/RPM_packaging/yade.spec 2011-02-17 20:20:54 +0000
@@ -8,7 +8,8 @@
URL: https://launchpad.net/yade
Source0: http://launchpad.net/yade/trunk/0.60/+download/yade-0.60.1.tar.bz2
patch0: exclude-rpath-patch-060
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+patch1: disable-info.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: scons, freeglut-devel, boost-devel >= 1.35, boost-date-time >= 1.35, boost-filesystem >= 1.35, boost-thread >= 1.35, boost-regex >= 1.35, fakeroot, gcc, gcc-c++ > 4.0, boost-iostreams >= 1.35, log4cxx, log4cxx-devel, python-devel, boost-python >= 1.35, ipython, python-matplotlib, sqlite-devel, python-numeric, graphviz-python, vtk-devel, ScientificPython, bzr, eigen2-devel, libQGLViewer-devel, loki-lib-devel, python-xlib, PyQt4, PyQt4-devel, ScientificPython-tk, gnuplot, doxygen, gts-devel
Requires: ScientificPython, python-numeric, ipython, ScientificPython-tk, PyQt4, gnuplot
@@ -24,34 +25,44 @@
Python is used for rapid and concise scene construction,
simulation control, postprocessing and debugging.
+%package dbg
+Summary: Debug Yade version
+%description dbg
+This package contains debug-libraries for yade
%prep
%setup -q
-%patch0
+%patch1
%build
%install
rm -f scons.profile-rpm
rm -rf %{buildroot}/*
-scons profile=rpm PREFIX=%{buildroot}-dbg/usr runtimePREFIX=/usr buildPrefix=rpm brief=0 chunkSize=5 jobs=1 features=vtk,gts,opengl,openmp,qt4 optimize=1 debug=0 variant=''
-
-scons profile=rpm PREFIX=%{buildroot}/usr brief=0 chunkSize=5 jobs=1 features=vtk,gts,opengl,openmp,qt4 optimize=1 debug=0 variant=''
-
-rm %{buildroot}/usr/lib/%{name}/lib/lib_gts__python-module.so
-cp %{buildroot}/usr/lib/%{name}/py/gts/_gts.so %{buildroot}/usr/lib/%{name}/lib/lib_gts__python-module.so
-
-
+
+scons profile=rpm PREFIX=%{buildroot}/usr runtimePREFIX=/usr buildPrefix=rpm march= brief=0 chunkSize=5 jobs=1 version=0.60 features=vtk,gts,opengl,openmp,qt4 optimize=1 debug=0 variant=''
+
+scons profile=rpm brief=0 chunkSize=5 jobs=1 optimize=0 debug=1 variant='' %{buildroot}%_libdir
+
+rm %{buildroot}%_libdir/%{name}/lib/lib_gts__python-module.so
+cp %{buildroot}%_libdir/%{name}/py/gts/_gts.so %{buildroot}%_libdir/%{name}/lib/lib_gts__python-module.so
%clean
rm -rf %{buildroot}
rm -rf %{_builddir}/*
+
%files
%defattr(-,root,root,-)
%{_bindir}/*
-%{_libdir}/%{name}/*
+%{_libdir}/%{name}/lib/*
+%{_libdir}/%{name}/plugins/*
+%{_libdir}/%{name}/py/*
+
+%files dbg
+%defattr(-,root,root,-)
+%{_libdir}/%{name}/dbg/*
%changelog