]> git.pld-linux.org Git - packages/rpm.git/blame - macros.pld.in
Macro files and dead spec content cleanup
[packages/rpm.git] / macros.pld.in
CommitLineData
08697680
JR
1# PLD rpm macros
2
3%distribution PLD Linux
4%vendor pld
5%bugurl http://bugs.pld-linux.org/
6%disturl http://www.pld-linux.org/
7%pld_release th
8
9#
10# Per-platform rpm configuration file.
11
12#==============================================================================
13# ---- per-platform macros.
14#
15%_vendor pld
16%_os linux
17%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
18
19#==============================================================================
20# ---- configure macros. note that most of these are inherited
21# from the defaults.
22#
23%_prefix /usr
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
31%_localstatedir /var
32%_lib 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
39%_sysconfdir /etc
40
41%_defaultdocdir %{_usr}/share/doc
42
43%_fmoddir %{_libdir}/gfortran/modules
44
45# Executed at after copying %doc to DOCDIR, with $DOCDIR set
46%__compress_doc @prefix@/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}
47
48%__os_install_post \
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}\
58%{nil}
59
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}}\
64
65%debug_package \
66%ifnarch noarch\
67%global __debug_package 1\
68%package debuginfo\
69Summary: Debug information for package %{name}\
70Summary(pl.UTF-8): Informacje dla debuggera dla pakietu %{name}\
71Group: Development/Debug\
72Requires: filesystem-debuginfo >= 3.0-16\
73AutoReqProv: 0\
74%description debuginfo\
75This package provides debug information for package %{name}.\
76Debug information is useful when developing applications that use this\
77package or when debugging this package.\
78%description debuginfo -l pl.UTF-8\
79Ten pakiet dostarcza informacje dla debuggera dla pakietu %{name}.\
80Informacje te są przydatne przy rozwijaniu aplikacji używających tego\
81pakietu oraz przy odpluskwianiu samego pakietu.\
82%files debuginfo -f debugfiles.list\
83%defattr(-,root,root)\
84%endif\
85%{nil}
86
87#---------------------------------------------------------------------
88# Overwrite RPM macros with PLD specific one here.
89
90%_tmppath %(echo "${TMPDIR:-/var/tmp}")
91%tmpdir %{_tmppath}
92
93%_topdir %(echo $HOME)/rpm
94
95%buildroot %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
96
97%_source_payload w9.gzdio
98%_binary_payload w9.lzdio
99
100%_rpmfc_magic_path /usr/share/file/magic
101
102%undefine __scriptlet_requires
103
104# provides don't obsolete
105%_upgrade_tag name
106
107#-----------------------------------------------------------------
108# CFLAGS and LDFLAGS used to build
109
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.
112
113%debugcflags -O0 -g -Wall
114%debugcppflags %{nil}
115%debugldflags %{nil}
116
117%optldflags -Wl,--as-needed -Wl,-z,relro -Wl,-z,-combreloc
118%optcppflags -D_FORTIFY_SOURCE=2
119
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
126
127# arch macros
128%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon
129%x8664 x86_64 amd64 ia32e
130%ppc ppc ppc7400 ppc7450
131
132
133#---------------------------------------------------------------------
134# Expanded at end of %prep
135#
136%__id_u %{__id} -u
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
142
143%__id /bin/id
144
145#
146# rpm5 prolog for loading the standard macro
147%{load:/etc/rpm/macros.d/*.macros}
This page took 0.25826 seconds and 4 git commands to generate.