forked from pool/libverto
Accepting request 309441 from network
1 OBS-URL: https://build.opensuse.org/request/show/309441 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libverto?expand=0&rev=2
This commit is contained in:
commit
8059591449
4
baselibs.conf
Normal file
4
baselibs.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
libverto1
|
||||||
|
libverto-glib1
|
||||||
|
libverto-libev1
|
||||||
|
libverto-tevent1
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 30 13:12:32 UTC 2015 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Add baselibs.conf to enable multilib.
|
||||||
|
- Spec cleanup.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 8 14:55:09 CEST 2015 - pth@suse.de
|
Fri May 8 14:55:09 CEST 2015 - pth@suse.de
|
||||||
|
|
||||||
|
164
libverto.spec
164
libverto.spec
@ -16,24 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define sover 1
|
||||||
Name: libverto
|
Name: libverto
|
||||||
Version: 0.2.6
|
Version: 0.2.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Main loop abstraction library
|
Summary: Main loop abstraction library
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://fedorahosted.org/libverto/
|
Url: https://fedorahosted.org/libverto
|
||||||
Source0: http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz
|
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)
|
||||||
|
|
||||||
BuildRequires: glib2-devel
|
%description
|
||||||
BuildRequires: libev-devel
|
libverto provides a way for libraries to expose asynchronous
|
||||||
BuildRequires: libtevent-devel
|
interfaces without having to choose a particular event loop,
|
||||||
%global lib_version 1
|
offloading this decision to the end application which consumes the
|
||||||
|
library.
|
||||||
%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,
|
If you are packaging an application, not library, based on libverto,
|
||||||
you should depend either on a specific implementation module or you
|
you should depend either on a specific implementation module or you
|
||||||
@ -43,14 +44,15 @@ timeout and signal functionality. Currently glib is the only module
|
|||||||
that does not provide these three because it lacks signal. However,
|
that does not provide these three because it lacks signal. However,
|
||||||
glib will support signal in the future.
|
glib will support signal in the future.
|
||||||
|
|
||||||
%package -n libverto%{lib_version}
|
%package -n %{name}%{sover}
|
||||||
Summary: Runtime libraries for libverto
|
Summary: Runtime libraries for libverto
|
||||||
Group: System/Libraries
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n libverto%{lib_version}
|
%description -n %{name}%{sover}
|
||||||
libverto provides a way for libraries to expose asynchronous interfaces
|
libverto provides a way for libraries to expose asynchronous
|
||||||
without having to choose a particular event loop, offloading this
|
interfaces without having to choose a particular event loop,
|
||||||
decision to the end application which consumes the library.
|
offloading this decision to the end application which consumes the
|
||||||
|
library.
|
||||||
|
|
||||||
If you are packaging an application, not library, based on libverto,
|
If you are packaging an application, not library, based on libverto,
|
||||||
you should depend either on a specific implementation module or you
|
you should depend either on a specific implementation module or you
|
||||||
@ -61,78 +63,74 @@ that does not provide these three because it lacks signal. However,
|
|||||||
glib will support signal in the future.
|
glib will support signal in the future.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for libverto
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}%{lib_version} = %{version}
|
Requires: %{name}%{sover} = %{version}
|
||||||
Requires: pkgconfig
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The libverto-devel package contains libraries and header files
|
||||||
developing applications that use %{name}.
|
for developing applications that use libverto.
|
||||||
|
|
||||||
%package glib%{lib_version}
|
%package glib%{sover}
|
||||||
Summary: Backend module for %{name} - glib
|
Summary: Backend module for libverto -- glib
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description glib%{lib_version}
|
%description glib%{sover}
|
||||||
Module for %{name} which provides integration with glib.
|
Module for libverto which provides integration with glib.
|
||||||
|
|
||||||
This package does NOT yet provide %{name}-module-base.
|
This package does NOT yet provide libverto-module-base.
|
||||||
|
|
||||||
%package glib-devel
|
%package glib-devel
|
||||||
Summary: Development files for %{name}-glib%{lib_version}
|
Summary: Development files for libverto-glib%{sover}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
Requires: %{name}-devel%{?_isa} = %{version}
|
||||||
Requires: %{name}-glib%{lib_version}%{?_isa} = %{version}-%{release}
|
Requires: %{name}-glib%{sover}%{?_isa} = %{version}
|
||||||
|
|
||||||
%description glib-devel
|
%description glib-devel
|
||||||
The %{name}-glib-devel package contains libraries and header files for
|
The libverto-glib-devel package contains libraries and header files
|
||||||
developing applications that use %{name}-glib%{lib_version}.
|
for developing applications that use libverto-glib.
|
||||||
|
|
||||||
%package tevent%{lib_version}
|
%package tevent%{sover}
|
||||||
Summary: Backend module for %{name} - tevent
|
Summary: Backend module for libverto -- tevent
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Provides: %{name}-module-base = %{version}-%{release}
|
Provides: %{name}-module-base = %{version}
|
||||||
|
|
||||||
%description tevent%{lib_version}
|
%description tevent%{sover}
|
||||||
Module for %{name} which provides integration with tevent.
|
Module for libverto which provides integration with tevent.
|
||||||
|
|
||||||
This package provides %{name}-module-base since it supports io, timeout
|
This package provides libverto-module-base since it supports io,
|
||||||
and signal.
|
timeout and signal.
|
||||||
|
|
||||||
%package tevent-devel
|
%package tevent-devel
|
||||||
Summary: Development files for %{name}-tevent%{lib_version}
|
Summary: Development files for libverto-tevent%{sover}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
Requires: %{name}-devel%{?_isa} = %{version}
|
||||||
Requires: %{name}-tevent%{lib_version}%{?_isa} = %{version}-%{release}
|
Requires: %{name}-tevent%{sover}%{?_isa} = %{version}
|
||||||
|
|
||||||
%description tevent-devel
|
%description tevent-devel
|
||||||
The %{name}-tevent-devel package contains libraries and header files for
|
The libverto-tevent-devel package contains libraries and header
|
||||||
developing applications that use %{name}-tevent.
|
files for developing applications that use libverto-tevent.
|
||||||
|
|
||||||
%package libev%{lib_version}
|
%package libev%{sover}
|
||||||
Summary: Backend module for %{name} - libev%{lib_version}
|
Summary: Backend module for libverto -- libev%{sover}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Provides: %{name}-module-base = %{version}-%{release}
|
Provides: %{name}-module-base = %{version}
|
||||||
|
|
||||||
%description libev%{lib_version}
|
%description libev%{sover}
|
||||||
Module for %{name} which provides integration with libev.
|
Module for libverto which provides integration with libev.
|
||||||
|
|
||||||
This package provides %{name}-module-base since it supports io, timeout
|
This package provides libverto-module-base since it supports io,
|
||||||
and signal.
|
timeout and signal.
|
||||||
|
|
||||||
%package libev-devel
|
%package libev-devel
|
||||||
Summary: Development files for %{name}-libev%{lib_version}
|
Summary: Development files for libverto-libev%{sover}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
Requires: %{name}-devel%{?_isa} = %{version}
|
||||||
Requires: %{name}-libev%{lib_version}%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libev%{sover}%{?_isa} = %{version}
|
||||||
|
|
||||||
%description libev-devel
|
%description libev-devel
|
||||||
The %{name}-libev-devel package contains libraries and header files for
|
The libverto-libev-devel package contains libraries and header
|
||||||
developing applications that use %{name}-libev.
|
files for developing applications that use libverto-libev.
|
||||||
|
|
||||||
This package provides %{name}-module-base since it supports io, timeout
|
|
||||||
and signal.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -142,60 +140,64 @@ and signal.
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
find %{buildroot} -name '*.la' -delete
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
find %{buildroot} -name '*.so.*T' -delete
|
find %{buildroot} -name '*.so.*T' -delete
|
||||||
|
|
||||||
%post -n libverto%{lib_version} -p /sbin/ldconfig
|
%post -n libverto%{sover} -p /sbin/ldconfig
|
||||||
%postun -n libverto%{lib_version} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post glib%{lib_version} -p /sbin/ldconfig
|
%postun -n libverto%{sover} -p /sbin/ldconfig
|
||||||
%postun glib%{lib_version} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post tevent%{lib_version} -p /sbin/ldconfig
|
%post glib%{sover} -p /sbin/ldconfig
|
||||||
%postun tevent%{lib_version} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post libev%{lib_version} -p /sbin/ldconfig
|
%postun glib%{sover} -p /sbin/ldconfig
|
||||||
%postun libev%{lib_version} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files -n libverto%{lib_version}
|
%post tevent%{sover} -p /sbin/ldconfig
|
||||||
%defattr(-,root,root,-)
|
|
||||||
|
%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
|
%doc AUTHORS ChangeLog NEWS README COPYING
|
||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/verto.h
|
%{_includedir}/verto.h
|
||||||
%{_includedir}/verto-module.h
|
%{_includedir}/verto-module.h
|
||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%files glib%{lib_version}
|
%files glib%{sover}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/%{name}-glib.so.*
|
%{_libdir}/%{name}-glib.so.*
|
||||||
|
|
||||||
%files glib-devel
|
%files glib-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/verto-glib.h
|
%{_includedir}/verto-glib.h
|
||||||
%{_libdir}/%{name}-glib.so
|
%{_libdir}/%{name}-glib.so
|
||||||
%{_libdir}/pkgconfig/%{name}-glib.pc
|
%{_libdir}/pkgconfig/%{name}-glib.pc
|
||||||
|
|
||||||
%files tevent%{lib_version}
|
%files tevent%{sover}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/%{name}-tevent.so.*
|
%{_libdir}/%{name}-tevent.so.*
|
||||||
|
|
||||||
%files tevent-devel
|
%files tevent-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/verto-tevent.h
|
%{_includedir}/verto-tevent.h
|
||||||
%{_libdir}/%{name}-tevent.so
|
%{_libdir}/%{name}-tevent.so
|
||||||
%{_libdir}/pkgconfig/%{name}-tevent.pc
|
%{_libdir}/pkgconfig/%{name}-tevent.pc
|
||||||
|
|
||||||
%files libev%{lib_version}
|
%files libev%{sover}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/%{name}-libev.so.*
|
%{_libdir}/%{name}-libev.so.*
|
||||||
|
|
||||||
%files libev-devel
|
%files libev-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/verto-libev.h
|
%{_includedir}/verto-libev.h
|
||||||
%{_libdir}/%{name}-libev.so
|
%{_libdir}/%{name}-libev.so
|
||||||
%{_libdir}/pkgconfig/%{name}-libev.pc
|
%{_libdir}/pkgconfig/%{name}-libev.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user