[votca-csg/f13/master] Initial import.

Jussi Lehtola jussilehtola at fedoraproject.org
Tue Dec 14 20:32:00 UTC 2010


commit ad2e24d46e06bd6f13583cc0540a2fef1aa5660b
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Tue Dec 14 22:31:52 2010 +0200

    Initial import.

 votca-1.0.1-shebang.patch |   18 ++++++
 votca-csg.spec            |  143 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 161 insertions(+), 0 deletions(-)
---
diff --git a/votca-1.0.1-shebang.patch b/votca-1.0.1-shebang.patch
new file mode 100644
index 0000000..63fdbac
--- /dev/null
+++ b/votca-1.0.1-shebang.patch
@@ -0,0 +1,18 @@
+diff -up votca-csg-1.0.1/share/scripts/inverse/solve_matlab.sh.orig votca-csg-1.0.1/share/scripts/inverse/solve_matlab.sh
+--- votca-csg-1.0.1/share/scripts/inverse/solve_matlab.sh.orig	2010-10-17 13:47:47.000000000 +0300
++++ votca-csg-1.0.1/share/scripts/inverse/solve_matlab.sh	2010-12-07 23:54:36.357623990 +0200
+@@ -1,4 +1,4 @@
+-  #! /bin/bash
++#! /bin/bash
+ #
+ # Copyright 2009 The VOTCA Development Team (http://www.votca.org)
+ #
+diff -up votca-csg-1.0.1/share/scripts/inverse/solve_octave.sh.orig votca-csg-1.0.1/share/scripts/inverse/solve_octave.sh
+--- votca-csg-1.0.1/share/scripts/inverse/solve_octave.sh.orig	2010-10-17 13:47:47.000000000 +0300
++++ votca-csg-1.0.1/share/scripts/inverse/solve_octave.sh	2010-12-07 23:54:30.216178038 +0200
+@@ -1,4 +1,4 @@
+-  #! /bin/bash
++#! /bin/bash
+ #
+ # Copyright 2009 The VOTCA Development Team (http://www.votca.org)
+ #
diff --git a/votca-csg.spec b/votca-csg.spec
new file mode 100644
index 0000000..c301223
--- /dev/null
+++ b/votca-csg.spec
@@ -0,0 +1,143 @@
+Name:		votca-csg
+Version:	1.0.1
+Release:	2%{?dist}
+Summary:	VOTCA coarse-graining engine
+Group:		Applications/Engineering
+License:	ASL 2.0
+URL:		http://www.votca.org
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:	http://votca.googlecode.com/files/%{name}-%{version}.tar.gz
+# Fix shebangs in two scripts
+Patch0:		votca-1.0.1-shebang.patch
+
+BuildRequires:	doxygen
+BuildRequires:	gromacs-devel
+BuildRequires:	votca-tools-devel = %{version}
+
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	%{name}-libs = %{version}-%{release}
+
+
+%description
+Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
+a package intended to reduce the amount of routine work when doing systematic
+coarse-graining of various systems. The core is written in C++.
+
+This package contains the VOTCA coarse-graining engine.
+
+
+%package libs
+Summary:	Libraries for VOTCA coarse-graining engine
+Group:		System Environment/Libraries
+
+%description libs
+Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
+a package intended to reduce the amount of routine work when doing systematic
+coarse-graining of various systems. The core is written in C++.
+
+This package contains libraries for the VOTCA coarse-graining engine.
+
+%package devel
+Summary:	Development headers and libraries for VOTCA coarse-graining Engine
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	votca-tools-devel
+
+%description devel
+Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
+a package intended to reduce the amount of routine work when doing systematic
+coarse-graining of various systems. The core is written in C++.
+
+This package contains development headers and libraries for the VOTCA
+coarse-graining engine.
+
+%package common
+Summary:	Architecture independent data files for VOTCA
+Group:		Applications/Engineering
+BuildArch:	noarch
+
+%description common
+Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
+a package intended to reduce the amount of routine work when doing systematic
+coarse-graining of various systems. The core is written in C++.
+
+This package contains architecture independent data files for the VOTCA
+coarse-graining engine.
+
+%package bash
+Summary:	Bash completion for votca
+Group:		System Environment/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	bash-completion
+BuildArch:	noarch
+
+%description bash
+Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
+a package intended to reduce the amount of routine work when doing systematic
+coarse-graining of various systems. The core is written in C++.
+
+This package contains bash completion support for the VOTCA coarse-graining
+engine.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .shebang
+
+%build
+%configure --disable-static --disable-la-files --disable-rc-files \
+	--with-libgmx=gmx_d
+# Get rid of rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+# Make binaries
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+# Install bash completion file
+install -D -p -m 644 scripts/csg-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/votca
+
+%clean
+rm -rf %{buildroot}
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG NOTICE README
+%{_bindir}/csg_*
+%{_bindir}/multi_g_*
+
+%files common
+%defattr(-,root,root,-)
+%{_datadir}/votca
+
+%files libs
+%defattr(-,root,root,-)
+%doc LICENSE
+%{_libdir}/libvotca_csg.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/votca/csg/
+%{_libdir}/libvotca_csg.so
+%{_libdir}/pkgconfig/libvotca_csg.pc
+
+%files bash
+%defattr(-,root,root,-)
+%{_sysconfdir}/bash_completion.d/votca
+
+
+%changelog
+* Wed Dec 08 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.0.1-2
+- Fix spelling error in Requires of -devel, preserve timestamps upon install.
+
+* Tue Dec 07 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.0.1-1
+- Update to 1.0.1.
+- Added bash completion package.
+
+* Thu Nov 25 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.0-1
+- First release.


More information about the scm-commits mailing list