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 Source0: ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz
10 BuildRequires: autoconf
11 BuildRequires: automake
12 %if %{!?_without_embed:1}%{?_without_embed:0}
13 BuildRequires: slang-devel-embed
14 BuildRequires: uClibc-devel
15 BuildRequires: uClibc-static
17 BuildRequires: slang-devel
18 BuildRequires: gettext-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define embed_path /usr/lib/embed
23 %define embed_cc %{_arch}-uclibc-cc
24 %define embed_cflags %{rpmcflags} -Os
25 %define uclibc_prefix /usr/%{_arch}-linux-uclibc
28 Tool for displaying dialogs from shell.
31 Narzêdzie do wy¶wietlania okien dialogowych z shella.
34 Summary: Tool for displaying dialogs from shell - BOOT
35 Summary(pl): Narzêdzie do wy¶wietlania okien dialogowych z shella -BOOT
36 Group: Applications/Terminal
39 Tool for displaying dialogs from shell. Bootdisk version.
41 %description embed -l pl
42 Narzêdzie do wy¶wietlania okien dialogowych z shella. Wersja na
54 %if %{!?_without_embed:1}%{?_without_embed:0}
55 %configure --disable-nls
58 CFLAGS="%{embed_cflags}" \
60 mv -f src/dml dml-shared
63 CFLAGS="%{embed_cflags}" \
66 mv -f src/dml dml-static
74 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 %if %{!?_without_embed:1}%{?_without_embed:0}
79 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
80 install dml-shared $RPM_BUILD_ROOT%{embed_path}/shared/dml
81 install dml-static $RPM_BUILD_ROOT%{embed_path}/static/dml
84 gzip -9nf AUTHORS TODO NEWS README ChangeLog
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/*
95 %if %{!?_without_embed:1}%{?_without_embed:0}
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{embed_path}/*/dml