File libchdr.spec of Package libchdr

#
# spec file for package duckstation
#
# Copyright (c) 2021 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/
#

Name:           libchdr
%define lname   libchdr0
Version:        ~git20211127
Release:        0
Summary:        Library for reading MAME's CHDv1 to v5 formats 
License:        BSD-3-Clause 
URL:            https://github.com/rtissera/%{name} 
Source:         libchdr-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: pkgconfig


%description
libchdr is a standalone library for reading MAME's CHDv1-v5 formats

%package -n %lname
Summary:        Library for reading MAME's CHDv1 to v5 formats 
Provides:       libchdr

%description -n %lname
libchdr is a standalone library for reading MAME's CHDv1-v5 formats

%package devel
Summary: Development headers for libchdr
Requires: %lname = %{version}

%description devel
Development headers for libchdr
 

%prep
%setup -n libchdr-%{version}

%build
%cmake
%cmake_build


%install
%cmake_install

%post -n %lname  -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%license LICENSE.txt
%doc README.md
%_libdir/libchdr.so.0*

%files devel
%_includedir/libchdr/
%_libdir/pkgconfig/libchdr.pc
%_libdir/libchdr.so




%changelog

openSUSE Build Service is sponsored by