File aqdatabase.spec of Package aqdatabase

#
# spec file for package aqdatabase
#
# 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 sover 1
Name:           aqdatabase
Version:        1.0.15
Release:        0
Summary:        Database library used by AqFinance
License:        GPL-2.0-only
Group:          Productivity/Office/Finance
URL:            https://www.aquamaniac.de/
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gmp-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gwenhywfar)

%description
AqDatabase is a database layer used by AqFinance.

%package devel
Summary:        Development files for AqDatabase
Group:          Development/Libraries/C and C++
Requires:       libaqdatabase%{sover} = %{version}

%description devel
Development package for the aqdatabase package, a database
layer used by AqFinance.

%package -n libaqdatabase%{sover}
Summary:        Database library used by AqFinance
Group:          Development/Libraries/C and C++

%description -n libaqdatabase%{sover}
AqDatabase is a database layer used by AqFinance.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags} build_sources
make %{?_smp_mflags}

%install
%make_install
rm %{buildroot}%{_libdir}/libaqdatabase.{a,la}

%post -n libaqdatabase%{sover} -p /sbin/ldconfig
%postun -n libaqdatabase%{sover} -p /sbin/ldconfig

%files
%license COPYING
%doc README
%{_bindir}/aqdbtool
%{_bindir}/aqfscheck
%{_datadir}/aqdatabase/

%files -n libaqdatabase%{sover}
%license COPYING
%{_libdir}/libaqdatabase.so.*

%files devel
%license COPYING
%{_includedir}/aqdatabase/
%{_libdir}/libaqdatabase.so
%{_libdir}/pkgconfig/aqdatabase.pc

%changelog
openSUSE Build Service is sponsored by