seafile: fix broken binaries symlinks [release 4.2.1-2mamba;Tue May 19 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 17:43:08 +01:00
parent 5b8989a322
commit 8c7aac4f59

View File

@ -1,7 +1,7 @@
%define seafile_groupid 65435
%define seafile_userid 65435
Name: seafile
Version: 3.1.12
Version: 4.2.1
Release: 2mamba
Summary: A next-generation open source cloud storage system with advanced support for file syncing
Group: Applications/Web
@ -45,7 +45,7 @@ BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzdb-devel
## AUTOBUILDREQ-END
BuildRequires: libevhtp-devel
BuildRequires: libevhtp-devel >= 1.2.10
Requires: ccnet
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-ccnet
@ -131,8 +131,10 @@ setup-seafile.sh} \
install -d -m0755 %{buildroot}%{_datadir}/seafile/seafile-server/seafile/bin
install -d -m0755 %{buildroot}%{_datadir}/seafile/seafile-server/seafile/%{_lib}
for f in fileserver seaf-fuse seaf-server seafile-controller seafserv-tool \
seaf-fsck seaf-migrate seaf-server-init seafserv-gc; do
# don't move seaf-cli seaf-daemon for client package
for f in seaf-fsck seaf-fuse \
seaf-migrate seaf-server seaf-server-init \
seafile-admin seafile-controller seafserv-gc; do
mv %{buildroot}%{_bindir}/$f %{buildroot}%{_datadir}/seafile/seafile-server/seafile/bin/
ln -s %{_datadir}/seafile/seafile-server/seafile/bin/$f %{buildroot}%{_bindir}/$f
done
@ -185,15 +187,15 @@ fi
%defattr(-,root,root)
%{_bindir}/seaf-cli
%{_bindir}/seaf-daemon
%{_bindir}/seafile
#%{_bindir}/seafile
%{_unitdir}/seafile-client.service
%{_mandir}/man1/ccnet.1*
#%{_mandir}/man1/ccnet.1*
%{_mandir}/man1/seaf-cli.1*
%{_mandir}/man1/seafile-applet.1*
#%{_mandir}/man1/seafile-applet.1*
%files server
%defattr(-,root,root)
%{_bindir}/fileserver
#%{_bindir}/fileserver
%{_bindir}/seaf-fsck
%{_bindir}/seaf-fuse
%{_bindir}/seaf-migrate
@ -202,7 +204,7 @@ fi
%{_bindir}/seafile-admin
%{_bindir}/seafile-controller
%{_bindir}/seafserv-gc
%{_bindir}/seafserv-tool
#%{_bindir}/seafserv-tool
%attr(-,seafile,seafile) %dir %{_datadir}/seafile
%dir %{_datadir}/seafile/seafile-server
%{_datadir}/seafile/seafile-server/*.sh
@ -213,7 +215,6 @@ fi
%dir %{_datadir}/seafile/seafile-server/seafile/bin
%{_datadir}/seafile/seafile-server/seafile/bin/*
%dir %{_datadir}/seafile/seafile-server/seafile/%{_lib}
#%{_datadir}/seafile/seafile-server/*
%{_datadir}/seafile/seafile-server/seahub
%dir %{_datadir}/seafile/seafile-server/upgrade
%{_datadir}/seafile/seafile-server/upgrade/*
@ -233,7 +234,7 @@ fi
%{_libdir}/libseafile.la
%{_libdir}/libseafile.so
%{_libdir}/pkgconfig/libseafile.pc
%doc README.markdown
#%doc README.markdown
%files -n python-%{name}
%defattr(-,root,root)
@ -243,6 +244,12 @@ fi
%{python_sitearch}/seaserv/*.py*
%changelog
* Tue May 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.1-2mamba
- seafile: fix broken binaries symlinks
* Thu May 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.1-1mamba
- update to 4.2.1
* Thu Jan 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.12-2mamba
- provide required symlink /usr/share/seafile/seafile-server/seahub
- patch setup script to fix preparation of avatars directory