e1638aa
%global homepage https://github.com/latchset/libverto
e1638aa
Nathaniel McCallum 2964adb
Name:           libverto
Nathaniel McCallum cad3f0d
Version:        0.2.6
02d57bd
Release:        11%{?dist}
Nathaniel McCallum 2964adb
Summary:        Main loop abstraction library
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
License:        MIT
e1638aa
URL:            %{homepage}
e1638aa
Source0:        %{homepage}/releases/download/%{version}/%{name}-%{version}.tar.gz
Nathaniel McCallum 2964adb
02d57bd
Patch0: Add-Travis-support.patch
02d57bd
Patch1: Add-a-CI-target-for-clang.patch
02d57bd
Patch2: Enable-and-fix-all-warnings.patch
02d57bd
Patch3: Fix-memleak-in-libverto-vfree.patch
02d57bd
02d57bd
BuildRequires:  autoconf
02d57bd
BuildRequires:  automake
02d57bd
BuildRequires:  libtool
02d57bd
Nathaniel McCallum 2964adb
BuildRequires:  glib2-devel
Nathaniel McCallum 2964adb
BuildRequires:  libevent-devel
Nathaniel McCallum 2964adb
BuildRequires:  libtevent-devel
Nathaniel McCallum 4538603
%if !0%{?rhel}
Nathaniel McCallum 4538603
BuildRequires:  libev-devel
Nathaniel McCallum 4538603
%endif
Nathaniel McCallum 2964adb
bfd76d7
BuildRequires:  git
bfd76d7
Nathaniel McCallum 2964adb
%description
Nathaniel McCallum 2964adb
libverto provides a way for libraries to expose asynchronous interfaces
Nathaniel McCallum 2964adb
without having to choose a particular event loop, offloading this
Nathaniel McCallum 2964adb
decision to the end application which consumes the library.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
If you are packaging an application, not library, based on libverto,
Nathaniel McCallum 2964adb
you should depend either on a specific implementation module or you
Nathaniel McCallum 2964adb
can depend on the virtual provides 'libverto-module-base'. This will
Nathaniel McCallum 2964adb
ensure that you have at least one module installed that provides io,
Nathaniel McCallum 2964adb
timeout and signal functionality. Currently glib is the only module
Nathaniel McCallum 2964adb
that does not provide these three because it lacks signal. However,
Nathaniel McCallum 2964adb
glib will support signal in the future.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        devel
Nathaniel McCallum 2964adb
Summary:        Development files for %{name}
Nathaniel McCallum 2964adb
Requires:       %{name}%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Requires:       pkgconfig
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    devel
Nathaniel McCallum 2964adb
The %{name}-devel package contains libraries and header files for
Nathaniel McCallum 2964adb
developing applications that use %{name}.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        glib
Nathaniel McCallum 2964adb
Summary:        glib module for %{name}
Nathaniel McCallum 2964adb
Requires:       %{name}%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    glib
Nathaniel McCallum 2964adb
Module for %{name} which provides integration with glib.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
This package does NOT yet provide %{name}-module-base.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        glib-devel
Nathaniel McCallum 2964adb
Summary:        Development files for %{name}-glib
Nathaniel McCallum 2964adb
Requires:       %{name}-glib%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    glib-devel
Nathaniel McCallum 2964adb
The %{name}-glib-devel package contains libraries and header files for
Nathaniel McCallum 2964adb
developing applications that use %{name}-glib.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        libevent
Nathaniel McCallum 2964adb
Summary:        libevent module for %{name}
Nathaniel McCallum 2964adb
Requires:       %{name}%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Provides:       %{name}-module-base = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    libevent
Nathaniel McCallum 2964adb
Module for %{name} which provides integration with libevent.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        libevent-devel
Nathaniel McCallum 2964adb
Summary:        Development files for %{name}-libevent
Nathaniel McCallum 2964adb
Requires:       %{name}-libevent%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    libevent-devel
Nathaniel McCallum 2964adb
The %{name}-libevent-devel package contains libraries and header files for
Nathaniel McCallum 2964adb
developing applications that use %{name}-libevent.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        tevent
Nathaniel McCallum 2964adb
Summary:        tevent module for %{name}
Nathaniel McCallum 2964adb
Requires:       %{name}%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Provides:       %{name}-module-base = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    tevent
Nathaniel McCallum 2964adb
Module for %{name} which provides integration with tevent.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
This package provides %{name}-module-base since it supports io, timeout
Nathaniel McCallum 2964adb
and signal.
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%package        tevent-devel
Nathaniel McCallum 2964adb
Summary:        Development files for %{name}-tevent
Nathaniel McCallum 2964adb
Requires:       %{name}-tevent%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%description    tevent-devel
Nathaniel McCallum 2964adb
The %{name}-tevent-devel package contains libraries and header files for
Nathaniel McCallum 2964adb
developing applications that use %{name}-tevent.
Nathaniel McCallum 2964adb
Nathaniel McCallum 4538603
%if !0%{?rhel}
Nathaniel McCallum 4538603
%package        libev
Nathaniel McCallum 4538603
Summary:        libev module for %{name}
Nathaniel McCallum 4538603
Requires:       %{name}%{?_isa} = %{version}-%{release}
Nathaniel McCallum 4538603
Provides:       %{name}-module-base = %{version}-%{release}
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
%description    libev
Nathaniel McCallum 4538603
Module for %{name} which provides integration with libev.
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
This package provides %{name}-module-base since it supports io, timeout
Nathaniel McCallum 4538603
and signal.
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
%package        libev-devel
Nathaniel McCallum 4538603
Summary:        Development files for %{name}-libev
Nathaniel McCallum 4538603
Requires:       %{name}-libev%{?_isa} = %{version}-%{release}
Nathaniel McCallum 4538603
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
%description    libev-devel
Nathaniel McCallum 4538603
The %{name}-libev-devel package contains libraries and header files for
Nathaniel McCallum 4538603
developing applications that use %{name}-libev.
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
This package provides %{name}-module-base since it supports io, timeout
Nathaniel McCallum 4538603
and signal.
Nathaniel McCallum 4538603
%endif
Nathaniel McCallum 4538603
Nathaniel McCallum 2964adb
%prep
e1638aa
%autosetup -S git
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%build
02d57bd
autoreconf -fiv
Nathaniel McCallum 2964adb
%configure --disable-static
Nathaniel McCallum 2964adb
make %{?_smp_mflags}
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%install
Nathaniel McCallum 2964adb
rm -rf $RPM_BUILD_ROOT
Nathaniel McCallum 2964adb
make install DESTDIR=$RPM_BUILD_ROOT
Nathaniel McCallum 2964adb
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%post -p /sbin/ldconfig
Nathaniel McCallum 2964adb
%postun -p /sbin/ldconfig
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%post -n %{name}-glib -p /sbin/ldconfig
Nathaniel McCallum 2964adb
%postun -n %{name}-glib -p /sbin/ldconfig
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%post -n %{name}-libevent -p /sbin/ldconfig
Nathaniel McCallum 2964adb
%postun -n %{name}-libevent -p /sbin/ldconfig
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%post -n %{name}-tevent -p /sbin/ldconfig
Nathaniel McCallum 2964adb
%postun -n %{name}-tevent -p /sbin/ldconfig
Nathaniel McCallum 2964adb
Nathaniel McCallum 4538603
%if !0%{?rhel}
Nathaniel McCallum 4538603
%post -n %{name}-libev -p /sbin/ldconfig
Nathaniel McCallum 4538603
%postun -n %{name}-libev -p /sbin/ldconfig
Nathaniel McCallum 4538603
%endif
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files
e474f26
%{!?_licensedir:%global license %%doc}
e474f26
%license COPYING
e474f26
%doc AUTHORS ChangeLog NEWS README
Nathaniel McCallum 2964adb
%{_libdir}/%{name}.so.*
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files devel
Nathaniel McCallum 2964adb
%{_includedir}/verto.h
Nathaniel McCallum 2964adb
%{_includedir}/verto-module.h
Nathaniel McCallum 2964adb
%{_libdir}/%{name}.so
Nathaniel McCallum 2964adb
%{_libdir}/pkgconfig/%{name}.pc
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files glib
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-glib.so.*
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files glib-devel
Nathaniel McCallum 2964adb
%{_includedir}/verto-glib.h
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-glib.so
Nathaniel McCallum 2964adb
%{_libdir}/pkgconfig/%{name}-glib.pc
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files libevent
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-libevent.so.*
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files libevent-devel
Nathaniel McCallum 2964adb
%{_includedir}/verto-libevent.h
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-libevent.so
Nathaniel McCallum 2964adb
%{_libdir}/pkgconfig/%{name}-libevent.pc
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files tevent
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-tevent.so.*
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
%files tevent-devel
Nathaniel McCallum 2964adb
%{_includedir}/verto-tevent.h
Nathaniel McCallum 2964adb
%{_libdir}/%{name}-tevent.so
Nathaniel McCallum 2964adb
%{_libdir}/pkgconfig/%{name}-tevent.pc
Nathaniel McCallum 2964adb
Nathaniel McCallum 4538603
%if !0%{?rhel}
Nathaniel McCallum 4538603
%files libev
Nathaniel McCallum 4538603
%{_libdir}/%{name}-libev.so.*
Nathaniel McCallum 4538603
Nathaniel McCallum 4538603
%files libev-devel
Nathaniel McCallum 4538603
%{_includedir}/verto-libev.h
Nathaniel McCallum 4538603
%{_libdir}/%{name}-libev.so
Nathaniel McCallum 4538603
%{_libdir}/pkgconfig/%{name}-libev.pc
Nathaniel McCallum 4538603
%endif
Nathaniel McCallum 4538603
Nathaniel McCallum 2964adb
%changelog
02d57bd
* Mon Aug 07 2017 Robbie Harwood <rharwood@redhat.com> - 0.2.6-11
02d57bd
- Fix memleak in vfree()
02d57bd
- Misc spec file fixes
02d57bd
52322a3
* Thu Aug 03 2017 Robbie Harwood <rharwood@redhat.com> - 0.2.6-10
52322a3
- Fix all compile warnings
52322a3
e1638aa
* Tue Aug 01 2017 Robbie Harwood <rharwood@redhat.com> - 0.2.6-9
e1638aa
- Update upstream URLs (no functional changes)
e1638aa
- Move to autosetup
e1638aa
25cf0c3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-8
25cf0c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
25cf0c3
521cea8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-7
521cea8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
521cea8
587a684
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-6
587a684
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
587a684
5263823
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-5
5263823
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5263823
ba08594
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
ba08594
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ba08594
e474f26
* Fri Jul 18 2014 Tom Callaway <spot@fedoraproject.org> - 0.2.6-3
e474f26
- fix license handling
e474f26
6c7892b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-2
6c7892b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6c7892b
Nathaniel McCallum cad3f0d
* Wed Mar 12 2014 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.6-1
Nathaniel McCallum cad3f0d
- Update to 0.2.6
Nathaniel McCallum cad3f0d
bfa23b1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-3
bfa23b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bfa23b1
753c711
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
753c711
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
753c711
Nathaniel McCallum cad3f0d
* Sat Aug 25 2012 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.5-1
Nathaniel McCallum 4ad3fc0
- Update to 0.2.5
Nathaniel McCallum 4ad3fc0
- Drop libverto-0.2.4-fix-libev.patch
Nathaniel McCallum 4ad3fc0
Nathaniel McCallum 4538603
* Tue Aug 07 2012 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.4-4
Nathaniel McCallum 4538603
- Don't build libev on RHEL
Nathaniel McCallum 4538603
e7e715e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
e7e715e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e7e715e
Nathaniel McCallum edd1afd
* Mon Feb 13 2012 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.4-2
Nathaniel McCallum edd1afd
- Added libverto-0.2.4-fix-libev.patch
Nathaniel McCallum edd1afd
Nathaniel McCallum edd1afd
* Thu Feb 09 2012 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.4-1
Nathaniel McCallum ac3c68a
- Update to 0.2.4 release
Nathaniel McCallum ac3c68a
Nathaniel McCallum e6240e5
* Wed Feb 08 2012 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.3-1
Nathaniel McCallum e6240e5
- Update to 0.2.3 release
Nathaniel McCallum e6240e5
Nathaniel McCallum f7a9b76
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2
Nathaniel McCallum f7a9b76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Nathaniel McCallum f7a9b76
Nathaniel McCallum b4d30f2
* Fri Nov 11 2011 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.2-1
Nathaniel McCallum b4d30f2
- Update to 0.2.2 release
Nathaniel McCallum b4d30f2
- Add ChangeLog documentation
Nathaniel McCallum b4d30f2
Nathaniel McCallum b4d30f2
* Fri Nov 11 2011 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.1-2
Nathaniel McCallum 2964adb
- Fix Requires to have proper ISA dependencies
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
* Thu Nov 10 2011 Nathaniel McCallum <npmccallum@redhat.com> - 0.2.1-1
Nathaniel McCallum 2964adb
- Update to 0.2.1
Nathaniel McCallum 2964adb
Nathaniel McCallum 2964adb
* Mon Aug 15 2011 Nathaniel McCallum <npmccallum@redhat.com> - 0.1-1
Nathaniel McCallum 2964adb
- Initial release
Nathaniel McCallum 2964adb