36 |
#Source0: https://github.com/haiwen/seafile-server/archive/v%{version}-server.tar.gz |
#Source0: https://github.com/haiwen/seafile-server/archive/v%{version}-server.tar.gz |
37 |
Patch0: seafile-5.1.1-evhtp.patch |
Patch0: seafile-5.1.1-evhtp.patch |
38 |
Patch1: seafile-5.1.3.libarchive.patch |
Patch1: seafile-5.1.3.libarchive.patch |
39 |
|
Patch2: seafile-server-6.2.5-typedef.patch |
40 |
#seafile-server-6.1.1-server.libarchive.patch |
#seafile-server-6.1.1-server.libarchive.patch |
41 |
BuildRequires: intltool |
BuildRequires: intltool |
42 |
BuildRequires: pkgconfig(glib-2.0) |
BuildRequires: pkgconfig(glib-2.0) |
66 |
# server requirements |
# server requirements |
67 |
BuildRequires: pkgconfig(zdb) |
BuildRequires: pkgconfig(zdb) |
68 |
BuildRequires: pkgconfig(evhtp) |
BuildRequires: pkgconfig(evhtp) |
69 |
BuildRequires: pkgconfig(libarchive) |
# BuildRequires: pkgconfig(libarchive) |
70 |
|
BuildRequires: libarchive-devel = 2.8.5 |
71 |
#add jpp epel |
#add jpp epel |
72 |
|
BuildRequires: mysql-devel |
73 |
|
BuildREquires: postgresql-devel |
74 |
BuildRequires: libedit |
BuildRequires: libedit |
75 |
BuildRequires: libtool |
BuildRequires: libtool |
76 |
BuildRequires: fuse-devel fuse |
BuildRequires: fuse-devel fuse |
168 |
|
|
169 |
%prep |
%prep |
170 |
%setup -q |
%setup -q |
171 |
%patch0 -p1 |
# %patch0 -p1 |
172 |
# %patch1 -p1 |
# %patch1 -p1 |
173 |
|
%patch2 -p1 |
174 |
|
|
175 |
sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in |
sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in |
176 |
|
|
177 |
NOCONFIGURE=1 ./autogen.sh |
# NOCONFIGURE=1 ./autogen.sh |
178 |
|
|
179 |
%build |
%build |
180 |
scl enable %{scl_python} "bash" |
scl enable %{scl_python} "bash" |
181 |
%{?scl:scl enable %{scl_python} - << \EOF} |
%{?scl:scl enable %{scl_python} - << \EOF} |
182 |
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
183 |
%configure \ |
./autogen.sh |
184 |
--disable-static \ |
./configure --disable-static |
185 |
--enable-server \ |
# %configure \ |
186 |
--enable-client |
# --disable-static \ |
187 |
|
|
188 |
make |
make |
189 |
%{?scl:EOF} |
%{?scl:EOF} |
|
# --with-mysql unknown for 5.1.3 |
|
190 |
|
|
191 |
%install |
%install |
192 |
%scl_install |
%scl_install |