]> git.pld-linux.org Git - packages/dml.git/blobdiff - dml.spec
- added the input_utf8.patch
[packages/dml.git] / dml.spec
index 99530bd82f7e646685132231ea8d5c0ed5563ee6..e36f87aa85cab5ad356bbe702e1ab20e2d28ccd0 100644 (file)
--- a/dml.spec
+++ b/dml.spec
@@ -1,87 +1,45 @@
 Summary:       Tool for displaying dialogs from shell
-Summary(pl):   Narzêdzie do wy¶wietlania okien dialogowych z shella
+Summary(pl.UTF-8):     Narzędzie do wyświetlania okien dialogowych z shella
 Name:          dml
-Version:       0.0.10
-Release:       1
-License:       GPL
+Version:       0.1.6
+Release:       3
+License:       GPL v2
 Group:         Applications/Terminal
-Group(de):     Applikationen/Terminal
-Group(pl):     Aplikacje/Terminal
-Source0:       ftp://ftp.pld.org.pl/people/malekith/%{name}-%{version}.tar.gz
-%if %{?BOOT:1}%{!?BOOT:0}
-BuildRequires: slang-devel-BOOT
-BuildRequires: uClibc-devel-BOOT
-%endif
-BuildRequires: slang-devel
-#BuildRequires:        gettext-devel
+Source0:       ftp://ftp.pld-linux.org/people/malekith/dml/%{name}-%{version}.tar.gz
+# Source0-md5: 1862186f09b0c82fd69c50364fbbd638
+Patch0:                %{name}-utf8.patch
+Patch1:                %{name}-input_utf8.patch
+BuildRequires: slang-devel >= 2.0.0
 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.
-
-%if %{?BOOT:1}%{!?BOOT:0}
-%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.
-%endif
+%description -l pl.UTF-8
+Narzędzie do wyświetlania okien dialogowych z shella.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-
-%if %{?BOOT:1}%{!?BOOT:0}
-#autoheader
-#automake --add-missing
-#autoconf 
-
-%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}
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags}"
 
 %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 -s dml-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/bin/dml
-%endif
-
-#gzip -9nf AUTHORS TODO ChangeLog
+       PREFIX=%{_prefix} \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS TODO NEWS README doc/dml.pl doc/dml.sh
 %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
This page took 0.081083 seconds and 4 git commands to generate.