summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libzip.spec17
1 files changed, 15 insertions, 2 deletions
diff --git a/libzip.spec b/libzip.spec
index 1eb6453..74613ca 100644
--- a/libzip.spec
+++ b/libzip.spec
@@ -72,6 +72,9 @@ BuildRequires: perl(warnings)
Obsoletes: libzip5 < %{version}
%endif
%if 0%{?rhel} == 8
+Obsoletes: php56-libzip < %{version}
+Obsoletes: php70-libzip < %{version}
+Obsoletes: php71-libzip < %{version}
Obsoletes: php72-libzip < %{version}
Obsoletes: php73-libzip < %{version}
Obsoletes: php74-libzip < %{version}
@@ -109,6 +112,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: libzip5-devel < %{version}
%endif
%if 0%{?rhel} == 8
+Obsoletes: php56-libzip-devel < %{version}
+Obsoletes: php70-libzip-devel < %{version}
+Obsoletes: php71-libzip-devel < %{version}
Obsoletes: php72-libzip-devel < %{version}
Obsoletes: php73-libzip-devel < %{version}
Obsoletes: php74-libzip-devel < %{version}
@@ -132,6 +138,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: libzip5-tools < %{version}
%endif
%if 0%{?rhel} == 8
+Obsoletes: php56-libzip-tools < %{version}
+Obsoletes: php70-libzip-tools < %{version}
+Obsoletes: php71-libzip-tools < %{version}
Obsoletes: php72-libzip-tools < %{version}
Obsoletes: php73-libzip-tools < %{version}
Obsoletes: php74-libzip-tools < %{version}
@@ -200,6 +209,10 @@ mkdir -p %{buildroot}%{_licensedir}
make install DESTDIR=%{buildroot} INSTALL='install -p'
%endif
+%if %{with move_to_opt}
+mkdir -p %{buildroot}%{_datadir}/licenses
+mkdir -p %{buildroot}%{_datadir}/doc
+%endif
%check
%if %{with tests}
@@ -228,8 +241,7 @@ make check
%dir %{_libdir}
%dir %{_libdir}
%dir %{_datadir}
-%ghost %{_datadir}/doc
-%ghost %{_datadir}/licenses
+%dir %{_datadir}/licenses
%endif
%files tools
@@ -257,6 +269,7 @@ make check
%dir %{_mandir}/man3
%dir %{_libdir}/pkgconfig
%dir %{_libdir}/cmake
+%dir %{_datadir}/doc
%endif