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

Diff of /rpms/ccnet/contribs9/ccnet.spec

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

Revision 1.2 by jpp, Tue Feb 27 03:38:27 2018 UTC Revision 1.4 by jpp, Mon Mar 26 20:51:50 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    
20  %define major           0  %define major           0
21  %define libname         lib%{name}  %define libname         lib%{name}
22  %define develname       %{name}-devel  %define develname       %{name}-devel
23  %define release 3  %define release 5
24  Name:           ccnet  Name:           ccnet
25  Version:        5.1.3  Version:        5.1.3
26  Release:        %{release}%{dist}  Release:        %{release}%{dist}
# Line 20  BuildRequires: pkgconfig(openssl) Line 39  BuildRequires: pkgconfig(openssl)
39  BuildRequires:  pkgconfig(libevent)  BuildRequires:  pkgconfig(libevent)
40  BuildRequires:  pkgconfig(uuid) >= 2.0  BuildRequires:  pkgconfig(uuid) >= 2.0
41  BuildRequires:  pkgconfig(libsearpc)  BuildRequires:  pkgconfig(libsearpc)
42    # maybe better with Buildrequires:  %{scl_prefix_python}-libsearpc-devel
43  #BuildRequires: pkgconfig(python2)  #BuildRequires: pkgconfig(python2)
44  BuildRequires: python-devel  # not for sclo py27 BuildRequires: python-devel
45  #BuildRequires: vala >= 0.26  #BuildRequires: vala >= 0.26
46  BuildRequires: vala  BuildRequires: vala
47  Buildrequires: autoconf  Buildrequires: autoconf
# Line 29  Buildrequires: automake Line 49  Buildrequires: automake
49  Buildrequires: libtool  Buildrequires: libtool
50  # server requirements  # server requirements
51  BuildRequires:  pkgconfig(zdb)  BuildRequires:  pkgconfig(zdb)
52    # scl python27
53    BuildRequires: scl-utils-build
54    BuildRequires: %{scl_prefix_python}scldevel
55    BuildRequires: %{scl_prefix_python}python-devel
56    BuildRequires: %{scl_prefix_python}build
57    BuildArch: x86_64
58    
59  Requires:       pythonegg(2)(ccnet) = %{version}-%{release}  Requires:       %{scl_prefix_python}pythonegg(2)(ccnet) = %{version}-%{release}
60    
61  %description  %description
62  Ccnet is a framework for writing networked applications in C.  Ccnet is a framework for writing networked applications in C.
# Line 71  developing applications that use %{name} Line 97  developing applications that use %{name}
97    
98  #----------------------------------------------------  #----------------------------------------------------
99    
100  %package -n     python-%{name}  %package -n     %{scl_prefix_python}python-%{name}
101  Summary:        Python 2 bindings for %{name}  Summary:        Python 2 bindings for %{name}
102  Group:          Development/Python  Group:          Development/Python
103  BuildArch:      noarch  Provides:       %{scl_prefix_python}pythonegg(2)(ccnet) = %{version}-%{release}
 Provides:       pythonegg(2)(ccnet) = %{version}-%{release}  
104    
105  %description -n python-%{name}  %description -n %{scl_prefix_python}python-%{name}
106  Ccnet is a framework for writing networked applications in C.  Ccnet is a framework for writing networked applications in C.
107  This package contains the python 2 bindings for %{name}.  This package contains the python 2 bindings for %{name}.
108    
109  #----------------------------------------------------  #----------------------------------------------------
110    
111    %package -n     %{name}-debug
112    Summary:        Debug for %{name}
113    Group:          Development/C
114    
115    %description -n %{name}-debug
116    Ccnet is a framework for writing networked applications in C.
117    
118    #----------------------------------------------------
119    
120  %prep  %prep
121  %setup -q  %setup -q
122    
# Line 91  sed -i -e /\(DESTDIR\)/d libccnet.pc.in Line 125  sed -i -e /\(DESTDIR\)/d libccnet.pc.in
125  NOCONFIGURE=1 ./autogen.sh  NOCONFIGURE=1 ./autogen.sh
126    
127  %build  %build
128    scl enable %{scl_python} "bash"
129    %{?scl:scl enable %{scl_python} - << \EOF}
130    export PYTHON='/opt/rh/python27/root/usr/bin/python'
131  #%configure2_5x \  #%configure2_5x \
132  %configure \  %configure \
133          --enable-server \          --enable-server \
# Line 98  NOCONFIGURE=1 ./autogen.sh Line 135  NOCONFIGURE=1 ./autogen.sh
135          --disable-compile-demo          --disable-compile-demo
136  #%make_build  #%make_build
137  make  make
138    %{?scl:EOF}
139    
140  %install  %install
141  #%make_install  %scl_install
142  #make install  %{?scl:scl enable %{scl_python} - << \EOF}
143    export PYTHON='/opt/rh/python27/root/usr/bin/python'
144  %{__make} install DESTDIR=%{buildroot}  %{__make} install DESTDIR=%{buildroot}
145    %{?scl:EOF}
146    
147  # we don't want these  # we don't want these
148  find %{buildroot} -name '*.la' -delete  find %{buildroot} -name '*.la' -delete
149    rm -rf  %{buildroot}/etc/rpm/macros.python27-config
150    rm -rf  %{buildroot}/etc/scl/prefixes/python27
151    rm -rf  %{buildroot}/opt/rh/python27/root/usr/tmp
152    rm -rf  %{buildroot}/opt/rh/python27/root/var/mail
153    
154  %files  %files
155  %doc HACKING README.markdown  %doc HACKING README.markdown
# Line 130  find %{buildroot} -name '*.la' -delete Line 174  find %{buildroot} -name '*.la' -delete
174  %{_libdir}/lib%{name}.so  %{_libdir}/lib%{name}.so
175  %{_libdir}/pkgconfig/lib%{name}.pc  %{_libdir}/pkgconfig/lib%{name}.pc
176    
177  %files -n python-%{name}  %files -n %{scl_prefix_python}python-%{name}
178  %doc HACKING README.markdown  %doc HACKING README.markdown
179  %{python_sitearch}/%{name}/  %{python_sitearch}/%{name}/
180    
181    %files -n     %{name}-debug
182    /usr/src/debug/*
183    /usr/lib/debug/.build-id/*
184    /usr/lib/debug/opt/rh/python27/root/usr/bin/*
185    /usr/lib/debug/opt/rh/python27/root/usr/lib64/*
186    
187  %changelog  %changelog
188  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-3  * Mon Mar 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> Version:   5.1.3-5.sme
189    - rebuild for python27 sclo
190    
191    * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-4
192  - rebuild with lib and server packages  - rebuild with lib and server packages
193    
194  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-2  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-2


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