Blame SPECS/passwd.spec

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