Search
SailfishOS Open Build Service
>
Projects
>
home:aard
:
merde
>
dos2unix
> dos2unix.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dos2unix.spec of Package dos2unix
#specfile originally created for Fedora, modified for Moblin Linux Summary: Text file format converter Name: dos2unix Version: 3.1 Release: 31 Group: Applications/Text License: Freely distributable Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}.patch Patch1: dos2unix-3.1-segfault.patch Patch2: dos2unix-3.1-safeconv.patch Patch3: dos2unix-3.1-manpage-update-57507.patch Patch4: dos2unix-3.1-preserve-file-modes.patch Patch5: dos2unix-3.1-tmppath.patch Patch6: dos2unix-c-missing-arg.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Dos2unix converts DOS or MAC text files to UNIX format. %prep %setup -q %patch0 -p1 -b .orig %patch1 -p1 -b .segfault %patch2 -p1 -b .safeconv %patch3 -p1 -b .manpage-update-57507 %patch4 -p1 -b .preserve-file-modes %patch5 -p1 -b .tmppath %patch6 -p1 -b .c-missing-arg for I in *.[ch]; do sed -e 's,#endif.*,#endif,g' -e 's,#else.*,#else,g' $I > $I.new mv -f $I.new $I done %build make clean make CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE $(getconf LFS_CFLAGS)" \ %{?_smp_mflags} make link %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} install -p -m755 dos2unix $RPM_BUILD_ROOT%{_bindir} install -p -m755 mac2unix $RPM_BUILD_ROOT%{_bindir} install -p -m444 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m444 mac2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1 %files %defattr(-,root,root,0755) %doc COPYRIGHT %{_bindir}/dos2unix %{_bindir}/mac2unix %{_mandir}/*/* %clean rm -rf $RPM_BUILD_ROOT