Группа :: Разработка/C
Пакет: libverto
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/C
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global homepage https://github.com/latchset/libverto
Name: libverto
Version: 0.3.2
Release: alt1_1
Summary: Main loop abstraction library
License: MIT
URL: %{homepage}
Source0: %{homepage}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: glib2-devel libgio libgio-devel
BuildRequires: libevent-devel
BuildRequires: libev-devel
BuildRequires: git
Obsoletes: libverto-tevent < 0.3.0-2
Obsoletes: libverto-tevent-devel < 0.3.0-2
Source44: import.info
%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 devel
Group: Development/C
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package glib
Group: Development/C
Summary: glib module for %{name}
Requires: %{name} = %{version}-%{release}
%description glib
Module for %{name} which provides integration with glib.
This package does NOT yet provide %{name}-module-base.
%package glib-devel
Group: Development/C
Summary: Development files for %{name}-glib
Requires: %{name}-glib = %{version}-%{release}
%description glib-devel
The %{name}-glib-devel package contains libraries and header files for
developing applications that use %{name}-glib.
%package libevent
Group: Development/C
Summary: libevent module for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-module-base = %{version}-%{release}
%description libevent
Module for %{name} which provides integration with libevent.
%package libevent-devel
Group: Development/C
Summary: Development files for %{name}-libevent
Requires: %{name}-libevent = %{version}-%{release}
%description libevent-devel
The %{name}-libevent-devel package contains libraries and header files for
developing applications that use %{name}-libevent.
%package libev
Group: Development/C
Summary: libev module for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-module-base = %{version}-%{release}
%description libev
Module for %{name} which provides integration with libev.
This package provides %{name}-module-base since it supports io, timeout
and signal.
%package libev-devel
Group: Development/C
Summary: Development files for %{name}-libev
Requires: %{name}-libev = %{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
autoreconf -fiv
%configure --disable-static
%make_build
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%files
%{!?_licensedir:%global license %%doc}
%doc --no-dereference COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/%{name}.so.*
%files devel
%{_includedir}/verto.h
%{_includedir}/verto-module.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files glib
%{_libdir}/%{name}-glib.so.*
%files glib-devel
%{_includedir}/verto-glib.h
%{_libdir}/%{name}-glib.so
%{_libdir}/pkgconfig/%{name}-glib.pc
%files libevent
%{_libdir}/%{name}-libevent.so.*
%files libevent-devel
%{_includedir}/verto-libevent.h
%{_libdir}/%{name}-libevent.so
%{_libdir}/pkgconfig/%{name}-libevent.pc
%files libev
%{_libdir}/%{name}-libev.so.*
%files libev-devel
%{_includedir}/verto-libev.h
%{_libdir}/%{name}-libev.so
%{_libdir}/pkgconfig/%{name}-libev.pc
%changelog
…
Полный changelog можно просмотреть здесь
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global homepage https://github.com/latchset/libverto
Name: libverto
Version: 0.3.2
Release: alt1_1
Summary: Main loop abstraction library
License: MIT
URL: %{homepage}
Source0: %{homepage}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: glib2-devel libgio libgio-devel
BuildRequires: libevent-devel
BuildRequires: libev-devel
BuildRequires: git
Obsoletes: libverto-tevent < 0.3.0-2
Obsoletes: libverto-tevent-devel < 0.3.0-2
Source44: import.info
%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 devel
Group: Development/C
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package glib
Group: Development/C
Summary: glib module for %{name}
Requires: %{name} = %{version}-%{release}
%description glib
Module for %{name} which provides integration with glib.
This package does NOT yet provide %{name}-module-base.
%package glib-devel
Group: Development/C
Summary: Development files for %{name}-glib
Requires: %{name}-glib = %{version}-%{release}
%description glib-devel
The %{name}-glib-devel package contains libraries and header files for
developing applications that use %{name}-glib.
%package libevent
Group: Development/C
Summary: libevent module for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-module-base = %{version}-%{release}
%description libevent
Module for %{name} which provides integration with libevent.
%package libevent-devel
Group: Development/C
Summary: Development files for %{name}-libevent
Requires: %{name}-libevent = %{version}-%{release}
%description libevent-devel
The %{name}-libevent-devel package contains libraries and header files for
developing applications that use %{name}-libevent.
%package libev
Group: Development/C
Summary: libev module for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-module-base = %{version}-%{release}
%description libev
Module for %{name} which provides integration with libev.
This package provides %{name}-module-base since it supports io, timeout
and signal.
%package libev-devel
Group: Development/C
Summary: Development files for %{name}-libev
Requires: %{name}-libev = %{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
autoreconf -fiv
%configure --disable-static
%make_build
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%files
%{!?_licensedir:%global license %%doc}
%doc --no-dereference COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/%{name}.so.*
%files devel
%{_includedir}/verto.h
%{_includedir}/verto-module.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files glib
%{_libdir}/%{name}-glib.so.*
%files glib-devel
%{_includedir}/verto-glib.h
%{_libdir}/%{name}-glib.so
%{_libdir}/pkgconfig/%{name}-glib.pc
%files libevent
%{_libdir}/%{name}-libevent.so.*
%files libevent-devel
%{_includedir}/verto-libevent.h
%{_libdir}/%{name}-libevent.so
%{_libdir}/pkgconfig/%{name}-libevent.pc
%files libev
%{_libdir}/%{name}-libev.so.*
%files libev-devel
%{_includedir}/verto-libev.h
%{_libdir}/%{name}-libev.so
%{_libdir}/pkgconfig/%{name}-libev.pc
%changelog
…
Полный changelog можно просмотреть здесь