Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zacarias
biosignal
biosignal.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File biosignal.spec of Package biosignal
# -*- rpm-spec -*- %{!?localoctfile_dir: %define localoctfile_dir %(octave-config --oct-site-dir || echo 0)} Name: biosignal Summary: BioSignal library to access time based records in medicine %define api_ver 0.1 %define build_ver 0 Version: %{api_ver}.%{build_ver} Release: 21 URL: http://biosignal.googlecode.com BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{version}.tar.gz License: new BSD Group: Development/Libraries Vendor: zojeda BuildRequires: gcc-c++ glibc-devel libstdc++-devel cmake %description Biosignal is a C++ library for reading and manipulation of time based biological signals. Supported file formats are: * edf/edf+ * textual files convenient bindings for other languages are provided using swig: python, octave, java Authors: -------- Zacarias F. Ojeda <zojeda@gmail.com> %package devel Summary: Development headers and documentation for the biosignal C++ library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains files necessary for development using the biosignal C++ library. It contains header files, example programs, user documentation (reference guide), and the technical documentation. %package java Summary: java wrapper for the biosignal C++ library Group: Development/Libraries Requires: biosignal java >= 1.5 BuildRequires: swig BuildRequires: java-1.6.0-openjdk-devel %description java This package contains java wrapper for biosignal %package octave Summary: octave wrapper for the biosignal C++ library Group: Development/Libraries Requires: octave BuildRequires: octave-devel swig >= 1.3.40 %if %{defined fedora} BuildRequires: atlas %endif %description octave This package contains octave wrapper for biosignal %prep %setup -q %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" export JAVA_HOME=%{_libdir}/jvm/java cmake . \ -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \ -DCMAKE_INSTALL_PREFIX:PATH=$RPM_BUILD_ROOT \ -DBIOSIFNAL_INSTALL_BIN_DIR:PATH=%{_bindir} \ -DBIOSIGNAL_INSTALL_INCLUDE_DIR:PATH=%{_includedir} \ -DBIOSIGNAL_INSTALL_LIB_DIR:PATH=%{_libdir} \ -DBIOSIGNAL_WRAP_JAVA=ON \ -DBIOSIGNAL_WRAP_OCTAVE=ON \ -DJAVA_JAR_DIR=%{_datadir}/java \ -DJAVA_JNI_DIR=%{_libdir}/jni %{__make} VERBOSE=1 %{?_smp_mflags} %{?jobs:-j%{jobs}} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ #cp -r COPYRIGHT README $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d echo "%{_libdir}/%{name}-%{api_ver}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %dir %{_libdir}/%{name}-%{api_ver} %{_libdir}/%{name}-%{api_ver}/*.so %doc COPYRIGHT README %config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf %files devel %defattr(-,root,root) %dir %{_libdir}/%{name}-%{api_ver} %{_libdir}/%{name}-%{api_ver}/*.so* %{_libdir}/%{name}-%{api_ver}/*.cmake %{_includedir}/* %files java %defattr(-,root,root) %dir %{_libdir}/jni %dir %{_libdir}/java %{_libdir}/jni/libbiosignalJava.so %{_libdir}/java/*.cmake %{_datadir}/java/biosignal.jar %files octave %{localoctfile_dir}/biosignal.oct %{_libdir}/%{name}-%{api_ver}/libbiosignalOctave.so
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