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