libverto/libverto.spec

206 lines
6.4 KiB
RPMSpec

#
# 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/
#
%define sover 1
Name: libverto
Version: 0.2.6
Release: 0
Summary: Main loop abstraction library
License: MIT
Group: Development/Libraries/C and C++
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.
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 %{name}%{sover}
Summary: Runtime libraries for libverto
Group: Development/Libraries/C and C++
%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.
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 libverto
Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
%description devel
The libverto-devel package contains libraries and header files
for developing applications that use libverto.
%package glib%{sover}
Summary: Backend module for libverto -- glib
Group: Development/Libraries/C and C++
%description glib%{sover}
Module for libverto which provides integration with glib.
This package does NOT yet provide libverto-module-base.
%package glib-devel
Summary: Development files for libverto-glib%{sover}
Group: Development/Libraries/C and C++
Requires: %{name}-devel%{?_isa} = %{version}
Requires: %{name}-glib%{sover}%{?_isa} = %{version}
%description glib-devel
The libverto-glib-devel package contains libraries and header files
for developing applications that use libverto-glib.
%package tevent%{sover}
Summary: Backend module for libverto -- tevent
Group: Development/Libraries/C and C++
Provides: %{name}-module-base = %{version}
%description tevent%{sover}
Module for libverto which provides integration with tevent.
This package provides libverto-module-base since it supports io,
timeout and signal.
%package tevent-devel
Summary: Development files for libverto-tevent%{sover}
Group: Development/Libraries/C and C++
Requires: %{name}-devel%{?_isa} = %{version}
Requires: %{name}-tevent%{sover}%{?_isa} = %{version}
%description tevent-devel
The libverto-tevent-devel package contains libraries and header
files for developing applications that use libverto-tevent.
%package libev%{sover}
Summary: Backend module for libverto -- libev%{sover}
Group: Development/Libraries/C and C++
Provides: %{name}-module-base = %{version}
%description libev%{sover}
Module for libverto which provides integration with libev.
This package provides libverto-module-base since it supports io,
timeout and signal.
%package libev-devel
Summary: Development files for libverto-libev%{sover}
Group: Development/Libraries/C and C++
Requires: %{name}-devel%{?_isa} = %{version}
Requires: %{name}-libev%{sover}%{?_isa} = %{version}
%description libev-devel
The libverto-libev-devel package contains libraries and header
files for developing applications that use libverto-libev.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -name '*.so.*T' -delete
%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
%postun tevent%{sover} -p /sbin/ldconfig
%post libev%{sover} -p /sbin/ldconfig
%postun libev%{sover} -p /sbin/ldconfig
%files -n libverto%{sover}
%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%{sover}
%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%{sover}
%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%{sover}
%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