Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sjcundy:Productivity
swarm
swarm-2.2.5.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File swarm-2.2.5.spec of Package swarm
Summary: Toolkit for agent-based simulation. Name: swarm Version: 2.2.5 Release: 1%{?dist} License: distributable Group: Development/Libraries Source: ftp://ftp.swarm.org/pub/swarm/swarm-%version.tar.gz %define prefix /usr # Patch0: MGD_Java_diffs.patch Prefix: %prefix BuildRoot: /tmp/swarm-root %ifarch ppc BuildPrereq: libffi >= 1.20 %endif Icon: swarm.xpm Packager: Paul Johnson <pauljohn@ku.edu> URL: http://www.swarm.org BuildRequires: gcc >= 3.2.2, gcc-objc, hdf5 >= 1.6.6, hdf5-devel >= 1.6.6, xorg-x11-devel, glibc-devel, libpng, libpng-devel, zlib, zlib-devel, blt, tcl-devel >= 8.4.0, tk-devel >= 8.4.0, java-1_5_0-sun-devel, emacs-nox, emacs, gperf, gcc-java Requires: gcc >= 3.2.2, gcc-objc, hdf5 >= 1.6.6, hdf5-devel >= 1.6.6, xorg-x11-devel, glibc-devel, libpng, libpng-devel, zlib, zlib-devel, blt, tcl-devel >= 8.4.0, tk-devel >= 8.4.0, java-1_5_0-sun-devel, emacs-nox, emacs, gperf, gcc-java %ifarch ppc Requires: libffi >= 1.20 %endif Provides: swarm-base Patch0: swarm.configure.patch %description Swarm is a simulation toolkit for complex adaptive systems. The Swarm is developed by the Swarm Development Group and volunteers. To use this version, you need a number of libraries and utilities, including tcl/tk 8.4.0 or better, and the blt library package. #%define gcc_path PATH=/usr/local/bin:$PATH %define gcc_path PATH=$PATH %define baseconfigure %{SWARM_SRC_DIR}/configure --srcdir=%{SWARM_SRC_DIR} --with-defaultdir=/usr --prefix=/usr --with-bltdir=%{_libdir}/blt --with-jdkdir=%{_libdir}/jvm/java-1.5.0-sun --infodir=/usr/share/info --libdir=%{_libdir} --enable-onelib --enable-subdirs ##--enable-onelib --enable-subdirs --with-jdkdir=/usr/java/jdk1.5.0_11 --with-tkscriptdir=/usr/share/tk8.4 %define SWARM_SRC_DIR $RPM_BUILD_DIR/swarm-%{version} %define makebuilddir() test -d %1 || mkdir %1 && cd %1 #%define swarm_shared_libs() for i in activity analysis collections defobj misc swarmobjc objectbase random simtools simtoolsgui space swarm tclobjc tkobjc; do echo "%verify (not size md5 mtime) %{1}/%{_libdir}/swarm/lib$i.la" >> %2 ; echo "%{1}/%{_libdir}/swarm/lib$i.so*" >> %2 ; done %define swarm_shared_libs() for i in swarm ; do echo "%verify (not size md5 mtime) %{_libdir}/swarm/lib$i.la" >> %2 ; echo "%{_libdir}/swarm/lib$i.so*" >> %2 ; done #%define swarm_static_libs() for i in activity analysis collections defobj misc swarmobjc objectbase random simtools simtoolsgui space swarm tclobjc tkobjc; do echo "%{1}/lib/swarm/lib$i.a" >> %2 ; done %define swarm_static_libs() for i in swarm; do echo "%{_libdir}/swarm/lib$i.a" >> %2 ; done %define gen_shared_filelist() echo "%{1}/bin/libtool-swarm" > %2; echo "%{1}/bin/m2h" >> %2; echo "%{1}/bin/make-h2x" >> %2 ; echo "%verify (not size md5 mtime) %{1}/etc/*" >> %2 ; echo "%{1}/include" >> %2 ; echo "%{1}/share/info/*" >> %2 ; %{swarm_shared_libs: %1 %2}; echo '%dir %{1}/share' >> %2 ; echo '%doc README AUTHORS COPYING ChangeLog INSTALL NEWS THANKS' >> %2 %define gen_static_filelist() echo > %2; %{swarm_static_libs: %1 %2} %define fix_path() cd $RPM_INSTALL_PREFIX0; for i in %1; do eval "sed 's%/REPLACE-AT-INSTALLATION%$RPM_INSTALL_PREFIX0%g' $i > /tmp/swarmfile"; chmod --reference=$i /tmp/swarmfile; mv /tmp/swarmfile $i; done %changelog * Thu Aug 28 2008 Paul Johnson - Trying to build for Fedora 9 with swarm-2.2.5, drop jikes usage * Wed Nov 14 2007 Paul Johnson - Trying to update for x86_64 platforms, incorporate %{_libdir} macro. Should get others eventually. * Wed Aug 13 2003 Alex Lancaster - clean up spec file some more. * Thu Nov 8 2001 Paul Johnson <pauljohn@ukans.edu> - trying to use Redhat 7.2's gcc3 compiler * Fri Sep 7 2001 Paul Johnson <pauljohn@ukans.edu> - create separate swarmgcj package - patch swarm for METHOD_FUNCTIONS usage * Fri Jun 22 2001 Paul Johnson <pauljohn@ukans.edu> - diddling for gcc3.0 * Mon Feb 28 2000 Marcus G. Daniels <mgd@swarm.org> - Remove ppc patch. - Remove versioning on kaffe and jikes BuildPrereq. - Break out system-specific build rules in to separate file, swarm.rules. - Add support for Sparc and SUSE/i386. - Hardwire /packages/bin/gcc as compiler. - Minimize use of %defines (using substitutions instead). * Fri Oct 22 1999 Alex Lancaster <alex@santafe.edu> - Replace $RPM_PACKAGE_VERSION with %{version} throughout. - Add "%gcc_path" macro so that path to gcc can be overriden (by setting "%_gcc_path" in the ~/.rpmmacros file), so that packages can be easily built against non-stock Red Hat 6.{1,2} compilers (such as gcc-2.95.1). * Tue Oct 19 1999 Alex Lancaster <alex@santafe.edu> - Add XFree86-devel and egcs to Requires. - Bump kaffe version to 1.0.5. Remove --disable-jar option to configure, jar now works in this release of kaffe. * Thu Oct 01 1999 Alex Lancaster <alex@santafe.edu> - Disable generation of swarm-kaffe package on ppc, kaffe broken. * Thu Sep 30 1999 Alex Lancaster <alex@santafe.edu> - Add "%ifarch ppc" directives to apply 2.0.1-ppc.patch; platform-specific OBJCFLAGS/CFLAGS to configure; slightly alternate versions numbers for kaffe; and Requires: tag for libffi. * Tue Sep 28 1999 Alex Lancaster <alex@santafe.edu> - Disable size, md5 and mtime checking using %verify for files which are modified by the %post-install script to avoid -V option reporting a problem. - New swarm-static add-on subpackage, installs the static libraries: used to build the stand-alone swarmdemos and for users wishing to enable profiling. - Removed jikes Requires for installer of package (but not for builder) * Sun Sep 19 1999 Alex Lancaster <alex@santafe.edu> - Use macros wherever possible for common shell script code. - Available for public release. * Fri Sep 17 1999 Alex Lancaster <alex@santafe.edu> - Enable relocation of package, via sed scripts in the %post section. - Reformat spec file as per RHCN guidelines at http://developer.redhat.com - Various miscellaneous cleanups * Fri Sep 10 1999 Alex Lancaster <alex@santafe.edu> - Major structural changes to spec file. Development version, only. Does not build the swarm-hdf5 correctly as yet. Not for public release. * Sun Aug 29 1999 Paul Johnson <pauljohn@ukans.edu> - jikes is the required java compiler. Users have to install that or edit javacswarm script and change jikes to javac. * Tue Aug 03 1999 Paul Johnson <pauljohn@ukans.edu> - Testing new SPEC file for swarm 2.0 preparation. * Sat Jun 05 1999 Paul Johnson <pauljohn@ukan.edu> - RPM compiled with a patched egcs to eliminate some warnings observed by users who have the egcs as distributed with RH6.0. - Added patches for the Argument files and strchr and strdup usages * Wed Jan 27 1999 Paul Johnson <pauljohn@ukans.edu> - version bump (ouch!) to 1.4 - Added xpm-devel requirement - Removed the exact version requirement for tcl/tk * Sun Dec 06 1998 Alex Lancaster <alex@santafe.edu> - Added stricter dependencies for tcl/tk - exact version numbers - disable the creation of static libraries * Sun Oct 04 1998 Paul Johnson <pauljohn@ukans.edu> - Updated verison info for Swarm 1.3.1 * Fri Sep 28 1998 Alex Lancaster <alex@santafe.edu> - Made package member of Development/Libraries group rather than X11/Libraries - Bumped rel to 2 - Added egcs and egcs-objc to Requires. * Mon Aug 24 1998 Paul E. Johnson <pauljohn@ukans.edu> - finalized/revised for swarm 1.3 release. This binary is compiled against blt2.4e, but experimentation shows it is fine with blt8.0-unoff as well. * Wed Aug 12 1998 Paul E. Johnson <pauljohn@ukans.edu> - Used imlib.spec as template for swarm. %package gcjswarm Summary: Swarm library compiled for GNU java compiler Group: Development/Libraries %description gcjswarm This package is needed if you want to use gcj to compile java swarm programs. %package static Summary: Static libraries for Swarm Group: Development/Libraries Requires: swarm-base %description static Contains static libraries for Swarm which are otherwise excluded from the normal binary distribuion %package jdk Summary: Adds Java support to swarm-base package. Group: Development/Libraries Requires: swarm-base, java-1_5_0-sun-devel %description jdk swarm-jdk adds Java support to your base Swarm package (either swarm or swarm-hdf5). %prep %setup -n swarm-%{version} ## %patch0 -p0 %ifarch x86_64 %patch0 -p1 %endif ## cd .. %build ##./autogen.sh %makebuilddir =with-hdf %define configure %{baseconfigure} %ifarch sparc CONSERVATIVE_OPTIMIZATION=yes %configure %endif %ifarch ppc CFLAGS="-fdollars-in-identifiers -O2 -g" %configure --with-ffidir=/usr --disable-jar %endif %ifarch i386 CFLAGS="-g $RPM_OPT_FLAGS" %configure %endif %ifarch i586 CFLAGS="-g $RPM_OPT_FLAGS" %configure %endif %ifarch i686 CFLAGS="-g $RPM_OPT_FLAGS" %configure %endif %ifarch x86_64 CFLAGS="-fPIC -g $RPM_OPT_FLAGS" %{configure} %endif %{gcc_path} make EXTRAOBJCFLAGS=-Wno-error EXTRALDFLAGS=-static-libgcc # cd java # make gcjswarm.so %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT cd %SWARM_SRC_DIR %gen_shared_filelist %prefix %{SWARM_SRC_DIR}/with-hdf %gen_static_filelist %prefix %{SWARM_SRC_DIR}/static cd =with-hdf #RPM install would not complete unless I force creating this dir mkdir -p $RPM_BUILD_ROOT%{prefix}/include/swarm #%{gcc_path} make prefix=$RPM_BUILD_ROOT%{prefix} install JAVAC=/usr/bin/jikes %{gcc_path} make DESTDIR=$RPM_BUILD_ROOT install cd java make gcjswarm.so cp gcjswarm.so* $RPM_BUILD_ROOT/%{_libdir}/swarm cd .. %post #%define pathfiles etc/swarm/* %{_libdir}/swarm/lib*.la #%fix_path %pathfiles /sbin/ldconfig %post jdk #%define jdkpathfiles bin/java*swarm lib/swarm/libjavaswarm*.la #%fix_path %jdkpathfiles /sbin/ldconfig %files -f with-hdf %defattr(-,root,root) %{prefix}/bin/print-hdf5 %files static -f static %defattr(-,root,root) %files gcjswarm %defattr(-,root,root) %{_libdir}/swarm/gcjswarm.so %files jdk %defattr(-,root,root) %verify(not size md5 mtime) %{prefix}/bin/javaswarm %verify(not size md5 mtime) %{prefix}/bin/javacswarm %verify(not size md5 mtime) %{_libdir}/swarm/libjavaswarm*.la %{_libdir}/swarm/libjavaswarm*.so* %{_libdir}/swarm/libjavaswarm.a %{prefix}/share/swarm %clean rm -rf $RPM_BUILD_ROOT # Local variables: # mode: shell-script # sh-shell: rpm # end:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor