seafile/seafile.spec

115 lines
3.4 KiB
RPMSpec

Name: seafile
Version: 3.1.4
Release: 1mamba
Summary: A next-generation open source cloud storage system with advanced support for file syncing
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://seafile.com/
## GITSOURCE https://github.com/haiwen/seafile.git v3.1.4
Source: https://github.com/haiwen/seafile.git/v%{version}/seafile-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libccnet-devel
BuildRequires: libevent-devel
BuildRequires: libffi-devel
BuildRequires: libglib-devel
BuildRequires: libjansson-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython-devel
BuildRequires: libsearpc-devel
BuildRequires: libselinux-devel
BuildRequires: libsqlite-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Seafile is a next-generation open source cloud storage system with advanced support for file syncing, privacy protection and teamwork.
Collections of files are called libraries, and each library can be synced separately. A library can be encrypted with a user chosen password. This password is not stored on the server, so even the server admin cannot view a file's contents.
Seafile allows users to create groups with file syncing, wiki, and discussion to enable easy collaboration around documents within a team.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries
Summary: Python bindings to %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-ccnet
%description -n python-%{name}
This package contains python bindings to %{name}.
%debug_package
%prep
%setup -q
%build
./autogen.sh
%configure
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/seaf-cli
%{_bindir}/seaf-daemon
%{_bindir}/seafile
%{_mandir}/man1/ccnet.1*
%{_mandir}/man1/seaf-cli.1*
%{_mandir}/man1/seaf-daemon.1*
%{_mandir}/man1/seafile-applet.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libseafile.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/seafile
%{_includedir}/seafile/*.h
%{_libdir}/libseafile.a
%{_libdir}/libseafile.la
%{_libdir}/libseafile.so
%{_libdir}/pkgconfig/libseafile.pc
%doc README.markdown
%files -n python-%{name}
%defattr(-,root,root)
%dir %{python_sitearch}/seafile
%{python_sitearch}/seafile/*.py*
%dir %{python_sitearch}/seaserv
%{python_sitearch}/seaserv/*.py*
%changelog
* Tue Aug 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.4-1mamba
- package created using the webbuild interface