source: packages/cooker/drakfirsttime/current/SPECS/drakfirsttime.spec @ 1

Last change on this file since 1 was 1, checked in by fasma, 12 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 2.3 KB
Line 
1%define version 1.15
2%define             name drakfirsttime
3
4Summary:            The Mandriva Linux First Time Wizard
5Name:               %{name}
6Version:            %{version}
7Release:        %mkrel 1
8# http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/ftw/
9Source0:            %{name}-%{version}.tar.bz2
10URL:                http://qa.mandriva.com/
11License:            GPL
12Group:              System/Configuration/Other
13Requires:           drakxtools >= 10.1-0.17mdk, perl-MDK-Common >= 1.1.17-3mdk, perl-libwww-perl >= 5.800-1mdk
14Requires:               xinitrc >= 2.4.9-1mdk, hwdb-clients >= 0.15.1-1mdk
15Requires:      xrandr
16#Obsoletes:             mdkonline
17BuildRoot:          %{_tmppath}/%{name}-buildroot
18BuildRequires:  gettext perl-devel perl-MDK-Common-devel
19BuildArch:              noarch
20
21%description
22The First Time Wizard is a config tool to help a Mandriva Linux user to
23set up some basic things, like registration at Mandriva Club/Mandriva Expert
24and Mandriva Online the first time the system boots.
25This package also includes the drakclub wizard, to set the club urpmi
26sources.
27
28%prep
29rm -rf %{buildroot}
30
31%setup -q
32
33%build
34
35%install
36rm -rf %{buildroot}
37make prefix=%{buildroot} install
38
39mkdir -p %buildroot%_prefix/X11R6/bin/
40
41mkdir -p $RPM_BUILD_ROOT%{_menudir}
42cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
43?package(%{name}): needs="x11" icon="drakclub.png" section="System/Configuration/Other" title="Club Services" longtitle="Wizard tool for Mandriva Club" command="/usr/sbin/drakclub" xdg="true"
44EOF
45mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
46cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-ftw.desktop << EOF
47[Desktop Entry]
48Name=Club Services
49Comment=Wizard tool for Mandriva Club
50Exec=/usr/sbin/drakclub
51Icon=drakclub
52Type=Application
53Categories=GTK;X-MandrivaLinux-System-Configuration-Other;Settings;
54EOF
55
56#install lang
57%{find_lang} drakfirstboot
58
59%post
60%{update_menus}
61%update_icon_cache hicolor
62
63%postun
64%{clean_menus}
65%clean_icon_cache hicolor
66
67%clean
68rm -rf %{buildroot}
69
70%files -f drakfirstboot.lang
71%defattr(-,root,root)
72%doc README COPYING NEWS
73%{_sysconfdir}/X11/xsetup.d/??firstboot.xsetup
74%config(noreplace) %{_sysconfdir}/sysconfig/firstboot
75%{_prefix}/sbin/*
76%{_datadir}/drakfirsttime
77%{_prefix}/lib/libDrakX/drakfirsttime
78%{_datadir}/applications/mandriva-*.desktop
79%{_menudir}/%{name}
80%{_iconsdir}/*.png
81%{_miconsdir}/*.png
82%{_liconsdir}/*.png
83%{_iconsdir}/hicolor/*/apps/*.png
84
85
Note: See TracBrowser for help on using the repository browser.