[tofrodos/el6] Initial SETUP.
Christopher Meng
cicku at fedoraproject.org
Thu Feb 27 03:37:38 UTC 2014
commit 1e5ccb618bf4bac260e54fff0eb73120f123cedf
Author: Christopher Meng <i at cicku.me>
Date: Thu Feb 27 11:37:37 2014 +0800
Initial SETUP.
.gitignore | 1 +
sources | 1 +
tofrodos.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aeae149 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tofrodos-1.7.13.tar.gz
diff --git a/sources b/sources
index e69de29..7fe77d4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c4c5e6668a13a01bfb5ce562753a808f tofrodos-1.7.13.tar.gz
diff --git a/tofrodos.spec b/tofrodos.spec
new file mode 100644
index 0000000..b6f8851
--- /dev/null
+++ b/tofrodos.spec
@@ -0,0 +1,42 @@
+Name: tofrodos
+Version: 1.7.13
+Release: 2%{?dist}
+Summary: Converts text files between MSDOS and Unix file formats
+License: GPLv2
+URL: http://www.thefreecountry.com/tofrodos/
+Source0: http://tofrodos.sourceforge.net/download/tofrodos-%{version}.tar.gz
+
+%description
+Tofrodos is a text file conversion utility that converts ASCII and Unicode
+UTF-8 files between the MSDOS (or Windows) format, which traditionally have
+CR/LF (carriage return/line feed) pairs as their new line delimiters, and
+the Unix format, which usually have LFs (line feeds) to terminate each line.
+
+It is a useful utility to have around when you have to convert files between
+MSDOS (or Windows) and Unix/Linux/BSD (and her clones and variants). It comes
+standard with a number of systems and is often found on the system as "todos",
+"fromdos", "dos2unix" and "unix2dos".
+
+%prep
+%setup -qn tofrodos
+
+%build
+make -C src/ TFLAG="%{optflags}" LDFLAGS="%{?__global_ldflags}" %{?_smp_mflags}
+
+%install
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
+make -C src/ install INSTALL="install -p" BINDIR="%{buildroot}%{_bindir}" MANDIR="%{buildroot}%{_mandir}/man1/" DESTDIR=%{buildroot}
+
+%files
+%doc COPYING readme.txt tofrodos.html
+%{_bindir}/fromdos
+%{_bindir}/todos
+%{_mandir}/man1/fromdos.1*
+%{_mandir}/man1/todos.1*
+
+%changelog
+* Tue Feb 25 2014 Christopher Meng <rpm at cicku.me> - 1.7.13-2
+- Correct the license.
+
+* Mon Feb 10 2014 Christopher Meng <rpm at cicku.me> - 1.7.13-1
+- Initial Package.
More information about the scm-commits
mailing list