forked from pool/libevent
Accepting request 459539 from home:dmdiss:elastocloud
- Update to 2.1.8 stable - Fix build on non-SUSE rpm based platforms. OBS-URL: https://build.opensuse.org/request/show/459539 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=27
This commit is contained in:
committed by
Git OBS Bridge
parent
41daeb48d8
commit
fa77242814
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libevent
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -16,21 +16,37 @@
|
||||
#
|
||||
|
||||
|
||||
%define libsoname %{name}-2_0-5
|
||||
Name: libevent
|
||||
Version: 2.0.22
|
||||
%define version_base 2
|
||||
%define version_minor 1
|
||||
%define version_release 8
|
||||
%define abi_release 6
|
||||
%define version_suffix stable
|
||||
%define libsoname %{name}-%{version_base}_%{version_minor}-%{version_release}
|
||||
|
||||
Version: %{version_base}.%{version_minor}.%{version_release}
|
||||
Release: 0
|
||||
Summary: An event notification library
|
||||
License: BSD-3-Clause
|
||||
Group: System/Libraries
|
||||
Url: http://libevent.org/
|
||||
Source0: https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/%{name}-%{version}-stable.tar.gz
|
||||
Source1: https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/%{name}-%{version}-stable.tar.gz.asc
|
||||
Source0: https://github.com/downloads/%{name}/%{name}/%{name}-%{version}-%{version_suffix}.tar.gz
|
||||
source1: https://github.com/%{name}/%{name}/releases/download/release-%{version}-%{version_suffix}/%{name}-%{version}-%{version_suffix}.tar.gz.asc
|
||||
Source2: %{name}.keyring
|
||||
Source3: baselibs.conf
|
||||
BuildRequires: automake
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: openssl-devel
|
||||
%if 0%{?fedora_version} || 0%{?rhel_version}
|
||||
BuildRequires: pkgconfig
|
||||
%else
|
||||
BuildRequires: pkg-config
|
||||
%endif
|
||||
BuildRequires: zlib-devel
|
||||
%if 0%{?suse_version} > 1220
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): %insserv_prereq
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -98,9 +114,10 @@ framework.
|
||||
This package holds the development files for libevent2.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-stable
|
||||
%setup -q -n %{name}-%{version}-%{version_suffix}
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-libevent-regress
|
||||
@@ -119,12 +136,12 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
|
||||
|
||||
%files -n %{libsoname}
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog README LICENSE whatsnew-2.0.txt
|
||||
%{_libdir}/%{name}-2.0.so.5*
|
||||
%{_libdir}/%{name}_core-2.0.so.5*
|
||||
%{_libdir}/%{name}_extra-2.0.so.5*
|
||||
%{_libdir}/%{name}_pthreads-2.0.so.5*
|
||||
%{_libdir}/%{name}_openssl-2.0.so.5*
|
||||
%doc ChangeLog LICENSE whatsnew-2.0.txt whatsnew-2.1.txt
|
||||
%{_libdir}/%{name}-%{version_base}.%{version_minor}.so.%{abi_release}*
|
||||
%{_libdir}/%{name}_core-%{version_base}.%{version_minor}.so.%{abi_release}*
|
||||
%{_libdir}/%{name}_extra-%{version_base}.%{version_minor}.so.%{abi_release}*
|
||||
%{_libdir}/%{name}_pthreads-%{version_base}.%{version_minor}.so.%{abi_release}*
|
||||
%{_libdir}/%{name}_openssl-%{version_base}.%{version_minor}.so.%{abi_release}*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@@ -143,5 +160,7 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_libdir}/pkgconfig/%{name}_pthreads.pc
|
||||
%{_libdir}/pkgconfig/%{name}_openssl.pc
|
||||
%{_libdir}/pkgconfig/%{name}_core.pc
|
||||
%{_libdir}/pkgconfig/%{name}_extra.pc
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user