You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cvm/cvm.spec

106 lines
2.4 KiB
Plaintext

# $Id: cvm.spec,v 1.3 2022/03/06 06:52:52 jpp Exp $
Name: cvm
Summary: Credential Validation Modules
Version: 0.97
Release: 1%{?dist}
License: GPL
Group: Utilities/System
Source: http://untroubled.org/cvm/cvm-0.97.tar.gz
BuildRoot: %{_tmppath}/cvm-buildroot
URL: http://untroubled.org/cvm/
BuildRequires: libtool
BuildRequires: bglibs >= 2.04
BuildRequires: bglibs-devel
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 -I/usr/local/bglibs/include >conf-cc
echo gcc -s -fPIC -L%{_libdir}/mysql -I/usr/local/bglibs/include -L/usr/local/bglibs/lib/ >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 "/usr/local/bglibs/include/" >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*
%changelog
* Wed Jul 12 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Sun Mar 06 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.97-1.sme
- build cvm 0.97 for SME10 [SME: 11315]