/[packages]/updates/6/userdrake/current/SPECS/userdrake.spec
ViewVC logotype

Contents of /updates/6/userdrake/current/SPECS/userdrake.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1191893 - (show annotations) (download)
Tue Jan 9 14:25:31 2018 UTC (6 years, 2 months ago) by mrambo3501
File size: 1930 byte(s)
add patch to notify of existing home directory mga#21333:C7
1 Summary: A graphical interface for administering users and groups
2 Name: userdrake
3 Version: 2.16
4 %define subrel 1
5 Release: %mkrel 1
6 Source0: http://gitweb.mageia.org/software/userdrake/snapshot/%{name}-%{version}.tar.xz
7 Patch0: userdrake-2.16-dup-homedir.patch
8 URL: http://www.mageia.org
9 License: GPLv2
10 Group: System/Configuration
11 Requires: drakxtools >= 16
12 Requires: polkit
13 Requires: transfugdrake
14 BuildRequires: gettext
15 BuildRequires: perl-devel
16 BuildRequires: libuser-devel
17 BuildRequires: libglib2.0-devel
18 BuildRequires: pam-devel
19 BuildRequires: intltool
20 BuildRequires: perl_checker
21
22 %description
23 Userdrake is a user-friendly and powerful tool for administrating users and
24 groups.
25
26 %prep
27 %autosetup -p1
28
29 %build
30 cd USER
31 %{__perl} Makefile.PL INSTALLDIRS=vendor
32 cd ..
33 make OPTIMIZE="%{optflags} -w"
34
35 %install
36 %make_install PREFIX=%{buildroot}
37
38 %make_install -C USER
39
40 #install lang
41 %{find_lang} userdrake
42
43 mkdir -p %{buildroot}%{_datadir}/applications
44 cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
45 [Desktop Entry]
46 Name=User Administration
47 Comment=Add or remove users and groups
48 Exec=/usr/bin/drakuser
49 Icon=userdrake
50 Type=Application
51 StartupNotify=true
52 Categories=GTK;System;X-Mageia-CrossDesktop;
53 NoDisplay=true
54 EOF
55
56 %package -n perl-USER
57 Summary: Perl module to access to user and group information
58 Group: Development/Perl
59 Requires: libuser
60 Conflicts: userdrake < 2.10-4
61
62 %description -n perl-USER
63 This package provides Perl language module to read and change user
64 and group information.
65
66 %files -n perl-USER
67 %{_mandir}/man3/USER*
68 %{perl_vendorarch}/USER.pm
69 %{perl_vendorarch}/auto/USER
70
71 %files -f userdrake.lang
72 %doc README COPYING RELEASE_NOTES
73 %config(noreplace) %{_sysconfdir}/sysconfig/userdrake
74 %{_prefix}/bin/*
75 %{_prefix}/libexec/*
76 %{_datadir}/polkit-1/actions/*.policy
77 %{_datadir}/userdrake
78 %{_datadir}/applications/%{name}.desktop
79 %{_iconsdir}/*.png
80 %{_miconsdir}/*.png
81 %{_liconsdir}/*.png

  ViewVC Help
Powered by ViewVC 1.1.30