1 |
daviddavid |
1009890 |
%define major 0 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
|
|
|
5 |
|
|
Name: seafile |
6 |
|
|
Version: 5.1.1 |
7 |
daviddavid |
1014279 |
Release: %mkrel 4 |
8 |
daviddavid |
1009890 |
Summary: Open source cloud storage system with features on privacy protection and teamwork |
9 |
|
|
License: GPLv3+ |
10 |
|
|
Group: Networking/File transfer |
11 |
|
|
URL: https://github.com/haiwen/seafile |
12 |
|
|
Source0: https://github.com/haiwen/seafile/archive/v%{version}/%{name}-%{version}.tar.gz |
13 |
daviddavid |
1014279 |
Patch0: seafile-5.1.1-evhtp.patch |
14 |
daviddavid |
1009890 |
BuildRequires: intltool |
15 |
|
|
BuildRequires: pkgconfig(glib-2.0) |
16 |
|
|
BuildRequires: pkgconfig(jansson) |
17 |
|
|
BuildRequires: pkgconfig(sqlite3) |
18 |
|
|
BuildRequires: pkgconfig(openssl) |
19 |
|
|
BuildRequires: pkgconfig(libevent) |
20 |
|
|
BuildRequires: pkgconfig(uuid) >= 2.0 |
21 |
|
|
BuildRequires: pkgconfig(libcurl) |
22 |
|
|
BuildRequires: pkgconfig(libsearpc) |
23 |
|
|
BuildRequires: pkgconfig(libccnet) |
24 |
|
|
BuildRequires: pkgconfig(python2) |
25 |
|
|
BuildRequires: vala >= 0.26 |
26 |
daviddavid |
1014279 |
# server requirements |
27 |
|
|
BuildRequires: pkgconfig(zdb) |
28 |
|
|
BuildRequires: pkgconfig(evhtp) |
29 |
|
|
BuildRequires: pkgconfig(libarchive) |
30 |
daviddavid |
1009890 |
|
31 |
daviddavid |
1010167 |
Requires: ccnet >= %{version} |
32 |
daviddavid |
1010149 |
Requires: pythonegg(2)(seafile) = %{version}-%{release} |
33 |
|
|
|
34 |
daviddavid |
1009890 |
%description |
35 |
|
|
Seafile is an open source cloud storage system with features on privacy |
36 |
|
|
protection and teamwork. Collections of files are called libraries, and |
37 |
|
|
each library can be synced separately. A library can also be encrypted |
38 |
|
|
with a user chosen password. Seafile also allows users to create groups |
39 |
|
|
and easily sharing files into groups. |
40 |
|
|
|
41 |
|
|
#---------------------------------------------------- |
42 |
|
|
|
43 |
daviddavid |
1014279 |
%package server |
44 |
|
|
Summary: Seafile server |
45 |
|
|
Group: Networking/File transfer |
46 |
|
|
Requires: ccnet-server >= %{version} |
47 |
|
|
Requires: pythonegg(2)(seaserv) = %{version}-%{release} |
48 |
|
|
|
49 |
|
|
%description server |
50 |
|
|
Seafile is an open source cloud storage system with features on privacy |
51 |
|
|
protection and teamwork. Collections of files are called libraries, and |
52 |
|
|
each library can be synced separately. A library can also be encrypted |
53 |
|
|
with a user chosen password. Seafile also allows users to create groups |
54 |
|
|
and easily sharing files into groups. |
55 |
|
|
This package contains the server part for %{name}. |
56 |
|
|
|
57 |
|
|
#---------------------------------------------------- |
58 |
|
|
|
59 |
daviddavid |
1009890 |
%package -n %{libname} |
60 |
|
|
Summary: Library for %{name} |
61 |
|
|
Group: System/Libraries |
62 |
|
|
|
63 |
|
|
%description -n %{libname} |
64 |
|
|
Seafile is an open source cloud storage system with features on privacy |
65 |
|
|
protection and teamwork. Collections of files are called libraries, and |
66 |
|
|
each library can be synced separately. A library can also be encrypted |
67 |
|
|
with a user chosen password. Seafile also allows users to create groups |
68 |
|
|
and easily sharing files into groups. |
69 |
|
|
This package contains library files for %{name}. |
70 |
|
|
|
71 |
|
|
#---------------------------------------------------- |
72 |
|
|
|
73 |
|
|
%package -n %{develname} |
74 |
|
|
Summary: Development files for %{name} |
75 |
|
|
Group: Development/C |
76 |
|
|
Requires: %{libname} = %{version}-%{release} |
77 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
78 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
79 |
|
|
|
80 |
|
|
%description -n %{develname} |
81 |
|
|
The %{develname} package contains libraries and header files for |
82 |
|
|
developing applications that use %{name}. |
83 |
|
|
|
84 |
|
|
#---------------------------------------------------- |
85 |
|
|
|
86 |
|
|
%package -n python-%{name} |
87 |
|
|
Summary: Python 2 bindings for %{name} |
88 |
|
|
Group: Development/Python |
89 |
|
|
BuildArch: noarch |
90 |
|
|
Provides: pythonegg(2)(seafile) = %{version}-%{release} |
91 |
|
|
Provides: pythonegg(2)(seaserv) = %{version}-%{release} |
92 |
|
|
|
93 |
|
|
%description -n python-%{name} |
94 |
|
|
Seafile is an open source cloud storage system with features on privacy |
95 |
|
|
protection and teamwork. Collections of files are called libraries, and |
96 |
|
|
each library can be synced separately. A library can also be encrypted |
97 |
|
|
with a user chosen password. Seafile also allows users to create groups |
98 |
|
|
and easily sharing files into groups. |
99 |
|
|
This package contains the python 2 bindings for %{name}. |
100 |
|
|
|
101 |
|
|
#---------------------------------------------------- |
102 |
|
|
|
103 |
|
|
%prep |
104 |
|
|
%setup -q |
105 |
daviddavid |
1014279 |
%autopatch -p1 |
106 |
daviddavid |
1009890 |
|
107 |
|
|
sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in |
108 |
|
|
|
109 |
|
|
NOCONFIGURE=1 ./autogen.sh |
110 |
|
|
|
111 |
|
|
%build |
112 |
|
|
%configure2_5x \ |
113 |
|
|
--disable-static \ |
114 |
daviddavid |
1014279 |
--enable-server \ |
115 |
daviddavid |
1009890 |
--enable-client \ |
116 |
|
|
--disable-fuse |
117 |
daviddavid |
1014279 |
%make_build |
118 |
daviddavid |
1009890 |
|
119 |
|
|
%install |
120 |
|
|
%make_install |
121 |
|
|
|
122 |
|
|
# we don't want these |
123 |
|
|
find %{buildroot} -name '*.la' -delete |
124 |
|
|
|
125 |
|
|
%files |
126 |
|
|
%doc README.markdown |
127 |
|
|
%license LICENSE.txt |
128 |
daviddavid |
1014279 |
%{_bindir}/seaf-cli |
129 |
|
|
%{_bindir}/seaf-daemon |
130 |
daviddavid |
1009890 |
%{_mandir}/man1/*.1.* |
131 |
|
|
|
132 |
daviddavid |
1014279 |
%files server |
133 |
|
|
%doc README.markdown |
134 |
|
|
%license LICENSE.txt |
135 |
|
|
%{_bindir}/seaf-fsck |
136 |
|
|
%{_bindir}/seaf-migrate |
137 |
|
|
%{_bindir}/seaf-server |
138 |
|
|
%{_bindir}/seaf-server-init |
139 |
|
|
%{_bindir}/seafserv-gc |
140 |
|
|
%{_bindir}/%{name}-admin |
141 |
|
|
%{_bindir}/%{name}-controller |
142 |
|
|
|
143 |
daviddavid |
1009890 |
%files -n %{libname} |
144 |
|
|
%{_libdir}/lib%{name}.so.%{major}{,.*} |
145 |
|
|
|
146 |
|
|
%files -n %{develname} |
147 |
|
|
%doc README.markdown |
148 |
|
|
%{_includedir}/* |
149 |
|
|
%{_libdir}/lib%{name}.so |
150 |
|
|
%{_libdir}/pkgconfig/lib%{name}.pc |
151 |
|
|
|
152 |
|
|
%files -n python-%{name} |
153 |
|
|
%doc README.markdown |
154 |
|
|
%{python2_sitearch}/%{name}/ |
155 |
|
|
%{python2_sitearch}/seaserv/ |