File vformat.spec of Package vformat

#
# spec file for package vformat
#
# 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/
#


Name:           vformat
Version:        1.13
Release:        0
Summary:        Library to read and write vcard files
License:        Apache-2.0
Group:          Development/Libraries/C and C++
URL:            https://sourceforge.net/projects/vformat/
Source0:        http://downloads.sourceforge.net/vformat/libvformat-%{version}-a6r3.tar.gz
Patch0:         vformat-nodoc.patch
BuildRequires:  autoconf
BuildRequires:  gcc
BuildRequires:  txt2man

%description
Library and tool to read and write vcard files.

%package -n libvformat0
Summary:        Library to read and write vcard files
Group:          System/Libraries

%description -n libvformat0
Library to read and write vcard files.

%package devel
Summary:        Development files for libvformat
Group:          Development/Libraries/C and C++
Requires:       libvformat0 = %{version}
Provides:       libvformat-devel = %{version}

%description devel
Development files for libvformat.

%prep
%autosetup -p1 -n libvformat-%{version}

%build
%configure
%make_build

%install
%make_install

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

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

%files
%{_bindir}/vformat

%files -n libvformat0
%{_libdir}/libvformat.so.*

%files devel
%{_libdir}/libvformat.so
%{_includedir}/vf_iface.h

%changelog
openSUSE Build Service is sponsored by