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