%define name unix2dos %define version 2.2 %define release %mkrel 5 Summary: Unix2dos - UNIX to DOS text file format converter Name: %{name} Version: %{version} Release: %{release} License: distributable Group: Text tools Source0: http://ftp.topnz.ac.nz/FTP/Linux/%{name}-2.2.src.tar.bz2 Patch0: %{name}-mkstemp.patch.bz2 Patch1: %{name}-%{version}-segfault.patch.bz2 Patch2: %{name}-%{version}-manpage.patch.bz2 URL: http://www.mandrakesoft.com BuildRoot: %{_tmppath}/%{name}-root %description A utility that converts plain text files in UNIX format to DOS format. %prep %setup -q -c %patch -p1 -b .sec %patch1 -p1 -b .segf %patch2 -p1 -b .man perl -pi -e "s,^#endif.*,#endif,g;s,^#else.*,#else,g" *.[ch] %build gcc %{optflags} -o %{name} unix2dos.c %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_mandir}/man1 install -m755 %{name} %{buildroot}%{_bindir} install -m644 %{name}.1 %{buildroot}%{_mandir}/man1 %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root,0755) %doc COPYRIGHT %{_bindir}/%{name} %{_mandir}/*/* %changelog * Thu Jun 02 2005 Sebastien Savarin <plouf@mandriva.org> 2.2-5mdk - Rebuild for new gcc * Fri Apr 2 2004 Daouda LO <daouda@mandrakesoft.com> 2.2-4mdk - rebuild * Mon Jan 27 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.2-3mdk - build release - added P1 & P2 from RH - added a "fake" URL to make mr. lint shut up - fix license - misc spec file fixes * Wed Sep 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.2-2mdk - rebuild * Wed Jan 31 2001 Daouda Lo <daouda@mandrakesoft.com> 2.2-1mdk - first mdk package * Fri Nov 17 2000 Tim Powers <timp@redhat.com> - patched to use mkstemp, not much had to be done. * Thu Nov 16 2000 Tim Powers <timp@redhat.com> - minor spec file cleanups - built for 7.1 - use predefined RPM macros whenever possible - use RPM_OPT_FLAGS when building * Tue Jul 07 1999 Peter Soos <sp@osb.hu> - Added Hungarian "Summary:" and "%description" - Corrected the file and directory attributes to rebuild the package under RedHat Linux 6.0 * Thu Jul 09 1998 Arkadiusz Mikkkkkkiewicz <misiek@misiek.eu.org> - Recompiled under RedHat Linux 5.1 - Small changes in %build and %files - Added "Vendor:" - Added Polish "Summary:" and "%description" * Thu Jun 18 1998 Peter Soos <sp@osb.hu> - Corrected the spec file for rpm 2.5 * Fri Dec 5 1997 Peter Soos <sp@osb.hu> - Recompiled under RedHat Linux 5.0