libev/libev.spec
Marcus Rueckert 99eaf93a2d Accepting request 514043 from home:scarabeus_iv:branches:server:http
- Version update to latest release 4.24:
  * bump version to 4.24, as the release tarball inexplicably
    didn't have the right version in ev.h, even though the cvs-tagged
    version did have the right one (reported by Ales Teska).
- Version update to release 4.23:
  * move some declarations at the beginning to help certain retarded
    microsoft compilers, even though their documentation claims
    otherwise (reported by Ruslan Osmanov).
- Run over with spec-cleaner and remove empty comment lines
- Remove mandriva condition

OBS-URL: https://build.opensuse.org/request/show/514043
OBS-URL: https://build.opensuse.org/package/show/server:http/libev?expand=0&rev=25
2017-08-02 13:34:24 +00:00

102 lines
3.3 KiB
RPMSpec

#
# spec file for package libev
#
# 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
# 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 library_name libev4
Name: libev
Version: 4.24
Release: 0
Summary: A full-featured and high-performance event loop library
License: BSD-2-Clause
Group: Development/Libraries/C and C++
Url: http://software.schmorp.de/pkg/libev.html
Source: http://dist.schmorp.de/%{name}/%{name}-%{version}.tar.gz
# Upstream has received patches to add pkg-config support for years but it always ignored them (yes, no answer at all). But since every distribution creates it we just follow.
Source1: libev.pc
Source99: baselibs.conf
Patch0: libev-4.15_compiler_warnings.patch
BuildRequires: pkgconfig
%description
A full-featured and high-performance event loop that is loosely modelled after
libevent, but without its limitations and bugs. It is used, among others, in
the GNU Virtual Private Ethernet and rxvt-unicode packages.
%package -n %{library_name}
Summary: A full-featured and high-performance event loop library
Group: Development/Libraries/C and C++
%description -n %{library_name}
A full-featured and high-performance event loop that is loosely modelled after
libevent, but without its limitations and bugs. It is used, among others, in
the GNU Virtual Private Ethernet and rxvt-unicode packages.
This package holds the shared libraries of libev.
%package devel
Summary: Development files for libev
Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version}
%description devel
A full-featured and high-performance event loop that is loosely modelled after
libevent, but without its limitations and bugs. It is used, among others, in
the GNU Virtual Private Ethernet and rxvt-unicode packages.
This package holds the development files for libev.
%prep
%setup -q
%patch0
sed -i 's;@prefix@;%{_prefix};' %{SOURCE1}
sed -i 's;@lib_suffix@;%{_lib};' %{SOURCE1}
sed -i 's;@VERSION@;%{version};' %{SOURCE1}
%build
CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused"
%configure \
--docdir=%{_docdir} \
--disable-static
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
%make_install
rm -v %{buildroot}%{_libdir}/libev.la
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/libev.pc
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files devel
%doc LICENSE README ev.pod Changes
%{_includedir}/ev++.h
%{_includedir}/ev.h
%{_includedir}/event.h
%{_libdir}/libev.so
%{_mandir}/man3/ev.3*
%{_libdir}/pkgconfig/libev.pc
%files -n %{library_name}
%{_libdir}/libev.so.4*
%changelog