1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
%define name smbldap-tools
%define version 0.9.11
%if 0
%define pre_version rc3
%endif
%define release 1
%if 0%{!?dist:1}
%define dist %(sed -n 's/^.* \\([1-9]*[0-9]\\)\\..*$/.el\\1/p' /etc/redhat-release 2>/dev/null)
%endif
Summary: User and Group administration tools for Samba/LDAP
Name: %{name}
version: %{version}
Release: %{?pre_version:0.%{pre_version}.}%{release}%{?dist}
Group: System Environment/Base
License: GPLv2+
URL: https://gna.org/projects/smbldap-tools/
Packager: SATOH Fumiyasu
Source0: http://download.gna.org/smbldap-tools/sources/%{version}%{?pre_version}/smbldap-tools-%{version}%{?pre_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl
BuildArch: noarch
Requires: perl >= 5.8.1
%description
smbldap-tools is a set of perl scripts designed to manage user and group
accounts stored in an LDAP directory. They can be used both by users and
administrators of Linux systems:
* administrators can perform users and groups management operations,
in a way similar to the standard useradd or groupmod commands
* users can change their LDAP password from the command line and
get/change personnal informations
This was first contributed by IDEALX (http://www.opentrust.com/)
%prep
%setup -q -n %{name}-%{version}%{?pre_version}
%build
%configure
make
for f in smbldap-config smbldap-upgrade-0.9.6; do
cp -p $f.cmd doc/$f.pl
chmod -x doc/$f.pl
done
%install
%{__rm} -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p -m 0755 %{buildroot}%{_sysconfdir}/smbldap-tools
cp -a smbldap.conf smbldap_bind.conf %{buildroot}%{_sysconfdir}/smbldap-tools/
mkdir -p -m 0755 %{buildroot}%{_mandir}/man8/
cp -p *.8 %{buildroot}%{_mandir}/man8/
%clean
%{__rm} -rf %{buildroot}
%triggerpostun -- %{name} < 0.9.7
if [ "$1" -eq "2" ]; then ## Upgrade
%{__perl} %{_docdir}/%{name}-%{version}/smbldap-upgrade-0.9.6.pl
fi
%files
%defattr(-,root,root,-)
%doc ChangeLog CONTRIBUTORS COPYING FILES INFRA INSTALL README TODO
%doc doc/*.conf.example doc/migration_scripts/ doc/*.pdf doc/*.pl
%dir %{_sysconfdir}/smbldap-tools/
%config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap_bind.conf
%{_sbindir}/smbldap-groupadd
%{_sbindir}/smbldap-groupdel
%{_sbindir}/smbldap-grouplist
%{_sbindir}/smbldap-groupmod
%{_sbindir}/smbldap-groupshow
%{_sbindir}/smbldap-passwd
%{_sbindir}/smbldap-populate
%{_sbindir}/smbldap-useradd
%{_sbindir}/smbldap-userdel
%{_sbindir}/smbldap-userlist
%{_sbindir}/smbldap-usermod
%{_sbindir}/smbldap-userinfo
%{_sbindir}/smbldap-usershow
%{_sbindir}/smbldap-config
%{perl_vendorlib}/smbldap_tools.pm
%{_mandir}/man8/smbldap-groupadd.8*
%{_mandir}/man8/smbldap-groupdel.8*
%{_mandir}/man8/smbldap-grouplist.8*
%{_mandir}/man8/smbldap-groupmod.8*
%{_mandir}/man8/smbldap-groupshow.8*
%{_mandir}/man8/smbldap-passwd.8*
%{_mandir}/man8/smbldap-populate.8*
%{_mandir}/man8/smbldap-useradd.8*
%{_mandir}/man8/smbldap-userdel.8*
%{_mandir}/man8/smbldap-userinfo.8*
%{_mandir}/man8/smbldap-userlist.8*
%{_mandir}/man8/smbldap-usermod.8*
%{_mandir}/man8/smbldap-usershow.8*
%{_mandir}/man8/smbldap-config.8*
%changelog
* Tue May 10 2016 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.11-1
- New upstream version
* Thu Feb 14 2013 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.10-1
- New upstream version
* Tue Aug 7 2012 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.9-1
- New upstream version
* Mon Mar 5 2012 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.8-1
- New upstream version
* Mon Sep 26 2011 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.7-1
- New upstream version
* Thu Jul 7 2011 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.6.svn-3
- Run smbldap-upgrade-0.9.6.pl in %%triggerun %%{name} < 0.9.6.svn
* Wed Jun 22 2011 SATOH Fumiyasu <fumiyas at OSS Technology Corp., Japan> - 0.9.6.svn-2
- New upstream version
* Fri Aug 10 2007 Jerome Tournier <jtournier@gmail.com> 0.9.4-1
- see Changelog file for updates in scripts
|