From 1b50215649260336a77fbc1553b400e5165a82aac4a2fe5c7e14d42de49961c7 Mon Sep 17 00:00:00 2001 From: Howard Guo Date: Tue, 17 May 2016 06:06:24 +0000 Subject: [PATCH] Accepting request 395983 from home:mlin7442:branches:network for some reason, we have to move libverto to Ring0, however brings glib2 and tevent stack to Ring0 is too huge, therefore, I'd like to split off modules to sub-pacakge. If this submission got accepted, please create linked sub-package in network. Thanks. OBS-URL: https://build.opensuse.org/request/show/395983 OBS-URL: https://build.opensuse.org/package/show/network/libverto?expand=0&rev=8 --- libverto-glib.changes | 26 ++++++++++ libverto-glib.spec | 98 ++++++++++++++++++++++++++++++++++++ libverto-libev.changes | 26 ++++++++++ libverto-libev.spec | 100 ++++++++++++++++++++++++++++++++++++ libverto-tevent.changes | 26 ++++++++++ libverto-tevent.spec | 100 ++++++++++++++++++++++++++++++++++++ libverto.changes | 5 ++ libverto.spec | 109 +--------------------------------------- 8 files changed, 383 insertions(+), 107 deletions(-) create mode 100644 libverto-glib.changes create mode 100644 libverto-glib.spec create mode 100644 libverto-libev.changes create mode 100644 libverto-libev.spec create mode 100644 libverto-tevent.changes create mode 100644 libverto-tevent.spec diff --git a/libverto-glib.changes b/libverto-glib.changes new file mode 100644 index 0000000..18b0090 --- /dev/null +++ b/libverto-glib.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon May 16 10:25:59 UTC 2016 - mlin@suse.com + +- Split off libev, glib and tevent module to sub-package + +------------------------------------------------------------------- +Mon Jun 22 08:47:23 UTC 2015 - hguo@suse.com + +- Remove irrelevant changelog entries from changelog file. + +------------------------------------------------------------------- +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 + +- Name shared library packages according to policy. + +------------------------------------------------------------------- +Fri May 8 09:45:34 UTC 2015 - hguo@suse.com + +- Source extracted from Fedora 21 release SRPM, with minor adjustments. + diff --git a/libverto-glib.spec b/libverto-glib.spec new file mode 100644 index 0000000..23772aa --- /dev/null +++ b/libverto-glib.spec @@ -0,0 +1,98 @@ +# +# spec file for package libverto-glib +# +# Copyright (c) 2016 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 +%define src_name libverto +Name: libverto-glib +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/%{src_name}/%{src_name}-%{version}.tar.gz +Source1: baselibs.conf +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libverto) = %{version} + +%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 %{src_name}-glib%{sover} +Summary: Backend module for libverto -- glib +Group: Development/Libraries/C and C++ +Requires: libverto%{sover} = %{version} + +%description -n %{src_name}-glib%{sover} +Module for libverto which provides integration with glib. + +This package does NOT yet provide libverto-module-base. + +%package -n %{src_name}-glib-devel +Summary: Development files for libverto-glib%{sover} +Group: Development/Libraries/C and C++ +Requires: %{src_name}-devel%{?_isa} = %{version} +Requires: %{src_name}-glib%{sover}%{?_isa} = %{version} + +%description -n %{src_name}-glib-devel +The libverto-glib-devel package contains libraries and header files +for developing applications that use libverto-glib. + +%prep +%setup -q -n %{src_name}-%{version} + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +find %{buildroot} -name '*.so.*T' -delete + +# stuff in libverto already +rm -rf %{buildroot}/%{_includedir}/verto-module.h %{buildroot}/%{_includedir}/verto.h +rm -rf %{buildroot}/%{_libdir}/%{src_name}.so* +rm -rf %{buildroot}/%{_libdir}/pkgconfig/%{src_name}.pc + +%post -n %{src_name}-glib%{sover} -p /sbin/ldconfig + +%postun -n %{src_name}-glib%{sover} -p /sbin/ldconfig + +%files -n %{src_name}-glib%{sover} +%defattr(-,root,root) +%{_libdir}/%{src_name}-glib.so.* + +%files -n %{src_name}-glib-devel +%defattr(-,root,root) +%{_includedir}/verto-glib.h +%{_libdir}/%{src_name}-glib.so +%{_libdir}/pkgconfig/%{src_name}-glib.pc + +%changelog diff --git a/libverto-libev.changes b/libverto-libev.changes new file mode 100644 index 0000000..18b0090 --- /dev/null +++ b/libverto-libev.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon May 16 10:25:59 UTC 2016 - mlin@suse.com + +- Split off libev, glib and tevent module to sub-package + +------------------------------------------------------------------- +Mon Jun 22 08:47:23 UTC 2015 - hguo@suse.com + +- Remove irrelevant changelog entries from changelog file. + +------------------------------------------------------------------- +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 + +- Name shared library packages according to policy. + +------------------------------------------------------------------- +Fri May 8 09:45:34 UTC 2015 - hguo@suse.com + +- Source extracted from Fedora 21 release SRPM, with minor adjustments. + diff --git a/libverto-libev.spec b/libverto-libev.spec new file mode 100644 index 0000000..dda58f5 --- /dev/null +++ b/libverto-libev.spec @@ -0,0 +1,100 @@ +# +# spec file for package libverto-libev +# +# Copyright (c) 2016 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 +%define src_name libverto +Name: libverto-libev +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/%{src_name}/%{src_name}-%{version}.tar.gz +Source1: baselibs.conf +BuildRequires: pkgconfig(libev) +BuildRequires: pkgconfig(libverto) = %{version} + +%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 %{src_name}-libev%{sover} +Summary: Backend module for libverto -- libev%{sover} +Group: Development/Libraries/C and C++ +Requires: libverto%{sover} = %{version} +Provides: %{src_name}-module-base = %{version} + +%description -n %{src_name}-libev%{sover} +Module for libverto which provides integration with libev. + +This package provides libverto-module-base since it supports io, +timeout and signal. + +%package -n %{src_name}-libev-devel +Summary: Development files for libverto-libev%{sover} +Group: Development/Libraries/C and C++ +Requires: %{src_name}-devel%{?_isa} = %{version} +Requires: %{src_name}-libev%{sover}%{?_isa} = %{version} + +%description -n %{src_name}-libev-devel +The libverto-libev-devel package contains libraries and header +files for developing applications that use libverto-libev. + +%prep +%setup -q -n %{src_name}-%{version} + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +find %{buildroot} -name '*.so.*T' -delete + +# stuff in libverto already +rm -rf %{buildroot}/%{_includedir}/verto-module.h %{buildroot}/%{_includedir}/verto.h +rm -rf %{buildroot}/%{_libdir}/%{src_name}.so* +rm -rf %{buildroot}/%{_libdir}/pkgconfig/%{src_name}.pc + +%post -n %{src_name}-libev%{sover} -p /sbin/ldconfig + +%postun -n %{src_name}-libev%{sover} -p /sbin/ldconfig + +%files -n %{src_name}-libev%{sover} +%defattr(-,root,root) +%{_libdir}/%{src_name}-libev.so.* + +%files -n %{src_name}-libev-devel +%defattr(-,root,root) +%{_includedir}/verto-libev.h +%{_libdir}/%{src_name}-libev.so +%{_libdir}/pkgconfig/%{src_name}-libev.pc + +%changelog diff --git a/libverto-tevent.changes b/libverto-tevent.changes new file mode 100644 index 0000000..18b0090 --- /dev/null +++ b/libverto-tevent.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon May 16 10:25:59 UTC 2016 - mlin@suse.com + +- Split off libev, glib and tevent module to sub-package + +------------------------------------------------------------------- +Mon Jun 22 08:47:23 UTC 2015 - hguo@suse.com + +- Remove irrelevant changelog entries from changelog file. + +------------------------------------------------------------------- +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 + +- Name shared library packages according to policy. + +------------------------------------------------------------------- +Fri May 8 09:45:34 UTC 2015 - hguo@suse.com + +- Source extracted from Fedora 21 release SRPM, with minor adjustments. + diff --git a/libverto-tevent.spec b/libverto-tevent.spec new file mode 100644 index 0000000..ac4ee8d --- /dev/null +++ b/libverto-tevent.spec @@ -0,0 +1,100 @@ +# +# spec file for package libverto-tevent +# +# Copyright (c) 2016 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 +%define src_name libverto +Name: libverto-tevent +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/%{src_name}/%{src_name}-%{version}.tar.gz +Source1: baselibs.conf +BuildRequires: pkgconfig(libverto) = %{version} +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 %{src_name}-tevent%{sover} +Summary: Backend module for libverto -- tevent +Group: Development/Libraries/C and C++ +Requires: libverto%{sover} = %{version} +Provides: %{src_name}-module-base = %{version} + +%description -n %{src_name}-tevent%{sover} +Module for libverto which provides integration with tevent. + +This package provides libverto-module-base since it supports io, +timeout and signal. + +%package -n %{src_name}-tevent-devel +Summary: Development files for libverto-tevent%{sover} +Group: Development/Libraries/C and C++ +Requires: %{src_name}-devel%{?_isa} = %{version} +Requires: %{src_name}-tevent%{sover}%{?_isa} = %{version} + +%description -n %{src_name}-tevent-devel +The libverto-tevent-devel package contains libraries and header +files for developing applications that use libverto-tevent. + +%prep +%setup -q -n %{src_name}-%{version} + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +find %{buildroot} -name '*.so.*T' -delete + +# stuff in libverto already +rm -rf %{buildroot}/%{_includedir}/verto-module.h %{buildroot}/%{_includedir}/verto.h +rm -rf %{buildroot}/%{_libdir}/%{src_name}.so* +rm -rf %{buildroot}/%{_libdir}/pkgconfig/%{src_name}.pc + +%post -n %{src_name}-tevent%{sover} -p /sbin/ldconfig + +%postun -n %{src_name}-tevent%{sover} -p /sbin/ldconfig + +%files -n %{src_name}-tevent%{sover} +%defattr(-,root,root) +%{_libdir}/%{src_name}-tevent.so.* + +%files -n %{src_name}-tevent-devel +%defattr(-,root,root) +%{_includedir}/verto-tevent.h +%{_libdir}/%{src_name}-tevent.so +%{_libdir}/pkgconfig/%{src_name}-tevent.pc + +%changelog diff --git a/libverto.changes b/libverto.changes index 0eec547..18b0090 100644 --- a/libverto.changes +++ b/libverto.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 16 10:25:59 UTC 2016 - mlin@suse.com + +- Split off libev, glib and tevent module to sub-package + ------------------------------------------------------------------- Mon Jun 22 08:47:23 UTC 2015 - hguo@suse.com diff --git a/libverto.spec b/libverto.spec index 6d407d1..24da986 100644 --- a/libverto.spec +++ b/libverto.spec @@ -1,7 +1,7 @@ # # spec file for package libverto # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -26,9 +26,7 @@ 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) +BuildRequires: pkg-config %description libverto provides a way for libraries to expose asynchronous @@ -71,67 +69,6 @@ Requires: %{name}%{sover} = %{version} 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 @@ -148,18 +85,6 @@ find %{buildroot} -name '*.so.*T' -delete %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 @@ -172,34 +97,4 @@ find %{buildroot} -name '*.so.*T' -delete %{_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