2019-09-30 10:58:45 -04:00
|
|
|
Name: libverto
|
2021-12-28 16:58:25 +08:00
|
|
|
Version: 0.3.2
|
2023-03-28 16:02:09 +08:00
|
|
|
Release: 3
|
2019-09-30 10:58:45 -04:00
|
|
|
Summary: Main loop abstraction library
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/latchset/libverto
|
|
|
|
|
Source0: https://github.com/latchset/libverto/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool glib2-devel
|
2021-07-30 23:04:18 +08:00
|
|
|
BuildRequires: libevent-devel libev-devel
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
Obsoletes: libverto-tevent < 0.3.0-2
|
|
|
|
|
Obsoletes: libverto-tevent-devel < 0.3.0-2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-glib
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-glib < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
Provides: %{name}-module-base = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-libevent
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-libevent < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
Provides: %{name}-libev
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-libev < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libverto exists to solve an important problem: many applications and libraries
|
|
|
|
|
are unable to write asynchronous code because they are unable to pick an event
|
|
|
|
|
loop. This is particularly true of libraries who want to be useful to many
|
|
|
|
|
applications who use loops that do not integrate with one another or which
|
|
|
|
|
use home-grown loops. libverto provides a loop-neutral async api which allows
|
|
|
|
|
the library to expose asynchronous interfaces and offload the choice of the
|
|
|
|
|
main loop to the application.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-glib-devel
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-glib-devel < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
Provides: %{name}-libevent-devel
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-libevent-devel < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
Provides: %{name}-libev-devel
|
2022-09-07 15:38:56 +08:00
|
|
|
Obsoletes: %{name}-libev-devel < %{version}-%{release}
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-30 23:04:18 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 10:58:45 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -fiv
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
%make_install
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
2023-03-28 16:02:09 +08:00
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
2019-09-30 10:58:45 -04:00
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
%{_libdir}/%{name}-glib.so.*
|
|
|
|
|
%{_libdir}/%{name}-libevent.so.*
|
|
|
|
|
%{_libdir}/%{name}-libev.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/verto.h
|
|
|
|
|
%{_includedir}/verto-module.h
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_includedir}/verto-glib.h
|
|
|
|
|
%{_libdir}/%{name}-glib.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}-glib.pc
|
|
|
|
|
%{_includedir}/verto-libevent.h
|
|
|
|
|
%{_libdir}/%{name}-libevent.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}-libevent.pc
|
|
|
|
|
%{_includedir}/verto-libev.h
|
|
|
|
|
%{_libdir}/%{name}-libev.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}-libev.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-03-28 16:02:09 +08:00
|
|
|
* Tue Mar 28 2023 fuanan <fuanan3@h-partners.com> - 0.3.2-3
|
|
|
|
|
- enable check test suite
|
|
|
|
|
|
2022-09-07 15:38:56 +08:00
|
|
|
* Wed Sep 7 2022 fuanan <fuanan3@h-partners.com> - 0.3.2-2
|
|
|
|
|
- Add version for Obsoletes
|
|
|
|
|
|
2021-12-28 16:58:25 +08:00
|
|
|
* Tue Dec 28 2021 fuanan <fuanan3@huawei.com> - 0.3.2-1
|
|
|
|
|
- DESC:update version to 0.3.2
|
|
|
|
|
|
2021-07-30 23:04:18 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.3.1-3
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2019-11-06 19:40:48 +08:00
|
|
|
* Mon Oct 21 2019 shenyangyang <shenyangyang4@huawei.com> - 0.3.1-2
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove libev.so* that should provided by libev
|
|
|
|
|
|
2019-09-30 10:58:45 -04:00
|
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.1-1
|
|
|
|
|
- Package init
|