[packages/seafile] new, version 5.1.2

glen glen at pld-linux.org
Tue Jun 7 22:35:29 CEST 2016


commit 20c45a208186bdc339708a8496e9cb88300f7c47
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jun 7 23:35:04 2016 +0300

    new, version 5.1.2
    
    based on fedora package, 04c8bef

 codegen.patch |  11 ++++++
 seafile.spec  | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)
---
diff --git a/seafile.spec b/seafile.spec
new file mode 100644
index 0000000..56fa78d
--- /dev/null
+++ b/seafile.spec
@@ -0,0 +1,108 @@
+# NOTE:
+# using -server tag because 5.1.2..5.1.2-server differ
+# http://manual.seafile.com/build_seafile/server.html
+# TODO
+# - fix python to install sitescriptdir: %{py_sitedir}/seafile
+
+Summary:	File syncing and sharing software with file encryption and group sharing
+Name:		seafile
+Version:	5.1.2
+Release:	1
+License:	GPL v2
+Group:		Applications/Networking
+Source0:	https://github.com/haiwen/seafile/archive/v%{version}-server/%{name}-%{version}.tar.gz
+# Source0-md5:	5fa7f0403aa168088c42498018f72422
+Patch0:		codegen.patch
+URL:		http://seafile.com/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	ccnet-devel = %{version}
+BuildRequires:	curl-devel
+BuildRequires:	glib2-devel
+BuildRequires:	intltool
+BuildRequires:	jansson-devel
+BuildRequires:	libarchive-devel
+BuildRequires:	libevent-devel
+BuildRequires:	libfuse-devel >= 2.7.3
+BuildRequires:	libtool
+BuildRequires:	libuuid-devel
+BuildRequires:	libzdb-devel
+BuildRequires:	openssl-devel
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sqlite-devel
+BuildRequires:	vala
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Seafile is a next-generation open source cloud storage system with
+advanced support for file syncing, privacy protection and teamwork.
+
+Seafile allows users to create groups with file syncing, wiki, and
+discussion to enable easy collaboration around documents within a
+team.
+
+%package devel
+Summary:	Development files for %{name}
+Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -qn %{name}-%{version}-server
+%patch0 -p1
+
+# bogus destdir?
+sed -i -e 's/(DESTDIR)//' lib/libseafile.pc.in
+
+%build
+%{__glib_gettextize}
+%{__intltoolize} --automake
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__automake} --gnu
+%{__autoconf}
+%configure \
+	--disable-static
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libseafile.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.markdown LICENSE.txt
+%attr(755,root,root) %{_libdir}/libseafile.so.*.*.*
+%ghost %{_libdir}/libseafile.so.0
+%attr(755,root,root) %{_bindir}/seaf-cli
+%attr(755,root,root) %{_bindir}/seaf-daemon
+%{_mandir}/man1/seaf-cli.1*
+%{_mandir}/man1/seaf-daemon.1*
+%dir %{py_sitedir}/seafile
+%{py_sitedir}/seafile/*.py[co]
+%dir %{py_sitedir}/seaserv
+%{py_sitedir}/seaserv/*.py[co]
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/seafile
+%{_libdir}/libseafile.so
+%{_pkgconfigdir}/libseafile.pc
diff --git a/codegen.patch b/codegen.patch
new file mode 100644
index 0000000..fe72b82
--- /dev/null
+++ b/codegen.patch
@@ -0,0 +1,11 @@
+--- seafile-5.1.2-server/./lib/Makefile.am~	2016-05-10 15:25:35.000000000 +0300
++++ seafile-5.1.2-server/./lib/Makefile.am	2016-06-07 23:22:19.846875742 +0300
+@@ -64,7 +64,7 @@
+ 	@rm -f rpc_table.tmp
+ 	@touch rpc_table.tmp
+ 	@echo "[libsearpc]: generating rpc header files"
+-	@PYTHON@ `which searpc-codegen.py` ${top_srcdir}/lib/rpc_table.py
++	@PYTHON@ /usr/bin/searpc-codegen ${top_srcdir}/lib/rpc_table.py
+ 	@echo "[libsearpc]: done"
+ 	@mv -f rpc_table.tmp $@
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/seafile.git/commitdiff/20c45a208186bdc339708a8496e9cb88300f7c47



More information about the pld-cvs-commit mailing list