%define major 0 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Name: seafile Version: 5.1.3 Release: %mkrel 1 Summary: Open source cloud storage system with features on privacy protection and teamwork License: GPLv3+ Group: Networking/File transfer URL: https://github.com/haiwen/seafile Source0: https://github.com/haiwen/seafile/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: seafile-5.1.1-evhtp.patch BuildRequires: intltool BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(jansson) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libevent) BuildRequires: pkgconfig(uuid) >= 2.0 BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libsearpc) BuildRequires: pkgconfig(libccnet) BuildRequires: pkgconfig(python2) BuildRequires: vala >= 0.26 # server requirements BuildRequires: pkgconfig(zdb) BuildRequires: pkgconfig(evhtp) BuildRequires: pkgconfig(libarchive) Requires: ccnet >= %{version} Requires: pythonegg(2)(seafile) = %{version}-%{release} %description Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups. #---------------------------------------------------- %package server Summary: Seafile server Group: Networking/File transfer Requires: ccnet-server >= %{version} Requires: pythonegg(2)(seaserv) = %{version}-%{release} %description server Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups. This package contains the server part for %{name}. #---------------------------------------------------- %package -n %{libname} Summary: Library for %{name} Group: System/Libraries %description -n %{libname} Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups. This package contains library files for %{name}. #---------------------------------------------------- %package -n %{develname} Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{develname} The %{develname} package contains libraries and header files for developing applications that use %{name}. #---------------------------------------------------- %package -n python-%{name} Summary: Python 2 bindings for %{name} Group: Development/Python BuildArch: noarch Provides: pythonegg(2)(seafile) = %{version}-%{release} Provides: pythonegg(2)(seaserv) = %{version}-%{release} %description -n python-%{name} Seafile is an open source cloud storage system with features on privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can also be encrypted with a user chosen password. Seafile also allows users to create groups and easily sharing files into groups. This package contains the python 2 bindings for %{name}. #---------------------------------------------------- %prep %setup -q %autopatch -p1 sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in NOCONFIGURE=1 ./autogen.sh %build %configure2_5x \ --disable-static \ --enable-server \ --enable-client \ --disable-fuse %make_build %install %make_install # we don't want these find %{buildroot} -name '*.la' -delete %files %doc README.markdown %license LICENSE.txt %{_bindir}/seaf-cli %{_bindir}/seaf-daemon %{_mandir}/man1/*.1.* %files server %doc README.markdown %license LICENSE.txt %{_bindir}/seaf-fsck %{_bindir}/seaf-migrate %{_bindir}/seaf-server %{_bindir}/seaf-server-init %{_bindir}/seafserv-gc %{_bindir}/%{name}-admin %{_bindir}/%{name}-controller %files -n %{libname} %{_libdir}/lib%{name}.so.%{major} %{_libdir}/lib%{name}.so.%{major}.* %files -n %{develname} %doc README.markdown %{_includedir}/* %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/lib%{name}.pc %files -n python-%{name} %doc README.markdown %{python2_sitearch}/%{name}/ %{python2_sitearch}/seaserv/