Summary: Tool for displaying dialogs from shell Summary(pl): Narzędzie do wyświetlania okien dialogowych z shella Name: dml Version: 0.0.12 Release: 2 License: GPL Group: Applications/Terminal Group(de): Applikationen/Terminal Group(pl): Aplikacje/Terminal Source0: ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz Patch0: %{name}-no_new_am.patch BuildRequires: autoconf BuildRequires: automake %if %{?BOOT:1}%{!?BOOT:0} BuildRequires: slang-devel-BOOT BuildRequires: uClibc-devel-BOOT %endif BuildRequires: slang-devel BuildRequires: gettext-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Requires: slang %description Tool for displaying dialogs from shell. %description -l pl Narzędzie do wyświetlania okien dialogowych z shella. %package BOOT Summary: Tool for displaying dialogs from shell - BOOT Summary(pl): Narzędzie do wyświetlania okien dialogowych z shella -BOOT Group: Applications/Terminal Group(de): Applikationen/Terminal Group(pl): Aplikacje/Terminal %description BOOT Tool for displaying dialogs from shell. Bootdisk version. %prep %setup -q %patch -p1 %build autoheader aclocal autoconf automake -a -c %if %{?BOOT:1}%{!?BOOT:0} %configure --disable-nls %{__make} -C src \ CFLAGS="-m386 -I%{_libdir}/bootdisk%{_includedir}" \ LDFLAGS="-nostdlib -static -s" \ LDADD=" %{_libdir}/bootdisk%{_libdir}/libslang.a \ %{_libdir}/bootdisk%{_libdir}/crt0.o \ %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc " mv -f src/dml dml-BOOT %{__make} distclean %endif %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %if %{?BOOT:1}%{!?BOOT:0} install -d $RPM_BUILD_ROOT/usr/lib/bootdisk/bin install dml-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/bin/dml %endif gzip -9nf AUTHORS TODO NEWS README ChangeLog %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* %if %{?BOOT:1}%{!?BOOT:0} %files BOOT %defattr(644,root,root,755) %attr(755,root,root) /usr/lib/bootdisk/bin/dml %endif