4 Commits

Author SHA256 Message Date
d52d160386 Accepting request 1290023 from devel:libraries:c_c++
- Adjust conflict from libev-devel to libev-libevent-devel (event.h was moved)
- Add python-rpm-macros as build requirement to resolve undefined Python macros
- remove dependency on /usr/bin/python3 using
  %python3_fix_shebang macro, [bsc#1212476]

OBS-URL: https://build.opensuse.org/request/show/1290023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libevent?expand=0&rev=44
2025-07-06 14:59:34 +00:00
54a47f1218 Modernize specfile
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=58
2025-07-02 16:01:45 +00:00
d404eda2ac - Adjust conflict from libev-devel to libev-libevent-devel (event.h was moved)
- Add python-rpm-macros as build requirement to resolve undefined Python macros

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=57
2025-07-02 15:59:30 +00:00
aa9aecbfee Accepting request 1166781 from home:pgajdos
- remove dependency on /usr/bin/python3 using
  %python3_fix_shebang macro, [bsc#1212476]

OBS-URL: https://build.opensuse.org/request/show/1166781
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libevent?expand=0&rev=56
2024-04-11 08:44:20 +00:00
2 changed files with 23 additions and 12 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sun Jun 22 13:35:40 UTC 2025 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
- Adjust conflict from libev-devel to libev-libevent-devel (event.h was moved)
-------------------------------------------------------------------
Sun Jun 22 13:33:29 UTC 2025 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
- Add python-rpm-macros as build requirement to resolve undefined Python macros
-------------------------------------------------------------------
Thu Apr 11 07:18:53 UTC 2024 - pgajdos@suse.com
- remove dependency on /usr/bin/python3 using
%python3_fix_shebang macro, [bsc#1212476]
-------------------------------------------------------------------
Thu Feb 29 16:15:04 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package libevent
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -49,8 +49,8 @@ BuildRequires: pkgconfig
%else
BuildRequires: pkg-config
%endif
BuildRequires: python-rpm-macros
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libevent API provides a mechanism to execute a callback function
@@ -86,8 +86,7 @@ Summary: Development files for libevent2
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}
Requires: glibc-devel
# Both have /usr/include/event.h
Conflicts: libev-devel
Conflicts: libev-libevent-devel
Provides: %{name}:%{_includedir}/event.h
%description devel
@@ -120,21 +119,19 @@ This package holds the static libraries for libevent2.
export ac_cv_func_select=no
%configure \
--disable-libevent-regress
make %{?_smp_mflags}
%make_build
%check
make check
%make_build check
%install
%make_install %{?_smp_mflags}
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%python3_fix_shebang
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{libsoname}
%files -n %{libsoname}
%defattr(-,root,root,-)
%license LICENSE
%doc ChangeLog whatsnew-2.0.txt whatsnew-2.1.txt
%{_libdir}/%{name}-%{version_base}.%{version_minor}.so.%{abi_release}*
@@ -144,7 +141,6 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%{_libdir}/%{name}_openssl-%{version_base}.%{version_minor}.so.%{abi_release}*
%files devel
%defattr(-,root,root)
%{_bindir}/event_rpcgen.py
%{_includedir}/evdns.h
%{_includedir}/event.h
@@ -164,7 +160,6 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%{_libdir}/pkgconfig/%{name}_extra.pc
%files devel-static
%defattr(-,root,root)
%{_libdir}/%{name}.a
%{_libdir}/%{name}_core.a
%{_libdir}/%{name}_extra.a