]> git.pld-linux.org Git - packages/dml.git/blob - dml.spec
0.0.8
[packages/dml.git] / dml.spec
1 Summary:        Tool for displaying dialogs from shell
2 Summary(pl):    Narzêdzie do wy¶wietlania okien dialogowych z shella
3 Name:           dml
4 Version:        0.0.8
5 Release:        1
6 License:        GPL
7 Group:          Applications/Terminal
8 Group(de):      Applikationen/Terminal
9 Group(pl):      Aplikacje/Terminal
10 Source0:        ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz
11 %if %{?BOOT:1}%{!?BOOT:0}
12 BuildRequires:  slang-devel-BOOT
13 BuildRequires:  uClibc-devel-BOOT
14 %endif
15 BuildRequires:  slang-devel
16 #BuildRequires: gettext-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Requires:       slang
19
20 %description
21 Tool for displaying dialogs from shell.
22
23 %description -l pl
24 Narzêdzie do wy¶wietlania okien dialogowych z shella.
25
26 %if %{?BOOT:1}%{!?BOOT:0}
27 %package BOOT
28 Summary:        Tool for displaying dialogs from shell - BOOT
29 Summary(pl):    Narzêdzie do wy¶wietlania okien dialogowych z shella -BOOT
30 Group:          Applications/Terminal
31 Group(de):      Applikationen/Terminal
32 Group(pl):      Aplikacje/Terminal
33
34 %description BOOT
35 Tool for displaying dialogs from shell. Bootdisk version.
36 %endif
37
38 %prep
39 %setup -q
40
41 %build
42
43 %if %{?BOOT:1}%{!?BOOT:0}
44 autoheader
45 automake --add-missing
46 autoconf 
47
48 %configure --disable-nls
49 %{__make} -C src \
50         CFLAGS="-I%{_libdir}/bootdisk%{_includedir} " \
51         LDFLAGS="-nostdlib -static -s" \
52         LDADD=" %{_libdir}/bootdisk%{_libdir}/libslang.a \
53                 %{_libdir}/bootdisk%{_libdir}/crt0.o \
54                 %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc "
55 mv -f src/dml dml-BOOT
56
57 %{__make} distclean
58 %endif
59
60 %configure
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT 
67
68 %if %{?BOOT:1}%{!?BOOT:0}
69 install -d $RPM_BUILD_ROOT/usr/lib/bootdisk/bin
70 install -s dml-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/bin/dml
71 %endif
72
73 #gzip -9nf AUTHORS TODO ChangeLog
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/*
81 %{_mandir}/man1/*
82
83 %if %{?BOOT:1}%{!?BOOT:0}
84 %files BOOT
85 %defattr(644,root,root,755)
86 %attr(755,root,root) /usr/lib/bootdisk/bin/dml
87 %endif
This page took 0.213437 seconds and 3 git commands to generate.