File gnustep-SQLClient.spec of Package gnustep-SQLClient

#
# spec file for package gnustep-SQLClient
#
# Copyright (c) 2018 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  _name  SQLClient
%define   _ver  1_8
Name:           gnustep-SQLClient
Version:        1.8.1
Release:        0
Summary:        Provide a simple interface to SQL databases for GNUstep applications
License:        LGPL-3.0-or-later
Group:          Productivity/Scientific/Other
URL:            ftp://ftp.gnustep.org/pub/gnustep/libs
Source:         %{_name}-%{version}.tar.gz
Source1:        %{_name}-%{version}.tar.gz.sig
Source2:        %{_name}.keyring
BuildRequires:  gcc-objc
BuildRequires:  gnustep-Performance-devel
BuildRequires:  gnustep-base-devel
BuildRequires:  gnustep-gui-devel
BuildRequires:  gnustep-make
BuildRequires:  libmariadb-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libpq)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  update-desktop-files
Requires:       gnustep-back

%description
The SQLClient library is designed to provide a simple interface to SQL
databases for GNUstep applications. It does not attempt the sort of
abstraction provided by the much more sophisticated GDL2 library
but rather allows applications to directly execute SQL queries and statements.

%package -n lib%{_name}%{_ver}
Summary:        Shared libraries of SQLClient
Group:          System/Libraries

%description -n lib%{_name}%{_ver}
This package contains shared libraries of SQLClient.

%package -n lib%{_name}-devel
Summary:        Development files of SQLClient
Group:          Development/Languages/Other
Provides:       %{name}-devel = %{version}-%{release}
Requires:       lib%{_name}%{_ver} = %{version}-%{release}

%description -n lib%{_name}-devel
This package contains shared libraries of SQLClient.

%package doc
Summary:        Documentation for %{name}
Group:          Documentation/HTML
BuildArch:      noarch

%description doc
This package contains development documentation for %{name}.

%prep
%setup -q -n %{_name}-%{version}

%build
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}

%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%post -n lib%{_name}%{_ver} -p /sbin/ldconfig
%postun -n lib%{_name}%{_ver} -p /sbin/ldconfig

%files -n lib%{_name}%{_ver}
%doc ChangeLog README
%{_libdir}/lib%{_name}.so.*
%{_libdir}/GNUstep
%license COPYING.LIB

%files -n lib%{_name}-devel
%{_includedir}/%{_name}
%{_libdir}/lib%{_name}.so

%files doc
%{_datadir}/GNUstep

%changelog
openSUSE Build Service is sponsored by