commit a7c7617e400c66e02867fa8562ac77d9d887d41b Author: zhuchunyi Date: Wed Nov 6 19:38:01 2019 +0800 update code diff --git a/libev-4.24.tar.gz b/libev-4.24.tar.gz new file mode 100644 index 0000000..c5efba3 Binary files /dev/null and b/libev-4.24.tar.gz differ diff --git a/libev.spec b/libev.spec new file mode 100644 index 0000000..2e3ece5 --- /dev/null +++ b/libev.spec @@ -0,0 +1,89 @@ +%global source_dir %{_datadir}/%{name}-source +%global inst_srcdir %{buildroot}/%{source_dir} + +Name: libev +Version: 4.24 +Release: 11 +Summary: A high-performance event loop/event model with lots of features +License: BSD or GPLv2+ +URL: http://software.schmorp.de/pkg/libev.html +Source0: http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz + +BuildRequires: autoconf automake coreutils findutils gcc libtool make git tar + +Provides: bundled(libecb) = 1.05 + +%description +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. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +Libraries and header files of %{name} are all in the %{name}-devel package. + +%package libevent-devel +Summary: Compatibility development header with libevent for %{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. + +%package help +Summary: Help manual for %{name} + +%description help +The %{name}-help package conatins man manual etc + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit +autoreconf -vfi + +%build +%configure --disable-static --with-pic +%make_build + +%check +make check + +%install +make install DESTDIR=%{buildroot} INSTALL="install -p" +rm -rf %{buildroot}%{_libdir}/%{name}.la + +%ldconfig_scriptlets + +%files +%license LICENSE +%doc Changes README +%{_libdir}/%{name}.so.4* + +%files devel +%{_includedir}/ev++.h +%{_includedir}/ev.h +%{_libdir}/%{name}.so + +%files libevent-devel +%{_includedir}/event.h + +%files help +%{_mandir}/man?/* + +%changelog +* Thu Oct 31 2019 openEuler Buildteam - 4.24-11 +- remove event.h from devel subpackage + +* Wed Oct 30 2019 hexiaowen - 4.24-10 +- delete conflict + +* Wed Oct 30 2019 hexiaowen - 4.24-9 +- add libev-libevent-devel + +* Tue Oct 22 2019 openEuler Buildteam - 4.24-8 +- Package init