[packages/tofrodos] Up to 1.9.0

arekm arekm at pld-linux.org
Sat Mar 14 23:20:28 CET 2026


commit af7ce71dfe6c41e54c4d858b422567b0d57a293f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 14 23:20:21 2026 +0100

    Up to 1.9.0

 tofrodos.spec | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)
---
diff --git a/tofrodos.spec b/tofrodos.spec
index 4ded1f2..2344336 100644
--- a/tofrodos.spec
+++ b/tofrodos.spec
@@ -1,12 +1,12 @@
 Summary:	DOS/UNIX text file conversion tool
 Summary(pl.UTF-8):	Narzędzie do konwersji plików tekstowych między formatami DOS i UNIX
 Name:		tofrodos
-Version:	1.7.8
+Version:	1.9.0
 Release:	1
-License:	GPL v2
+License:	GPL v2 and GPL v3
 Group:		Applications/Text
-Source0:	http://tofrodos.sourceforge.net/download/%{name}-%{version}.tar.gz
-# Source0-md5:	aaa044f9817a048e126d9eb7a7535e96
+Source0:	https://github.com/ChristopherHeng/tofrodos/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# Source0-md5:	8433cdd1f962cae4027553fac21725f7
 URL:		http://www.thefreecountry.com/tofrodos/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,29 +33,31 @@ formatu UNIX-a, natomiast "todos" służy do konwersji z formatu
 UNIX-a do formatu DOS-a.
 
 %prep
-%setup -q -n %{name}
+%setup -q
 
 %build
-%{__make} -C src \
+%{__make} -f makefile.gcc \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -c" \
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -c -Wall -Wextra" \
 	LDFLAGS="%{rpmldflags}" \
-	%{?debug:DEBUG=1}
+	all
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install src/fromdos $RPM_BUILD_ROOT%{_bindir}
-install src/fromdos.1 $RPM_BUILD_ROOT%{_mandir}/man1
-
-ln -sf fromdos $RPM_BUILD_ROOT%{_bindir}/todos
+%{__make} -f makefile.gcc \
+	INSTALL="%{__install}" \
+	BINDIR="$RPM_BUILD_ROOT%{_bindir}" \
+	MANDIR="$RPM_BUILD_ROOT%{_mandir}/man1" \
+	install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc readme.txt tofrodos.html
+%doc README.md tofrodos.html
 %attr(755,root,root) %{_bindir}/fromdos
 %attr(755,root,root) %{_bindir}/todos
 %{_mandir}/man1/fromdos.1*
+%{_mandir}/man1/todos.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tofrodos.git/commitdiff/af7ce71dfe6c41e54c4d858b422567b0d57a293f



More information about the pld-cvs-commit mailing list