+# conditional build:
+# --without nls
Summary: Tool for displaying dialogs from shell
Summary(pl): Narzêdzie do wy¶wietlania okien dialogowych z shella
Name: dml
-Version: 0.0.3
+Version: 0.0.17
Release: 1
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
-BuildRequires: slang-static
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: gettext-devel
+BuildRequires: slang-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%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
%build
-%configure
+autoheader
+aclocal
+%{__autoconf}
+%{__automake}
+
+%configure %{?_without_nls:--disable-nls}
%{__make}
-(cd src; %{__make} small)
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-install -d -m 755 $RPM_BUILD_ROOT/usr/lib/bootdisk/bin
-install -m 755 src/dml-install $RPM_BUILD_ROOT/usr/lib/bootdisk/bin/dml
+ DESTDIR=$RPM_BUILD_ROOT
-#gzip -9nf AUTHORS TODO ChangeLog
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
+%doc AUTHORS TODO NEWS README
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
-
-%files BOOT
-%defattr(644,root,root,755)
-%attr(755,root,root) /usr/lib/bootdisk/bin/dml