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

Diff of /rpms/libsearpc/contribs9/libsearpc.spec

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

Revision 1.1 by jpp, Tue Feb 20 02:33:42 2018 UTC Revision 1.2 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    
24  %global _hardened_build 1  %global _hardened_build 1
25  %define release 3  %define release 4
26    
27  Name:           libsearpc  Name:           libsearpc
28  Version:        3.0.7  Version:        3.0.7
29  Release:        %{release}%{?dist}  Release:        %{release}%{?dist}
30  Summary:        A simple and easy-to-use C language RPC framework  Summary:        A simple and easy-to-use C language RPC framework
31    
32  License:        LGPLv3  License:        LGPLv3
# Line 16  BuildRequires:  libtool Line 39  BuildRequires:  libtool
39  BuildRequires:  glib2-devel  BuildRequires:  glib2-devel
40  BuildRequires:  jansson-devel  BuildRequires:  jansson-devel
41  BuildRequires:  pygobject2  BuildRequires:  pygobject2
42  BuildRequires:  python-simplejson  #might need pygobject227 instead
43    BuildRequires:  %{scl_prefix_python}python-simplejson
44    #SCL
45    BuildRequires: scl-utils-build
46    # Always make sure that there is the python27-sclbuild (or rh-python35-sclbuild)
47    # package in the build root
48    BuildRequires: %{scl_prefix_python}scldevel
49    # Require python27-python-devel, you will need macros from that package
50    BuildRequires: %{scl_prefix_python}python-devel
51    BuildRequires: %{scl_prefix_python}build
52    Requires: %{scl_prefix}python-versiontools
53    
54    
55    
56  %description  %description
# Line 25  handles the serialization/deserializatio Line 59  handles the serialization/deserializatio
59  left to users.  left to users.
60    
61    
62  %package        devel  %package        -n %{scl_python}-%{name}-devel
63  Summary:        Development files for %{name}  Summary:        Development files for %{name}
64  Requires:       %{name}%{?_isa} = %{version}-%{release}  Requires:       %{name}%{?_isa} = %{version}-%{release}
65  Requires:       glib2-devel  Requires:       glib2-devel
66  Requires:       jansson-devel >= 2.2.1  Requires:       jansson-devel >= 2.2.1
67    
68    
69  %description    devel  %description    -n %{scl_python}-%{name}-devel
70  The %{name}-devel package contains libraries and header files for developing  The %{name}-devel package contains libraries and header files for developing
71  applications that use %{name}.  applications that use %{name}.
72    
73    
74    #----------------------------------------------------
75    %package        -n %{scl_python}-%{name}
76    Summary:        A simple and easy-to-use C language RPC framework
77    Requires: %{scl_prefix}python-versiontools
78    
79    %description    -n %{scl_python}-%{name}
80    Searpc is a simple C language RPC framework based on GObject system. Searpc
81    handles the serialization/deserialization part of RPC, the transport part is
82    left to users.
83    
84    #----------------------------------------------------
85    %package        -n %{scl_python}-%{name}-debug
86    Summary:        debug package for %{scl_python}-%{name}
87    
88    %description    -n %{scl_python}-%{name}-debug
89    Searpc is a simple C language RPC framework based on GObject system. Searpc
90    handles the serialization/deserialization part of RPC, the transport part is
91    left to users.
92    
93    
94  %prep  %prep
95  %setup -qn %{name}-%{version}  %setup -qn %{name}-%{version}
96  sed -i -e /\(DESTDIR\)/d %{name}.pc.in  sed -i -e /\(DESTDIR\)/d %{name}.pc.in
97    
98    
99  %build  %build
100    %{?scl:scl enable %{scl_python} - << \EOF}
101    export PYTHON='/opt/rh/python27/root/usr/bin/python'
102    
103  ./autogen.sh  ./autogen.sh
104  %configure --disable-static --disable-compile-demo  %configure --disable-static --disable-compile-demo
105  %{__make} %{?_smp_mflags} CFLAGS="%{optflags}"  %{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
106    %{?scl:EOF}
107    
108  %install  %install
109    %scl_install
110    %{?scl:scl enable %{scl_python} - << \EOF}
111    export PYTHON='/opt/rh/python27/root/usr/bin/python'
112  %{__make} install DESTDIR=%{buildroot}  %{__make} install DESTDIR=%{buildroot}
113    %{?scl:EOF}
114    
115    
116  find %{buildroot} -name '*.la' -exec rm -f {} ';'  find %{buildroot} -name '*.la' -exec rm -f {} ';'
117    rm -rf  %{buildroot}/etc/rpm/macros.python27-config
118    rm -rf  %{buildroot}/etc/scl/prefixes/python27
119    rm -rf  %{buildroot}/opt/rh/python27/root/usr/tmp
120    rm -rf  %{buildroot}/opt/rh/python27/root/var/mail
121    
122    
123  %check  %check
124    %{?scl:scl enable %{scl_python} - << \EOF}
125    export PYTHON='/opt/rh/python27/root/usr/bin/python'
126  %{__make} check  %{__make} check
127    %{?scl:EOF}
128    
129    
130  %post -p /sbin/ldconfig  %post -p /sbin/ldconfig
# Line 62  find %{buildroot} -name '*.la' -exec rm Line 132  find %{buildroot} -name '*.la' -exec rm
132  %postun -p /sbin/ldconfig  %postun -p /sbin/ldconfig
133    
134    
135  %files  %files -n %{scl_python}-%{name}
136  %doc AUTHORS README.markdown  %doc AUTHORS README.markdown
137  %doc COPYING  %doc COPYING
138  %{_libdir}/%{name}.so.*  %{_libdir}/%{name}.so.*
139  %{_bindir}/searpc-codegen.py  %{_bindir}/searpc-codegen.py
140  %{python_sitearch}/pysearpc/  %{python_sitearch}/pysearpc/
141    
142  %files devel  %files -n %{scl_python}-%{name}-devel
143  %doc COPYING  %doc COPYING
144  %{_includedir}/searpc*  %{_includedir}/searpc*
145  %{_libdir}/%{name}.so  %{_libdir}/%{name}.so
146  %{_libdir}/pkgconfig/%{name}.pc  %{_libdir}/pkgconfig/%{name}.pc
147    
148    %files -n     %{scl_python}-%{name}-debug
149    /usr/src/debug/*
150    /usr/lib/debug/.build-id/*
151    /usr/lib/debug/opt/rh/python27/root/usr/lib64/*
152    
153    
154  %changelog  %changelog
155    * Wed Mar 07 2018 Jean-Philipe Pialasse <tests@pialasse.com> - 3.0.7-4.sme
156    - fix [SME: ]
157    
158  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 3.0.7-3  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 3.0.7-3
159  - first import for SME Server  - first import for SME Server
160    


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