commit 691fb437194f8ca7efeffae7a772a3cc0217f42d Author: zyppe <210hcl@gmail.com> Date: Thu Feb 29 16:00:53 2024 +0800 Initialize for libverto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c26878a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +libverto-0.2.6.tar.gz diff --git a/.libverto.metadata b/.libverto.metadata new file mode 100644 index 0000000..5cfecd3 --- /dev/null +++ b/.libverto.metadata @@ -0,0 +1 @@ +f68d97f1d0dff728582ef33c8ff32360a7316178115d83890468af528b58168a libverto-0.2.6.tar.gz diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..6e46f9c --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,5 @@ +libverto1 +libverto-devel +libverto-glib1 +libverto-libev1 +libverto-tevent1 diff --git a/libverto.changes b/libverto.changes new file mode 100644 index 0000000..05e306e --- /dev/null +++ b/libverto.changes @@ -0,0 +1,20 @@ +* Thu Feb 22 2018 fvogt@suse.com +- Use %%license (boo#1082318) +* Sun Oct 29 2017 meissner@suse.com +- add libverto-devel baselib for use by libkrb5-devel-32bit, + for use by Wine 32bit. +* Tue Jun 6 2017 hguo@suse.com +- There is no change made about the package itself, this is only + copying over some changelog texts from SLE package: +- [fate#320326](https://fate.suse.com/320326) +* Mon May 16 2016 mlin@suse.com +- Split off libev, glib and tevent module to sub-package +* Mon Jun 22 2015 hguo@suse.com +- Remove irrelevant changelog entries from changelog file. +* Sat May 30 2015 sor.alexei@meowr.ru +- Add baselibs.conf to enable multilib. +- Spec cleanup. +* Fri May 8 2015 pth@suse.de +- Name shared library packages according to policy. +* Fri May 8 2015 hguo@suse.com +- Source extracted from Fedora 21 release SRPM, with minor adjustments. diff --git a/libverto.spec b/libverto.spec new file mode 100644 index 0000000..cc0d392 --- /dev/null +++ b/libverto.spec @@ -0,0 +1,90 @@ +# +# 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