libverto/libverto.spec
2023-03-28 17:45:33 +08:00

116 lines
3.2 KiB
RPMSpec

Name: libverto
Version: 0.3.2
Release: 3
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
BuildRequires: libevent-devel libev-devel
Obsoletes: libverto-tevent < 0.3.0-2
Obsoletes: libverto-tevent-devel < 0.3.0-2
Provides: %{name}-glib
Obsoletes: %{name}-glib < %{version}-%{release}
Provides: %{name}-module-base = %{version}-%{release}
Provides: %{name}-libevent
Obsoletes: %{name}-libevent < %{version}-%{release}
Provides: %{name}-libev
Obsoletes: %{name}-libev < %{version}-%{release}
%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
Obsoletes: %{name}-glib-devel < %{version}-%{release}
Provides: %{name}-libevent-devel
Obsoletes: %{name}-libevent-devel < %{version}-%{release}
Provides: %{name}-libev-devel
Obsoletes: %{name}-libev-devel < %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -fiv
%configure --disable-static
%make_build
%install
rm -rf %{buildroot}
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%ldconfig_scriptlets
%check
make check
%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
* Tue Mar 28 2023 fuanan <fuanan3@h-partners.com> - 0.3.2-3
- enable check test suite
* Wed Sep 7 2022 fuanan <fuanan3@h-partners.com> - 0.3.2-2
- Add version for Obsoletes
* Tue Dec 28 2021 fuanan <fuanan3@huawei.com> - 0.3.2-1
- DESC:update version to 0.3.2
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.3.1-3
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* 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
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.1-1
- Package init