|
|
74b97bb |
%global checkout 22272
|
|
|
74b97bb |
%global date 20150528
|
|
|
74b97bb |
|
|
|
f82fbc8 |
%bcond_without perl
|
|
|
f82fbc8 |
%bcond_without ruby
|
|
|
f82fbc8 |
%bcond_without octave
|
|
|
f82fbc8 |
%bcond_without check
|
|
|
74b97bb |
%bcond_without r
|
|
|
74b97bb |
%bcond_without python3
|
|
|
74b97bb |
%bcond_without python2
|
|
|
f82fbc8 |
|
|
|
74b97bb |
%ifarch %{mono_arches}
|
|
|
5fecbdc |
%bcond_without mono
|
|
|
5fecbdc |
%else
|
|
|
5fecbdc |
%bcond_with mono
|
|
|
5fecbdc |
%endif
|
|
|
5fecbdc |
|
|
|
74b97bb |
%ifarch s390 s390x %{arm} aarch64 ppc64 ppc64le
|
|
|
74b97bb |
%bcond_with java
|
|
|
74b97bb |
%else
|
|
|
74b97bb |
%bcond_without java
|
|
|
74b97bb |
%endif
|
|
|
74b97bb |
|
|
|
f82fbc8 |
# those have special requirements, the rest follows main package name
|
|
|
f82fbc8 |
%global octpkg SBML
|
|
|
f82fbc8 |
%global perlpkg LibSBML
|
|
|
f82fbc8 |
%global rubypkg SBML
|
|
|
f82fbc8 |
%global rpkg libSBML
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
# Exclude .oct files from provides
|
|
|
f82fbc8 |
%global __provides_exclude_from ^%{octpkglibdir}/.*\\.oct$
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
# Use the same directory of the main package for subpackage licence and docs
|
|
|
f82fbc8 |
%global _docdir_fmt %{name}
|
|
|
f82fbc8 |
|
|
|
9a5ef09 |
Name: libsbml
|
|
|
74b97bb |
Version: 5.11.5
|
|
|
74b97bb |
#Release: 1%{?dist}
|
|
|
faec7f8 |
Release: 0.3.%{date}svn%{checkout}%{?dist}
|
|
|
9a5ef09 |
Summary: Systems Biology Markup Language library
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
License: LGPLv2+
|
|
|
9a5ef09 |
URL: http://sbml.org/Software/libSBML
|
|
|
74b97bb |
|
|
|
74b97bb |
## Source archive from svn #22272; obtained by:
|
|
|
74b97bb |
## svn checkout http://svn.code.sf.net/p/sbml/code/trunk/libsbml sbml-code
|
|
|
74b97bb |
## tar -czvf libsbml-svn22272.tar.gz sbml-code
|
|
|
74b97bb |
Source0: libsbml-svn%{checkout}.tar.gz
|
|
|
74b97bb |
#Source0: http://downloads.sourceforge.net/project/sbml/libsbml/%%{version}/stable/libSBML-%%{version}-core-src.zip
|
|
|
74b97bb |
Source1: http://sourceforge.net/projects/sbml/files/libsbml/5.11.4/experimental/source/render-5.11.4-beta-1.zip
|
|
|
74b97bb |
|
|
|
74b97bb |
## Unbundle minizip
|
|
|
74b97bb |
Patch0: libsbml-use-system-minizip-cmake.patch
|
|
|
74b97bb |
## Fix library installation paths
|
|
|
74b97bb |
Patch1: libsbml-fix_install_libpaths.patch
|
|
|
74b97bb |
|
|
|
74b97bb |
BuildRequires: cmake, clang
|
|
|
9a5ef09 |
BuildRequires: zlib-devel
|
|
|
9a5ef09 |
BuildRequires: bzip2-devel
|
|
|
9a5ef09 |
BuildRequires: libxml2-devel >= 2.6.16
|
|
|
74b97bb |
BuildRequires: expat-devel
|
|
|
9a5ef09 |
BuildRequires: check-devel
|
|
|
336b1ce |
BuildRequires: minizip-devel
|
|
|
9a5ef09 |
BuildRequires: swig
|
|
|
8f8fefe |
BuildRequires: hostname
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%description
|
|
|
9a5ef09 |
LibSBML is an open-source programming library designed to
|
|
|
9a5ef09 |
read, write, manipulate, translate, and validate SBML files and data
|
|
|
9a5ef09 |
streams. It is not an application itself (though it does come with
|
|
|
9a5ef09 |
example programs), but rather a library you can embed in other
|
|
|
9a5ef09 |
applications.
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
LibSBML %{version} understands SBML Level 3 Version 1 and older,
|
|
|
9a5ef09 |
as well as the draft SBML Level 2 Layout proposal by Gauges, Rost,
|
|
|
f82fbc8 |
Sahle and Wegner. It’s written in ISO C and C++ but can also be
|
|
|
6ef3695 |
used from C#, Java, MATLAB, Octave, PERL, Python, and Ruby.
|
|
|
6ef3695 |
|
|
|
9a5ef09 |
%package devel
|
|
|
9a5ef09 |
Summary: Development files for %{name}
|
|
|
9a5ef09 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%description devel
|
|
|
9a5ef09 |
This package contains libraries and header files for developing
|
|
|
9a5ef09 |
applications that use libSBML.
|
|
|
9a5ef09 |
|
|
|
74b97bb |
%if %{with python2}
|
|
|
9a5ef09 |
%package -n python-%{name}
|
|
|
f82fbc8 |
BuildRequires: python2-devel
|
|
|
6ef3695 |
Summary: Python 2 bindings for libSBML
|
|
|
8f8fefe |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%description -n python-%{name}
|
|
|
9a5ef09 |
This package contains %{summary}.
|
|
|
9a5ef09 |
|
|
|
f82fbc8 |
This is the version for Python 2.
|
|
|
74b97bb |
%endif
|
|
|
74b97bb |
%if %{with python3}
|
|
|
6ef3695 |
%package -n python3-%{name}
|
|
|
f82fbc8 |
BuildRequires: python3-devel
|
|
|
6ef3695 |
Summary: Python 3 bindings for libSBML
|
|
|
6ef3695 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
6ef3695 |
|
|
|
6ef3695 |
%description -n python3-%{name}
|
|
|
6ef3695 |
This package contains %{summary}.
|
|
|
6ef3695 |
|
|
|
f82fbc8 |
This is the version for Python 3.
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
|
|
|
f82fbc8 |
%if %{with perl}
|
|
|
f82fbc8 |
%package -n perl-%{perlpkg}
|
|
|
f82fbc8 |
BuildRequires: perl(Test::More)
|
|
|
f82fbc8 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
f82fbc8 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
8f8fefe |
Summary: PERL bindings for libSBML
|
|
|
8f8fefe |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
8f8fefe |
|
|
|
f82fbc8 |
%description -n perl-%{perlpkg}
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with ruby}
|
|
|
f82fbc8 |
%package -n ruby-%{rubypkg}
|
|
|
f82fbc8 |
BuildRequires: ruby-devel
|
|
|
f82fbc8 |
Requires: ruby(release)
|
|
|
f82fbc8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f82fbc8 |
Provides: ruby(%{rubypkg}) = %{version}
|
|
|
f82fbc8 |
Summary: Ruby bindings for libSBML
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%description -n ruby-%{rubypkg}
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with java}
|
|
|
f82fbc8 |
%package -n java-%{name}
|
|
|
f82fbc8 |
BuildRequires: java-devel
|
|
|
f82fbc8 |
Requires: java-headless
|
|
|
f82fbc8 |
Requires: jpackage-utils
|
|
|
f82fbc8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f82fbc8 |
Summary: Java bindings for libSBML
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%description -n java-%{name}
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
%package -n octave-%{octpkg}
|
|
|
f82fbc8 |
BuildRequires: octave-devel
|
|
|
f82fbc8 |
Requires: octave(api) = %{octave_api}
|
|
|
f82fbc8 |
Requires(post): octave
|
|
|
f82fbc8 |
Requires(postun): octave
|
|
|
f82fbc8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f82fbc8 |
Summary: Octave bindings for libSBML
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%description -n octave-%{octpkg}
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with r}
|
|
|
f82fbc8 |
%package -n R-%{rpkg}
|
|
|
f82fbc8 |
BuildRequires: R-devel
|
|
|
f82fbc8 |
BuildRequires: R-core-devel
|
|
|
f82fbc8 |
BuildRequires: tex(latex)
|
|
|
f82fbc8 |
Requires: R-core
|
|
|
f82fbc8 |
Summary: R bindings for libSBML
|
|
|
f82fbc8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%description -n R-%{rpkg}
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with mono}
|
|
|
f82fbc8 |
%package sharp
|
|
|
f82fbc8 |
BuildRequires: mono-core
|
|
|
f82fbc8 |
BuildRequires: xerces-c-devel, libxml2-devel, expat-devel
|
|
|
f82fbc8 |
Summary: C# bindings for libSBML
|
|
|
edf906b |
Requires: mono-core
|
|
|
f82fbc8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%description sharp
|
|
|
8f8fefe |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
14656c4 |
%if %{with doc}
|
|
|
14656c4 |
%package doc
|
|
|
f82fbc8 |
BuildRequires: doxygen
|
|
|
f82fbc8 |
BuildRequires: doxygen-latex
|
|
|
f82fbc8 |
BuildRequires: graphviz
|
|
|
f82fbc8 |
Summary: API documentation for %{name}
|
|
|
f82fbc8 |
Requires: %{name} = %{version}-%{release}
|
|
|
74b97bb |
|
|
|
74b97bb |
##Granted exception temporarily
|
|
|
74b97bb |
##http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
|
|
|
f82fbc8 |
Provides: bundled(jquery)
|
|
|
f82fbc8 |
BuildArch: noarch
|
|
|
f82fbc8 |
|
|
|
14656c4 |
%description doc
|
|
|
f82fbc8 |
This package contains %{summary}.
|
|
|
f82fbc8 |
%endif
|
|
|
8f8fefe |
|
|
|
9a5ef09 |
%prep
|
|
|
74b97bb |
%autosetup -n sbml-code -p1
|
|
|
e67a108 |
|
|
|
230ddd7 |
sed -i -r 's/DOXYGEN_MAX_VERSION=1\.8\.8/DOXYGEN_MAX_VERSION=1.8.9/' configure
|
|
|
230ddd7 |
|
|
|
dfb03a4 |
unzip -n %{SOURCE1}
|
|
|
dfb03a4 |
|
|
|
e67a108 |
# https://sourceforge.net/p/sbml/libsbml/391
|
|
|
9a5ef09 |
iconv -f latin1 -t utf8 NEWS.txt > t; touch -r NEWS.txt t; mv t NEWS.txt
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
# Fix invalid shebang
|
|
|
e67a108 |
# https://sourceforge.net/p/sbml/libsbml/390
|
|
|
74b97bb |
for i in `find docs/src/filters -type f \( -name "*.py" \)`; do
|
|
|
74b97bb |
sed -i -r 's|(#!/usr/bin/env python) +#.*|#!%{__python2}|' $i
|
|
|
74b97bb |
done
|
|
|
8f8fefe |
|
|
|
336b1ce |
# Delete bundled minizip
|
|
|
336b1ce |
rm -v src/sbml/compress/{crypt.h,ioapi.*,iowin32.*,unzip.*,zip.*}
|
|
|
336b1ce |
|
|
|
74b97bb |
#grep -e 'This file was automatically generated by SWIG' -r . -l|xargs rm
|
|
|
5fe0c8f |
|
|
|
5fe0c8f |
mkdir build-docs
|
|
|
5fe0c8f |
cp -a $(/bin/ls -1|grep -v build-docs) build-docs/
|
|
|
5fe0c8f |
|
|
|
9a5ef09 |
%build
|
|
|
f82fbc8 |
mkdir build2 build
|
|
|
f82fbc8 |
pushd build2
|
|
|
6ef3695 |
|
|
|
f82fbc8 |
export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
|
|
|
74b97bb |
%if %{with python2}
|
|
|
f82fbc8 |
# This build is only for Python 2
|
|
|
dfb03a4 |
%cmake -DENABLE_{LAYOUT,QUAL,COMP,FBC,RENDER}=ON \
|
|
|
74b97bb |
%if 0%{?fedora} > 22
|
|
|
74b97bb |
%ifarch x86_64
|
|
|
74b97bb |
-DCMAKE_CXX_COMPILER:FILEPATH=%{_bindir}/clang++ \
|
|
|
74b97bb |
%endif
|
|
|
74b97bb |
-DCSHARP_COMPILER:FILEPATH=%{_bindir}/mcs \
|
|
|
74b97bb |
%endif
|
|
|
f82fbc8 |
-DWITH_PYTHON=ON \
|
|
|
f82fbc8 |
%if %{with check}
|
|
|
f82fbc8 |
-DWITH_CHECK=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
-DPYTHON_INCLUDE_DIR:PATH=$(pkg-config --cflags python2|sed s/-I//) \
|
|
|
6ef3695 |
-DPYTHON_LIBRARY:FILEPATH=$(pkg-config --libs python2) \
|
|
|
6ef3695 |
-DPYTHON_EXECUTABLE:FILEPATH=%{__python2} \
|
|
|
6ef3695 |
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
|
|
74b97bb |
-DWITH_LIBXML:BOOL=ON \
|
|
|
74b97bb |
-DWITH_EXPAT:BOOL=OFF \
|
|
|
35fe4b5 |
-Wno-dev \
|
|
|
6ef3695 |
..
|
|
|
74b97bb |
make %{?_smp_mflags}
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
|
|
|
f82fbc8 |
pushd ../build
|
|
|
dfb03a4 |
%cmake -DENABLE_{LAYOUT,QUAL,COMP,FBC,RENDER}=ON \
|
|
|
74b97bb |
%if 0%{?fedora} > 22
|
|
|
74b97bb |
%ifarch x86_64
|
|
|
74b97bb |
-DCMAKE_CXX_COMPILER:FILEPATH=%{_bindir}/clang++ \
|
|
|
74b97bb |
%endif
|
|
|
74b97bb |
-DCSHARP_COMPILER:FILEPATH=%{_bindir}/mcs \
|
|
|
74b97bb |
%endif
|
|
|
74b97bb |
%if %{with python3}
|
|
|
f82fbc8 |
-DWITH_PYTHON=ON \
|
|
|
6ef3695 |
-DPYTHON_INCLUDE_DIR:PATH=$(pkg-config --cflags python3|sed s/-I//) \
|
|
|
6ef3695 |
-DPYTHON_LIBRARY:FILEPATH=$(pkg-config --libs python3) \
|
|
|
6ef3695 |
-DPYTHON_EXECUTABLE:FILEPATH=%{__python3} \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with perl}
|
|
|
f82fbc8 |
-DWITH_PERL=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with ruby}
|
|
|
f82fbc8 |
-DWITH_RUBY=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with java}
|
|
|
f82fbc8 |
-DWITH_JAVA=ON \
|
|
|
f82fbc8 |
-DWITH_JAVASCRIPT:BOOL=OFF \
|
|
|
f82fbc8 |
-DWITH_SWIG:BOOL=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
-DWITH_OCTAVE=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
-DWITH_OCTAVE=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with r}
|
|
|
f82fbc8 |
-DWITH_R=ON \
|
|
|
f82fbc8 |
-DR_INCLUDE_DIRS:PATH=%{_includedir}/R \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with mono}
|
|
|
f82fbc8 |
-DWITH_CSHARP:BOOL=ON \
|
|
|
f82fbc8 |
-DWITH_XERCES:BOOL=OFF \
|
|
|
f82fbc8 |
-DWITH_LIBXML:BOOL=ON \
|
|
|
74b97bb |
-DWITH_EXPAT:BOOL=OFF \
|
|
|
f82fbc8 |
-DWITH_SWIG:BOOL=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with check}
|
|
|
f82fbc8 |
-DWITH_CHECK=ON \
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
|
|
f82fbc8 |
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
f82fbc8 |
-DCMAKE_SKIP_RPATH:BOOL=YES \
|
|
|
f82fbc8 |
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
|
|
|
35fe4b5 |
-Wno-dev \
|
|
|
6ef3695 |
..
|
|
|
74b97bb |
make %{?_smp_mflags}
|
|
|
6ef3695 |
|
|
|
5fe0c8f |
pushd ../build-docs
|
|
|
8f8fefe |
%configure --disable-static \
|
|
|
74b97bb |
--with-expat=no \
|
|
|
74b97bb |
--with-libxml=yes \
|
|
|
14656c4 |
%if %{with doc}
|
|
|
8f8fefe |
--with-doxygen \
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
%if %{with python}
|
|
|
6ef3695 |
--with-python --with-python-interpreter=%{__python3} \
|
|
|
f82fbc8 |
%endif
|
|
|
8f8fefe |
--enable-layout --enable-comp --enable-fbc --enable-qual
|
|
|
14656c4 |
%if %{with doc}
|
|
|
5fe0c8f |
cp ../build/src/bindings/python/libsbml-doxygen.py src/bindings/python/
|
|
|
8f8fefe |
make %{?_smp_mflags} docs
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
make %{?_smp_mflags} libsbml.pc
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%install
|
|
|
74b97bb |
%if %{with python2}
|
|
|
f82fbc8 |
make -C build2 install DESTDIR=%{buildroot}
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
make -C build install DESTDIR=%{buildroot}
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
chmod 0755 %{buildroot}%{octpkglibdir}/*.mex
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with java}
|
|
|
f82fbc8 |
mkdir -p %{buildroot}%{_libdir}/%{name} %{buildroot}%{_jnidir}
|
|
|
f82fbc8 |
mv %{buildroot}%{_javadir}/libsbmlj.jar %{buildroot}%{_jnidir}/
|
|
|
f82fbc8 |
mv %{buildroot}%{_libdir}/libsbmlj.so %{buildroot}%{_libdir}/%{name}/
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with r}
|
|
|
f82fbc8 |
mkdir -p %{buildroot}%{_libdir}/R/library
|
|
|
f82fbc8 |
R CMD INSTALL -l %{buildroot}%{_libdir}/R/library build/src/bindings/r/%{rpkg}_%{version}_R_*.tar.gz
|
|
|
f82fbc8 |
rm -rf %{buildroot}%{_libdir}/R/library/%{rpkg}/R.css
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
14656c4 |
%if %{with doc}
|
|
|
5fe0c8f |
make -C build-docs install-docs DESTDIR=%{buildroot}
|
|
|
9a5ef09 |
mv %{buildroot}%{_pkgdocdir}-%{version} %{buildroot}%{_pkgdocdir}
|
|
|
f82fbc8 |
%endif
|
|
|
5fe0c8f |
make -C build-docs install-pc DESTDIR=%{buildroot}
|
|
|
9a5ef09 |
|
|
|
edf906b |
%if %{with ruby}
|
|
|
edf906b |
install -Dm0644 src/bindings/ruby/README.txt %{buildroot}%{_pkgdocdir}/README-ruby.txt
|
|
|
edf906b |
%endif
|
|
|
edf906b |
|
|
|
f82fbc8 |
%if %{with check}
|
|
|
6ef3695 |
%check
|
|
|
74b97bb |
%if %{with python2}
|
|
|
74b97bb |
export CK_FORK=no
|
|
|
74b97bb |
make -C build2 check CTEST_OUTPUT_ON_FAILURE=TRUE
|
|
|
5fe0c8f |
%endif
|
|
|
2d637fe |
#export CK_FORK=no
|
|
|
2d637fe |
#make -C build check CTEST_OUTPUT_ON_FAILURE=TRUE
|
|
|
2d637fe |
##This test failed on ARM yet
|
|
|
2d637fe |
##https://sourceforge.net/p/sbml/libsbml/411/
|
|
|
2d637fe |
cd build
|
|
|
faec7f8 |
%if 0%{?fedora} < 23
|
|
|
2d637fe |
%ifarch %{arm}
|
|
|
faec7f8 |
ctest --force-new-ctest-process -E test_csharp_bindings_full
|
|
|
faec7f8 |
%else
|
|
|
faec7f8 |
ctest --force-new-ctest-process -E test_ruby_binding
|
|
|
faec7f8 |
%endif #ARM
|
|
|
2d637fe |
%else
|
|
|
2d637fe |
ctest --force-new-ctest-process
|
|
|
faec7f8 |
%endif #fedora <23
|
|
|
faec7f8 |
%endif #with_check
|
|
|
6ef3695 |
|
|
|
9a5ef09 |
%post -p /sbin/ldconfig
|
|
|
9a5ef09 |
%postun -p /sbin/ldconfig
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%files
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
74b97bb |
%doc AUTHORS.txt README* NEWS.txt OLD_NEWS.txt
|
|
|
9a5ef09 |
%{_libdir}/*.so.*
|
|
|
4004ab0 |
##This directory provides just some txt documentation files
|
|
|
4004ab0 |
%exclude %{_datadir}/libsbml
|
|
|
14656c4 |
%if %{with doc}
|
|
|
9a5ef09 |
%exclude %{_pkgdocdir}/*-api
|
|
|
f82fbc8 |
%endif
|
|
|
9a5ef09 |
|
|
|
9a5ef09 |
%files devel
|
|
|
4004ab0 |
%{_includedir}/sbml/
|
|
|
9a5ef09 |
%{_libdir}/*.so
|
|
|
4004ab0 |
%exclude %{_libdir}/libsbml-static.a
|
|
|
9a5ef09 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
9a5ef09 |
|
|
|
74b97bb |
%if %{with python2}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
9a5ef09 |
%files -n python-%{name}
|
|
|
edf906b |
#%%{python2_sitearch}/%%{name}*.egg-info
|
|
|
be77ca5 |
%{python2_sitearch}/%{name}.pth
|
|
|
be77ca5 |
%{python2_sitearch}/%{name}
|
|
|
74b97bb |
%endif
|
|
|
9a5ef09 |
|
|
|
74b97bb |
%if %{with python3}
|
|
|
6ef3695 |
%files -n python3-%{name}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
edf906b |
#%%{python3_sitearch}/%%{name}*.egg-info
|
|
|
6ef3695 |
%{python3_sitearch}/%{name}.pth
|
|
|
6ef3695 |
%{python3_sitearch}/%{name}
|
|
|
f82fbc8 |
%endif
|
|
|
6ef3695 |
|
|
|
f82fbc8 |
%if %{with perl}
|
|
|
f82fbc8 |
%files -n perl-%{perlpkg}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
8f8fefe |
%{perl_vendorarch}/*
|
|
|
8f8fefe |
%exclude %dir %{perl_vendorarch}/auto/
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with ruby}
|
|
|
f82fbc8 |
%files -n ruby-%{rubypkg}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
edf906b |
%doc %{_pkgdocdir}/README-ruby.txt
|
|
|
f82fbc8 |
%{ruby_vendorarchdir}/*.so
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with java}
|
|
|
f82fbc8 |
%files -n java-%{name}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
f82fbc8 |
%{_jnidir}/libsbmlj.jar
|
|
|
edf906b |
%dir %{_libdir}/%{name}
|
|
|
f82fbc8 |
%{_libdir}/%{name}/libsbmlj.so
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with octave}
|
|
|
f82fbc8 |
%files -n octave-%{octpkg}
|
|
|
f82fbc8 |
%license COPYING.txt
|
|
|
f82fbc8 |
%{octpkglibdir}/
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with r}
|
|
|
f82fbc8 |
%files -n R-%{rpkg}
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
f82fbc8 |
%{_libdir}/R/library/%{rpkg}/
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
f82fbc8 |
%if %{with mono}
|
|
|
f82fbc8 |
%files sharp
|
|
|
74b97bb |
%license COPYING.txt LICENSE.txt
|
|
|
edf906b |
%{_monodir}/libsbmlcsP/
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
14656c4 |
%if %{with doc}
|
|
|
14656c4 |
%files doc
|
|
|
f82fbc8 |
%{_pkgdocdir}/cpp-api
|
|
|
f82fbc8 |
# Binding docs are here too, as a compromise. Making a separate
|
|
|
14656c4 |
# python-libsbml-doc seems overkill, but including them in an arched
|
|
|
f82fbc8 |
# package is not nice.
|
|
|
f82fbc8 |
%{_pkgdocdir}/python-api
|
|
|
f82fbc8 |
%endif
|
|
|
f82fbc8 |
|
|
|
8f8fefe |
|
|
|
9a5ef09 |
%changelog
|
|
|
faec7f8 |
* Wed Jun 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 5.11.5-0.3.20150528svn22272
|
|
|
faec7f8 |
- Exclude 'test_csharp_bindings_full' and 'test_ruby_binding' test in
|
|
|
faec7f8 |
|
|
|
2d637fe |
* Wed Jun 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 5.11.5-0.2.20150528svn22272
|
|
|
2d637fe |
- Exclude 'test_csharp_bindings_full' test in ARM
|
|
|
faec7f8 |
- Use clang++ in >F22
|
|
|
2d637fe |
|
|
|
74b97bb |
* Thu May 28 2015 Antonio Trande <sagitterATfedoraproject.org> - 5.11.5-0.1.20150528svn22272
|
|
|
74b97bb |
- Update to svn pre-release #22272
|
|
|
74b97bb |
- clang++ set as compiler on >F22
|
|
|
74b97bb |
- Set C# compiler on >F22
|
|
|
74b97bb |
|
|
|
74b97bb |
* Thu May 28 2015 Antonio Trande <sagitterATfedoraproject.org> - 5.11.4-1
|
|
|
74b97bb |
- Update to 5.11.4
|
|
|
74b97bb |
- clang++ set as compiler
|
|
|
74b97bb |
|
|
|
56b70aa |
* Sat Feb 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-11
|
|
|
56b70aa |
- Disable -java and -mono on arch: they crash in tests
|
|
|
56b70aa |
|
|
|
14656c4 |
* Fri Feb 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-10
|
|
|
607c476 |
- Rename -docs to -doc, run make unparallelized
|
|
|
14656c4 |
|
|
|
14656c4 |
* Wed Feb 04 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-9
|
|
|
c151446 |
- Apply upstream patch for arm test failures
|
|
|
c151446 |
|
|
|
edf906b |
* Tue Feb 03 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-8
|
|
|
edf906b |
- Fix things found in review (macro in comment, R:mono-core, %%doc
|
|
|
edf906b |
duplication, macro usage)
|
|
|
edf906b |
|
|
|
230ddd7 |
* Mon Jan 26 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-7
|
|
|
230ddd7 |
- Allow newer doxygen
|
|
|
230ddd7 |
|
|
|
f82fbc8 |
* Fri Jan 09 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-6
|
|
|
f82fbc8 |
- Enable many many subpackages
|
|
|
f82fbc8 |
|
|
|
336b1ce |
* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-5
|
|
|
336b1ce |
- Unbundle minizip
|
|
|
336b1ce |
|
|
|
1c171ec |
* Wed Dec 17 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-4
|
|
|
1c171ec |
- Do not build on arm
|
|
|
1c171ec |
|
|
|
6ef3695 |
* Sat Dec 13 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-3
|
|
|
6ef3695 |
- Convert to hybrid cmake (main part) / make (docs).
|
|
|
6ef3695 |
|
|
|
9fc43ae |
* Fri Dec 12 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-2
|
|
|
6ef3695 |
- docs subpackage is no arch, remove %%{_isa} from dependency.
|
|
|
9fc43ae |
|
|
|
8f8fefe |
* Tue Dec 09 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.11.0-1
|
|
|
9a5ef09 |
- Initial packaging.
|