79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
Name: cpu
|
|
Version: 1.4.3
|
|
Release: 4mamba
|
|
Summary: Ldap aware command like useradd, userdel, usermod and others
|
|
Group: System/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://cpu.sourceforge.net/
|
|
Source: http://downloads.sourceforge.net/sourceforge/cpu/cpu-%{version}.tar.bz2
|
|
Patch0: %{name}-1.4.3-gcc4.patch
|
|
Patch1: %{name}-1.4.3-ldap.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libcrack-devel
|
|
BuildRequires: libopenldap-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libsasl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
CPU is an LDAP user management tool written in C and loosely based on FreeBSD's pw(8).
|
|
The goal of CPU is to be a suitable replacement of the useradd/usermod/userdel utilities for administrators using an LDAP backend and wishing to have a suite of command line tools for doing the administration.
|
|
|
|
%prep
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
%build
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--sysconfdir=%{_sysconfdir}/cpu \
|
|
--mandir=%{_mandir} \
|
|
--datadir=%{_datadir}/cpu \
|
|
--libdir=%{_libdir} \
|
|
--with-passwd \
|
|
--with-libcrack=/usr
|
|
|
|
%make
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} sysconfdir=%{buildroot}%{_sysconfdir}/cpu
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/cpu
|
|
%config(noreplace) %{_sysconfdir}/cpu/cpu.conf
|
|
%{_mandir}/*
|
|
%dir %{_datadir}/cpu
|
|
%{_datadir}/cpu/*
|
|
%{_libdir}/libcpu*.so.*
|
|
%{_libdir}/libcpu*.so
|
|
%{_libdir}/libcpu*.a
|
|
%{_libdir}/libcpu*.la
|
|
|
|
%changelog
|
|
* Sun Aug 18 2013 Automatic Build System <autodist@mambasoft.it> 1.4.3-4mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Apr 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.3-3mamba
|
|
- specfile updates
|
|
|
|
* Thu Oct 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.3-2qilnx
|
|
- removed libdb.so requirement
|
|
|
|
* Wed Mar 17 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.3-1qilnx
|
|
- new version build
|
|
|
|
* Tue Dec 09 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1qilnx
|
|
- first build
|