Use %sysdir instead of %if %_prefix ==|!= /usr

This commit is contained in:
Ralf Corsepius
2006-03-17 13:13:46 +00:00
parent c1a9680450
commit c3af37cb1f
12 changed files with 27 additions and 41 deletions

View File

@@ -38,7 +38,7 @@ fi
%files -n @rpmprefix@rtems@osversion@-base-binutils
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/as.info*
%{_infodir}/bfd.info*
@@ -50,7 +50,7 @@ fi
%{_infodir}/gasp.info*
%endif
%dir %{_prefix}/share
%dir %{_prefix}/share/locale
%sysdir %{_prefix}/share
%sysdir %{_prefix}/share/locale
%endif

View File

@@ -12,15 +12,11 @@ GNU binutils targetting @tool_target@.
%files -n @rpmprefix@@tool_target@-binutils
%defattr(-,root,root)
%if "%{_prefix}" != "/usr"
%dir %{_mandir}
%dir %{_mandir}/man1
%endif
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/@tool_target@-*.1*
%if "%{_prefix}" != "/usr"
%dir %{_bindir}
%endif
%sysdir %{_bindir}
%{_bindir}/@tool_target@-*
%dir %{_prefix}/@tool_target@

View File

@@ -19,7 +19,7 @@ This is the files for gcc/g77 that are shared by all targets.
%files -n @rpmprefix@rtems@osversion@-base-g77
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/g77.info*.gz

View File

@@ -17,7 +17,7 @@ GCC files that are shared by all targets.
%files -n @rpmprefix@rtems@osversion@-base-gcc
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/cpp.info*
%{_infodir}/cppinternals.info*
@@ -27,13 +27,13 @@ GCC files that are shared by all targets.
%{_infodir}/gccinstall.info*
%endif
%dir %{_mandir}
%sysdir %{_mandir}
%if "%{gcc_version}" < "3.4"
%dir %{_mandir}/man1
%sysdir %{_mandir}/man1
%{_mandir}/man1/cpp.1*
%{_mandir}/man1/gcov.1*
%endif
%dir %{_mandir}/man7
%sysdir %{_mandir}/man7
%{_mandir}/man7/fsf-funding.7*
%{_mandir}/man7/gfdl.7*
%{_mandir}/man7/gpl.7*

View File

@@ -20,12 +20,12 @@ This is the files for gcc/java (gcj) that are shared by all targets.
%files -n @rpmprefix@rtems@osversion@-base-gcj
%defattr(-,root,root)
%if "%{gcc_version}" <= "3.4"
%dir %{_bindir}
%sysdir %{_bindir}
%{_bindir}/jar%{_exeext}
%{_bindir}/grepjar%{_exeext}
%endif
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gcj.info*
%if "%{gcc_version}" >= "3.3"
@@ -34,8 +34,8 @@ This is the files for gcc/java (gcj) that are shared by all targets.
%if "%{gcc_version}" < "4.0"
%if "%{gcc_version}" >= "3.3"
%dir %{_mandir}
%dir %{_mandir}/man1
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/gcjh.1*
%{_mandir}/man1/jv-scan.1*
%{_mandir}/man1/jcf-dump.1*

View File

@@ -18,7 +18,7 @@ This is the files for gcc/gfortran that are shared by all targets.
%files -n @rpmprefix@rtems@osversion@-base-gfortran
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gfortran.info*.gz

View File

@@ -18,10 +18,10 @@ This is the gcc/gnat tools for the gcc/gnat compiler
%files -n @rpmprefix@rtems@osversion@-base-gnat
%defattr(-,root,root)
%dir %{_bindir}
%sysdir %{_bindir}
%{_bindir}/vxaddr2line%{_exeext}
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gnat*

View File

@@ -19,7 +19,7 @@ newlib files that are shared by all targets.
%files -n @rpmprefix@rtems@osversion@-base-newlib
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/libc.info*
%{_infodir}/libm.info*

View File

@@ -14,19 +14,15 @@ GNU cc compiler for @tool_target@.
%files -n @rpmprefix@@tool_target@-gcc -f build/files.gcc
%defattr(-,root,root)
%if "%{_prefix}" != "/usr"
%dir %{_mandir}
%dir %{_mandir}/man1
%endif
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/@tool_target@-gcc.1*
%if "%{gcc_version}" >= "3.4"
%{_mandir}/man1/@tool_target@-cpp.1*
%{_mandir}/man1/@tool_target@-gcov.1*
%endif
%if "%{_prefix}" != "/usr"
%dir %{_bindir}
%endif
%sysdir %{_bindir}
%{_bindir}/@tool_target@-cpp%{_exeext}
%{_bindir}/@tool_target@-gcc%{_exeext}
%if "%{gcc_version}" >= "3.3"

View File

@@ -14,9 +14,7 @@ Newlib C Library for @tool_target@.
%files -n @rpmprefix@@tool_target@-newlib -f build/files.newlib
%defattr(-,root,root)
%if "%{_prefix}" != "/usr"
%dir %{_prefix}
%endif
%sysdir %{_prefix}
%dir %{_prefix}/@tool_target@
%{_prefix}/@tool_target@/include

View File

@@ -44,7 +44,7 @@ fi
%files -n @rpmprefix@rtems@osversion@-base-gdb
%defattr(-,root,root)
%dir %{_infodir}
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gdb.info*

View File

@@ -12,14 +12,10 @@ GNU gdb targetting @tool_target@.
%files -n @rpmprefix@@tool_target@-gdb
%defattr(-,root,root)
%if "%{_prefix}" != "/usr"
%dir %{_mandir}
%dir %{_mandir}/man1
%endif
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/@tool_target@-*.1*
%if "%{_prefix}" != "/usr"
%dir %{_bindir}
%endif
%sysdir %{_bindir}
%{_bindir}/@tool_target@-*