summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.spec
blob: 610f28adc1fc1112dae9ea3b15a8045a3abe6188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%define version 0.5.0
%define name drakpxelinux
%define release 1mdk

Summary:	PXE default file configurator
Name:		%{name}
Version:	%{version}
Release:        %{release}
Source0:	%{name}-%{version}.tar.bz2
License:	GPL
URL:		http://people.mandrakesoft.com/~aginies/drakpxe2.jpg
Group:		System/Configuration/Other
Packager:	Antoine Ginies <aginies@mandrakesoft.com>
Requires:	perl-GTK, perl-MDK-Common, pxe, drakxtools
BuildRoot:	%{_tmppath}/%{name}-buildroot
Buildarch:	noarch

%description
Quick configuration of PXE menu parameters.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT install 

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
?package(%{name}): command="/usr/X11R6/bin/%{name}" section="Office/Accessories" \
icon="configuration_section.xpm" needs="x11" title="Drakpxelinux" \
longtitle="Mandrake Pxelinux configurator"
EOF

#install lang
%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files -f %{name}.lang
%defattr(-,root,root)
%doc default TODO COPYING
%{_prefix}/X11R6/bin/*
%{_datadir}/%{name}
%{_menudir}/%{name}

%changelog
* Thu Jul 22 2004 Antoine Ginies <aginies@mandrakesoft.com> 0.5.0-1mdk
- first release