File unix2dos.spec of Package unix2dos
#
# spec file for package unix2dos (Version 2.2)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: unix2dos
Summary: UNIX to DOS text file format converter
Version: 2.2
Release: 236
License: distributable, Other License(s), see package
Group: Productivity/Text/Convertors
Source: unix2dos-2.2.src.tar.gz
Patch0: unix2dos-mkstemp.patch
Patch1: unix2dos-2.2-segfault.patch
Patch2: unix2dos-2.2-manpage.patch
Patch3: unix2dos-2.2-file_mode.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%prep
%setup -q -c
%patch -p1 -b .sec
%patch1 -p1 -b .segf
%patch2 -p1 -b .man
%patch3 -b .fmode
perl -pi -e "s,^#endif.*,#endif,g;s,^#else.*,#else,g" *.[ch]
%description
Converts plain text files from UNIX format to DOS format.
Authors:
--------
Benjamin Lin blin @ socs.uts.edu.au
%build
gcc %optflags -ounix2dos unix2dos.c
%install
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
install -m755 unix2dos %{buildroot}%{_bindir}
install -m444 unix2dos.1 %{buildroot}%{_mandir}/man1
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,0755)
%doc COPYRIGHT
%{_bindir}/unix2dos
%{_mandir}/*/*
%changelog -n unix2dos
* Tue Apr 11 2006 - pth@suse.de
- Make unix2dos preserve file mode (bugzilla #119350)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 - dmueller@suse.de
- add norootforbuild
* Mon Aug 12 2002 - bk@suse.de
- initial version 2.2