A new user interface for you! Read more...

File ldas-tools-framecpp.spec of Package ldas-tools-framecpp

#
# spec file for package ldas-tools-framecpp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define shlib   libframecpp
%define shlibc  libframecppc3
Name:           ldas-tools-framecpp
Version:        2.6.5
Release:        0
Summary:        LDAS (LIGO Data Analysis System) tools abstraction toolkit
License:        GPL-2.0-or-later
Group:          Productivity/Scientific/Physics
URL:            http://software.ligo.org
Source:         http://software.ligo.org/lscsoft/source/%{name}-%{version}.tar.gz
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  graphviz
BuildRequires:  libboost_headers-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(ldastoolsal)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)

%description
LDAS (LIGO Data Analysis System) is a collection of libraries and executables
aid in the processing of gravitation wave data sets. %{name} provides the
tools abstraction toolkit for LDAS.

%package -n %{shlib}
Summary:        Shared lib for %{name} - LDAS tools abstraction toolkit
Group:          Productivity/Scientific/Physics

%description -n %{shlib}
This package provides the shared library for %{name} - LDAS tools abstraction toolkit.

%package devel
Summary:        Headers and source files for developing with %{name}
Group:          Development/Libraries/C and C++
Requires:       %{shlib} = %{version}
Requires:       libboost_program_options-devel
Requires:       pkgconfig(ldastoolsal)
Requires:       pkgconfig(openssl)
Requires:       pkgconfig(zlib)

%description devel
This package provides the headers and sources needed for developing programs using %{name} - LDAS tools abstraction toolkit.

%package -n %{shlibc}
Summary:        Shared lib for C bindings for %{name}
Group:          Productivity/Scientific/Physics

%description -n %{shlibc}
This package provides the shared library for the C wrappers of %{name} - LDAS tools abstraction toolkit.

%package c-devel
Summary:        Headers and source files for developing with %{name}'s in C
Group:          Development/Libraries/C and C++
Requires:       %{shlibc} = %{version}

%description c-devel
This package provides the headers and sources needed for developing programs in C %{name} - LDAS tools abstraction toolkit.

%package utils
Summary:        Command line tools for use with framecpp
Group:          Productivity/Scientific/Physics

%description utils
This package provides command line tools  for use with framecpp.

%package doc
Summary:        HTML documentation for %{name} API
Group:          Documentation/HTML

%description doc
This package provides the API documentation for %{name} in HTML format.

%prep
%setup -q

%build
%configure --with-optimization=high --docdir=%{_docdir}
make %{?_smp_mflags}

%install
%make_install

find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot}%{_libdir} -name "*.a" -delete -print

chmod -x %{buildroot}%{_docdir}/framecpp/html/*

%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig
%post -n %{shlibc} -p /sbin/ldconfig
%postun -n %{shlibc} -p /sbin/ldconfig

%files -n %{shlib}
%{_libdir}/libframecpp.so.*
%{_libdir}/libframecppcmn.so.*
%{_libdir}/libframecpp3.so.*
%{_libdir}/libframecpp4.so.*
%{_libdir}/libframecpp6.so.*
%{_libdir}/libframecpp7.so.*
%{_libdir}/libframecpp8.so.*

%files devel
%{_includedir}/framecpp/
%{_libdir}/libframecpp.so
%{_libdir}/libframecppcmn.so
%{_libdir}/libframecpp3.so
%{_libdir}/libframecpp4.so
%{_libdir}/libframecpp6.so
%{_libdir}/libframecpp7.so
%{_libdir}/libframecpp8.so
%exclude %{_libdir}/pkgconfig/framecppc.pc
%{_libdir}/pkgconfig/*.pc

%files -n %{shlibc}
%{_libdir}/libframecppc.so.*

%files c-devel
%{_includedir}/framecppc/
%{_libdir}/libframecppc.so
%{_libdir}/pkgconfig/framecppc.pc

%files utils
%{_bindir}/*

%files doc
%doc %{_docdir}/framecpp

%changelog