Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
750d9eefcd | ||
|
bf6c99ef2b | ||
|
bd8a27e7da | ||
|
471d91aeb5 | ||
|
c080171a6e | ||
|
3ab5b78e8b |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
simspark-0.1.2.tar.gz
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: simspark
|
||||
# $Id$
|
||||
NAME := simspark
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
104
simspark.spec
Normal file
104
simspark.spec
Normal file
@ -0,0 +1,104 @@
|
||||
Name: simspark
|
||||
Version: 0.1.2
|
||||
Release: 1%{?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
|
||||
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
|
||||
|
||||
%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
|
||||
* Mon Aug 10 2009 Hedayat Vatankhah <hedayat@grad.com> 0.1.2-1
|
||||
- Updated to latest upstream release 0.1.2
|
||||
|
||||
* Wed Mar 18 2009 Hedayat Vatankhah <hedayat@grad.com> 0.1-3
|
||||
- fixed lib directory variable for cmake
|
||||
|
||||
* Thu Mar 17 2009 Hedayat Vatankhah <hedayat@grad.com> 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 <hedayat@grad.com> 0.1-1
|
||||
- Some cleanup
|
||||
- fixed package documentation installation
|
||||
- added tex(latex) and ImageMagic as a build requirement
|
||||
|
||||
* Fri Feb 13 2009 Hedayat Vatankhah <hedayat@grad.com> 0.1-1
|
||||
- Initial version
|
Loading…
Reference in New Issue
Block a user