1 # _without_embed - don't build uClibc version
2 Summary: Tool for displaying dialogs from shell
3 Summary(pl): Narzêdzie do wy¶wietlania okien dialogowych z shella
8 Group: Applications/Terminal
9 Group(de): Applikationen/Terminal
10 Group(pl): Aplikacje/Terminal
11 Source0: ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz
12 BuildRequires: autoconf
13 BuildRequires: automake
14 %if %{!?_without_embed:1}%{?_without_embed:0}
15 BuildRequires: slang-devel-embed
16 BuildRequires: uClibc-devel
17 BuildRequires: uClibc-static
19 BuildRequires: slang-devel
20 BuildRequires: gettext-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define embed_path /usr/lib/embed
25 %define embed_cc %{_arch}-uclibc-cc
26 %define embed_cflags %{rpmcflags} -Os
27 %define uclibc_prefix /usr/%{_arch}-linux-uclibc
30 Tool for displaying dialogs from shell.
33 Narzêdzie do wy¶wietlania okien dialogowych z shella.
36 Summary: Tool for displaying dialogs from shell - BOOT
37 Summary(pl): Narzêdzie do wy¶wietlania okien dialogowych z shella -BOOT
38 Group: Applications/Terminal
39 Group(de): Applikationen/Terminal
40 Group(pl): Aplikacje/Terminal
43 Tool for displaying dialogs from shell. Bootdisk version.
45 %description embed -l pl
46 Narzêdzie do wy¶wietlania okien dialogowych z shella. Wersja na
58 %if %{!?_without_embed:1}%{?_without_embed:0}
59 %configure --disable-nls
62 CFLAGS="%{embed_cflags}" \
64 mv -f src/dml dml-shared
67 CFLAGS="%{embed_cflags}" \
70 mv -f src/dml dml-static
78 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
82 %if %{!?_without_embed:1}%{?_without_embed:0}
83 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
84 install dml-shared $RPM_BUILD_ROOT%{embed_path}/shared/dml
85 install dml-static $RPM_BUILD_ROOT%{embed_path}/static/dml
88 gzip -9nf AUTHORS TODO NEWS README ChangeLog
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_bindir}/*
99 %if %{!?_without_embed:1}%{?_without_embed:0}
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{embed_path}/*/dml