[bionetgen] Also add the perl part

Zbigniew Jędrzejewski-Szmek zbyszek at fedoraproject.org
Tue Dec 2 15:59:35 UTC 2014


commit c87b13c6a6affff2e09f812cb070006b7ed96d15
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Mon Nov 24 11:41:14 2014 -0500

    Also add the perl part

 bionetgen.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/bionetgen.spec b/bionetgen.spec
index 418adb7..afe4e75 100644
--- a/bionetgen.spec
+++ b/bionetgen.spec
@@ -12,6 +12,12 @@ BuildRequires:  muParser-devel
 BuildRequires:  sundials-devel
 BuildRequires:  openmpi-devel
 BuildRequires:  autoconf automake
+BuildRequires:  libtool
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# BioNetGen does not namespace its perl modules
+%global __provides_exclude perl\\(.*BNG.*|Cache|CartesianProduct|Compartment.*|Component.*|Console|EnergyPattern|Expression|Function|HNauty|Map|ModelWrapper|Molecule*|Observable|Param*|PatternGraph|Population*|RateLaw|RefineRule|Rxn*|Species*|Transformation*|XML::*|XMLReader\\)
+%global __requires_exclude perl\\(.*BNG.*|Cache|CartesianProduct|Compartment.*|Component.*|Console|EnergyPattern|Expression|Function|HNauty|Map|ModelWrapper|Molecule*|Observable|Param*|PatternGraph|Population*|RateLaw|RefineRule|Rxn*|Species*|Transformation*|XML::*|XMLReader\\)
 
 %description
 BioNetGen is software for the specification and simulation of
@@ -29,7 +35,7 @@ new language parser is being developed with ANTLR.
 %prep
 %setup -q -n BioNetGen-%{version}-stable
 pushd Network3
-sed -i 's/AC_PROG_LIBTOOL/AM_PROG_AR\n\0/' configure.ac
+sed -i 's/AC_PROG_LIBTOOL/AM_PROG_AR\nLT_INIT/' configure.ac
 sed -i 's/cvode-2\.6\.0//; s/muparser_v2_2_3//' configure.ac Makefile.am
 sed -i -r 's/(run_network_LDADD =).*/\1 libmathutils.la -lmuparser -lsundials_nvecserial -lsundials_cvode/' src/Makefile.am
 rm -rf Network3/cvode-2.6.0 Network3/muparser_v2_2_3
@@ -45,11 +51,16 @@ make %{?_smp_mflags}
 %install
 pushd Network3
 %make_install
+popd
+mkdir -vp %{buildroot}/%{perl_vendorlib}/BioNetGen
+cp -r Perl2 %{buildroot}/%{perl_vendorlib}/BioNetGen/
+cp BNG2.pl %{buildroot}/%{perl_vendorlib}/BioNetGen/
 
 %files
 %license LICENSE.txt
 %doc CREDITS.txt CHANGES.txt README_FIRST.txt
 %{_bindir}/run_network
+%{perl_vendorlib}/BioNetGen
 
 %changelog
 * Fri Nov 21 2014 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> - 2.2.5-1


More information about the scm-commits mailing list