File libmodule.spec of Package libmodule
#
# spec file for package libmodule
#
# 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/
#
%define _sover 5
Name: libmodule
Version: 5.0.1
Release: 0
Summary: C simple and elegant implementation of an actor library
License: MIT
Group: System/Libraries
URL: https://github.com/FedeDP/libmodule
Source0: https://github.com/FedeDP/libmodule/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE libmodule-fixpaths-patch aloisio@gmx.com -- use paths appropriate for openSUSE
Patch0: libmodule-fixpaths.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
Libmodule offers a small and simple C implementation of an actor library
that aims to let developers easily create modular C projects in a way which
is both simple and elegant.
Indeed, libmodule was heavily inspired by my own actor library experience
with akka for its API.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}%{_sover} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %{name}%{_sover}
Summary: C simple and elegant implementation of an actor library
Group: System/Libraries
%description -n %{name}%{_sover}
Libmodule offers a small and simple C implementation of an actor library
that aims to let developers easily create modular C projects in a way which
is both simple and elegant.
Indeed, libmodule was heavily inspired by my own actor library experience
with akka for its API.
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%post -n %{name}%{_sover} -p /sbin/ldconfig
%postun -n %{name}%{_sover} -p /sbin/ldconfig
%files devel
%doc README.md
%dir %{_includedir}/module
%{_includedir}/module/map.h
%{_includedir}/module/module.h
%{_includedir}/module/module_cmn.h
%{_includedir}/module/module_easy.h
%{_includedir}/module/modules.h
%{_includedir}/module/modules_easy.h
%{_includedir}/module/queue.h
%{_includedir}/module/stack.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files -n %{name}%{_sover}
%license LICENSE
%{_libdir}/%{name}.so.%{_sover}*
%changelog