[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:50 UTC 2009


The following commit has been merged in the upstream branch:
commit 585d792ea3817256d5882ba7a471558e68130074
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Tue Oct 30 13:52:48 2007 +1100

    Added spec file for RPM packaging (thanks to Ivan Vari)
    
    darcs-hash:20071030025248-d4795-c11d2fe7e1e3743b9f854281a30dc1c20274d546.gz

diff --git a/AUTHORS b/AUTHORS
index 678bf29..5a738e7 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -7,3 +7,4 @@ Contributors
 Marcelo E. Magallon: Debian packages.
 Ruben Scardovelli: - author of the Fortran version of gfs_plane_alpha()
       		   - Mixed Youngs-Centered VOF normal calculation
+Ivan Adam Vari: RPM packages.
diff --git a/rpm/gerris.spec b/rpm/gerris.spec
new file mode 100644
index 0000000..9c2b2f6
--- /dev/null
+++ b/rpm/gerris.spec
@@ -0,0 +1,114 @@
+%define	alphatag %(date +%Y%m%d)
+%define current %(gerris2D -V 2>&1 | head -1 | cut -d' ' -f6)
+
+Summary: The Gerris Flow Solver
+Name: gerris
+%if "%{current}" == ""
+Version: 1.1.2
+%else
+Version: %{current}
+%endif
+Release: 2.%{alphatag}cvs%{?dist}
+License: GPLv2
+Group: Applications/Engineering
+URL: http://gfs.sourceforge.net
+Packager: Ivan Adam Vari <i.vari at niwa.co.nz>
+Source0: %{name}-stable.tar.gz
+Provides: %{name}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: gts-snapshot-devel >= 0.7.6 pkgconfig gawk ImageMagick
+BuildRequires: gts-snapshot-devel >= 0.7.6 glib2-devel geomview
+BuildRequires: glibc-devel automake libtool gtkglext-devel
+BuildRequires: startup-notification-devel 
+%if 0%{?fedora_version}
+BuildRequires:  libXt-devel netpbm-devel 
+%elif 0%{?suse_version}
+BuildRequires: xorg-x11-devel libnetpbm
+%endif
+
+%description
+Gerris is an Open Source Free Software library for the solution of the 
+partial differential equations describing fluid flow. The source code 
+is available free of charge under the Free Software GPL license.
+Gerris is supported by NIWA (National Institute of Water and Atmospheric research) 
+and by the Marsden Fund of the Royal Society of New Zealand.
+The code is written entirely in C and uses both the GLib Library and 
+the GTS Library for geometrical functions and object-oriented programming. 
+
+
+%prep
+%setup -q -n %{name}-stable
+
+
+%build
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
+if [ -x ./configure ]; then
+    CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
+	    --libdir=%{_prefix}/%_lib
+else
+    CFLAGS="$RPM_OPT_FLAGS" sh autogen.sh --prefix=%{_prefix} \
+	    --libdir=%{_prefix}/%_lib
+fi
+
+%{__make} %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post
+/sbin/ldconfig
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+elif [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -t --quiet %{_datadir}/icons/hicolor || :
+fi
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+
+
+%postun
+/sbin/ldconfig
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+elif [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -t --quiet %{_datadir}/icons/hicolor || :
+fi
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc NEWS README TODO COPYING
+%{_bindir}/*
+%{_includedir}/*.h
+%{_includedir}/gerris/*.h
+%{_libdir}/*.so.*
+%{_libdir}/*.so
+%{_libdir}/*.a
+%{_libdir}/*.la
+%{_libdir}/gerris/*
+%{_libdir}/pkgconfig/*.pc
+%{_datadir}/mime/packages/*.xml
+%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
+
+
+%changelog
+* Mon Oct 1 2007 Ivan Adam Vari <i.vari at niwa.co.nz>
+- Removed unnecessary version specifications for some 
+  build requirements
+- Added SLEx/SuSE compatibilty
+- Added 64bit compatibility
+- Updated %post, %postun scriptlets
+
+* Tue May 1 2007 Ivan Adam Vari <i.vari at niwa.co.nz>
+- Initial rpm release based on Fedora/Redhat Linux

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list