# # spec file for package libverto # # Copyright (c) 2022-2023 ZhuningOS # %define sover 1 Name: libverto Version: 0.2.6 Release: 3.20 Summary: Main loop abstraction library License: MIT Group: Development/Libraries/C and C++ Url: https://fedorahosted.org/libverto Source: http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz Source1: baselibs.conf BuildRequires: pkg-config %description libverto provides a way for libraries to expose asynchronous interfaces without having to choose a particular event loop, offloading this decision to the end application which consumes the library. If you are packaging an application, not library, based on libverto, you should depend either on a specific implementation module or you can depend on the virtual provides 'libverto-module-base'. This will ensure that you have at least one module installed that provides io, timeout and signal functionality. Currently glib is the only module that does not provide these three because it lacks signal. However, glib will support signal in the future. %package -n %{name}%{sover} Summary: Runtime libraries for libverto Group: Development/Libraries/C and C++ %description -n %{name}%{sover} libverto provides a way for libraries to expose asynchronous interfaces without having to choose a particular event loop, offloading this decision to the end application which consumes the library. If you are packaging an application, not library, based on libverto, you should depend either on a specific implementation module or you can depend on the virtual provides 'libverto-module-base'. This will ensure that you have at least one module installed that provides io, timeout and signal functionality. Currently glib is the only module that does not provide these three because it lacks signal. However, glib will support signal in the future. %package devel Summary: Development files for libverto Group: Development/Libraries/C and C++ Requires: %{name}%{sover} = %{version} %description devel The libverto-devel package contains libraries and header files for developing applications that use libverto. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -name '*.so.*T' -delete %post -n libverto%{sover} -p /sbin/ldconfig %postun -n libverto%{sover} -p /sbin/ldconfig %files -n libverto%{sover} %defattr(-,root,root) %license COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/%{name}.so.* %files devel %defattr(-,root,root) %{_includedir}/verto.h %{_includedir}/verto-module.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog