Rebase for dos2unix 7.4.1 46/219246/1
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 22 Jan 2019 02:12:51 +0000 (11:12 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Wed, 4 Dec 2019 01:09:06 +0000 (10:09 +0900)
Change-Id: I2176aef35d60392aa0fdd961814a81472df89aef
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/dos2unix.manifest [new file with mode: 0644]
packaging/dos2unix.spec [new file with mode: 0644]

diff --git a/packaging/dos2unix.manifest b/packaging/dos2unix.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/dos2unix.spec b/packaging/dos2unix.spec
new file mode 100644 (file)
index 0000000..7a1316c
--- /dev/null
@@ -0,0 +1,48 @@
+Name:           dos2unix
+Version:        7.4.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
+Source1001:    dos2unix.manifest
+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
+cp %{SOURCE1001} .
+#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
+%manifest %{name}.manifest
+%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