1 |
# $Id: cvm.spec,v 1.1 2016/02/04 12:20:35 vip-ire Exp $ |
# $Id: cvm.spec,v 1.2 2021/03/03 21:25:50 jpp Exp $ |
2 |
|
|
3 |
Name: cvm |
Name: cvm |
4 |
Summary: Credential Validation Modules |
Summary: Credential Validation Modules |
10 |
BuildRoot: %{_tmppath}/cvm-buildroot |
BuildRoot: %{_tmppath}/cvm-buildroot |
11 |
URL: http://untroubled.org/cvm/ |
URL: http://untroubled.org/cvm/ |
12 |
BuildRequires: libtool |
BuildRequires: libtool |
13 |
BuildRequires: bglibs >= 1.100 |
BuildRequires: bglibs >= 2.04 |
14 |
|
BuildRequires: bglibs-devel |
15 |
BuildRequires: mysql-devel |
BuildRequires: mysql-devel |
16 |
BuildRequires: postgresql-devel |
BuildRequires: postgresql-devel |
17 |
Obsoletes: cvm-vmailmgr |
Obsoletes: cvm-vmailmgr |
47 |
|
|
48 |
%build |
%build |
49 |
%ifarch x86_64 |
%ifarch x86_64 |
50 |
echo gcc "%{optflags}" -fPIC -I%{_includedir}/pgsql >conf-cc |
echo gcc "%{optflags}" -fPIC -I%{_includedir}/pgsql -I/usr/local/bglibs/include >conf-cc |
51 |
echo gcc -s -fPIC -L%{_libdir}/mysql >conf-ld |
echo gcc -s -fPIC -L%{_libdir}/mysql -I/usr/local/bglibs/include -L/usr/local/bglibs/lib/ >conf-ld |
52 |
%else |
%else |
53 |
echo gcc "%{optflags}" -I%{_includedir}/pgsql >conf-cc |
echo gcc "%{optflags}" -I%{_includedir}/pgsql >conf-cc |
54 |
echo gcc -s -L%{_libdir}/mysql >conf-ld |
echo gcc -s -L%{_libdir}/mysql >conf-ld |
55 |
%endif |
%endif |
56 |
echo %{_bindir} >conf-bin |
echo %{_bindir} >conf-bin |
57 |
echo %{_includedir} >conf-include |
echo %{_includedir} >conf-include |
58 |
|
#echo "/usr/local/bglibs/include/" >conf-include |
59 |
echo %{_libdir} >conf-lib |
echo %{_libdir} >conf-lib |
60 |
make libraries programs mysql pgsql |
make libraries programs mysql pgsql |
61 |
|
|
94 |
%files pgsql |
%files pgsql |
95 |
%defattr(-,root,root) |
%defattr(-,root,root) |
96 |
%{_bindir}/cvm-pgsql* |
%{_bindir}/cvm-pgsql* |
97 |
|
|
98 |
|
%changelog |
99 |
|
* Sun Mar 06 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.97-1.sme |
100 |
|
- build cvm 0.97 for SME10 [SME: 11315] |
101 |
|
|