From 9f6f48597f563aee4604493cd26147d8e81e77458284de9f7a0f6573be4e92b2 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 17 Feb 2010 16:59:25 +0000 Subject: [PATCH 1/7] OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=10 --- de.po | 209 ---------------------------------------- dos2unix-4.1.2.tar.bz2 | 3 - dos2unix-5.0.tar.bz2 | 3 + dos2unix-Makefile.patch | 110 --------------------- dos2unix-de.po.bz2 | 3 + dos2unix.changes | 11 +++ dos2unix.spec | 34 ++++--- 7 files changed, 38 insertions(+), 335 deletions(-) delete mode 100644 de.po delete mode 100644 dos2unix-4.1.2.tar.bz2 create mode 100644 dos2unix-5.0.tar.bz2 delete mode 100644 dos2unix-Makefile.patch create mode 100644 dos2unix-de.po.bz2 diff --git a/de.po b/de.po deleted file mode 100644 index 5f648f8..0000000 --- a/de.po +++ /dev/null @@ -1,209 +0,0 @@ -# German messages for dos2unix -# Copyright (C) 2009, 2010 -# This file is distributed under the same license as the dos2unix package. -# -# Philipp Thomas , 2009, 2010. -# Philipp Thomas , 2009,2010. -msgid "" -msgstr "" -"Project-Id-Version: dos2unix 4.0\n" -"Report-Msgid-Bugs-To: pth@suse.de\n" -"POT-Creation-Date: 2010-01-24 09:00+0100\n" -"PO-Revision-Date: 2010-01-24 09:00+0100\n" -"Last-Translator: Philipp Thomas \n" -"Language-Team: German \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 1.0\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" - -#: dos2unix.c:158 -#, c-format -msgid "" -"dos2unix %s (%s)\n" -"Usage: dos2unix [-fhkLlqV] [-c convmode] [-o file ...] [-n infile " -"outfile ...]\n" -" -c --convmode conversion mode\n" -" convmode ASCII, 7bit, ISO, Mac, default to ASCII\n" -" -f --force force conversion of all files\n" -" -h --help give this help\n" -" -k --keepdate keep output file date\n" -" -L --license print software license\n" -" -l --newline add additional newline in all but Mac convmode\n" -" -n --newfile write to new file\n" -" infile original file in new file mode\n" -" outfile output file in new file mode\n" -" -o --oldfile write to old file\n" -" file ... files to convert in old file mode\n" -" -q --quiet quiet mode, suppress all warnings\n" -" always on in stdio mode\n" -" -V --version display version number\n" -msgstr "" -"dos2unix %s (%s)\n" -"Aufruf: dos2unix [-fhkLlqV] [-c Konvmodus] [-o Datei ...] [-n Eingabedatei " -"Ausgabedatei ...]\n" -" -c --convmode Konvertierungsmodus angeben\n" -" convmode ASCII, 7bit, ISO, Mac, Standard ist nach ASCII\n" -" -f --force erzwingt die Konvertierung aller Dateien\n" -" -h --help gibt diese Hilfe\n" -" -k --keepdate Datum der Ausgabedatei bleibt erhalten\n" -" -L --license Ausgabe der Software-Lizenz\n" -" -l --newline fügt in allen ausser dem Mac Konvertierungsmodus einen Zeilenumbruch hinzu\n" -" -n --newfile eine neue Datei wird erzeugt\n" -" infile Originaldatei im neue Datei Modus\n" -" outfile Ausgabedatei im neue Datei Modus\n" -" -o --oldfile überschreibt die alte Datei\n" -" Datei ... Die im alte Datei Modus zu konvertierenden Dateien\n" -" -q --quiet ruhiger Modus, unterdrückt alle Warnungen\n" -" ist im stdio Modus immer aktiv\n" -" -V --version gibt die Versionsnummer aus\n" - -#: dos2unix.c:180 -#, c-format -msgid "" -"Copyright (c) 1994-1995 Benjamin Lin\n" -"Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)\n" -"Copyright (c) 1998 Christian Wurll (Version 3.1)\n" -"Copyright (c) 2009-2010 Erwin Waterlander\n" -"All rights reserved.\n" -"\n" -"Redistribution and use in source and binary forms, with or without\n" -"modification, are permitted provided that the following conditions\n" -"are met:\n" -"1. Redistributions of source code must retain the above copyright\n" -" notice, this list of conditions and the following disclaimer.\n" -"2. Redistributions in binary form must reproduce the above copyright\n" -" notice in the documentation and/or other materials provided with\n" -" the distribution.\n" -"\n" -"THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY\n" -"EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n" -"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n" -"PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE\n" -"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n" -"CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n" -"OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n" -"BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n" -"WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" -"OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n" -"IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" -msgstr "" -"Copyright © 1994,1995 Benjamin Lin\n" -"Copyright © 1998 Bernd Johannes Wuebben (Version 3.0)\n" -"Copyright © 1998 Christian Wurll (Version 3.1)\n" -"Copyright © 2009-2010 Erwin Waterlander\n" -"Alle Rechte vorbehalten.\n" -"\n" -"Verbreitung und Verwendung als Quelltext oder Binärdatei, in geänderter\n" -"oder ungeänderter Form sind gestattet, soweit die folgenden Bedingungen\n" -"eingehalten werden:\n" -"1. Weiterverbreitung des Quellcodes muss den obigen Copyrightshinweis,\n" -" Diese Liste von Bedingungen sowie den folgenden Haftungsausschlus\n" -" beibehalten.\n" -"2. Weiterverbreitung in binärer Form muss den obigen Copyright-Hinweis\n" -" in der Dokumentation oder anderem der Distribution beiliegenden\n" -" Material wiedergeben.\n" -"\n" -"DIESE SOFTWARE WIRD VOM AUTHOR WIE VORLIEGT ZUR VERFÜGUNG GESTELLT\n" -"UND JEGLICHE AUSDRÜCKLICH GENANNTEN ODER IMPLIZITEN GARANTIEN,\n" -"EINSCHLIESLICH, ABER NICHT DARAUF BESCHRÄNKT, DER GARANTIE DER\n" -"HANDELBARKEIT UND DER EIGNUNG FÜR EINEN BESTIMMTEN ZWECK WERDEN\n" -"HIERMIT AUSGESCHLOSSEN. IN KEINEM WIE AUCH IMMER GELAGERTEN FALL KANN\n" -"DER AUTHOR FÜR IRGENDWELCHE DIREKTEN ODER INDIREKTEN, ZUFÄLLIGEN,\n" -"BESONDEREN ODER BEISPIELHAFTEN SCHÄDEN (EINSCHLIESSLICH ABER NICHT\n" -"AUSSCHLIESSLICH DER LIEFERUNG VON ERSATZGÜTERN ODER DIENSTEN;VERLUST\n" -"DER NUTZBARKEIT, DER DATEN ODER DER GEWINNE ODER ETWAIGEN VERDIENST-\n" -"AUSFALL-ENTSCHÄDIGUNGEN) HAFTBAR GEMACHT WERDEN, WIE AUCH IMMER SIE\n" -"VERURSACHT WURDEN UND WELCHE HAFTUNGSMÖGLICHKEIT ZUGRUNDE GELEGT WIRD,\n" -"SEI ES DURCH VERTRAG, VERBINDLICHKEIT ODER SCHADEN (EINSCHLIESSLICH\n" -"FAHRLÄSSIGKEIT), DIE AUS DER VERWENDUNG DIESER SOFTWARE ERWÄCHST,\n" -"SELBST WENN AUF DIE MÖGLICHKIET SOLCHER SCHÄDEN HINGEWIESEN WURDE.\n" - -#: dos2unix.c:214 -#, c-format -msgid "With native language support.\n" -msgstr "Mit Unterstützung von Landessprachen.\n" - -#: dos2unix.c:309 dos2unix.c:332 dos2unix.c:355 dos2unix.c:379 dos2unix.c:395 -#, c-format -msgid "dos2unix: can not write to out file\n" -msgstr "dos2unix: In die Ausgabedatei kann nicht geschrieben werden\n" - -#: dos2unix.c:404 -#, c-format -msgid "dos2unix: program error, invalid conversion mode %d\n" -msgstr "dos2unix: Programmfehler, der Konvertierungsmodus %d ist unzulässig\n" - -#: dos2unix.c:509 dos2unix.c:636 -#, c-format -msgid "dos2unix: using %s as temp file\n" -msgstr "dos2unix: %s wird als temporäre Datei verwendet\n" - -#: dos2unix.c:576 dos2unix.c:697 -#, c-format -msgid "dos2unix: problems renaming '%s' to '%s'\n" -msgstr "dos2unix: Beim Umbenennen von »%s« zu »%s« sind Probleme aufgetreten\n" - -#: dos2unix.c:577 dos2unix.c:698 -#, c-format -msgid " output file remains in '%s'\n" -msgstr " Die Ausgabedatei verbleibt in »%s«\n" - -#: dos2unix.c:762 -#, c-format -msgid "" -"dos2unix: error: Value of environment variable DOS2UNIX_LOCALEDIR is too " -"long.\n" -msgstr "" -"dos2unix: Fehler: Der Inhalt der Umgebungsvariablen DOS2UNIX_LOCALEDIR ist zu " -"lang.\n" - -#: dos2unix.c:836 -#, c-format -msgid "dos2unix: invalid %s conversion mode specified\n" -msgstr "dos2unix: Der angegebene Konvertierungsmodus %s ist unzulässig\n" - -#: dos2unix.c:844 -#, c-format -msgid "dos2unix: option `%s' requires an argument\n" -msgstr "dos2unix: Die Option »%s« benötigt ein Argument\n" - -#: dos2unix.c:855 dos2unix.c:867 dos2unix.c:931 -#, c-format -msgid "dos2unix: target of file %s not specified in new file mode\n" -msgstr "" -"dos2unix: Das Ziel der Datei %s wurde für den Neudatei-Modus nicht " -"angegeben\n" - -#: dos2unix.c:886 dos2unix.c:910 -#, c-format -msgid "dos2unix: Skipping %s, not a regular file.\n" -msgstr "dos2unix: %s wird übersprungen, da es keine reguläre Datei ist\n" - -#: dos2unix.c:890 dos2unix.c:914 -#, c-format -msgid "dos2unix: Skipping binary file %s\n" -msgstr "dos2unix: binäre Datei %s wird übersprungen\n" - -#: dos2unix.c:893 -#, c-format -msgid "dos2unix: converting file %s to file %s in UNIX format ...\n" -msgstr "dos2unix: Datei %s wird zu Datei %s im UNIX-Format umgewandelt ...\n" - -#: dos2unix.c:897 -#, c-format -msgid "dos2unix: problems converting file %s to file %s\n" -msgstr "" -"dos2unix: Beim Konvertieren von Datei %s zu Datei %s sind Probleme " -"aufgetreten\n" - -#: dos2unix.c:917 -#, c-format -msgid "dos2unix: converting file %s to UNIX format ...\n" -msgstr "dos2unix: Datei %s wird ins UNIX-Format umgewandelt ...\n" - -#: dos2unix.c:921 -#, c-format -msgid "dos2unix: problems converting file %s\n" -msgstr "dos2unix: Beim Umwandeln von Datei %s sind Probleme aufgetreten\n" diff --git a/dos2unix-4.1.2.tar.bz2 b/dos2unix-4.1.2.tar.bz2 deleted file mode 100644 index a86b8e9..0000000 --- a/dos2unix-4.1.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cf9a30b1b26e0ad22e7f0e576c41c30518b041166da2181f590bc6561953e8b -size 29518 diff --git a/dos2unix-5.0.tar.bz2 b/dos2unix-5.0.tar.bz2 new file mode 100644 index 0000000..25a96ef --- /dev/null +++ b/dos2unix-5.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58e30abe9a3c51dd7685e488a2957a7cbe3369544b870d5d9bbd598cc94cf1d6 +size 48231 diff --git a/dos2unix-Makefile.patch b/dos2unix-Makefile.patch deleted file mode 100644 index 32022c2..0000000 --- a/dos2unix-Makefile.patch +++ /dev/null @@ -1,110 +0,0 @@ -Index: Makefile -=================================================================== ---- Makefile.orig 2010-01-22 13:33:22.000000000 +0100 -+++ Makefile 2010-02-03 10:28:58.112948601 +0100 -@@ -25,12 +25,12 @@ exec_prefix = $(prefix) - man_prefix = $(prefix)/share - mandir = $(man_prefix)/man - bindir = $(exec_prefix)/bin --sharedir = $(prefix)/share -+datadir = $(prefix)/share - --BINDIR = $(DESTDIR)$(bindir) --DOCDIR = $(DESTDIR)$(sharedir)/doc/$(PACKAGE)-$(DOS2UNIX_VERSION) --LOCALEDIR = $(DESTDIR)$(sharedir)/locale --MANDIR = $(DESTDIR)$(mandir) -+BINDIR = $(bindir) -+DOCDIR = $(datadir)/doc/packages/$(PACKAGE) -+LOCALEDIR = $(datadir)/locale -+MANDIR = $(mandir) - MANDIR1 = $(MANDIR)/man1 - - ifdef ENABLE_NLS -@@ -47,7 +47,7 @@ INSTALL = install - MKDIR = mkdir - - ifdef ENABLE_NLS -- NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(sharedir)/locale\" -DPACKAGE=\"$(PACKAGE)\" -+ NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(datadir)/locale\" -DPACKAGE=\"$(PACKAGE)\" - endif - - # ......................................................... OS flags ... -@@ -116,7 +116,7 @@ endif - - # ............................................................ flags ... - --CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -+CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE $(RPM_OPT_FLAGS) - - EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \ - -DVER_DATE=\"$(DOS2UNIX_DATE)\" \ -@@ -176,31 +176,31 @@ $(PACKAGE).ps : dos2unix.1 - ps2pdf $< $@ - - install: all -- $(MKDIR) -p -m 755 $(BINDIR) -- $(INSTALL) -m 755 $(BIN) $(BINDIR) -- $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(BINDIR) -- $(MKDIR) -p -m 755 $(MANDIR1) -- $(INSTALL) -m 644 $(PACKAGE).1 $(MANDIR1) -- $(INSTALL) -m 644 $(MAC2UNIX).1 $(MANDIR1) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(BINDIR) -+ $(INSTALL) -m 755 $(BIN) $(DESTDIR)$(BINDIR) -+ $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(DESTDIR)$(BINDIR) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(MANDIR1) -+ $(INSTALL) -m 644 $(PACKAGE).1 $(DESTDIR)$(MANDIR1) -+ $(INSTALL) -m 644 $(MAC2UNIX).1 $(DESTDIR)$(MANDIR1) - ifdef ENABLE_NLS - @echo "-- install-mo" -- $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) -- $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) -+ $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) -+ $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) - endif - @echo "-- install-doc" -- $(MKDIR) -p -m 755 $(DOCDIR) -- $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DOCDIR) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(DOCDIR) -+ $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DESTDIR)$(DOCDIR) - - uninstall: - @echo "-- target: uninstall" -- -rm -f $(BINDIR)/$(BIN) -- -rm -f $(BINDIR)/$(MAC2UNIX_BIN) -+ -rm -f $(DESTDIR)$(BINDIR)/$(BIN) -+ -rm -f $(DESTDIR)$(BINDIR)/$(MAC2UNIX_BIN) - ifdef ENABLE_NLS -- $(foreach mofile, $(MOFILES), rm -f $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) -+ $(foreach mofile, $(MOFILES), rm -f $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) - endif -- -rm -f $(MANDIR)/man1/$(PACKAGE).1 -- -rm -f $(MANDIR)/man1/$(MAC2UNIX).1 -- -rm -rf $(DOCDIR) -+ -rm -f $(DESTDIR)$(MANDIR)/man1/$(PACKAGE).1 -+ -rm -f $(DESTDIR)$(MANDIR)/man1/$(MAC2UNIX).1 -+ -rm -rf $(DESTDIR)$(DOCDIR) - - clean: - rm -f *.o -@@ -229,6 +229,7 @@ endif - VERSIONSUFFIX = -bin - ZIPFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).zip - TGZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.gz -+TBZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.bz2 - - dist-zip: - rm -f $(prefix)/$(ZIPFILE) -@@ -241,7 +242,12 @@ dist-tgz: - cd $(prefix) ; tar cvzf $(TGZFILE) $(ZIPOBJ) - mv $(prefix)/$(TGZFILE) .. - --dist: dist-tgz -+dist-tbz: -+ cd $(prefix) ; dos2unix share/doc/$(PACKAGE)-$(DOS2UNIX_VERSION)/*.txt share/man/man1/$(PACKAGE).1 share/man/man1/$(MAC2UNIX).1 -+ cd $(prefix) ; tar cvjf $(TBZFILE) $(ZIPOBJ) -+ mv $(prefix)/$(TBZFILE) .. -+ -+dist: dist-tbz - - strip: - strip $(BIN) diff --git a/dos2unix-de.po.bz2 b/dos2unix-de.po.bz2 new file mode 100644 index 0000000..f08d74d --- /dev/null +++ b/dos2unix-de.po.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25084808428584ddcfa69d0126b8a349b6a92c085604c1f3f7323c03ea72911d +size 3451 diff --git a/dos2unix.changes b/dos2unix.changes index 69a063f..ff1a51e 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Feb 17 16:59:09 CET 2010 - pth@suse.de + +- Update to 5.0: + * Dos2unix and Unix2dos have been bundled in a single package. + * German translations have been added. + * Dos2unix -l --newline also works in MAC mode. + * Unix2dos also got option -l, --newline. + * Added MAC mode to Unix2dos: Convert Unix line endings to Mac line endings. + * Cleanup of messages and manual. + ------------------------------------------------------------------- Wed Feb 3 10:33:53 CET 2010 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index e0ab523..bf5de87 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -1,7 +1,7 @@ # -# spec file for package dos2unix (Version 4.1.2) +# spec file for package dos2unix (Version 4.0) # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,20 +18,25 @@ Name: dos2unix -Summary: A DOS to UNIX Text Converter -Version: 4.1.2 +Summary: A DOS to UNIX Text Converter and UNIX to DOS one +Version: 5.0 Release: 1 Group: Productivity/Text/Convertors License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 -Source1: de.po -Patch0: dos2unix-Makefile.patch +Source1: dos2unix-de.po.bz2 +Provides: unix2dos >= %{version} +Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -dos2unix is used to convert plain text from DOS (CR/LF) format to UNIX -format (LF). +Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix +converts plain text from MAC (CR) format to UNIX format (LF). + +Unix2dos converts plain text files from UNIX +format to DOS format and unix2dos converts from UNIX to MAC format. + @@ -40,10 +45,11 @@ Authors: Benjamin Lin blin @ socs.uts.edu.au Erwin Waterlander + %prep %setup -q -%patch0 -cp %{S:1} po/ +bzcat %{S:1} > po/dos2unix/de.po + find . -type f -exec chmod -x {} \; %build @@ -51,14 +57,16 @@ export RPM_OPT_FLAGS make %{?jobs:-j%jobs} %install -%makeinstall -%{find_lang} %{name} +%makeinstall docdir=%{_defaultdocdir}/%{name} +%{find_lang} dos2unix --all-name --with-man -%files -f %{name}.lang +%files -f dos2unix.lang %defattr(-,root,root,0755) %doc %{_defaultdocdir}/%{name} %{_bindir}/dos2unix %{_bindir}/mac2unix +%{_bindir}/unix2mac +%{_bindir}/unix2dos %{_mandir}/*/* %clean From ce8b9eb0cb691e09b148b2f66174b6d1e68f91137dcbc28dbea8fcb0f8325d54 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 17 Feb 2010 17:01:28 +0000 Subject: [PATCH 2/7] Fix Summary OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=11 --- dos2unix.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dos2unix.spec b/dos2unix.spec index bf5de87..a7bfbfd 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -18,7 +18,7 @@ Name: dos2unix -Summary: A DOS to UNIX Text Converter and UNIX to DOS one +Summary: Text converters to and from DOS/MAC to UNIX Version: 5.0 Release: 1 Group: Productivity/Text/Convertors From 17ca87236d3d9b4daac51ec624bea90c69912def5dbd00ad7e831e0d315419d2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 4 Mar 2010 15:21:26 +0000 Subject: [PATCH 3/7] OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=12 --- dos2unix.spec | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dos2unix.spec b/dos2unix.spec index a7bfbfd..a39820b 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -26,7 +26,7 @@ License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 Source1: dos2unix-de.po.bz2 -Provides: unix2dos >= %{version} +Provides: unix2dos = %{version} Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -37,15 +37,6 @@ converts plain text from MAC (CR) format to UNIX format (LF). Unix2dos converts plain text files from UNIX format to DOS format and unix2dos converts from UNIX to MAC format. - - - -Authors: --------- - Benjamin Lin blin @ socs.uts.edu.au - Erwin Waterlander - - %prep %setup -q bzcat %{S:1} > po/dos2unix/de.po From c9832ea6d42596d589e3e65f1ad8c7e3348767f600ac2918c686cc5362673df8 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 5 Mar 2010 01:11:17 +0000 Subject: [PATCH 4/7] Accepting request 34030 from Base:System checked in (request 34030) OBS-URL: https://build.opensuse.org/request/show/34030 OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=13 --- de.po | 209 ++++++++++++++++++++++++++++++++++++++++ dos2unix-4.1.2.tar.bz2 | 3 + dos2unix-5.0.tar.bz2 | 3 - dos2unix-Makefile.patch | 110 +++++++++++++++++++++ dos2unix-de.po.bz2 | 3 - dos2unix.changes | 11 --- dos2unix.spec | 37 +++---- 7 files changed, 341 insertions(+), 35 deletions(-) create mode 100644 de.po create mode 100644 dos2unix-4.1.2.tar.bz2 delete mode 100644 dos2unix-5.0.tar.bz2 create mode 100644 dos2unix-Makefile.patch delete mode 100644 dos2unix-de.po.bz2 diff --git a/de.po b/de.po new file mode 100644 index 0000000..5f648f8 --- /dev/null +++ b/de.po @@ -0,0 +1,209 @@ +# German messages for dos2unix +# Copyright (C) 2009, 2010 +# This file is distributed under the same license as the dos2unix package. +# +# Philipp Thomas , 2009, 2010. +# Philipp Thomas , 2009,2010. +msgid "" +msgstr "" +"Project-Id-Version: dos2unix 4.0\n" +"Report-Msgid-Bugs-To: pth@suse.de\n" +"POT-Creation-Date: 2010-01-24 09:00+0100\n" +"PO-Revision-Date: 2010-01-24 09:00+0100\n" +"Last-Translator: Philipp Thomas \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.0\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#: dos2unix.c:158 +#, c-format +msgid "" +"dos2unix %s (%s)\n" +"Usage: dos2unix [-fhkLlqV] [-c convmode] [-o file ...] [-n infile " +"outfile ...]\n" +" -c --convmode conversion mode\n" +" convmode ASCII, 7bit, ISO, Mac, default to ASCII\n" +" -f --force force conversion of all files\n" +" -h --help give this help\n" +" -k --keepdate keep output file date\n" +" -L --license print software license\n" +" -l --newline add additional newline in all but Mac convmode\n" +" -n --newfile write to new file\n" +" infile original file in new file mode\n" +" outfile output file in new file mode\n" +" -o --oldfile write to old file\n" +" file ... files to convert in old file mode\n" +" -q --quiet quiet mode, suppress all warnings\n" +" always on in stdio mode\n" +" -V --version display version number\n" +msgstr "" +"dos2unix %s (%s)\n" +"Aufruf: dos2unix [-fhkLlqV] [-c Konvmodus] [-o Datei ...] [-n Eingabedatei " +"Ausgabedatei ...]\n" +" -c --convmode Konvertierungsmodus angeben\n" +" convmode ASCII, 7bit, ISO, Mac, Standard ist nach ASCII\n" +" -f --force erzwingt die Konvertierung aller Dateien\n" +" -h --help gibt diese Hilfe\n" +" -k --keepdate Datum der Ausgabedatei bleibt erhalten\n" +" -L --license Ausgabe der Software-Lizenz\n" +" -l --newline fügt in allen ausser dem Mac Konvertierungsmodus einen Zeilenumbruch hinzu\n" +" -n --newfile eine neue Datei wird erzeugt\n" +" infile Originaldatei im neue Datei Modus\n" +" outfile Ausgabedatei im neue Datei Modus\n" +" -o --oldfile überschreibt die alte Datei\n" +" Datei ... Die im alte Datei Modus zu konvertierenden Dateien\n" +" -q --quiet ruhiger Modus, unterdrückt alle Warnungen\n" +" ist im stdio Modus immer aktiv\n" +" -V --version gibt die Versionsnummer aus\n" + +#: dos2unix.c:180 +#, c-format +msgid "" +"Copyright (c) 1994-1995 Benjamin Lin\n" +"Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)\n" +"Copyright (c) 1998 Christian Wurll (Version 3.1)\n" +"Copyright (c) 2009-2010 Erwin Waterlander\n" +"All rights reserved.\n" +"\n" +"Redistribution and use in source and binary forms, with or without\n" +"modification, are permitted provided that the following conditions\n" +"are met:\n" +"1. Redistributions of source code must retain the above copyright\n" +" notice, this list of conditions and the following disclaimer.\n" +"2. Redistributions in binary form must reproduce the above copyright\n" +" notice in the documentation and/or other materials provided with\n" +" the distribution.\n" +"\n" +"THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY\n" +"EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n" +"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n" +"PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE\n" +"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n" +"CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n" +"OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n" +"BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n" +"WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" +"OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n" +"IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" +msgstr "" +"Copyright © 1994,1995 Benjamin Lin\n" +"Copyright © 1998 Bernd Johannes Wuebben (Version 3.0)\n" +"Copyright © 1998 Christian Wurll (Version 3.1)\n" +"Copyright © 2009-2010 Erwin Waterlander\n" +"Alle Rechte vorbehalten.\n" +"\n" +"Verbreitung und Verwendung als Quelltext oder Binärdatei, in geänderter\n" +"oder ungeänderter Form sind gestattet, soweit die folgenden Bedingungen\n" +"eingehalten werden:\n" +"1. Weiterverbreitung des Quellcodes muss den obigen Copyrightshinweis,\n" +" Diese Liste von Bedingungen sowie den folgenden Haftungsausschlus\n" +" beibehalten.\n" +"2. Weiterverbreitung in binärer Form muss den obigen Copyright-Hinweis\n" +" in der Dokumentation oder anderem der Distribution beiliegenden\n" +" Material wiedergeben.\n" +"\n" +"DIESE SOFTWARE WIRD VOM AUTHOR WIE VORLIEGT ZUR VERFÜGUNG GESTELLT\n" +"UND JEGLICHE AUSDRÜCKLICH GENANNTEN ODER IMPLIZITEN GARANTIEN,\n" +"EINSCHLIESLICH, ABER NICHT DARAUF BESCHRÄNKT, DER GARANTIE DER\n" +"HANDELBARKEIT UND DER EIGNUNG FÜR EINEN BESTIMMTEN ZWECK WERDEN\n" +"HIERMIT AUSGESCHLOSSEN. IN KEINEM WIE AUCH IMMER GELAGERTEN FALL KANN\n" +"DER AUTHOR FÜR IRGENDWELCHE DIREKTEN ODER INDIREKTEN, ZUFÄLLIGEN,\n" +"BESONDEREN ODER BEISPIELHAFTEN SCHÄDEN (EINSCHLIESSLICH ABER NICHT\n" +"AUSSCHLIESSLICH DER LIEFERUNG VON ERSATZGÜTERN ODER DIENSTEN;VERLUST\n" +"DER NUTZBARKEIT, DER DATEN ODER DER GEWINNE ODER ETWAIGEN VERDIENST-\n" +"AUSFALL-ENTSCHÄDIGUNGEN) HAFTBAR GEMACHT WERDEN, WIE AUCH IMMER SIE\n" +"VERURSACHT WURDEN UND WELCHE HAFTUNGSMÖGLICHKEIT ZUGRUNDE GELEGT WIRD,\n" +"SEI ES DURCH VERTRAG, VERBINDLICHKEIT ODER SCHADEN (EINSCHLIESSLICH\n" +"FAHRLÄSSIGKEIT), DIE AUS DER VERWENDUNG DIESER SOFTWARE ERWÄCHST,\n" +"SELBST WENN AUF DIE MÖGLICHKIET SOLCHER SCHÄDEN HINGEWIESEN WURDE.\n" + +#: dos2unix.c:214 +#, c-format +msgid "With native language support.\n" +msgstr "Mit Unterstützung von Landessprachen.\n" + +#: dos2unix.c:309 dos2unix.c:332 dos2unix.c:355 dos2unix.c:379 dos2unix.c:395 +#, c-format +msgid "dos2unix: can not write to out file\n" +msgstr "dos2unix: In die Ausgabedatei kann nicht geschrieben werden\n" + +#: dos2unix.c:404 +#, c-format +msgid "dos2unix: program error, invalid conversion mode %d\n" +msgstr "dos2unix: Programmfehler, der Konvertierungsmodus %d ist unzulässig\n" + +#: dos2unix.c:509 dos2unix.c:636 +#, c-format +msgid "dos2unix: using %s as temp file\n" +msgstr "dos2unix: %s wird als temporäre Datei verwendet\n" + +#: dos2unix.c:576 dos2unix.c:697 +#, c-format +msgid "dos2unix: problems renaming '%s' to '%s'\n" +msgstr "dos2unix: Beim Umbenennen von »%s« zu »%s« sind Probleme aufgetreten\n" + +#: dos2unix.c:577 dos2unix.c:698 +#, c-format +msgid " output file remains in '%s'\n" +msgstr " Die Ausgabedatei verbleibt in »%s«\n" + +#: dos2unix.c:762 +#, c-format +msgid "" +"dos2unix: error: Value of environment variable DOS2UNIX_LOCALEDIR is too " +"long.\n" +msgstr "" +"dos2unix: Fehler: Der Inhalt der Umgebungsvariablen DOS2UNIX_LOCALEDIR ist zu " +"lang.\n" + +#: dos2unix.c:836 +#, c-format +msgid "dos2unix: invalid %s conversion mode specified\n" +msgstr "dos2unix: Der angegebene Konvertierungsmodus %s ist unzulässig\n" + +#: dos2unix.c:844 +#, c-format +msgid "dos2unix: option `%s' requires an argument\n" +msgstr "dos2unix: Die Option »%s« benötigt ein Argument\n" + +#: dos2unix.c:855 dos2unix.c:867 dos2unix.c:931 +#, c-format +msgid "dos2unix: target of file %s not specified in new file mode\n" +msgstr "" +"dos2unix: Das Ziel der Datei %s wurde für den Neudatei-Modus nicht " +"angegeben\n" + +#: dos2unix.c:886 dos2unix.c:910 +#, c-format +msgid "dos2unix: Skipping %s, not a regular file.\n" +msgstr "dos2unix: %s wird übersprungen, da es keine reguläre Datei ist\n" + +#: dos2unix.c:890 dos2unix.c:914 +#, c-format +msgid "dos2unix: Skipping binary file %s\n" +msgstr "dos2unix: binäre Datei %s wird übersprungen\n" + +#: dos2unix.c:893 +#, c-format +msgid "dos2unix: converting file %s to file %s in UNIX format ...\n" +msgstr "dos2unix: Datei %s wird zu Datei %s im UNIX-Format umgewandelt ...\n" + +#: dos2unix.c:897 +#, c-format +msgid "dos2unix: problems converting file %s to file %s\n" +msgstr "" +"dos2unix: Beim Konvertieren von Datei %s zu Datei %s sind Probleme " +"aufgetreten\n" + +#: dos2unix.c:917 +#, c-format +msgid "dos2unix: converting file %s to UNIX format ...\n" +msgstr "dos2unix: Datei %s wird ins UNIX-Format umgewandelt ...\n" + +#: dos2unix.c:921 +#, c-format +msgid "dos2unix: problems converting file %s\n" +msgstr "dos2unix: Beim Umwandeln von Datei %s sind Probleme aufgetreten\n" diff --git a/dos2unix-4.1.2.tar.bz2 b/dos2unix-4.1.2.tar.bz2 new file mode 100644 index 0000000..a86b8e9 --- /dev/null +++ b/dos2unix-4.1.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cf9a30b1b26e0ad22e7f0e576c41c30518b041166da2181f590bc6561953e8b +size 29518 diff --git a/dos2unix-5.0.tar.bz2 b/dos2unix-5.0.tar.bz2 deleted file mode 100644 index 25a96ef..0000000 --- a/dos2unix-5.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58e30abe9a3c51dd7685e488a2957a7cbe3369544b870d5d9bbd598cc94cf1d6 -size 48231 diff --git a/dos2unix-Makefile.patch b/dos2unix-Makefile.patch new file mode 100644 index 0000000..32022c2 --- /dev/null +++ b/dos2unix-Makefile.patch @@ -0,0 +1,110 @@ +Index: Makefile +=================================================================== +--- Makefile.orig 2010-01-22 13:33:22.000000000 +0100 ++++ Makefile 2010-02-03 10:28:58.112948601 +0100 +@@ -25,12 +25,12 @@ exec_prefix = $(prefix) + man_prefix = $(prefix)/share + mandir = $(man_prefix)/man + bindir = $(exec_prefix)/bin +-sharedir = $(prefix)/share ++datadir = $(prefix)/share + +-BINDIR = $(DESTDIR)$(bindir) +-DOCDIR = $(DESTDIR)$(sharedir)/doc/$(PACKAGE)-$(DOS2UNIX_VERSION) +-LOCALEDIR = $(DESTDIR)$(sharedir)/locale +-MANDIR = $(DESTDIR)$(mandir) ++BINDIR = $(bindir) ++DOCDIR = $(datadir)/doc/packages/$(PACKAGE) ++LOCALEDIR = $(datadir)/locale ++MANDIR = $(mandir) + MANDIR1 = $(MANDIR)/man1 + + ifdef ENABLE_NLS +@@ -47,7 +47,7 @@ INSTALL = install + MKDIR = mkdir + + ifdef ENABLE_NLS +- NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(sharedir)/locale\" -DPACKAGE=\"$(PACKAGE)\" ++ NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(datadir)/locale\" -DPACKAGE=\"$(PACKAGE)\" + endif + + # ......................................................... OS flags ... +@@ -116,7 +116,7 @@ endif + + # ............................................................ flags ... + +-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE ++CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE $(RPM_OPT_FLAGS) + + EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \ + -DVER_DATE=\"$(DOS2UNIX_DATE)\" \ +@@ -176,31 +176,31 @@ $(PACKAGE).ps : dos2unix.1 + ps2pdf $< $@ + + install: all +- $(MKDIR) -p -m 755 $(BINDIR) +- $(INSTALL) -m 755 $(BIN) $(BINDIR) +- $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(BINDIR) +- $(MKDIR) -p -m 755 $(MANDIR1) +- $(INSTALL) -m 644 $(PACKAGE).1 $(MANDIR1) +- $(INSTALL) -m 644 $(MAC2UNIX).1 $(MANDIR1) ++ $(MKDIR) -p -m 755 $(DESTDIR)$(BINDIR) ++ $(INSTALL) -m 755 $(BIN) $(DESTDIR)$(BINDIR) ++ $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(DESTDIR)$(BINDIR) ++ $(MKDIR) -p -m 755 $(DESTDIR)$(MANDIR1) ++ $(INSTALL) -m 644 $(PACKAGE).1 $(DESTDIR)$(MANDIR1) ++ $(INSTALL) -m 644 $(MAC2UNIX).1 $(DESTDIR)$(MANDIR1) + ifdef ENABLE_NLS + @echo "-- install-mo" +- $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) +- $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) ++ $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) ++ $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) + endif + @echo "-- install-doc" +- $(MKDIR) -p -m 755 $(DOCDIR) +- $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DOCDIR) ++ $(MKDIR) -p -m 755 $(DESTDIR)$(DOCDIR) ++ $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DESTDIR)$(DOCDIR) + + uninstall: + @echo "-- target: uninstall" +- -rm -f $(BINDIR)/$(BIN) +- -rm -f $(BINDIR)/$(MAC2UNIX_BIN) ++ -rm -f $(DESTDIR)$(BINDIR)/$(BIN) ++ -rm -f $(DESTDIR)$(BINDIR)/$(MAC2UNIX_BIN) + ifdef ENABLE_NLS +- $(foreach mofile, $(MOFILES), rm -f $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) ++ $(foreach mofile, $(MOFILES), rm -f $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) + endif +- -rm -f $(MANDIR)/man1/$(PACKAGE).1 +- -rm -f $(MANDIR)/man1/$(MAC2UNIX).1 +- -rm -rf $(DOCDIR) ++ -rm -f $(DESTDIR)$(MANDIR)/man1/$(PACKAGE).1 ++ -rm -f $(DESTDIR)$(MANDIR)/man1/$(MAC2UNIX).1 ++ -rm -rf $(DESTDIR)$(DOCDIR) + + clean: + rm -f *.o +@@ -229,6 +229,7 @@ endif + VERSIONSUFFIX = -bin + ZIPFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).zip + TGZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.gz ++TBZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.bz2 + + dist-zip: + rm -f $(prefix)/$(ZIPFILE) +@@ -241,7 +242,12 @@ dist-tgz: + cd $(prefix) ; tar cvzf $(TGZFILE) $(ZIPOBJ) + mv $(prefix)/$(TGZFILE) .. + +-dist: dist-tgz ++dist-tbz: ++ cd $(prefix) ; dos2unix share/doc/$(PACKAGE)-$(DOS2UNIX_VERSION)/*.txt share/man/man1/$(PACKAGE).1 share/man/man1/$(MAC2UNIX).1 ++ cd $(prefix) ; tar cvjf $(TBZFILE) $(ZIPOBJ) ++ mv $(prefix)/$(TBZFILE) .. ++ ++dist: dist-tbz + + strip: + strip $(BIN) diff --git a/dos2unix-de.po.bz2 b/dos2unix-de.po.bz2 deleted file mode 100644 index f08d74d..0000000 --- a/dos2unix-de.po.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25084808428584ddcfa69d0126b8a349b6a92c085604c1f3f7323c03ea72911d -size 3451 diff --git a/dos2unix.changes b/dos2unix.changes index ff1a51e..69a063f 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,14 +1,3 @@ -------------------------------------------------------------------- -Wed Feb 17 16:59:09 CET 2010 - pth@suse.de - -- Update to 5.0: - * Dos2unix and Unix2dos have been bundled in a single package. - * German translations have been added. - * Dos2unix -l --newline also works in MAC mode. - * Unix2dos also got option -l, --newline. - * Added MAC mode to Unix2dos: Convert Unix line endings to Mac line endings. - * Cleanup of messages and manual. - ------------------------------------------------------------------- Wed Feb 3 10:33:53 CET 2010 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index a39820b..e0ab523 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -1,7 +1,7 @@ # -# spec file for package dos2unix (Version 4.0) +# spec file for package dos2unix (Version 4.1.2) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,29 +18,32 @@ Name: dos2unix -Summary: Text converters to and from DOS/MAC to UNIX -Version: 5.0 +Summary: A DOS to UNIX Text Converter +Version: 4.1.2 Release: 1 Group: Productivity/Text/Convertors License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 -Source1: dos2unix-de.po.bz2 -Provides: unix2dos = %{version} -Obsoletes: unix2dos < %{version} +Source1: de.po +Patch0: dos2unix-Makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix -converts plain text from MAC (CR) format to UNIX format (LF). +dos2unix is used to convert plain text from DOS (CR/LF) format to UNIX +format (LF). -Unix2dos converts plain text files from UNIX -format to DOS format and unix2dos converts from UNIX to MAC format. + + +Authors: +-------- + Benjamin Lin blin @ socs.uts.edu.au + Erwin Waterlander %prep %setup -q -bzcat %{S:1} > po/dos2unix/de.po - +%patch0 +cp %{S:1} po/ find . -type f -exec chmod -x {} \; %build @@ -48,16 +51,14 @@ export RPM_OPT_FLAGS make %{?jobs:-j%jobs} %install -%makeinstall docdir=%{_defaultdocdir}/%{name} -%{find_lang} dos2unix --all-name --with-man +%makeinstall +%{find_lang} %{name} -%files -f dos2unix.lang +%files -f %{name}.lang %defattr(-,root,root,0755) %doc %{_defaultdocdir}/%{name} %{_bindir}/dos2unix %{_bindir}/mac2unix -%{_bindir}/unix2mac -%{_bindir}/unix2dos %{_mandir}/*/* %clean From a0e7aeac5e871b7f99b096de13b1cff5796b5a956b487b3ef30e75e37ff0d3d1 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Tue, 6 Apr 2010 16:13:22 +0000 Subject: [PATCH 5/7] OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=14 --- de.po | 209 ---------------------------------------- dos2unix-4.1.2.tar.bz2 | 3 - dos2unix-5.1.tar.bz2 | 3 + dos2unix-Makefile.patch | 110 --------------------- dos2unix.changes | 21 ++++ dos2unix.spec | 34 +++---- 6 files changed, 39 insertions(+), 341 deletions(-) delete mode 100644 de.po delete mode 100644 dos2unix-4.1.2.tar.bz2 create mode 100644 dos2unix-5.1.tar.bz2 delete mode 100644 dos2unix-Makefile.patch diff --git a/de.po b/de.po deleted file mode 100644 index 5f648f8..0000000 --- a/de.po +++ /dev/null @@ -1,209 +0,0 @@ -# German messages for dos2unix -# Copyright (C) 2009, 2010 -# This file is distributed under the same license as the dos2unix package. -# -# Philipp Thomas , 2009, 2010. -# Philipp Thomas , 2009,2010. -msgid "" -msgstr "" -"Project-Id-Version: dos2unix 4.0\n" -"Report-Msgid-Bugs-To: pth@suse.de\n" -"POT-Creation-Date: 2010-01-24 09:00+0100\n" -"PO-Revision-Date: 2010-01-24 09:00+0100\n" -"Last-Translator: Philipp Thomas \n" -"Language-Team: German \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 1.0\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" - -#: dos2unix.c:158 -#, c-format -msgid "" -"dos2unix %s (%s)\n" -"Usage: dos2unix [-fhkLlqV] [-c convmode] [-o file ...] [-n infile " -"outfile ...]\n" -" -c --convmode conversion mode\n" -" convmode ASCII, 7bit, ISO, Mac, default to ASCII\n" -" -f --force force conversion of all files\n" -" -h --help give this help\n" -" -k --keepdate keep output file date\n" -" -L --license print software license\n" -" -l --newline add additional newline in all but Mac convmode\n" -" -n --newfile write to new file\n" -" infile original file in new file mode\n" -" outfile output file in new file mode\n" -" -o --oldfile write to old file\n" -" file ... files to convert in old file mode\n" -" -q --quiet quiet mode, suppress all warnings\n" -" always on in stdio mode\n" -" -V --version display version number\n" -msgstr "" -"dos2unix %s (%s)\n" -"Aufruf: dos2unix [-fhkLlqV] [-c Konvmodus] [-o Datei ...] [-n Eingabedatei " -"Ausgabedatei ...]\n" -" -c --convmode Konvertierungsmodus angeben\n" -" convmode ASCII, 7bit, ISO, Mac, Standard ist nach ASCII\n" -" -f --force erzwingt die Konvertierung aller Dateien\n" -" -h --help gibt diese Hilfe\n" -" -k --keepdate Datum der Ausgabedatei bleibt erhalten\n" -" -L --license Ausgabe der Software-Lizenz\n" -" -l --newline fügt in allen ausser dem Mac Konvertierungsmodus einen Zeilenumbruch hinzu\n" -" -n --newfile eine neue Datei wird erzeugt\n" -" infile Originaldatei im neue Datei Modus\n" -" outfile Ausgabedatei im neue Datei Modus\n" -" -o --oldfile überschreibt die alte Datei\n" -" Datei ... Die im alte Datei Modus zu konvertierenden Dateien\n" -" -q --quiet ruhiger Modus, unterdrückt alle Warnungen\n" -" ist im stdio Modus immer aktiv\n" -" -V --version gibt die Versionsnummer aus\n" - -#: dos2unix.c:180 -#, c-format -msgid "" -"Copyright (c) 1994-1995 Benjamin Lin\n" -"Copyright (c) 1998 Bernd Johannes Wuebben (Version 3.0)\n" -"Copyright (c) 1998 Christian Wurll (Version 3.1)\n" -"Copyright (c) 2009-2010 Erwin Waterlander\n" -"All rights reserved.\n" -"\n" -"Redistribution and use in source and binary forms, with or without\n" -"modification, are permitted provided that the following conditions\n" -"are met:\n" -"1. Redistributions of source code must retain the above copyright\n" -" notice, this list of conditions and the following disclaimer.\n" -"2. Redistributions in binary form must reproduce the above copyright\n" -" notice in the documentation and/or other materials provided with\n" -" the distribution.\n" -"\n" -"THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY\n" -"EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n" -"IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n" -"PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE\n" -"FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n" -"CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n" -"OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n" -"BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n" -"WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" -"OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n" -"IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" -msgstr "" -"Copyright © 1994,1995 Benjamin Lin\n" -"Copyright © 1998 Bernd Johannes Wuebben (Version 3.0)\n" -"Copyright © 1998 Christian Wurll (Version 3.1)\n" -"Copyright © 2009-2010 Erwin Waterlander\n" -"Alle Rechte vorbehalten.\n" -"\n" -"Verbreitung und Verwendung als Quelltext oder Binärdatei, in geänderter\n" -"oder ungeänderter Form sind gestattet, soweit die folgenden Bedingungen\n" -"eingehalten werden:\n" -"1. Weiterverbreitung des Quellcodes muss den obigen Copyrightshinweis,\n" -" Diese Liste von Bedingungen sowie den folgenden Haftungsausschlus\n" -" beibehalten.\n" -"2. Weiterverbreitung in binärer Form muss den obigen Copyright-Hinweis\n" -" in der Dokumentation oder anderem der Distribution beiliegenden\n" -" Material wiedergeben.\n" -"\n" -"DIESE SOFTWARE WIRD VOM AUTHOR WIE VORLIEGT ZUR VERFÜGUNG GESTELLT\n" -"UND JEGLICHE AUSDRÜCKLICH GENANNTEN ODER IMPLIZITEN GARANTIEN,\n" -"EINSCHLIESLICH, ABER NICHT DARAUF BESCHRÄNKT, DER GARANTIE DER\n" -"HANDELBARKEIT UND DER EIGNUNG FÜR EINEN BESTIMMTEN ZWECK WERDEN\n" -"HIERMIT AUSGESCHLOSSEN. IN KEINEM WIE AUCH IMMER GELAGERTEN FALL KANN\n" -"DER AUTHOR FÜR IRGENDWELCHE DIREKTEN ODER INDIREKTEN, ZUFÄLLIGEN,\n" -"BESONDEREN ODER BEISPIELHAFTEN SCHÄDEN (EINSCHLIESSLICH ABER NICHT\n" -"AUSSCHLIESSLICH DER LIEFERUNG VON ERSATZGÜTERN ODER DIENSTEN;VERLUST\n" -"DER NUTZBARKEIT, DER DATEN ODER DER GEWINNE ODER ETWAIGEN VERDIENST-\n" -"AUSFALL-ENTSCHÄDIGUNGEN) HAFTBAR GEMACHT WERDEN, WIE AUCH IMMER SIE\n" -"VERURSACHT WURDEN UND WELCHE HAFTUNGSMÖGLICHKEIT ZUGRUNDE GELEGT WIRD,\n" -"SEI ES DURCH VERTRAG, VERBINDLICHKEIT ODER SCHADEN (EINSCHLIESSLICH\n" -"FAHRLÄSSIGKEIT), DIE AUS DER VERWENDUNG DIESER SOFTWARE ERWÄCHST,\n" -"SELBST WENN AUF DIE MÖGLICHKIET SOLCHER SCHÄDEN HINGEWIESEN WURDE.\n" - -#: dos2unix.c:214 -#, c-format -msgid "With native language support.\n" -msgstr "Mit Unterstützung von Landessprachen.\n" - -#: dos2unix.c:309 dos2unix.c:332 dos2unix.c:355 dos2unix.c:379 dos2unix.c:395 -#, c-format -msgid "dos2unix: can not write to out file\n" -msgstr "dos2unix: In die Ausgabedatei kann nicht geschrieben werden\n" - -#: dos2unix.c:404 -#, c-format -msgid "dos2unix: program error, invalid conversion mode %d\n" -msgstr "dos2unix: Programmfehler, der Konvertierungsmodus %d ist unzulässig\n" - -#: dos2unix.c:509 dos2unix.c:636 -#, c-format -msgid "dos2unix: using %s as temp file\n" -msgstr "dos2unix: %s wird als temporäre Datei verwendet\n" - -#: dos2unix.c:576 dos2unix.c:697 -#, c-format -msgid "dos2unix: problems renaming '%s' to '%s'\n" -msgstr "dos2unix: Beim Umbenennen von »%s« zu »%s« sind Probleme aufgetreten\n" - -#: dos2unix.c:577 dos2unix.c:698 -#, c-format -msgid " output file remains in '%s'\n" -msgstr " Die Ausgabedatei verbleibt in »%s«\n" - -#: dos2unix.c:762 -#, c-format -msgid "" -"dos2unix: error: Value of environment variable DOS2UNIX_LOCALEDIR is too " -"long.\n" -msgstr "" -"dos2unix: Fehler: Der Inhalt der Umgebungsvariablen DOS2UNIX_LOCALEDIR ist zu " -"lang.\n" - -#: dos2unix.c:836 -#, c-format -msgid "dos2unix: invalid %s conversion mode specified\n" -msgstr "dos2unix: Der angegebene Konvertierungsmodus %s ist unzulässig\n" - -#: dos2unix.c:844 -#, c-format -msgid "dos2unix: option `%s' requires an argument\n" -msgstr "dos2unix: Die Option »%s« benötigt ein Argument\n" - -#: dos2unix.c:855 dos2unix.c:867 dos2unix.c:931 -#, c-format -msgid "dos2unix: target of file %s not specified in new file mode\n" -msgstr "" -"dos2unix: Das Ziel der Datei %s wurde für den Neudatei-Modus nicht " -"angegeben\n" - -#: dos2unix.c:886 dos2unix.c:910 -#, c-format -msgid "dos2unix: Skipping %s, not a regular file.\n" -msgstr "dos2unix: %s wird übersprungen, da es keine reguläre Datei ist\n" - -#: dos2unix.c:890 dos2unix.c:914 -#, c-format -msgid "dos2unix: Skipping binary file %s\n" -msgstr "dos2unix: binäre Datei %s wird übersprungen\n" - -#: dos2unix.c:893 -#, c-format -msgid "dos2unix: converting file %s to file %s in UNIX format ...\n" -msgstr "dos2unix: Datei %s wird zu Datei %s im UNIX-Format umgewandelt ...\n" - -#: dos2unix.c:897 -#, c-format -msgid "dos2unix: problems converting file %s to file %s\n" -msgstr "" -"dos2unix: Beim Konvertieren von Datei %s zu Datei %s sind Probleme " -"aufgetreten\n" - -#: dos2unix.c:917 -#, c-format -msgid "dos2unix: converting file %s to UNIX format ...\n" -msgstr "dos2unix: Datei %s wird ins UNIX-Format umgewandelt ...\n" - -#: dos2unix.c:921 -#, c-format -msgid "dos2unix: problems converting file %s\n" -msgstr "dos2unix: Beim Umwandeln von Datei %s sind Probleme aufgetreten\n" diff --git a/dos2unix-4.1.2.tar.bz2 b/dos2unix-4.1.2.tar.bz2 deleted file mode 100644 index a86b8e9..0000000 --- a/dos2unix-4.1.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cf9a30b1b26e0ad22e7f0e576c41c30518b041166da2181f590bc6561953e8b -size 29518 diff --git a/dos2unix-5.1.tar.bz2 b/dos2unix-5.1.tar.bz2 new file mode 100644 index 0000000..e91cdb6 --- /dev/null +++ b/dos2unix-5.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4bb42ac50f4b8329251a60052a5d6ce5e1d98a3942105937905c859bf2d78ee +size 57396 diff --git a/dos2unix-Makefile.patch b/dos2unix-Makefile.patch deleted file mode 100644 index 32022c2..0000000 --- a/dos2unix-Makefile.patch +++ /dev/null @@ -1,110 +0,0 @@ -Index: Makefile -=================================================================== ---- Makefile.orig 2010-01-22 13:33:22.000000000 +0100 -+++ Makefile 2010-02-03 10:28:58.112948601 +0100 -@@ -25,12 +25,12 @@ exec_prefix = $(prefix) - man_prefix = $(prefix)/share - mandir = $(man_prefix)/man - bindir = $(exec_prefix)/bin --sharedir = $(prefix)/share -+datadir = $(prefix)/share - --BINDIR = $(DESTDIR)$(bindir) --DOCDIR = $(DESTDIR)$(sharedir)/doc/$(PACKAGE)-$(DOS2UNIX_VERSION) --LOCALEDIR = $(DESTDIR)$(sharedir)/locale --MANDIR = $(DESTDIR)$(mandir) -+BINDIR = $(bindir) -+DOCDIR = $(datadir)/doc/packages/$(PACKAGE) -+LOCALEDIR = $(datadir)/locale -+MANDIR = $(mandir) - MANDIR1 = $(MANDIR)/man1 - - ifdef ENABLE_NLS -@@ -47,7 +47,7 @@ INSTALL = install - MKDIR = mkdir - - ifdef ENABLE_NLS -- NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(sharedir)/locale\" -DPACKAGE=\"$(PACKAGE)\" -+ NLSDEFS = -DENABLE_NLS -DLOCALEDIR=\"$(datadir)/locale\" -DPACKAGE=\"$(PACKAGE)\" - endif - - # ......................................................... OS flags ... -@@ -116,7 +116,7 @@ endif - - # ............................................................ flags ... - --CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -+CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE $(RPM_OPT_FLAGS) - - EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \ - -DVER_DATE=\"$(DOS2UNIX_DATE)\" \ -@@ -176,31 +176,31 @@ $(PACKAGE).ps : dos2unix.1 - ps2pdf $< $@ - - install: all -- $(MKDIR) -p -m 755 $(BINDIR) -- $(INSTALL) -m 755 $(BIN) $(BINDIR) -- $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(BINDIR) -- $(MKDIR) -p -m 755 $(MANDIR1) -- $(INSTALL) -m 644 $(PACKAGE).1 $(MANDIR1) -- $(INSTALL) -m 644 $(MAC2UNIX).1 $(MANDIR1) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(BINDIR) -+ $(INSTALL) -m 755 $(BIN) $(DESTDIR)$(BINDIR) -+ $(INSTALL) -m 755 $(MAC2UNIX_BIN) $(DESTDIR)$(BINDIR) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(MANDIR1) -+ $(INSTALL) -m 644 $(PACKAGE).1 $(DESTDIR)$(MANDIR1) -+ $(INSTALL) -m 644 $(MAC2UNIX).1 $(DESTDIR)$(MANDIR1) - ifdef ENABLE_NLS - @echo "-- install-mo" -- $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) -- $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) -+ $(foreach mofile, $(MOFILES), $(MKDIR) -p -m 755 $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES ;) -+ $(foreach mofile, $(MOFILES), $(INSTALL) -m 644 $(mofile) $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) - endif - @echo "-- install-doc" -- $(MKDIR) -p -m 755 $(DOCDIR) -- $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DOCDIR) -+ $(MKDIR) -p -m 755 $(DESTDIR)$(DOCDIR) -+ $(INSTALL) -m 644 $(INSTALL_OBJS_DOC) $(DESTDIR)$(DOCDIR) - - uninstall: - @echo "-- target: uninstall" -- -rm -f $(BINDIR)/$(BIN) -- -rm -f $(BINDIR)/$(MAC2UNIX_BIN) -+ -rm -f $(DESTDIR)$(BINDIR)/$(BIN) -+ -rm -f $(DESTDIR)$(BINDIR)/$(MAC2UNIX_BIN) - ifdef ENABLE_NLS -- $(foreach mofile, $(MOFILES), rm -f $(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) -+ $(foreach mofile, $(MOFILES), rm -f $(DESTDIR)$(LOCALEDIR)/$(basename $(notdir $(mofile)))/LC_MESSAGES/$(PACKAGE).mo ;) - endif -- -rm -f $(MANDIR)/man1/$(PACKAGE).1 -- -rm -f $(MANDIR)/man1/$(MAC2UNIX).1 -- -rm -rf $(DOCDIR) -+ -rm -f $(DESTDIR)$(MANDIR)/man1/$(PACKAGE).1 -+ -rm -f $(DESTDIR)$(MANDIR)/man1/$(MAC2UNIX).1 -+ -rm -rf $(DESTDIR)$(DOCDIR) - - clean: - rm -f *.o -@@ -229,6 +229,7 @@ endif - VERSIONSUFFIX = -bin - ZIPFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).zip - TGZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.gz -+TBZFILE = $(PACKAGE)-$(DOS2UNIX_VERSION)$(VERSIONSUFFIX).tar.bz2 - - dist-zip: - rm -f $(prefix)/$(ZIPFILE) -@@ -241,7 +242,12 @@ dist-tgz: - cd $(prefix) ; tar cvzf $(TGZFILE) $(ZIPOBJ) - mv $(prefix)/$(TGZFILE) .. - --dist: dist-tgz -+dist-tbz: -+ cd $(prefix) ; dos2unix share/doc/$(PACKAGE)-$(DOS2UNIX_VERSION)/*.txt share/man/man1/$(PACKAGE).1 share/man/man1/$(MAC2UNIX).1 -+ cd $(prefix) ; tar cvjf $(TBZFILE) $(ZIPOBJ) -+ mv $(prefix)/$(TBZFILE) .. -+ -+dist: dist-tbz - - strip: - strip $(BIN) diff --git a/dos2unix.changes b/dos2unix.changes index 69a063f..e865ff7 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue Apr 6 16:10:23 UTC 2010 - pth@novell.com + +- Update to 5.1: + * Esperanto translations have been added. + * Command-line options can be set in stdio mode. + * Localization information has been added to the manual. + * Man pages have been merged. + * Man page generation from Perl POD file. + +------------------------------------------------------------------- +Wed Feb 17 16:59:09 CET 2010 - pth@suse.de + +- Update to 5.0: + * Dos2unix and Unix2dos have been bundled in a single package. + * German translations have been added. + * Dos2unix -l --newline also works in MAC mode. + * Unix2dos also got option -l, --newline. + * Added MAC mode to Unix2dos: Convert Unix line endings to Mac line endings. + * Cleanup of messages and manual. + ------------------------------------------------------------------- Wed Feb 3 10:33:53 CET 2010 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index e0ab523..35de289 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -1,5 +1,5 @@ # -# spec file for package dos2unix (Version 4.1.2) +# spec file for package dos2unix (Version 5.0) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,47 +18,43 @@ Name: dos2unix -Summary: A DOS to UNIX Text Converter -Version: 4.1.2 +Summary: Text converters to and from DOS/MAC to UNIX +Version: 5.1 Release: 1 Group: Productivity/Text/Convertors License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 -Source1: de.po -Patch0: dos2unix-Makefile.patch +Provides: unix2dos = %{version} +Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -dos2unix is used to convert plain text from DOS (CR/LF) format to UNIX -format (LF). +Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix +converts plain text from MAC (CR) format to UNIX format (LF). - - -Authors: --------- - Benjamin Lin blin @ socs.uts.edu.au - Erwin Waterlander +Unix2dos converts plain text files from UNIX +format to DOS format and unix2dos converts from UNIX to MAC format. %prep %setup -q -%patch0 -cp %{S:1} po/ -find . -type f -exec chmod -x {} \; +find . -type f | xargs chmod -x %build export RPM_OPT_FLAGS make %{?jobs:-j%jobs} %install -%makeinstall -%{find_lang} %{name} +%makeinstall docdir=%{_defaultdocdir}/%{name} +%{find_lang} dos2unix --all-name --with-man -%files -f %{name}.lang +%files -f dos2unix.lang %defattr(-,root,root,0755) %doc %{_defaultdocdir}/%{name} %{_bindir}/dos2unix %{_bindir}/mac2unix +%{_bindir}/unix2mac +%{_bindir}/unix2dos %{_mandir}/*/* %clean From fd18819a1fe72273d7f8b26bf58a116797cf295cdb78418e38d160a91eefcdce Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Wed, 7 Apr 2010 11:23:01 +0000 Subject: [PATCH 6/7] Accepting request 37113 from Base:System checked in (request 37113) OBS-URL: https://build.opensuse.org/request/show/37113 OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=15 --- dos2unix-5.0.tar.bz2 | 3 +++ dos2unix-5.1.tar.bz2 | 3 --- dos2unix-de.po.bz2 | 3 +++ dos2unix.changes | 10 ---------- dos2unix.spec | 7 +++++-- ready | 0 6 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 dos2unix-5.0.tar.bz2 delete mode 100644 dos2unix-5.1.tar.bz2 create mode 100644 dos2unix-de.po.bz2 delete mode 100644 ready diff --git a/dos2unix-5.0.tar.bz2 b/dos2unix-5.0.tar.bz2 new file mode 100644 index 0000000..25a96ef --- /dev/null +++ b/dos2unix-5.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58e30abe9a3c51dd7685e488a2957a7cbe3369544b870d5d9bbd598cc94cf1d6 +size 48231 diff --git a/dos2unix-5.1.tar.bz2 b/dos2unix-5.1.tar.bz2 deleted file mode 100644 index e91cdb6..0000000 --- a/dos2unix-5.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b4bb42ac50f4b8329251a60052a5d6ce5e1d98a3942105937905c859bf2d78ee -size 57396 diff --git a/dos2unix-de.po.bz2 b/dos2unix-de.po.bz2 new file mode 100644 index 0000000..f08d74d --- /dev/null +++ b/dos2unix-de.po.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25084808428584ddcfa69d0126b8a349b6a92c085604c1f3f7323c03ea72911d +size 3451 diff --git a/dos2unix.changes b/dos2unix.changes index e865ff7..ff1a51e 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,13 +1,3 @@ -------------------------------------------------------------------- -Tue Apr 6 16:10:23 UTC 2010 - pth@novell.com - -- Update to 5.1: - * Esperanto translations have been added. - * Command-line options can be set in stdio mode. - * Localization information has been added to the manual. - * Man pages have been merged. - * Man page generation from Perl POD file. - ------------------------------------------------------------------- Wed Feb 17 16:59:09 CET 2010 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index 35de289..29d647f 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -19,12 +19,13 @@ Name: dos2unix Summary: Text converters to and from DOS/MAC to UNIX -Version: 5.1 +Version: 5.0 Release: 1 Group: Productivity/Text/Convertors License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 +Source1: dos2unix-de.po.bz2 Provides: unix2dos = %{version} Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -38,7 +39,9 @@ format to DOS format and unix2dos converts from UNIX to MAC format. %prep %setup -q -find . -type f | xargs chmod -x +bzcat %{S:1} > po/dos2unix/de.po + +find . -type f -exec chmod -x {} \; %build export RPM_OPT_FLAGS diff --git a/ready b/ready deleted file mode 100644 index 473a0f4..0000000 From f5c6b4221e69a68a24e64aab3ff22c870a2276c85435561cea72110afecdf16e Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Wed, 7 Apr 2010 11:23:02 +0000 Subject: [PATCH 7/7] Updating link to change in openSUSE:Factory/dos2unix revision 11.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=59af590d2a2639d0364832997e9c682c --- dos2unix-5.0.tar.bz2 | 3 --- dos2unix-5.1.tar.bz2 | 3 +++ dos2unix-de.po.bz2 | 3 --- dos2unix.changes | 10 ++++++++++ dos2unix.spec | 9 +++------ 5 files changed, 16 insertions(+), 12 deletions(-) delete mode 100644 dos2unix-5.0.tar.bz2 create mode 100644 dos2unix-5.1.tar.bz2 delete mode 100644 dos2unix-de.po.bz2 diff --git a/dos2unix-5.0.tar.bz2 b/dos2unix-5.0.tar.bz2 deleted file mode 100644 index 25a96ef..0000000 --- a/dos2unix-5.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58e30abe9a3c51dd7685e488a2957a7cbe3369544b870d5d9bbd598cc94cf1d6 -size 48231 diff --git a/dos2unix-5.1.tar.bz2 b/dos2unix-5.1.tar.bz2 new file mode 100644 index 0000000..e91cdb6 --- /dev/null +++ b/dos2unix-5.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4bb42ac50f4b8329251a60052a5d6ce5e1d98a3942105937905c859bf2d78ee +size 57396 diff --git a/dos2unix-de.po.bz2 b/dos2unix-de.po.bz2 deleted file mode 100644 index f08d74d..0000000 --- a/dos2unix-de.po.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25084808428584ddcfa69d0126b8a349b6a92c085604c1f3f7323c03ea72911d -size 3451 diff --git a/dos2unix.changes b/dos2unix.changes index ff1a51e..e865ff7 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Apr 6 16:10:23 UTC 2010 - pth@novell.com + +- Update to 5.1: + * Esperanto translations have been added. + * Command-line options can be set in stdio mode. + * Localization information has been added to the manual. + * Man pages have been merged. + * Man page generation from Perl POD file. + ------------------------------------------------------------------- Wed Feb 17 16:59:09 CET 2010 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index 29d647f..e4d8e26 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -1,5 +1,5 @@ # -# spec file for package dos2unix (Version 5.0) +# spec file for package dos2unix (Version 5.1) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,13 +19,12 @@ Name: dos2unix Summary: Text converters to and from DOS/MAC to UNIX -Version: 5.0 +Version: 5.1 Release: 1 Group: Productivity/Text/Convertors License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.bz2 -Source1: dos2unix-de.po.bz2 Provides: unix2dos = %{version} Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -39,9 +38,7 @@ format to DOS format and unix2dos converts from UNIX to MAC format. %prep %setup -q -bzcat %{S:1} > po/dos2unix/de.po - -find . -type f -exec chmod -x {} \; +find . -type f | xargs chmod -x %build export RPM_OPT_FLAGS