1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = shadow-%{version}
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
13 url = https://github.com/shadow-maint/shadow/
15 summary = Utilities to deal with user accounts.
18 The shadow-utils package includes the necessary programs
19 for converting UNIX password files to the shadow password
20 format, plus programs for managing user and group accounts.
23 source_dl = https://github.com/shadow-maint/shadow/archive/%{version}.tar.gz#/
41 configure_options += \
48 --with-group-name-max-length=32
53 # Do not build these files:
54 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
55 logoutd passwd su; do \
57 # Do not generate any manpages for them.
58 find man -name Makefile.in -exec sed -i -e "/$i\.[1-9]\.xml/d" {} \;; \
59 find man -name Makefile.in -exec sed -i -e "s/man1\/$i\.1/ /" {} \;; \
61 # Do not compile them.
62 sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \
65 sed -i src/Makefile.in \
66 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
68 # Do not install korean and zh man pages
69 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
71 # Do not install russion man pages - was broken in 4.1.4.3
72 sed -i -e 's/ ru//' man/Makefile.in
76 # Remove man pages in other languages
77 rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
79 # Remove duplicate man pages.
80 rm -vf %{BUILDROOT}/usr/share/man/man*/{getspnam,nologin,passwd}.*
88 obsoletes += shadow<%{thisver}
89 provides += shadow=%{thisver}
100 package %{name}-debuginfo