/[smecontribs]/rpms/seafile/contribs9/seafile.spec
ViewVC logotype

Diff of /rpms/seafile/contribs9/seafile.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by jpp, Wed Feb 28 06:56:56 2018 UTC Revision 1.3 by jpp, Fri Mar 9 04:57:10 2018 UTC
# Line 1  Line 1 
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
# Line 27  BuildRequires: pkgconfig(libsearpc) Line 49  BuildRequires: pkgconfig(libsearpc)
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
# Line 98  developing applications that use %{name} Line 129  developing applications that use %{name}
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
# Line 115  This package contains the python 2 bindi Line 159  This package contains the python 2 bindi
159    
160  #----------------------------------------------------  #----------------------------------------------------
161    
162    
163  %prep  %prep
164  %setup -q  %setup -q
165  %patch0 -p1  %patch0 -p1
# Line 125  sed -i -e /\(DESTDIR\)/d lib/libseafile. Line 170  sed -i -e /\(DESTDIR\)/d lib/libseafile.
170  NOCONFIGURE=1 ./autogen.sh  NOCONFIGURE=1 ./autogen.sh
171    
172  %build  %build
173    scl enable %{scl_python} "bash"
174    %{?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    
181  make  make
182    %{?scl:EOF}
183    #  --with-mysql unknown for 5.1.3
184    
185  %install  %install
186    %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    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
# Line 172  find %{buildroot} -name '*.la' -delete Line 230  find %{buildroot} -name '*.la' -delete
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    * Wed Mar 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version:   5.1.3-2.sme
241    - 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  * 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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed