]> git.pld-linux.org Git - packages/dos2unix.git/commitdiff
- adapterized and made spec %%debug ready or using %%rpm*flags macros
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 2 May 2001 00:42:08 +0000 (00:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dos2unix.spec -> 1.3

dos2unix.spec

index 326cfea10434acb1ca49da2b6d2e6c585b6c52fa..36fc9bcf3de613581d096eb79c0100dc32749daf 100644 (file)
@@ -25,23 +25,23 @@ u
 %setup -q -c -a1
 
 %build
-gcc $RPM_OPT_FLAGS -o dos2unix dos2unix.c
-gcc $RPM_OPT_FLAGS -o unix2dos unix2dos.c
+%{__cc} %{rpmcflags} -o dos2unix dos2unix.c
+%{__cc} %{rpmcflags} -o unix2dos unix2dos.c
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
-install -s -m 755 dos2unix $RPM_BUILD_ROOT%{_bindir}
-install -s -m 755 unix2dos $RPM_BUILD_ROOT%{_bindir}
+install -m 755 dos2unix $RPM_BUILD_ROOT%{_bindir}
+install -m 755 unix2dos $RPM_BUILD_ROOT%{_bindir}
 install dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
 install unix2dos.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-ln -s dos2unix $RPM_BUILD_ROOT%{_bindir}/mac2unix
+ln -sf dos2unix $RPM_BUILD_ROOT%{_bindir}/mac2unix
 
 echo ".so dos2unix.1" > $RPM_BUILD_ROOT%{_mandir}/man1/mac2unix.1
 
-gzip -9nf COPYRIGHT $RPM_BUILD_ROOT%{_mandir}/man1/*
+gzip -9nf COPYRIGHT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.136858 seconds and 4 git commands to generate.