2015-05-09 12:40:58 +02:00
|
|
|
#
|
|
|
|
# spec file for package libverto
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libverto
|
|
|
|
Version: 0.2.6
|
2015-05-09 12:42:35 +02:00
|
|
|
Release: 0
|
2015-05-09 12:40:58 +02:00
|
|
|
Summary: Main loop abstraction library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://fedorahosted.org/libverto/
|
|
|
|
Source0: http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libev-devel
|
|
|
|
BuildRequires: libtevent-devel
|
|
|
|
%global lib_version 1
|
|
|
|
|
|
|
|
%description -n libverto
|
|
|
|
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 libverto%{lib_version}
|
|
|
|
Summary: Runtime libraries for libverto
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libverto%{lib_version}
|
|
|
|
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 %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{lib_version} = %{version}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package glib%{lib_version}
|
|
|
|
Summary: Backend module for %{name} - glib
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description glib%{lib_version}
|
|
|
|
Module for %{name} which provides integration with glib.
|
|
|
|
|
|
|
|
This package does NOT yet provide %{name}-module-base.
|
|
|
|
|
|
|
|
%package glib-devel
|
|
|
|
Summary: Development files for %{name}-glib%{lib_version}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-glib%{lib_version}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description glib-devel
|
|
|
|
The %{name}-glib-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}-glib%{lib_version}.
|
|
|
|
|
|
|
|
%package tevent%{lib_version}
|
|
|
|
Summary: Backend module for %{name} - tevent
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: %{name}-module-base = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tevent%{lib_version}
|
|
|
|
Module for %{name} which provides integration with tevent.
|
|
|
|
|
|
|
|
This package provides %{name}-module-base since it supports io, timeout
|
|
|
|
and signal.
|
|
|
|
|
|
|
|
%package tevent-devel
|
|
|
|
Summary: Development files for %{name}-tevent%{lib_version}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-tevent%{lib_version}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tevent-devel
|
|
|
|
The %{name}-tevent-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}-tevent.
|
|
|
|
|
|
|
|
%package libev%{lib_version}
|
|
|
|
Summary: Backend module for %{name} - libev%{lib_version}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: %{name}-module-base = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libev%{lib_version}
|
|
|
|
Module for %{name} which provides integration with libev.
|
|
|
|
|
|
|
|
This package provides %{name}-module-base since it supports io, timeout
|
|
|
|
and signal.
|
|
|
|
|
|
|
|
%package libev-devel
|
|
|
|
Summary: Development files for %{name}-libev%{lib_version}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-libev%{lib_version}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libev-devel
|
|
|
|
The %{name}-libev-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}-libev.
|
|
|
|
|
|
|
|
This package provides %{name}-module-base since it supports io, timeout
|
|
|
|
and signal.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
find %{buildroot} -name '*.so.*T' -delete
|
|
|
|
|
|
|
|
%post -n libverto%{lib_version} -p /sbin/ldconfig
|
|
|
|
%postun -n libverto%{lib_version} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post glib%{lib_version} -p /sbin/ldconfig
|
|
|
|
%postun glib%{lib_version} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post tevent%{lib_version} -p /sbin/ldconfig
|
|
|
|
%postun tevent%{lib_version} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post libev%{lib_version} -p /sbin/ldconfig
|
|
|
|
%postun libev%{lib_version} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libverto%{lib_version}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS ChangeLog NEWS README COPYING
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/verto.h
|
|
|
|
%{_includedir}/verto-module.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%files glib%{lib_version}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/%{name}-glib.so.*
|
|
|
|
|
|
|
|
%files glib-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/verto-glib.h
|
|
|
|
%{_libdir}/%{name}-glib.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-glib.pc
|
|
|
|
|
|
|
|
%files tevent%{lib_version}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/%{name}-tevent.so.*
|
|
|
|
|
|
|
|
%files tevent-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/verto-tevent.h
|
|
|
|
%{_libdir}/%{name}-tevent.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-tevent.pc
|
|
|
|
|
|
|
|
%files libev%{lib_version}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/%{name}-libev.so.*
|
|
|
|
|
|
|
|
%files libev-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/verto-libev.h
|
|
|
|
%{_libdir}/%{name}-libev.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-libev.pc
|
|
|
|
|
|
|
|
%changelog
|