File libdill.spec of Package libdill
#
# spec file for package libdill
#
# 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/
#
Name: libdill
Version: 2.14
Release: 0
Summary: Structured Concurrency for C
License: MIT
Group: Development/Libraries/C and C++
URL: http://libdill.org/
Source: https://github.com/sustrik/libdill/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
%define libname libdill20
%description
Libdill is a C library that makes writing structured concurrent
programs easy.
%package -n %{libname}
Group: Development/Libraries/C and C++
Summary: Structured Concurrency for C - Shared Library
%description -n %{libname}
Libdill is a C library that makes writing structured concurrent
programs easy.
This package holds the shared library.
%package devel
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Summary: Structured Concurrency for C - Development files
%description devel
Libdill is a C library that makes writing structured concurrent
programs easy.
This package holds the development files.
%prep
%setup -q
%build
autoreconf -fiv
%configure --disable-silent-rules --disable-static
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING
%{_libdir}/libdill.so.*
%files devel
%doc README.md
%{_includedir}/libdill.h
%{_includedir}/libdillimpl.h
%{_libdir}/libdill.so
%{_libdir}/pkgconfig/libdill.pc
%{_mandir}/man3/*.3%{?ext_man}
%changelog