Browse Source

libev-4.24-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11837 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
8746ce5373
1 changed files with 56 additions and 16 deletions
  1. 56 16
      lib/libe/libev/libev-vl.spec

+ 56 - 16
lib/libe/libev/libev-vl.spec

@@ -1,8 +1,10 @@
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
 %global source_dir  %{_datadir}/%{name}-source
 %global inst_srcdir %{buildroot}/%{source_dir}
 
 Name:		libev
-Version:	4.19
+Version:	4.24
 Release:	1%{?_dist_release}
 Summary:	High-performance event loop/event model with lots of features
 Summary(ja):    高機能・高性能のイベントループ・イベントモデル
@@ -10,7 +12,9 @@ Group:		System Environment/Libraries
 License:	BSD or GPLv2+
 URL:		http://software.schmorp.de/pkg/libev.html
 Source0:	http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz
-Source1:	%{name}.pc.in
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires:	automake libtool
@@ -42,6 +46,22 @@ featureful. And also smaller. Development libraries.
 このパッケージには libev 用開発ライブラリとヘッダが収録されています。
 
 
+%package libevent-devel
+Summary:          Compatibility development header with libevent for %{name}.
+Summary(ja):      libevent互換の%{name}ヘッダファイル.
+Requires:         %{name}-devel%{?_isa} = %{version}-%{release}
+
+# The event.h file actually conflicts with the one from libevent-devel
+Conflicts:        libevent-devel
+
+%description libevent-devel
+This package contains a development header to make libev compatible with
+libevent.
+
+%description libevent-devel -l ja
+このパッケージにはlibevent互換のlibev用ヘッダファイルが収録されています。
+
+
 %package	source
 Summary:	Source code for libev
 Summary(ja):	libev のソースコード
@@ -59,19 +79,30 @@ featureful. And also smaller. Development libraries.
 このパッケージには libev のソースコードが収録されています。
 
 
+%package -n compat32-%{name}
+Summary:	High-performance event loop/event model with lots of features
+Summary(ja):    高機能・高性能のイベントループ・イベントモデル
+Group:		System Environment/Libraries
+
+%description -n compat32-%{name}
+Libev is modeled (very loosely) after libevent and the Event Perl
+module, but is faster, scales better and is more correct, and also more
+featureful. And also smaller.
+
+%description -n compat32-%{name} -l ja
+libev は libevent および Perl の Event を大まかに参考にして作られましたが、
+それらより高速に動作し、よりスケールし、より正確で、より高機能で、
+同時によりコンパクトです。
+
+
 %prep
 %setup -q
 
-# Add pkgconfig support
-cp -p %{SOURCE1} .
-sed -i.pkgconfig -e 's|Makefile|Makefile libev.pc|' configure.ac configure
-sed -i.pkgconfig -e 's|lib_LTLIBRARIES|pkgconfigdir = $(libdir)/pkgconfig\n\npkgconfig_DATA = libev.pc\n\nlib_LTLIBRARIES|' Makefile.am Makefile.in
-aclocal
-automake
+autoreconf -vfi
 
 
 %build
-%configure --disable-static --with-pic --includedir=%{_includedir}/%{name}
+%configure --disable-static --with-pic
 make %{?_smp_mflags}
 
 
@@ -102,22 +133,31 @@ rm -rf %{buildroot}
 
 %files
 %doc Changes LICENSE README
-%{_libdir}/%{name}.so.4
-%{_libdir}/%{name}.so.4.0.0
-
+%{_libdir}/%{name}.so.4*
 
 %files devel
 %{_libdir}/%{name}.so
-%{_includedir}/libev/
-%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/ev++.h
+%{_includedir}/ev.h
 %{_mandir}/man?/*
 
+%files libevent-devel
+%{_includedir}/event.h
 
 %files source
 %{source_dir}
 
+%if %{build_compat32}
+%files -n compat32-%{name}
+%{_libdir}/%{name}.so.4*
+%endif
 
 %changelog
+* Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.24-1
+- updated to 4.24.
+- added a sub-package 'libevent-devel'.
+- added a sub-package 'compat32-libev'.
+
 * Sat Nov 01 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 4.19-1
 - updated to 4.19
 - spec in UTF-8
@@ -148,7 +188,7 @@ rm -rf %{buildroot}
 * Sat Jan  2 2010 Michal Nowak <mnowak@redhat.com> - 3.90-1
 - 3.9
 
-* Fri Aug 10 2009 Michal Nowak <mnowak@redhat.com> - 3.80-1
+* Mon Aug 10 2009 Michal Nowak <mnowak@redhat.com> - 3.80-1
 - 3.8
 - always use the most recent automake
 - BuildRequires now libtool
@@ -196,7 +236,7 @@ rm -rf %{buildroot}
 * Tue Sep  2 2008 kwizart <kwizart at gmail.com> - 3.43-4
 - Fix pkgconfig support
 
-* Mon Aug 12 2008 Michal Nowak <mnowak@redhat.com> - 3.43-2
+* Tue Aug 12 2008 Michal Nowak <mnowak@redhat.com> - 3.43-2
 - removed libev.a
 - installing with "-p"
 - event.h is removed intentionaly, because is there only for