2 # using -server tag because 5.1.2..5.1.2-server differ
3 # http://manual.seafile.com/build_seafile/server.html
4 # explanation of the tags:
5 # http://manual.seafile.com/deploy/#for-those-that-want-to-package-seafile-server
7 # - fix python to install sitescriptdir: %{py_sitedir}/seafile
9 Summary: File syncing and sharing software with file encryption and group sharing
14 Group: Applications/Networking
15 Source0: https://github.com/haiwen/seafile/archive/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: 9904adcb43b7194a8e89552794f77209
17 URL: http://seafile.com/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: pkgconfig
21 BuildRequires: ccnet-devel
22 BuildRequires: curl-devel
23 BuildRequires: glib2-devel
24 BuildRequires: intltool
25 BuildRequires: jansson-devel
26 BuildRequires: libevent-devel
27 BuildRequires: libfuse-devel >= 2.7.3
28 # for bin/searpc-codegen
29 BuildRequires: libsearpc
30 BuildRequires: libtool
31 BuildRequires: libuuid-devel
32 BuildRequires: openssl-devel
33 BuildRequires: python-devel
34 BuildRequires: rpm-pythonprov
35 BuildRequires: rpmbuild(macros) >= 1.714
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Seafile is a next-generation open source cloud storage system with
41 advanced support for file syncing, privacy protection and teamwork.
43 Seafile allows users to create groups with file syncing, wiki, and
44 discussion to enable easy collaboration around documents within a
48 Summary: Development files for %{name}
49 Requires: %{name} = %{version}-%{release}
53 The %{name}-devel package contains libraries and header files for
54 developing applications that use %{name}.
60 %{__sed} -i -e 's/(DESTDIR)//' lib/libseafile.pc.in
62 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
69 %{__intltoolize} --automake
81 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libseafile.la
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc README.markdown LICENSE.txt
98 %attr(755,root,root) %{_libdir}/libseafile.so.*.*.*
99 %ghost %{_libdir}/libseafile.so.0
100 %attr(755,root,root) %{_bindir}/seaf-cli
101 %attr(755,root,root) %{_bindir}/seaf-daemon
102 %{_mandir}/man1/seaf-cli.1*
103 %{_mandir}/man1/seaf-daemon.1*
104 %dir %{py_sitedir}/seafile
105 %{py_sitedir}/seafile/*.py[co]
108 %defattr(644,root,root,755)
109 %{_includedir}/seafile
110 %{_libdir}/libseafile.so
111 %{_pkgconfigdir}/libseafile.pc