/[smeserver]/rpms/cvm/sme10/cvm.spec
ViewVC logotype

Contents of /rpms/cvm/sme10/cvm.spec

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


Revision 1.3 - (show annotations) (download)
Sun Mar 6 06:52:52 2022 UTC (2 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: cvm-0_97-1_el7_sme, HEAD
Changes since 1.2: +11 -4 lines
* Sun Mar 06 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.97-1.sme
- build cvm 0.97 for SME10 [SME: 11315]

1 # $Id: cvm.spec,v 1.2 2021/03/03 21:25:50 jpp Exp $
2
3 Name: cvm
4 Summary: Credential Validation Modules
5 Version: 0.97
6 Release: 1%{?dist}
7 License: GPL
8 Group: Utilities/System
9 Source: http://untroubled.org/cvm/cvm-0.97.tar.gz
10 BuildRoot: %{_tmppath}/cvm-buildroot
11 URL: http://untroubled.org/cvm/
12 BuildRequires: libtool
13 BuildRequires: bglibs >= 2.04
14 BuildRequires: bglibs-devel
15 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 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 %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 #echo "/usr/local/bglibs/include/" >conf-include
59 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
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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed