noman / rpms / passwd

Forked from rpms/passwd 4 years ago
Clone
fe4a55
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
fe4a55
%define WITH_SELINUX 1
fe4a55
%endif
fe4a55
%if %{?WITH_AUDIT:0}%{!?WITH_AUDIT:1}
fe4a55
%define WITH_AUDIT 1
fe4a55
%endif
fe4a55
Summary: An utility for setting or changing passwords using PAM
fe4a55
Name: passwd
fe4a55
Version: 0.80
d77977
Release: 3%{?dist}
fe4a55
License: BSD or GPL+
fe4a55
Group: System Environment/Base
fe4a55
URL: https://pagure.io/passwd
fe4a55
Source: https://releases.pagure.org/passwd/passwd-%{version}.autotoolized.tar.bz2
d77977
Patch0: passwd-0.80-manpage.patch
d77977
Patch1: passwd-0.80-S-output.patch
fe4a55
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
fe4a55
Requires: pam >= 1.0.90, /etc/pam.d/system-auth
fe4a55
%if %{WITH_SELINUX}
fe4a55
Requires: libselinux >= 2.1.6-3
fe4a55
BuildRequires: libselinux-devel >= 2.1.6-3
fe4a55
%endif
fe4a55
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/IJFYI5Q2BYZKIGDFS2WLOBDUSEGWHIKV/
fe4a55
BuildRequires: gcc
fe4a55
BuildRequires: glib2-devel, libuser-devel, pam-devel, libuser >= 0.53-1
fe4a55
BuildRequires: gettext, popt-devel
fe4a55
%if %{WITH_AUDIT}
fe4a55
BuildRequires: audit-libs-devel >= 1.0.14
fe4a55
Requires: audit-libs >= 1.0.14
fe4a55
%endif
fe4a55
fe4a55
%description
fe4a55
This package contains a system utility (passwd) which sets
fe4a55
or changes passwords, using PAM (Pluggable Authentication
fe4a55
Modules) library.
fe4a55
fe4a55
%prep
fe4a55
%setup -q -n %{name}-%{version}
d77977
%patch0 -p1 -b .manpage
d77977
%patch1 -p1 -b .S-output
fe4a55
fe4a55
%build
fe4a55
%configure \
fe4a55
%if %{WITH_SELINUX}
fe4a55
        --with-selinux \
fe4a55
%else
fe4a55
        --without-selinux \
fe4a55
%endif
fe4a55
%if %{WITH_AUDIT}
fe4a55
        --with-audit
fe4a55
%else
fe4a55
        --without-audit
fe4a55
%endif
fe4a55
make DEBUG= RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
fe4a55
fe4a55
%install
fe4a55
rm -rf $RPM_BUILD_ROOT
fe4a55
fe4a55
make install DESTDIR=$RPM_BUILD_ROOT
fe4a55
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/
fe4a55
install -m 644 passwd.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/passwd
fe4a55
%find_lang %{name}
fe4a55
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
fe4a55
    dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||")
fe4a55
    lang=$(basename $dir)
fe4a55
    echo "%%lang($lang) $dir/man*/*" >> %{name}.lang
fe4a55
done
fe4a55
fe4a55
fe4a55
%files -f %{name}.lang
fe4a55
%defattr(-,root,root,-)
fe4a55
%{!?_licensedir:%global license %%doc}
fe4a55
%license COPYING
fe4a55
%doc AUTHORS ChangeLog NEWS
fe4a55
%config(noreplace) %{_sysconfdir}/pam.d/passwd
fe4a55
%attr(4755,root,root) %{_bindir}/passwd
fe4a55
%{_mandir}/man1/passwd.1*
fe4a55
fe4a55
%changelog
d77977
* Fri Dec 13 2019 Jiri Kucera <jkucera@redhat.com> - 0.80-3
d77977
- fix inconsistencies in manpage
d77977
- fix incorrect -S output
d77977
  Resolves: #1612906, #1740168
d77977
fe4a55
* Thu Apr 12 2018 Jiri Kucera <jkucera@redhat.com> - 0.80-2
fe4a55
- Removed autotools dependencies
fe4a55
fe4a55
* Thu Mar 29 2018 Jiri Kucera <jkucera@redhat.com> - 0.80-1
fe4a55
- Update to passwd-0.80
fe4a55
  Resolves: #1293929
fe4a55
fe4a55
* Thu Mar 29 2018 Jiri Kucera <jkucera@redhat.com> - 0.79-15
fe4a55
- Mercurial changeset ID changed to the corresponding Git
fe4a55
  changeset ID
fe4a55
fe4a55
* Wed Feb 21 2018 Jiri Kucera <jkucera@redhat.com> - 0.79-14
fe4a55
- Added missing gcc dependency
fe4a55
fe4a55
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.79-13
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fe4a55
fe4a55
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.79-12
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fe4a55
fe4a55
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.79-11
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fe4a55
fe4a55
* Thu Jul 20 2017 Miloslav Trma훾 <mitr@redhat.com> - 0.79-10
fe4a55
- Redirect URL: and Source: from fedorahosted.org to pagure.io
fe4a55
  Resolves: #1472576
fe4a55
fe4a55
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.79-9
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fe4a55
fe4a55
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.79-8
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fe4a55
fe4a55
* Mon Nov 2 2015 Miloslav Trma훾 <mitr@redhat.com> - 0.79-7
fe4a55
- Support passwords up to PAM_MAX_RESP_SIZE - 1 with --stdin
fe4a55
  Resolves: #1187105
fe4a55
fe4a55
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-6
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fe4a55
fe4a55
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-5
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fe4a55
fe4a55
* Wed Jul 30 2014 Tom Callaway <spot@fedoraproject.org> - 0.79-4
fe4a55
- fix license handling
fe4a55
fe4a55
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-3
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fe4a55
fe4a55
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79-2
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fe4a55
fe4a55
* Sat Jun 22 2013 Miloslav Trma훾 <mitr@redhat.com> - 0.79-1
fe4a55
- Update to passwd-0.79
fe4a55
  Resolves: #926312, #948790
fe4a55
fe4a55
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78.99-4
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fe4a55
fe4a55
* Tue Dec  4 2012 Miloslav Trma훾 <mitr@redhat.com> - 0.78.99-3
fe4a55
- Fix License:
fe4a55
fe4a55
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78.99-2
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fe4a55
fe4a55
* Fri Jan 27 2012 Tomas Mraz <tmraz@redhat.com> 0.78.99-1
fe4a55
- use better (auditable) libselinux calls for checking
fe4a55
  the access to passwd (#518268)
fe4a55
- add support for the -e option as seen on Debian passwd
fe4a55
- make the binary PIE and full RELRO (#784483)
fe4a55
fe4a55
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78-4
fe4a55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fe4a55
fe4a55
* Tue Feb 08 2011 Tomas Mraz <tmraz@redhat.com> 0.78-3
fe4a55
- add the postlogin substack to the PAM configuration (#665063)
fe4a55
fe4a55
* Fri Jul 16 2010 Tomas Mraz <tmraz@redhat.com> 0.78-1
fe4a55
- added japanese translation of the man page (#611692)
fe4a55
- updated translations
fe4a55
fe4a55
* Tue Apr  6 2010 Tomas Mraz <tmraz@redhat.com> 0.77-5
fe4a55
- first part of fix for pam_gnome_keyring prompting (#578624)
fe4a55
  needs support for use_authtok to be added to pam_gnome_keyring
fe4a55
fe4a55
* Thu Jan 28 2010 Tomas Mraz <tmraz@redhat.com> 0.77-4
fe4a55
- add COPYING and other things to doc
fe4a55
- correct the licence field
fe4a55
fe4a55
* Mon Sep 14 2009 Tomas Mraz <tmraz@redhat.com> 0.77-1
fe4a55
- updated translations
fe4a55
- improved manual page
fe4a55
fe4a55
* Wed Feb 11 2009 Tomas Mraz <tmraz@redhat.com> 0.76-1
fe4a55
- identify SHA-256 and SHA-512 password hashes (#484994)
fe4a55
fe4a55
* Tue Apr  8 2008 Tomas Mraz <tmraz@redhat.com> 0.75-2
fe4a55
- add optional pam_gnome_keyring module to passwd pam
fe4a55
  config (#441225)
fe4a55
fe4a55
* Wed Feb 20 2008 Tomas Mraz <tmraz@redhat.com> 0.75-1
fe4a55
- fix disabling SELinux and audit in spec (#433284)
fe4a55
- remove obsolete no.po (#332121)
fe4a55
- updated translations
fe4a55
fe4a55
* Tue Sep 25 2007 Tomas Mraz <tmraz@redhat.com> 0.74-5
fe4a55
- buildrequires popt-devel
fe4a55
fe4a55
* Wed Aug 22 2007 Tomas Mraz <tmraz@redhat.com> 0.74-4
fe4a55
- spec file cleanups
fe4a55
fe4a55
* Thu Apr  5 2007 Tomas Mraz <tmraz@redhat.com> 0.74-3
fe4a55
- use std buildroot, add dist tag (#226232)
fe4a55
fe4a55
* Tue Jan 30 2007 Tomas Mraz <tmraz@redhat.com> 0.74-2
fe4a55
- do not explicitly strip the binary
fe4a55
fe4a55
* Tue Dec 12 2006 Tomas Mraz <tmraz@redhat.com> 0.74-1
fe4a55
- minor fixes in error reporting
fe4a55
- localize messages (#204022)
fe4a55
fe4a55
* Mon Jul 17 2006 Tomas Mraz <tmraz@redhat.com> 0.73-1
fe4a55
- fixed broken logic from the last change (#196851)
fe4a55
fe4a55
* Fri Jul 14 2006 Tomas Mraz <tmraz@redhat.com> 0.72-1
fe4a55
- merged audit patch to upstream cvs
fe4a55
- improved passwd -S output (#170344)
fe4a55
- make passwd -d work with stripped down proc (#196851)
fe4a55
- corrected link to pam docs (#193084)
fe4a55
- spec file cleanups
fe4a55
fe4a55
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.2.1
fe4a55
- rebuild
fe4a55
fe4a55
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.2
fe4a55
- bump again for double-long bug on ppc(64)
fe4a55
fe4a55
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.71-3.1
fe4a55
- rebuilt for new gcc4.1 snapshot and glibc changes
fe4a55
fe4a55
* Tue Jan 31 2006 Steve Grubb <sgrubb@redhat.com> 0.71-3
fe4a55
- Adjust audit patch so it builds without libaudit
fe4a55
fe4a55
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fe4a55
- rebuilt
fe4a55
fe4a55
* Tue Oct 25 2005 Steve Grubb <sgrubb@redhat.com> 0.71-2
fe4a55
- adjust audit communication to use common logging functions
fe4a55
fe4a55
* Fri Oct  7 2005 Tomas Mraz <tmraz@redhat.com> 0.71-1
fe4a55
- use include instead of pam_stack in pam config
fe4a55
fe4a55
* Fri Jun 17 2005 Tomas Mraz <tmraz@redhat.com> 0.70-1
fe4a55
- replace laus with audit
fe4a55
- auto* build changes
fe4a55
fe4a55
* Fri Jan 28 2005 Jindrich Novy <jnovy@redhat.com> 0.69-1
fe4a55
- spec file fixes
fe4a55
- add libuser >= 0.53-1 BuildPrereq (#139331)
fe4a55
fe4a55
* Tue Jan 25 2005 Dan Walsh <dwalsh@redhat.com>
fe4a55
- improve SELinux priv checking
fe4a55
fe4a55
* Mon Aug 23 2004 Jindrich Novy <jnovy@redhat.com>
fe4a55
- applied cleanup patch from Steve Grubb #120060
fe4a55
- fixed man page #115380
fe4a55
- added libselinux-devel to BuildPrereq #123750, #119416
fe4a55
fe4a55
* Thu Aug 19 2004 Jindrich Novy <jnovy@redhat.com> 0.68-10
fe4a55
- moved to 0.68-10 to fix problem with RHEL4-Alpha4 #129548
fe4a55
- updated GNU build scripts and file structure to recent style
fe4a55
fe4a55
* Wed Feb 4 2004 Dan Walsh <dwalsh@redhat.com> 0.68-8
fe4a55
- add check for enforcing mode
fe4a55
fe4a55
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 0.68-7
fe4a55
- fix is_selinux_enabled
fe4a55
fe4a55
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 0.68-6
fe4a55
- turn off selinux
fe4a55
fe4a55
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 0.68-5.sel
fe4a55
- Add SELinux support
fe4a55
fe4a55
* Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 0.68-4
fe4a55
- Add SELinux support
fe4a55
fe4a55
* Thu Feb 13 2003 Nalin Dahyabhai <nalin@redhat.com> 0.68-3
fe4a55
- add aging adjustment flags to passwd(1)'s synopsis, were just in the
fe4a55
  reference section before
fe4a55
fe4a55
* Mon Jan 27 2003 Nalin Dahyabhai <nalin@redhat.com> 0.68-2
fe4a55
- rebuild
fe4a55
fe4a55
* Mon Dec  9 2002 Nalin Dahyabhai <nalin@redhat.com> 0.68-1
fe4a55
- implement aging adjustments for pwdb
fe4a55
fe4a55
* Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-4
fe4a55
- modify default PAM configuration file to not specify directories, so that
fe4a55
  the same configuration can be used for all arches on multilib systems
fe4a55
- fix BuildPrereq on glib-devel to specify glib2-devel instead
fe4a55
- remove unpackaged files in %%install phase
fe4a55
fe4a55
* Tue May 28 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-3
fe4a55
- rebuild
fe4a55
fe4a55
* Mon May 20 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-2
fe4a55
- rebuild in new environment
fe4a55
fe4a55
* Wed Mar 13 2002 Nalin Dahyabhai <nalin@redhat.com> 0.67-1
fe4a55
- add the -i, -n, -w, and -x options to passwd
fe4a55
fe4a55
* Mon Mar 11 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-5
fe4a55
- rebuild
fe4a55
fe4a55
* Mon Feb 25 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-4
fe4a55
- rebuild
fe4a55
fe4a55
* Fri Feb 22 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-3
fe4a55
- rebuild
fe4a55
fe4a55
* Thu Jan 31 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-2
fe4a55
- rebuild to get dependencies right
fe4a55
fe4a55
* Tue Jan 29 2002 Nalin Dahyabhai <nalin@redhat.com> 0.65-1
fe4a55
- change dependency from pwdb to libuser
fe4a55
fe4a55
* Fri Jan 25 2002 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-9
fe4a55
- rebuild
fe4a55
fe4a55
* Thu Aug 30 2001 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-8
fe4a55
- man page fix (-r is the opposite of -l, not --stdin, which precedes it)
fe4a55
  from Felipe Gustavo de Almeida
fe4a55
fe4a55
* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com> 0.64.1-7
fe4a55
- fix unguarded printf() (noted by Chris Evans)
fe4a55
- add missing build dependency on pwdb and pam-devel (#49550)
fe4a55
fe4a55
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
fe4a55
- Bump release + rebuild.
fe4a55
fe4a55
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
fe4a55
- automatic rebuild
fe4a55
fe4a55
* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
fe4a55
- move man pages to _mandir
fe4a55
fe4a55
* Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
fe4a55
- modify PAM setup to use system-auth
fe4a55
- modify for building as non-root users
fe4a55
fe4a55
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
fe4a55
- fix manpage links
fe4a55
fe4a55
* Fri Feb 04 2000 Nalin Dahyabhai <nalin@redhat.com>
fe4a55
- document --stdin in man page
fe4a55
- fix for gzipped man pages
fe4a55
fe4a55
* Sat Apr 10 1999 Cristian Gafton <gafton@redhat.com>
fe4a55
- first build from the new source code base.