Skip to content

Commit

Permalink
Some packages will not be required by coolwsd rpm package
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I87fd9a5d5a6f7e5f6f8a71a279ffb30e74f67298
  • Loading branch information
timar committed Feb 26, 2023
1 parent 1f01351 commit 26b6d51
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions coolwsd.spec.in
Expand Up @@ -12,12 +12,12 @@ Name: coolwsd%{name_suffix}
Name: coolwsd
%endif
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Release: 1
Vendor: %{vendor}
Summary: Collabora Online WebSocket Daemon
License: EULA
Source0: coolwsd-@PACKAGE_VERSION@.tar.gz
BuildRequires: libcap-devel libpng-devel pam-devel gcc-c++ cppunit-devel pam-devel fontconfig make
BuildRequires: libcap-devel pam-devel gcc-c++ cppunit-devel pam-devel fontconfig make

# Red Hat and CentOS
%if 0%{?rhel} == 7
Expand All @@ -35,20 +35,16 @@ BuildRequires: libcap-progs linux-glibc-devel systemd-rpm-macros python3-polib

Requires: collaboraoffice collaboraoffice-ure collaboraofficebasis-core collaboraofficebasis-writer collaboraofficebasis-impress collaboraofficebasis-graphicfilter collaboraofficebasis-en-US collaboraofficebasis-calc collaboraofficebasis-ooofonts collaboraofficebasis-images collaboraofficebasis-draw collaboraofficebasis-extension-pdf-import collaboraofficebasis-ooolinguistic collaboraofficebasis-math
Requires(post): coreutils grep sed cpio

%if 0%{?rhel}
# coolwsd dependencies
Requires: systemd expat keyutils-libs krb5-libs libattr libcap libcom_err libgcc libpng libselinux openssh-clients openssl-libs pcre xz-libs zlib
# Collabora Office dependencies (unfortunately Collabora Office RPM packages do not have real dependencies)
Requires: expat fontconfig freetype libuuid bzip2-libs
Requires: openssh-clients
%endif

%if 0%{?suse_version}
# coolwsd dependencies
Requires(post): libcap-progs
Requires: systemd libopenssl1_0_0 libpcre1 libz1 libcap2 libpng12-0 libzstd1 %{fillup_prereq}
# Collabora Office dependencies (unfortunately Collabora Office RPM packages do not have real dependencies)
# cd /opt/collaboraoffice/program ; for i in soffice.bin *.so ;do ldd $i | grep '=>' | sed -e "s/^.*=> //" -e "s/ [(].*$//"; done | sort | uniq | xargs rpm -qf --qf="%{NAME}\n" | sort | uniq | grep -v collaboraoffice
Requires: fontconfig libbz2-1 libexpat1 libfreetype6 libpng16-16 libuuid1 openssh
Requires: %{fillup_prereq}
%endif

Provides: loolwsd
Expand Down

0 comments on commit 26b6d51

Please sign in to comment.