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 2 |
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 |
129 |
|
|
130 |
#---------------------------------------------------- |
#---------------------------------------------------- |
131 |
|
|
132 |
|
%package -n %{name}-debug |
133 |
|
Summary: Debug files for %{name} |
134 |
|
Group: Development/C |
135 |
|
Requires: %{libname} = %{version}-%{release} |
136 |
|
|
137 |
|
%description -n %{name}-debug |
138 |
|
The %{name}-debug package contains debugs files and header files for |
139 |
|
debuging applications that use %{name}. |
140 |
|
|
141 |
|
#---------------------------------------------------- |
142 |
|
|
143 |
%package -n python-%{name} |
%package -n python-%{name} |
144 |
Summary: Python 2 bindings for %{name} |
Summary: Python 2 bindings for %{name} |
145 |
Group: Development/Python |
Group: Development/Python |
146 |
BuildArch: noarch |
BuildArch: noarch |
147 |
Provides: pythonegg(2)(seafile) = %{version}-%{release} |
Provides: pythonegg(2)(seafile) = %{version}-%{release} |
148 |
Provides: pythonegg(2)(seaserv) = %{version}-%{release} |
Provides: pythonegg(2)(seaserv) = %{version}-%{release} |
149 |
|
Requires: scl-utils |
150 |
|
Requires: %{scl_prefix_python}runtime |
151 |
|
|
152 |
%description -n python-%{name} |
%description -n python-%{name} |
153 |
Seafile is an open source cloud storage system with features on privacy |
Seafile is an open source cloud storage system with features on privacy |
159 |
|
|
160 |
#---------------------------------------------------- |
#---------------------------------------------------- |
161 |
|
|
162 |
|
|
163 |
%prep |
%prep |
164 |
%setup -q |
%setup -q |
|
#%#setup -q -n seafile-server-%{version}-server |
|
165 |
%patch0 -p1 |
%patch0 -p1 |
166 |
%patch1 -p1 |
%patch1 -p1 |
|
#%#autopatch -p1 |
|
167 |
|
|
168 |
sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in |
sed -i -e /\(DESTDIR\)/d lib/libseafile.pc.in |
169 |
|
|
170 |
NOCONFIGURE=1 ./autogen.sh |
NOCONFIGURE=1 ./autogen.sh |
171 |
|
|
172 |
%build |
%build |
173 |
echo "hum1" |
scl enable %{scl_python} "bash" |
174 |
#%configure2_5x |
%{?scl:scl enable %{scl_python} - << \EOF} |
175 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
176 |
%configure \ |
%configure \ |
177 |
--disable-static \ |
--disable-static \ |
|
--with-mysql \ |
|
178 |
--enable-server \ |
--enable-server \ |
179 |
--enable-client \ |
--enable-client |
180 |
# --disable-fuse |
|
|
echo "hum 2" |
|
|
ls -alR /usr/include/evhtp/ |
|
|
#%make_build |
|
181 |
make |
make |
182 |
echo "hum 3" |
%{?scl:EOF} |
183 |
#ls -al %{buildroot} |
# --with-mysql unknown for 5.1.3 |
184 |
#ls -al /builddir/build/BUILD/seafile-6.1.1/ |
|
185 |
%install |
%install |
186 |
#%make_install |
%scl_install |
187 |
|
%{?scl:scl enable %{scl_python} - << \EOF} |
188 |
|
export PYTHON='/opt/rh/python27/root/usr/bin/python' |
189 |
make install DESTDIR=%{buildroot} |
make install DESTDIR=%{buildroot} |
190 |
|
%{?scl:EOF} |
191 |
|
|
192 |
# we don't want these |
# we don't want these |
193 |
find %{buildroot} -name '*.la' -delete |
find %{buildroot} -name '*.la' -delete |
194 |
#ls -alR /builddir/build/BUILDROOT/seafile-6.1.1-1.x86_64/ > /dev/stderr |
rm -rf %{buildroot}/etc/rpm/macros.python27-config |
195 |
|
rm -rf %{buildroot}/etc/scl/prefixes/python27 |
196 |
|
rm -rf %{buildroot}/opt/rh/python27/root/usr/tmp |
197 |
|
rm -rf %{buildroot}/opt/rh/python27/root/var/mail |
198 |
|
|
199 |
%files |
%files |
200 |
%doc README.markdown |
%doc README.markdown |
230 |
%{python_sitearch}/%{name}/ |
%{python_sitearch}/%{name}/ |
231 |
%{python_sitearch}/seaserv/ |
%{python_sitearch}/seaserv/ |
232 |
|
|
233 |
|
%files -n %{name}-debug |
234 |
|
/usr/src/debug/* |
235 |
|
/usr/lib/debug/.build-id/* |
236 |
|
/usr/lib/debug/opt/rh/python27/root/usr/bin/* |
237 |
|
/usr/lib/debug/opt/rh/python27/root/usr/lib64/* |
238 |
|
|
239 |
%changelog |
%changelog |
240 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 6.1.1-1.sme |
* Wed Mar 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version: 5.1.3-2.sme |
241 |
- upgrade to 6.1.1 |
- build against python27 sclo, packaged as element of this sclo |
242 |
|
|
243 |
|
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-1.sme |
244 |
- First import to SME Server |
- First import to SME Server |
245 |
- test with vala < 0.26 : vala-0.10.4-1.el6 |
- test with vala < 0.26 : vala-0.10.4-1.el6 |
246 |
|
|