diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:52:30 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-06 22:52:30 -0800 |
commit | 5f927b6e4ee62ebd469be803c10959600b17e939 (patch) | |
tree | df3d650822d67cb7da6e7fbb0456aa7558cdd09b | |
parent | abbdb46243b3340f9a73adff8a0941931eab0daa (diff) | |
download | dos2unix-5f927b6e4ee62ebd469be803c10959600b17e939.tar.gz dos2unix-5f927b6e4ee62ebd469be803c10959600b17e939.tar.bz2 dos2unix-5f927b6e4ee62ebd469be803c10959600b17e939.zip |
add packagingsubmit/tizen/20130517.020852submit/tizen/20130509.173906submit/tizen/20130503.191028accepted/tizen/20130520.095250accepted/tizen/20130503.223629
-rw-r--r-- | packaging/dos2unix.spec | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packaging/dos2unix.spec b/packaging/dos2unix.spec new file mode 100644 index 0000000..1f4a69b --- /dev/null +++ b/packaging/dos2unix.spec @@ -0,0 +1,44 @@ +Name: dos2unix +Version: 6.0 +Release: 0 +License: BSD-3-Clause +Summary: Text converters to and from DOS/MAC to UNIX +Url: http://waterlan.home.xs4all.nl/dos2unix.html +Group: Productivity/Text/Convertors +Source: http://waterlan.home.xs4all.nl/dos2unix/dos2unix-%{version}.tar.gz +BuildRequires: gettext-tools +Provides: unix2dos = %{version} +Obsoletes: unix2dos < %{version} +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). + +Unix2dos converts plain text files from UNIX +format to DOS format and unix2dos converts from UNIX to MAC format. + +%prep +%setup -q +find . -type f | xargs chmod -x + +%build +export RPM_OPT_FLAGS +make %{?_smp_mflags} CC="gcc" HTMLEXT="html" + +%install +%make_install docdir=%{_defaultdocdir}/%{name} +%{find_lang} dos2unix --all-name --with-man + +%files -f dos2unix.lang +%defattr(-,root,root,0755) +%doc /usr/share/doc/%{name}-%{version} +%{_bindir}/dos2unix +%{_bindir}/mac2unix +%{_bindir}/unix2mac +%{_bindir}/unix2dos +%doc %{_mandir}/*/dos2unix.1* +%doc %{_mandir}/*/mac2unix.1* +%doc %{_mandir}/*/unix2mac.1* +%doc %{_mandir}/*/unix2dos.1* +%doc %lang(nl) %dir %{_mandir}/nl |