]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - authconfig/authconfig.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/ipfire-3.x.git] / authconfig / authconfig.nm
CommitLineData
0db4896e 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
0db4896e
SS
4###############################################################################
5
802ea3af
MT
6name = authconfig
7version = 6.1.14
8release = 2
0db4896e 9
802ea3af
MT
10groups = System/Base
11url = https://fedorahosted.org/authconfig
12license = GPLv2+
13summary = Command line tool for setting up authentication from network services.
0db4896e 14
802ea3af 15description
0db4896e
SS
16 Authconfig is a command line utility which can configure a workstation\
17 to use shadow (more secure) passwords. Authconfig can also configure a \
18 system to be a client for certain networked user information and \
802ea3af
MT
19 authentication schemes.
20end
21
22source_dl = https://fedorahosted.org/releases/a/u/authconfig/
23sources = %{thisapp}.tar.bz2
0db4896e 24
802ea3af
MT
25build
26 requires
27 intltool
28 python-devel
29 end
0db4896e 30
802ea3af
MT
31 configure_options += \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --disable-static
0db4896e 35
802ea3af
MT
36 # Hack to allow installation of the desktop file
37 prepare_cmds
38 ln -s /bin/true /usr/bin/desktop-file-install
39 end
0db4896e 40
802ea3af
MT
41 install_cmds
42 # Remove useless symlinks in /usr/bin
43 rm -rf %{BUILDROOT}/usr/bin
0db4896e 44
802ea3af
MT
45 # Replace absolute symlinks by relative ones
46 cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig.py authconfig
47 cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig-tui.py authconfig-tui
0db4896e 48
802ea3af
MT
49 # Remove symlinks for gtk
50 rm -rf %{BUILDROOT}/usr/sbin/authconfig-gtk
51 rm -rf %{BUILDROOT}/usr/sbin/system-config-authentication
0db4896e 52
802ea3af
MT
53 # Remove files for authconfig-gtk and system-config-authentication
54 rm -rf %{BUILDROOT}/etc/pam.d/authconfig-gtk
55 rm -rf %{BUILDROOT}/etc/pam.d/system-config-authentication
56 rm -rf %{BUILDROOT}/etc/security/console.apps/authconfig-gtk
57 rm -rf %{BUILDROOT}/etc/security/console.apps/system-config-authentication
58 rm -rf %{BUILDROOT}/usr/share/authconfig/authconfig-gtk.*
59 rm -rf %{BUILDROOT}/usr/share/man/man8/authconfig-gtk.8
60 rm -rf %{BUILDROOT}/usr/share/man/man8/system-config-authentication.8
0db4896e 61
802ea3af
MT
62 # Remove app icons for authconfig
63 rm -rf %{BUILDROOT}/usr/share/icons
64 end
65end
0db4896e 66
802ea3af
MT
67packages
68 package %{name}
69 requires += newt-python
70 end
1f9bc2f0 71
802ea3af
MT
72 package %{name}-devel
73 template DEVEL
74 end
1f9bc2f0
MT
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
802ea3af 79end