3 %distribution PLD Linux
5 %bugurl http://bugs.pld-linux.org/
6 %disturl http://www.pld-linux.org/
10 # Per-platform rpm configuration file.
12 #==============================================================================
13 # ---- per-platform macros.
17 %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
19 #==============================================================================
20 # ---- configure macros. note that most of these are inherited
24 %_exec_prefix %{_prefix}
25 %_bindir %{_exec_prefix}/bin
26 %_sbindir %{_exec_prefix}/sbin
27 %_libexecdir %{_exec_prefix}/%{_lib}
28 %_datadir %{_prefix}/share
29 %_sysconfdir %{_prefix}/etc
30 %_sharedstatedir /var/lib
33 %_libdir %{_exec_prefix}/%{_lib}
34 %_includedir %{_prefix}/include
35 %_oldincludedir /usr/include
36 %_infodir %{_prefix}/share/info
37 %_mandir %{_prefix}/share/man
38 %_initrddir %{_sysconfdir}/rc.d/init.d
41 %_defaultdocdir %{_usr}/share/doc
43 %_fmoddir %{_libdir}/gfortran/modules
45 # Executed at after copying %doc to DOCDIR, with $DOCDIR set
46 %__compress_doc @prefix@/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
49 %{__spec_install_post_strip}\
50 %{__spec_install_post_chrpath}\
51 %{__spec_install_post_check_so}\
52 %{__spec_install_post_check_tmpfiles}\
53 %{__spec_install_post_compress_docs}\
54 %{__spec_install_post_compress_modules}\
55 %{__spec_install_post_py_hardlink}\
56 %{__spec_install_post_perl_clean}\
57 %{__arch_install_post}\
60 #---------------------------------------------------------------------
61 # Template for debug information sub-package.
62 %_enable_debug_packages 1
63 %{expand:%%define __sip_%{?_enable_debug_packages} 1}%{?__sip_1:%{?__debug_package:%{__debug_install_post}}}%{expand:%%undefine __sip_%{?_enable_debug_packages}}\
67 %global __debug_package 1\
69 Summary: Debug information for package %{name}\
70 Summary(pl.UTF-8): Informacje dla debuggera dla pakietu %{name}\
71 Group: Development/Debug\
72 Requires: filesystem-debuginfo >= 3.0-16\
74 %description debuginfo\
75 This package provides debug information for package %{name}.\
76 Debug information is useful when developing applications that use this\
77 package or when debugging this package.\
78 %description debuginfo -l pl.UTF-8\
79 Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\
80 Informacje te są przydatne przy rozwijaniu aplikacji używających tego\
81 pakietu oraz przy odpluskwianiu samego pakietu.\
82 %files debuginfo -f debugfiles.list\
83 %defattr(-,root,root)\
87 #---------------------------------------------------------------------
88 # Overwrite RPM macros with PLD specific one here.
90 %_tmppath %(echo "${TMPDIR:-/var/tmp}")
93 %_topdir %(echo $HOME)/rpm
95 %buildroot %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
97 %_source_payload w9.gzdio
98 %_binary_payload w9.lzdio
100 %_rpmfc_magic_path /usr/share/file/magic
102 %undefine __scriptlet_requires
104 # provides don't obsolete
107 #-----------------------------------------------------------------
108 # CFLAGS and LDFLAGS used to build
110 %debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -gdwarf-2 -g2}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
111 # -feliminate-dwarf2-dups disabled until PR ld/3290 is fixed.
113 %debugcflags -O0 -g -Wall
114 %debugcppflags %{nil}
117 %optldflags -Wl,--as-needed -Wl,-z,relro -Wl,-z,-combreloc
118 %optcppflags -D_FORTIFY_SOURCE=2
120 # Warning: those macros are overwritten by macros.build,
121 # left here for compatibility
122 %rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
123 %rpmcxxflags %{rpmcflags}
124 %rpmldflags %{!?no_build_with_as_needed:-Wl,--as-needed}
125 %rpmcppflags -D_FORTIFY_SOURCE=2
128 %ix86 i386 i486 i586 i686 pentium3 pentium4 athlon
129 %x8664 x86_64 amd64 ia32e
130 %ppc ppc ppc7400 ppc7450
133 #---------------------------------------------------------------------
134 # Expanded at end of %prep
137 %__chown_Rhf %{__chown} -Rhf
138 %__chgrp_Rhf %{__chgrp} -Rhf
139 %_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root
140 %_fixgroup [ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} root
141 %_fixperms %{__chmod} -Rf a+rX,u+w,g-w,o-w
146 # rpm5 prolog for loading the standard macro
147 %{load:/etc/rpm/macros.d/*.macros}