Name: cvm Summary: Credential Validation Modules Version: 0.82 Release: 1%{?dist} License: GPL Group: Utilities/System Source: http://untroubled.org/cvm/cvm-0.82.tar.gz BuildRoot: %{_tmppath}/cvm-buildroot URL: http://untroubled.org/cvm/ BuildRequires: libtool BuildRequires: bglibs >= 1.100 BuildRequires: mysql-devel BuildRequires: postgresql-devel Obsoletes: cvm-vmailmgr %description This package implements the CVM interface as a client (cvm-testclient), and as a module (cvm-unix, cvm-pwfile). %package devel Summary: Development libraries for CVM Group: Development/Libraries %description devel This package includes all the development libraries and headers for building CVM clients or modules. %package mysql Group: Utilities/System Summary: MySQL Credential Validation Modules %description mysql Credential Validation Modules that authenticate against a MySQL server. %package pgsql Group: Utilities/System Summary: PostgreSQL Credential Validation Modules %description pgsql Credential Validation Modules that authenticate against a PostgreSQL server. %prep %setup %build %ifarch x86_64 echo gcc "%{optflags}" -fPIC -I%{_includedir}/pgsql >conf-cc echo gcc -s -fPIC -L%{_libdir}/mysql >conf-ld %else echo gcc "%{optflags}" -I%{_includedir}/pgsql >conf-cc echo gcc -s -L%{_libdir}/mysql >conf-ld %endif echo %{_bindir} >conf-bin echo %{_includedir} >conf-include echo %{_libdir} >conf-lib make libraries programs mysql pgsql %install rm -fr %{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_libdir} make install_prefix=%{buildroot} install %clean rm -rf %{buildroot} %post /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING NEWS README *.html %{_bindir}/cvm-[^mp]* %{_bindir}/cvm-pwfile %{_libdir}/*.so.* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %files mysql %defattr(-,root,root) %{_bindir}/cvm-mysql* %files pgsql %defattr(-,root,root) %{_bindir}/cvm-pgsql*