File libframe.spec of Package libframe

#
# spec file for package libframe
#
# 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 libFrame1
%define maj_ver 8
%define min_ver 33
Name:           libframe
Version:        %{maj_ver}.%{min_ver}
Release:        0
Summary:        A library to manipulate gravitational wave frame data
License:        BSD-3-Clause
Group:          Productivity/Scientific/Physics
URL:            http://lappweb.in2p3.fr/virgo/FrameL/
Source:         http://lappweb.in2p3.fr/virgo/FrameL/%{name}-%{version}.tar.gz
BuildRequires:  libtool
BuildRequires:  pkgconfig

%description
A Common Data Frame Format for Interferometric Gravitational Wave Detector
has been developed by VIRGO and LIGO.  The Frame Library is a software
dedicated to the frame manipulation including file input/output.

%package -n %{shlib}
Summary:        Shared library for %{name} - A LIGO/VIRGO frame library
Group:          Productivity/Scientific/Physics

%description -n %{shlib}
A Common Data Frame Format for Interferometric Gravitational Wave Detector
has been developed by VIRGO and LIGO.  The Frame Library is a software
dedicated to the frame manipulation including file input/output.

This package provides the shared library for %{name}.

%package devel
Summary:        Files and documentation needed for compiling libframe programs
Group:          Development/Libraries/C and C++
Requires:       %{shlib} = %{version}

%description devel
A Common Data Frame Format for Interferometric Gravitational Wave Detector
has been developed by VIRGO and LIGO.  The Frame Library is a software
dedicated to the frame manipulation including file input/output.

This package contains the files needed for building libframe programs, as
well as the documentation for the library.

%package utils
Summary:        Frame file manipulation utilities
Group:          Productivity/Scientific/Physics
Requires:       %{shlib} = %{version}

%description utils
A Common Data Frame Format for Interferometric Gravitational Wave Detector
has been developed by VIRGO and LIGO.  The Frame Library is a software
dedicated to the frame manipulation including file input/output.

This package contains some utilities for manipulating frame files.

%prep
%setup -q -n v%{maj_ver}r%{min_ver}

%build
autoreconf -fvi
%configure
make %{?_smp_mflags}

%install
%make_install

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

# REMOVE MATLAB FILES
rm -r %{buildroot}%{_datadir}/%{name}

# REMOVE DOC FILES AND PACKAGE THEM USING %%doc MACRO
rm -r %{buildroot}%{_datadir}/doc/%{name}

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

%files -n %{shlib}
%{_libdir}/*.so.*

%files devel
%license LICENSE
%doc doc/FrDoc.pdf doc/Spec-Frame-Format-v8.pdf
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

%files utils
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by