File libdsk.spec of Package libdsk

#
# spec file for package libdsk
#
# Copyright (c) 2022 SUSE LLC
#
# 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 soname  5
Name:           libdsk
Version:        1.5.17
Release:        0
Summary:        Library for accessing discs and disc image files
License:        LGPL-2.1-or-later
Group:          System/Libraries
URL:            https://www.seasip.info/Unix/LibDsk/index.html
Source:         https://www.seasip.info/Unix/LibDsk/%{name}-%{version}.tar.gz
BuildRequires:  libbz2-devel
BuildRequires:  zlib-devel

%description
LibDsk is a library intended to give transparent access to floppy drives
and to the "disc image files" used by emulators to represent floppy drives.

%package -n libdsk%{soname}
Summary:        Library for accessing discs and disc image files
Group:          System/Libraries

%description -n libdsk%{soname}
LibDsk is a library intended to give transparent access to floppy drives
and to the "disc image files" used by emulators to represent floppy drives.

%package devel
Summary:        Library for accessing discs and disc image files (development files)
Group:          Development/Libraries/C and C++
Requires:       libdsk%{soname} = %{version}

%description devel
This package contains files needed for development with the libdsk
library.

%prep
%autosetup

%build
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n libdsk%{soname} -p /sbin/ldconfig
%postun -n libdsk%{soname} -p /sbin/ldconfig

%files -n libdsk%{soname}
%{_bindir}/*
%{_libdir}/libdsk*.so.*
%license doc/COPYING
%{_mandir}/man1/*
%{_mandir}/man5/*

%files devel
%{_libdir}/libdsk.so
%{_includedir}/libdsk.h
%doc ChangeLog
%doc doc/apridisk.html
%doc doc/cfi.html
%doc doc/libdsk.txt
%doc doc/protocol.txt

%changelog
openSUSE Build Service is sponsored by