diff --git a/stunnel.spec b/stunnel.spec index a05db84..0cf3136 100644 --- a/stunnel.spec +++ b/stunnel.spec @@ -1,7 +1,7 @@ # Do not generate provides for private libraries %global __provides_exclude_from ^%{_libdir}/stunnel/.*$ -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 %bcond_with libwrap %else %bcond_without libwrap @@ -97,11 +97,9 @@ for lang in pl ; do done mkdir srpm-docs cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} srpm-docs -%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 mkdir -p %{buildroot}%{_unitdir} cp %{buildroot}%{_datadir}/doc/stunnel/examples/%{name}.service %{buildroot}%{_unitdir}/%{name}.service cp %{SOURCE7} %{buildroot}%{_unitdir}/%{name}@.service -%endif %check if ! make test; then @@ -129,9 +127,7 @@ fi %lang(pl) %{_mandir}/pl/man8/stunnel.8* %dir %{_sysconfdir}/%{name} %exclude %{_sysconfdir}/stunnel/* -%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 %{_unitdir}/%{name}*.service -%endif %{_datadir}/bash-completion/completions/%{name}.bash %post @@ -148,6 +144,7 @@ fi %changelog * Sat Jul 23 2022 Todd Zullinger - 5.62-5 - verify upstream source in %%prep +- clean up stale conditionals * Sat Jul 23 2022 Fedora Release Engineering - 5.62-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild