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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%define sover 1
|
2015-05-09 12:40:58 +02:00
|
|
|
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++
|
2015-05-31 13:20:18 +02:00
|
|
|
Url: https://fedorahosted.org/libverto
|
|
|
|
Source: http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libev)
|
|
|
|
BuildRequires: pkgconfig(tevent)
|
|
|
|
|
|
|
|
%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.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%package -n %{name}%{sover}
|
2015-05-09 12:40:58 +02:00
|
|
|
Summary: Runtime libraries for libverto
|
2015-05-31 13:20:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%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.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
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
|
2015-05-31 13:20:18 +02:00
|
|
|
Summary: Development files for libverto
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%description devel
|
2015-05-31 13:20:18 +02:00
|
|
|
The libverto-devel package contains libraries and header files
|
|
|
|
for developing applications that use libverto.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%package glib%{sover}
|
|
|
|
Summary: Backend module for libverto -- glib
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%description glib%{sover}
|
|
|
|
Module for libverto which provides integration with glib.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
This package does NOT yet provide libverto-module-base.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%package glib-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
Summary: Development files for libverto-glib%{sover}
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}
|
|
|
|
Requires: %{name}-glib%{sover}%{?_isa} = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%description glib-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
The libverto-glib-devel package contains libraries and header files
|
|
|
|
for developing applications that use libverto-glib.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%package tevent%{sover}
|
|
|
|
Summary: Backend module for libverto -- tevent
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Provides: %{name}-module-base = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%description tevent%{sover}
|
|
|
|
Module for libverto which provides integration with tevent.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
This package provides libverto-module-base since it supports io,
|
|
|
|
timeout and signal.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%package tevent-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
Summary: Development files for libverto-tevent%{sover}
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}
|
|
|
|
Requires: %{name}-tevent%{sover}%{?_isa} = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%description tevent-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
The libverto-tevent-devel package contains libraries and header
|
|
|
|
files for developing applications that use libverto-tevent.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%package libev%{sover}
|
|
|
|
Summary: Backend module for libverto -- libev%{sover}
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Provides: %{name}-module-base = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%description libev%{sover}
|
|
|
|
Module for libverto which provides integration with libev.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
This package provides libverto-module-base since it supports io,
|
|
|
|
timeout and signal.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%package libev-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
Summary: Development files for libverto-libev%{sover}
|
2015-05-09 12:40:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-05-31 13:20:18 +02:00
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}
|
|
|
|
Requires: %{name}-libev%{sover}%{?_isa} = %{version}
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%description libev-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
The libverto-libev-devel package contains libraries and header
|
|
|
|
files for developing applications that use libverto-libev.
|
2015-05-09 12:40:58 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2015-05-31 13:20:18 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-05-09 12:40:58 +02:00
|
|
|
find %{buildroot} -name '*.so.*T' -delete
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%post -n libverto%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libverto%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post glib%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun glib%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post tevent%{sover} -p /sbin/ldconfig
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%postun tevent%{sover} -p /sbin/ldconfig
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%post libev%{sover} -p /sbin/ldconfig
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%postun libev%{sover} -p /sbin/ldconfig
|
2015-05-09 12:40:58 +02:00
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%files -n libverto%{sover}
|
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%doc AUTHORS ChangeLog NEWS README COPYING
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
2015-05-31 13:20:18 +02:00
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_includedir}/verto.h
|
|
|
|
%{_includedir}/verto-module.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%files glib%{sover}
|
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_libdir}/%{name}-glib.so.*
|
|
|
|
|
|
|
|
%files glib-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_includedir}/verto-glib.h
|
|
|
|
%{_libdir}/%{name}-glib.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-glib.pc
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%files tevent%{sover}
|
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_libdir}/%{name}-tevent.so.*
|
|
|
|
|
|
|
|
%files tevent-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_includedir}/verto-tevent.h
|
|
|
|
%{_libdir}/%{name}-tevent.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-tevent.pc
|
|
|
|
|
2015-05-31 13:20:18 +02:00
|
|
|
%files libev%{sover}
|
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_libdir}/%{name}-libev.so.*
|
|
|
|
|
|
|
|
%files libev-devel
|
2015-05-31 13:20:18 +02:00
|
|
|
%defattr(-,root,root)
|
2015-05-09 12:40:58 +02:00
|
|
|
%{_includedir}/verto-libev.h
|
|
|
|
%{_libdir}/%{name}-libev.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-libev.pc
|
|
|
|
|
|
|
|
%changelog
|