From f73f0e70ba10c99a87b1cf5f60c957fe637700127c7c34d2353e0c6648f72a33 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 1 Feb 2012 01:15:22 +0000 Subject: [PATCH 1/2] Remove redundant tags/sections OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=13 --- libevent.changes | 5 +++++ libevent.spec | 16 ++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/libevent.changes b/libevent.changes index 04a049d..eeaf510 100644 --- a/libevent.changes +++ b/libevent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 1 01:13:02 UTC 2012 - jengelh@medozas.de + +- Remove redundant tags/sections per specfile guideline suggestions + ------------------------------------------------------------------- Wed Aug 3 13:59:36 UTC 2011 - friseer@gmx.de diff --git a/libevent.spec b/libevent.spec index ab687f9..30e79d2 100644 --- a/libevent.spec +++ b/libevent.spec @@ -1,7 +1,7 @@ # # spec file for package libevent # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,22 +15,22 @@ # 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) +Release: 0 Summary: Library Providing an Event Handling API -Url: http://monkey.org/~provos/libevent/ +License: BSD-3-Clause Group: Development/Libraries/C and C++ +Url: http://monkey.org/~provos/libevent/ 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 @@ -39,7 +39,6 @@ passed. %package -n %{libsoname} -License: BSD3c(or similar) Summary: Shared libraries from libevent Group: Development/Libraries/C and C++ Provides: %{name} = %{version} @@ -53,7 +52,6 @@ passed. This package holds the shared libraries for libevent. %package devel -License: BSD3c(or similar) Summary: Development files for libevent2 Group: Development/Libraries/C and C++ Requires: %{libsoname} = %{version} @@ -80,10 +78,8 @@ This package holds the development files for libevent2. %makeinstall find %{buildroot}%{_libdir} -name "*.la" -delete -print -%clean -rm -rf %{buildroot} - %post -n %{libsoname} -p /sbin/ldconfig + %postun -n %{libsoname} -p /sbin/ldconfig %files -n %{libsoname} From 63078443a1a55b7675b317b241fd6e28ca44152ae54284122e477df87c12dece Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 11 Feb 2012 01:58:04 +0000 Subject: [PATCH 2/2] Use pkgconfig name, for redhats OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=14 --- libevent.changes | 1 + libevent.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libevent.changes b/libevent.changes index eeaf510..890bc6d 100644 --- a/libevent.changes +++ b/libevent.changes @@ -2,6 +2,7 @@ Wed Feb 1 01:13:02 UTC 2012 - jengelh@medozas.de - Remove redundant tags/sections per specfile guideline suggestions +- Use "pkgconfig" BR so that the package also works on Redhats. ------------------------------------------------------------------- Wed Aug 3 13:59:36 UTC 2011 - friseer@gmx.de diff --git a/libevent.spec b/libevent.spec index 30e79d2..c262f97 100644 --- a/libevent.spec +++ b/libevent.spec @@ -27,7 +27,7 @@ Group: Development/Libraries/C and C++ Url: http://monkey.org/~provos/libevent/ Source0: http://monkey.org/~provos/libevent-%{version}-stable.tar.bz2 Source1: baselibs.conf -BuildRequires: pkg-config +BuildRequires: pkgconfig PreReq: %fillup_prereq PreReq: %insserv_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build