Accepting request 77922 from home:Friseer

to fix the unresolvables in Gnome:Apps e.g.transmission 2.33

gruss friseer

OBS-URL: https://build.opensuse.org/request/show/77922
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=11
This commit is contained in:
Cristian Rodríguez 2011-08-04 03:17:51 +00:00 committed by Git OBS Bridge
parent 8470c45d0f
commit a1eb98374b
3 changed files with 33 additions and 23 deletions

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libevent-2_0-5

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Aug 3 13:59:36 UTC 2011 - friseer@gmx.de
- spec mods
o libsoname macro
o name macro
- added baselibs.conf
- rpmlint
o fix self obsoletes
-------------------------------------------------------------------
Mon Mar 22 11:51:31 UTC 2011 - dimstar@opensuse.org

View File

@ -15,37 +15,37 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libevent
%define libsoname %{name}-2_0-5
Version: 2.0.10
Release: 1
License: BSD3c(or similar)
Summary: Library Providing an Event Handling API
Url: http://monkey.org/~provos/libevent/
Group: Development/Libraries/C and C++
Source: http://monkey.org/~provos/libevent-%{version}-stable.tar.bz2
Source0: http://monkey.org/~provos/libevent-%{version}-stable.tar.bz2
Source1: baselibs.conf
BuildRequires: pkg-config
PreReq: %fillup_prereq
PreReq: %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires %{libsoname} = %{version}-%{release}
%description
The libevent library provides a mechanism to execute a function when a
specific event on a file descriptor occurs or after a given time has
passed.
%define library_name libevent-2_0-5
%define debug_package_requires %{library_name} = %{version}-%{release}
%package -n libevent-2_0-5
%package -n %{libsoname}
License: BSD3c(or similar)
Summary: Shared libraries from libevent
Group: Development/Libraries/C and C++
Provides: %{name} = %{version}
Obsoletes: %{name} <= %{version}
Obsoletes: %{name} < %{version}
%description -n libevent-2_0-5
%description -n %{libsoname}
The libevent library provides a mechanism to execute a function when a
specific event on a file descriptor occurs or after a given time has
passed.
@ -56,7 +56,7 @@ This package holds the shared libraries for libevent.
License: BSD3c(or similar)
Summary: Development files for libevent2
Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version}
Requires: %{libsoname} = %{version}
Requires: glibc-devel
Provides: %{name}:/usr/include/event.h
# Both have /usr/include/event.h
@ -83,27 +83,26 @@ find %{buildroot}%{_libdir} -name "*.la" -delete -print
%clean
rm -rf %{buildroot}
%post -n %{library_name} -p /sbin/ldconfig
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files -n %{library_name}
%files -n %{libsoname}
%defattr(-,root,root,-)
%{_libdir}/libevent-2.0.so.5*
%{_libdir}/libevent_core-2.0.so.5*
%{_libdir}/libevent_extra-2.0.so.5*
%{_libdir}/libevent_pthreads-2.0.so.5*
%{_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*
%files devel
%defattr(-,root,root)
%{_bindir}/event_rpcgen.py
%{_includedir}/*.h
%{_includedir}/event2
%{_libdir}/libevent.so
%{_libdir}/libevent_core.so
%{_libdir}/libevent_extra.so
%{_libdir}/libevent_pthreads.so
%{_libdir}/pkgconfig/libevent.pc
%{_libdir}/pkgconfig/libevent_pthreads.pc
%{_libdir}/%{name}.so
%{_libdir}/%{name}_core.so
%{_libdir}/%{name}_extra.so
%{_libdir}/%{name}_pthreads.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}_pthreads.pc
%changelog