1 |
jpp |
1.3 |
# $Id: cvm.spec,v 1.2 2021/03/03 21:25:50 jpp Exp $ |
2 |
vip-ire |
1.1 |
|
3 |
|
|
Name: cvm |
4 |
|
|
Summary: Credential Validation Modules |
5 |
jpp |
1.2 |
Version: 0.97 |
6 |
vip-ire |
1.1 |
Release: 1%{?dist} |
7 |
|
|
License: GPL |
8 |
|
|
Group: Utilities/System |
9 |
jpp |
1.2 |
Source: http://untroubled.org/cvm/cvm-0.97.tar.gz |
10 |
vip-ire |
1.1 |
BuildRoot: %{_tmppath}/cvm-buildroot |
11 |
|
|
URL: http://untroubled.org/cvm/ |
12 |
|
|
BuildRequires: libtool |
13 |
jpp |
1.3 |
BuildRequires: bglibs >= 2.04 |
14 |
|
|
BuildRequires: bglibs-devel |
15 |
vip-ire |
1.1 |
BuildRequires: mysql-devel |
16 |
|
|
BuildRequires: postgresql-devel |
17 |
|
|
Obsoletes: cvm-vmailmgr |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
This package implements the CVM interface as a client (cvm-testclient), |
21 |
|
|
and as a module (cvm-unix, cvm-pwfile). |
22 |
|
|
|
23 |
|
|
%package devel |
24 |
|
|
Summary: Development libraries for CVM |
25 |
|
|
Group: Development/Libraries |
26 |
|
|
|
27 |
|
|
%description devel |
28 |
|
|
This package includes all the development libraries and headers for |
29 |
|
|
building CVM clients or modules. |
30 |
|
|
|
31 |
|
|
%package mysql |
32 |
|
|
Group: Utilities/System |
33 |
|
|
Summary: MySQL Credential Validation Modules |
34 |
|
|
|
35 |
|
|
%description mysql |
36 |
|
|
Credential Validation Modules that authenticate against a MySQL server. |
37 |
|
|
|
38 |
|
|
%package pgsql |
39 |
|
|
Group: Utilities/System |
40 |
|
|
Summary: PostgreSQL Credential Validation Modules |
41 |
|
|
|
42 |
|
|
%description pgsql |
43 |
|
|
Credential Validation Modules that authenticate against a PostgreSQL server. |
44 |
|
|
|
45 |
|
|
%prep |
46 |
|
|
%setup |
47 |
|
|
|
48 |
|
|
%build |
49 |
|
|
%ifarch x86_64 |
50 |
jpp |
1.3 |
echo gcc "%{optflags}" -fPIC -I%{_includedir}/pgsql -I/usr/local/bglibs/include >conf-cc |
51 |
|
|
echo gcc -s -fPIC -L%{_libdir}/mysql -I/usr/local/bglibs/include -L/usr/local/bglibs/lib/ >conf-ld |
52 |
vip-ire |
1.1 |
%else |
53 |
|
|
echo gcc "%{optflags}" -I%{_includedir}/pgsql >conf-cc |
54 |
|
|
echo gcc -s -L%{_libdir}/mysql >conf-ld |
55 |
|
|
%endif |
56 |
|
|
echo %{_bindir} >conf-bin |
57 |
|
|
echo %{_includedir} >conf-include |
58 |
jpp |
1.3 |
#echo "/usr/local/bglibs/include/" >conf-include |
59 |
vip-ire |
1.1 |
echo %{_libdir} >conf-lib |
60 |
|
|
make libraries programs mysql pgsql |
61 |
|
|
|
62 |
|
|
%install |
63 |
|
|
rm -fr %{buildroot} |
64 |
|
|
mkdir -p %{buildroot}%{_bindir} |
65 |
|
|
mkdir -p %{buildroot}%{_includedir} |
66 |
|
|
mkdir -p %{buildroot}%{_libdir} |
67 |
|
|
|
68 |
|
|
make install_prefix=%{buildroot} install |
69 |
|
|
|
70 |
|
|
%clean |
71 |
|
|
rm -rf %{buildroot} |
72 |
|
|
|
73 |
|
|
%post |
74 |
|
|
/sbin/ldconfig |
75 |
|
|
|
76 |
|
|
%files |
77 |
|
|
%defattr(-,root,root) |
78 |
|
|
%doc COPYING NEWS README *.html |
79 |
|
|
%{_bindir}/cvm-[^mp]* |
80 |
|
|
%{_bindir}/cvm-pwfile |
81 |
|
|
%{_libdir}/*.so.* |
82 |
|
|
|
83 |
|
|
%files devel |
84 |
|
|
%defattr(-,root,root) |
85 |
|
|
%{_includedir}/* |
86 |
|
|
%{_libdir}/*.a |
87 |
|
|
%{_libdir}/*.la |
88 |
|
|
%{_libdir}/*.so |
89 |
|
|
|
90 |
|
|
%files mysql |
91 |
|
|
%defattr(-,root,root) |
92 |
|
|
%{_bindir}/cvm-mysql* |
93 |
|
|
|
94 |
|
|
%files pgsql |
95 |
|
|
%defattr(-,root,root) |
96 |
|
|
%{_bindir}/cvm-pgsql* |
97 |
jpp |
1.3 |
|
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 |
|
|
|