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 |
|
%define release 6 |
23 |
|
%define version 3.1 |
24 |
Name: libzdb |
Name: libzdb |
25 |
Version: 3.1 |
Version: %{version} |
26 |
Release: 2%{?dist} |
Release: %{release}%{?dist} |
27 |
Summary: Small, easy to use Database Connection Pool Library |
Summary: Small, easy to use Database Connection Pool Library |
28 |
License: GPLv3+ and MIT |
License: GPLv3+ and MIT |
29 |
URL: http://www.tildeslash.com/libzdb/ |
URL: http://www.tildeslash.com/libzdb/ |
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 |
|
BuildArch: x86_64 |
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 |
64 |
rm -f doc/api-docs/._* |
rm -f doc/api-docs/._* |
65 |
|
|
66 |
%build |
%build |
67 |
%configure --disable-static --enable-protected --enable-sqliteunlock |
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 |
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 |
|
|
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 |
|
* Sat Mar 24 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-6.sme |
108 |
|
- build only for x86_64, as no scl available for i386 |
109 |
|
|
110 |
|
* Thu Mar 22 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-5.sme |
111 |
|
- build with python27 scl |
112 |
|
|
113 |
|
* Tue Feb 27 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-4.sme |
114 |
|
- enable sqliteunlock [SME: 10527] |
115 |
|
- require sqlite >=3.7.17 |
116 |
|
|
117 |
|
* Mon Feb 26 2018 Jean-Philipe Pialasse <tests@pialasse.com> - 3.1-3.sme |
118 |
|
- disable unlock notify for sqlite (--enable-sqliteunlock), this is not supported by upstream packaged sqlite, |
119 |
|
would need the following option at build time : -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 |
120 |
|
|
121 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 3.1-2 |
* Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 3.1-2 |
122 |
- first import for SME Server |
- first import for SME Server |
123 |
|
|