]> git.pld-linux.org Git - packages/seafile.git/blob - seafile.spec
- up to 7.0.5
[packages/seafile.git] / seafile.spec
1 # NOTE:
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
6 # TODO
7 # - fix python to install sitescriptdir: %{py_sitedir}/seafile
8
9 Summary:        File syncing and sharing software with file encryption and group sharing
10 Name:           seafile
11 Version:        7.0.5
12 Release:        1
13 License:        GPL v2
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
36 BuildRequires:  vala
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 Seafile is a next-generation open source cloud storage system with
41 advanced support for file syncing, privacy protection and teamwork.
42
43 Seafile allows users to create groups with file syncing, wiki, and
44 discussion to enable easy collaboration around documents within a
45 team.
46
47 %package devel
48 Summary:        Development files for %{name}
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       glib2-devel
51
52 %description devel
53 The %{name}-devel package contains libraries and header files for
54 developing applications that use %{name}.
55
56 %prep
57 %setup -q
58
59 # bogus destdir?
60 %{__sed} -i -e 's/(DESTDIR)//' lib/libseafile.pc.in
61
62 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
63       app/seaf-cli \
64       scripts/breakpad.py \
65       setupwin.py
66
67 %build
68 %{__glib_gettextize}
69 %{__intltoolize} --automake
70 %{__libtoolize}
71 %{__aclocal} -I m4
72 %{__autoheader}
73 %{__automake} --gnu
74 %{__autoconf}
75 %configure \
76         --disable-static
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %py_postclean
86
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libseafile.la
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
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]
106
107 %files devel
108 %defattr(644,root,root,755)
109 %{_includedir}/seafile
110 %{_libdir}/libseafile.so
111 %{_pkgconfigdir}/libseafile.pc
This page took 0.076149 seconds and 4 git commands to generate.