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

Diff of /rpms/libzdb/contribs9/libzdb.spec

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

Revision 1.3 by jpp, Wed Feb 28 00:20:58 2018 UTC Revision 1.5 by jpp, Thu Mar 22 22:11:35 2018 UTC
# Line 1  Line 1 
1  %define release 4  # 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    %define release 5
23  %define version 3.1  %define version 3.1
24  Name:           libzdb  Name:           libzdb
25  Version:        %{version}  Version:        %{version}
# Line 11  BuildRequires:  flex Line 32  BuildRequires:  flex
32  BuildRequires:  mysql-devel  BuildRequires:  mysql-devel
33  BuildRequires:  pkgconfig  BuildRequires:  pkgconfig
34  BuildRequires:  postgresql-devel >= 8  BuildRequires:  postgresql-devel >= 8
35  BuildRequires:  sqlite-devel >= 3.6.12  #BuildRequires:  sqlite-devel >= 3.7.17
36    BuildRequires: scl-utils-build
37    # Always make sure that there is the python27-sclbuild (or rh-python35-sclbuild)
38    # package in the build root
39    BuildRequires: %{scl_prefix_python}scldevel
40    # Require python27-python-devel, you will need macros from that package
41    BuildRequires: %{scl_prefix_python}python-devel
42    BuildRequires: %{scl_prefix_python}build
43    Requires: %{scl_prefix}python-versiontools
44    
45    
46  %description  %description
47  The Zild C Database Library implements a small, fast, and easy to use database  The Zild C Database Library implements a small, fast, and easy to use database
# Line 34  developing applications that use %{name} Line 64  developing applications that use %{name}
64  rm -f doc/api-docs/._*  rm -f doc/api-docs/._*
65    
66  %build  %build
67    scl enable %{scl_python} "bash"
68    %{?scl:scl enable %{scl_python} - << \EOF}
69    export PYTHON='/opt/rh/python27/root/usr/bin/python'
70    
71  %configure --disable-static --enable-protected --with-sqlite --enable-sqliteunlock  %configure --disable-static --enable-protected --with-sqlite --enable-sqliteunlock
72    
73  make %{?_smp_mflags}  make %{?_smp_mflags}
74    %{?scl:EOF}
75    
76  %install  %install
77    %scl_install
78    %{?scl:scl enable %{scl_python} - << \EOF}
79    export PYTHON='/opt/rh/python27/root/usr/bin/python'
80    
81  make install DESTDIR=%{buildroot}  make install DESTDIR=%{buildroot}
82    %{?scl:EOF}
83    rm -rf  %{buildroot}/etc/rpm/macros.python27-config
84    rm -rf  %{buildroot}/etc/scl/prefixes/python27
85    rm -rf  %{buildroot}/opt/rh/python27/root/usr/tmp
86    rm -rf  %{buildroot}/opt/rh/python27/root/var/mail
87    
88  %post   -p /sbin/ldconfig  %post   -p /sbin/ldconfig
89    
# Line 50  make install DESTDIR=%{buildroot} Line 94  make install DESTDIR=%{buildroot}
94  %{_libdir}/%{name}.so.*  %{_libdir}/%{name}.so.*
95    
96  %files devel  %files devel
97    /usr/src/debug/*
98    /usr/lib/debug/.build-id/*
99  %{_includedir}/zdb/  %{_includedir}/zdb/
100  %{_libdir}/%{name}.so  %{_libdir}/%{name}.so
101    /usr/lib/debug/%{_libdir}/%{name}.so*.debug
102  %{_libdir}/pkgconfig/zdb.pc  %{_libdir}/pkgconfig/zdb.pc
103  %exclude %{_libdir}/%{name}.la  %exclude %{_libdir}/%{name}.la
104  %doc doc/api-docs  %doc doc/api-docs
105    
106  %changelog  %changelog
107    * Thu Mar 22 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-5.sme
108    - build with python27 scl
109    
110  * Tue Feb 27 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-4.sme  * Tue Feb 27 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-4.sme
111  - enable sqliteunlock [SME: 10527]  - enable sqliteunlock [SME: 10527]
112    - require sqlite >=3.7.17
113    
114  * Mon Feb 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> - 3.1-3.sme  * Mon Feb 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> - 3.1-3.sme
115  - disable unlock notify for sqlite (--enable-sqliteunlock), this is not supported by upstream packaged sqlite,  - disable unlock notify for sqlite (--enable-sqliteunlock), this is not supported by upstream packaged sqlite,


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