1 |
|
# define name of the scl |
2 |
|
%global scl python27 |
3 |
|
%scl_package %scl |
4 |
|
|
5 |
|
# Defaults for the values for the python27/rh-python35 Software Collection. These |
6 |
|
# will be used when python27-scldevel (or rh-python35-scldevel) is not in the |
7 |
|
# build root |
8 |
|
%{!?scl_python:%global scl_python python27} |
9 |
|
%{!?scl_no_vendor:%global scl_no_vendor python27} |
10 |
|
%{!?scl_prefix_python:%global scl_prefix_python %{scl_python}-} |
11 |
|
|
12 |
|
# Only for this build, you need to override default __os_install_post, |
13 |
|
# because the default one would find /opt/.../lib/python2.7/ and try |
14 |
|
# to bytecompile with the system /usr/bin/python2.7 |
15 |
|
%global __os_install_post %{%{scl_no_vendor}_os_install_post} |
16 |
|
# Similarly, override __python_requires for automatic dependency generator |
17 |
|
%global __python_requires %{%{scl_no_vendor}_python_requires} |
18 |
|
|
19 |
|
# The directory for site packages for this Software Collection |
20 |
|
%global seafile_sitelib %(echo %{python27python_sitelib} | sed 's|%{scl_python}|%{scl}|') |
21 |
|
|
22 |
|
|
23 |
%define major 0 |
%define major 0 |
24 |
%define libname %{name}-lib |
%define libname %{name}-lib |
25 |
%define develname %{name}-devel |
%define develname %{name}-devel |
26 |
%define release 1 |
%define release 3 |
27 |
Name: seafile |
Name: seafile |
28 |
Version: 5.1.3 |
Version: 5.1.3 |
29 |
Release: %{release} |
Release: %{release}%{?dist} |
30 |
Summary: Open source cloud storage system with features on privacy protection and teamwork |
Summary: Open source cloud storage system with features on privacy protection and teamwork |
31 |
License: GPLv3+ |
License: GPLv3+ |
32 |
Group: Networking/File transfer |
Group: Networking/File transfer |
49 |
#BuildRequires: pkgconfig(libccnet) |
#BuildRequires: pkgconfig(libccnet) |
50 |
BuildRequires: ccnet-devel |
BuildRequires: ccnet-devel |
51 |
##BuildRequires: pkgconfig(python) |
##BuildRequires: pkgconfig(python) |
52 |
BuildRequires: python-devel |
#BuildRequires: python-devel |
53 |
|
BuildRequires: scl-utils-build |
54 |
|
# Always make sure that there is the python27-sclbuild (or rh-python35-sclbuild) |
55 |
|
# package in the build root |
56 |
|
BuildRequires: %{scl_prefix_python}scldevel |
57 |
|
# Require python27-python-devel, you will need macros from that package |
58 |
|
BuildRequires: %{scl_prefix_python}python-devel |
59 |
|
BuildRequires: %{scl_prefix_python}build |
60 |
|
Requires: %{scl_prefix}python-versiontools |
61 |
|
#BuildRequires: python27-python-devel |
62 |
#BuildRequires: vala >= 0.26 |
#BuildRequires: vala >= 0.26 |
63 |
BuildRequires: vala |
BuildRequires: vala |
64 |
# server requirements |
# server requirements |
71 |
BuildRequires: fuse-devel fuse |
BuildRequires: fuse-devel fuse |
72 |
Requires: fuse |
Requires: fuse |
73 |
Requires: sqlite >= 3.7.17 |
Requires: sqlite >= 3.7.17 |
74 |
|
BuildArch: x86_64 |
75 |
#fin add jpp |
#fin add jpp |
76 |
|
|
77 |
Requires: ccnet >= %{version} |
Requires: ccnet >= %{version} |
130 |
|
|
131 |
#---------------------------------------------------- |
#---------------------------------------------------- |
132 |
|
|
133 |
|
%package -n %{name}-debug |
134 |
|
Summary: Debug files for %{name} |
135 |
|
Group: Development/C |
136 |
|
Requires: %{libname} = %{version}-%{release} |
137 |
|
|
138 |
|
%description -n %{name}-debug |
139 |
|
The %{name}-debug package contains debugs files and header files for |
140 |
|
debuging applications that use %{name}. |
141 |
|
|
142 |
|
#---------------------------------------------------- |
143 |
|
|
144 |
%package -n python-%{name} |
%package -n python-%{name} |
145 |
Summary: Python 2 bindings for %{name} |
Summary: Python 2 bindings for %{name} |
146 |
Group: Development/Python |
Group: Development/Python |
147 |
BuildArch: noarch |
BuildArch: noarch |
148 |
Provides: pythonegg(2)(seafile) = %{version}-%{release} |
Provides: pythonegg(2)(seafile) = %{version}-%{release} |
149 |
Provides: pythonegg(2)(seaserv) = %{version}-%{release} |
Provides: pythonegg(2)(seaserv) = %{version}-%{release} |
150 |
|
Requires: scl-utils |
151 |
|
Requires: %{scl_prefix_python}runtime |
152 |
|
|
153 |
%description -n python-%{name} |
%description -n python-%{name} |
154 |
Seafile is an open source cloud storage system with features on privacy |
Seafile is an open source cloud storage system with features on privacy |
160 |
|
|
161 |
#---------------------------------------------------- |
#---------------------------------------------------- |
162 |
|
|
163 |
|
|
164 |
%prep |
%prep |
165 |
%setup -q |
%setup -q |
166 |
%patch0 -p1 |
%patch0 -p1 |
171 |
NOCONFIGURE=1 ./autogen.sh |
NOCONFIGURE=1 ./autogen.sh |
172 |
|
|
173 |
%build |
%build |
174 |
|
scl enable %{scl_python} "bash" |
175 |
|
%{?scl:scl enable %{scl_python} - << \EOF} |
176 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
177 |
%configure \ |
%configure \ |
178 |
--disable-static \ |
--disable-static \ |
|
--with-mysql \ |
|
179 |
--enable-server \ |
--enable-server \ |
180 |
--enable-client \ |
--enable-client |
181 |
|
|
182 |
make |
make |
183 |
|
%{?scl:EOF} |
184 |
|
# --with-mysql unknown for 5.1.3 |
185 |
|
|
186 |
%install |
%install |
187 |
|
%scl_install |
188 |
|
%{?scl:scl enable %{scl_python} - << \EOF} |
189 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
190 |
make install DESTDIR=%{buildroot} |
make install DESTDIR=%{buildroot} |
191 |
|
%{?scl:EOF} |
192 |
|
|
193 |
# we don't want these |
# we don't want these |
194 |
find %{buildroot} -name '*.la' -delete |
find %{buildroot} -name '*.la' -delete |
195 |
|
rm -rf %{buildroot}/etc/rpm/macros.python27-config |
196 |
|
rm -rf %{buildroot}/etc/scl/prefixes/python27 |
197 |
|
rm -rf %{buildroot}/opt/rh/python27/root/usr/tmp |
198 |
|
rm -rf %{buildroot}/opt/rh/python27/root/var/mail |
199 |
|
|
200 |
%files |
%files |
201 |
%doc README.markdown |
%doc README.markdown |
231 |
%{python_sitearch}/%{name}/ |
%{python_sitearch}/%{name}/ |
232 |
%{python_sitearch}/seaserv/ |
%{python_sitearch}/seaserv/ |
233 |
|
|
234 |
|
%files -n %{name}-debug |
235 |
|
/usr/src/debug/* |
236 |
|
/usr/lib/debug/.build-id/* |
237 |
|
/usr/lib/debug/opt/rh/python27/root/usr/bin/* |
238 |
|
/usr/lib/debug/opt/rh/python27/root/usr/lib64/* |
239 |
|
|
240 |
%changelog |
%changelog |
241 |
|
* Mon Mar 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version: 5.1.3-3.sme |
242 |
|
- TODO: rebuild with ccnet for python27 |
243 |
|
- TODO: fix pids folder path |
244 |
|
- TODO: fix seahub.db creation path |
245 |
|
|
246 |
|
* Wed Mar 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version: 5.1.3-2.sme |
247 |
|
- build against python27 sclo, packaged as element of this sclo |
248 |
|
- only for x86_64 arch |
249 |
|
|
250 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-1.sme |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-1.sme |
251 |
- First import to SME Server |
- First import to SME Server |
252 |
- test with vala < 0.26 : vala-0.10.4-1.el6 |
- test with vala < 0.26 : vala-0.10.4-1.el6 |