]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.macros
- renamed
[packages/rpm.git] / rpm.macros
CommitLineData
a8bf9720
AF
1# PLD rpm macros
2
b5b20129
AM
3# other macros
4%_enable_debug_packages 1
5
5b0f0ac9
MM
6%__id @__ID@
7%__id_u %{__id} -u
8%__chown_Rhf @__CHOWN_RHF@
9%__chgrp_Rhf @__CHGRP_RHF@
10
9fc84bee 11%_fixowner [ `%{__id_u}` = '0' ] && %{__chown_Rhf} root:@ROOT_GROUP@
a8bf9720 12%_fixgroup true
5b0f0ac9 13%_fixperms %{__chmod} -Rf @FIXPERMS@
a8bf9720 14%_topdir %(echo $HOME)/rpm
cd33aab7
AM
15#-----------------------------------------------------------------
16# CFLAGS and LDFLAGS used to build
17
d3e82dd7 18%debuginfocflags %{expand:%%define __dic_%{?_enable_debug_packages} 1}%{?__dic_1: -ggdb}%{expand:%%undefine __dic_%{?_enable_debug_packages}}
b5b20129 19
5b0f0ac9 20%debugcflags -O0 -g -Wall
29e6df30 21%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags}
7c2eac51 22%rpmldflags %{nil}
cd33aab7 23
a544555d 24# kernel compiler
cabacfeb 25%kgcc gcc
26%kgcc_package gcc
a544555d 27
5f9f9bd7 28# Build system path macros.
29#
30%__libtoolize libtoolize --copy --force
aad1c8e4 31%__gettextize { \
4da2b97a 32 if ! gettextize --version | grep -q '0\.10\.' ; then \
4cd84746
JB
33 if grep -qs 'AM_GNU_GETTEXT.*external' configure.{ac,in} ; then \
34 gettextize --copy --force --no-changelog; \
93bce43f 35 else \
4cd84746
JB
36 gettextize --copy --force --no-changelog --intl; \
37 fi; \
38 if [ ! -f po/Makevars ]; then \
39 cp -f po/Makevars{.template,}; \
40 fi; \
41 else \
42 gettextize --copy --force; \
aad1c8e4 43 fi; \
4cd84746
JB
44}
45%__autopoint autopoint --force
fa4547da 46%__automake automake -a -c -f --foreign
4413e4a3 47%__autoconf autoconf %{?debug:-Wall}
5f9f9bd7 48
cd33aab7 49#-----------------------------------------------------------------
9f0287b5 50%configure2_13 { \
cd33aab7
AM
51 if [ -n "$LINGUAS" ]; then unset LINGUAS; fi; \
52 LDFLAGS="${LDFLAGS:-%rpmldflags}" ; export LDFLAGS ; \
53 CFLAGS="${CFLAGS:-%rpmcflags}" ; export CFLAGS ; \
54 CXXFLAGS="${CXXFLAGS:-%rpmcflags}" ; export CXXFLAGS ; \
55 FFLAGS="${FFLAGS:-%rpmcflags}" ; export FFLAGS ; \
c55f2219 56 CPPFLAGS="${CPPFLAGS:-}" ; export CPPFLAGS ; \
4eac2e49
AM
57 %{?__cc:CC="%{__cc}" ; export CC ; } \
58 %{?__cxx:CXX="%{__cxx}" ; export CXX ; } \
5b0f0ac9 59 %{?configuredir:%{configuredir}}%{!?configuredir:.}/configure \
fa74a11c 60 --host=%{_target_platform} \
cd33aab7
AM
61 --prefix=%{_prefix} \
62 --exec-prefix=%{_exec_prefix} \
63 --bindir=%{_bindir} \
64 --sbindir=%{_sbindir} \
65 --sysconfdir=%{_sysconfdir} \
66 --datadir=%{_datadir} \
67 --includedir=%{_includedir} \
68 --libdir=%{_libdir} \
69 --libexecdir=%{_libexecdir} \
70 --localstatedir=%{_localstatedir} \
71 --sharedstatedir=%{_sharedstatedir} \
72 --mandir=%{_mandir} \
73 --infodir=%{_infodir} \
72d080a8 74 --x-libraries=/usr/X11R6/%{_lib} \
cd33aab7
AM
75}
76
85f82bec 77#----------------------------------------------------------------
b8cf6778 78%configure {./configure \
85f82bec
AF
79 LDFLAGS="${LDFLAGS:-%rpmldflags}" \
80 CFLAGS="${CFLAGS:-%rpmcflags}" \
81 CXXFLAGS="${CXXFLAGS:-%rpmcflags}" \
82 FFLAGS="${FFLAGS:-%rpmcflags}" \
418d9760 83 CPPFLAGS="${CPPFLAGS:-}" \
4eac2e49
AM
84 %{?__cc:CC="%{__cc}"} \
85 %{?__cxx:CXX="%{__cxx}"} \
85f82bec
AF
86 --build=%{_target_platform} \
87 --prefix=%{_prefix} \
88 --exec-prefix=%{_exec_prefix} \
89 --bindir=%{_bindir} \
90 --sbindir=%{_sbindir} \
91 --sysconfdir=%{_sysconfdir} \
92 --datadir=%{_datadir} \
93 --includedir=%{_includedir} \
94 --libdir=%{_libdir} \
95 --libexecdir=%{_libexecdir} \
96 --localstatedir=%{_localstatedir} \
97 --sharedstatedir=%{_sharedstatedir} \
98 --mandir=%{_mandir} \
99 --infodir=%{_infodir} \
72d080a8 100 --x-libraries=/usr/X11R6/%{_lib} \
85f82bec
AF
101}
102
617b7266 103# ------------------------------------------------------------------------
a0bade1c
AM
104# Overloading of some basic macros
105%prep \
106%%prep\
107LANG=C\
108export LANG\
7febf367 109unset DISPLAY ||:\
a0bade1c
AM
110%{nil}
111
112%build %%build\
113LANG=C\
114export LANG\
7febf367 115unset DISPLAY ||:\
a0bade1c
AM
116%{nil}
117
118%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
119%%install\
120LANG=C\
121export LANG\
7febf367 122unset DISPLAY ||:\
a0bade1c
AM
123%{nil}
124
125# ------------------------------------------------------------------------
617b7266
MM
126# Conditional build stuff.
127
128# Check if symbol is defined.
129# Example usage: %if %{defined with_foo} && %{undefined with_bar} ...
130%defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
131%undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
132
ed4f631a
MM
133# Shorthand for %{defined with_...}
134%with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
135%without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
136
617b7266
MM
137# Handle conditional builds. %bcond_with is for case when feature is
138# default off and needs to be activated with --with ... command line
139# switch. %bcond_without is for the dual case.
140#
141# %bcond_with foo defines symbol with_foo if --with foo was specified on
142# command line.
143# %bcond_without foo defines symbol with_foo if --without foo was *not*
144# specified on command line.
145#
146# For example:
147#
148# %bcond_with extra_fonts
149# %bcond_without static
d823b3fb 150# %if %{with extra_fonts}
617b7266
MM
151# ...
152# %endif
d823b3fb 153# %ifdef %{with static}
617b7266
MM
154# ...
155# %endif
156# %{?with_static: ... }
157# %{!?with_static: ... }
158# %{?with_extra_fonts: ... }
159# %{!?with_extra_fonts: ... }
160#
161# The bottom line: never use without_foo, _with_foo nor _without_foo, only
162# with_foo. This way changing default set of bconds for given spec is just
163# a matter of changing single line in it and syntax is more readable.
164%bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
165%bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
166# ------------------------------------------------------------------------
167
cd33aab7
AM
168# Location of autoconf macros
169%_aclocaldir %(aclocal --print-ac-dir)
170
32720a50
AM
171# Location of omf files
172%_omf_dest_dir %(scrollkeeper-config --omfdir)
173
c5eece2c 174# Location of pkgconfig files
a46897a7 175%_pkgconfigdir /usr/%{_lib}/pkgconfig
c5eece2c 176
cd33aab7 177# Location of top applink dir
de0caa47 178%_applnkdir /usr/X11R6/share/applnk
cd33aab7 179
c917274d 180# Location of desktop files
181%_desktopdir /usr/share/applications
182
fb08fb4a 183# Location of pixmaps for applnk/desktop files
3a9bb008 184%_pixmapsdir /usr/share/pixmaps
cd33aab7 185
fb08fb4a 186# Location of themable icons for applnk/desktop files
986c3bcd 187%_iconsdir /usr/share/icons
188
c5eece2c
JB
189# Location of fonts directories
190%_fontsdir /usr/share/fonts
191
5cfcbc9e 192# Location of Gtk and associated libraries documentation
e9f33a26 193%_gtkdocdir %{_defaultdocdir}/gtk-doc/html
5cfcbc9e 194
eee08b2d 195# Location of KDE documentation
196%_kdedocdir %{_defaultdocdir}/kde/HTML
197
cd33aab7
AM
198# Current date
199%date %(LC_ALL="C" date +"%a %b %d %Y")
200
201# tmp directory
202%tmpdir %(echo "${TMPDIR:-/tmp}")
203
204# Example files, programs, scripts...
205%_examplesdir /usr/src/examples
206
bd63739a 207# The directory holding Linux kernel sources
208%_kernelsrcdir /usr/src/linux
209
cd33aab7 210# If non-empty "debug" macro defined, add "dbg" suffix to release number
5b0f0ac9 211%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
cd33aab7 212
5b0f0ac9
MM
213# Requires name = version-release
214%requires_releq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}-%%{release}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
215%requires_releq_kernel_up() %(LC_ALL="C" rpm -qf --qf 'Prereq: kernel-up = %%{epoch}:%%{version}-%%{release}\\n' %{_kernelsrcdir}/include/linux/version.h | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -vE "(is not|no such)")
216%requires_releq_kernel_smp() %(LC_ALL="C" rpm -qf --qf 'Prereq: kernel-smp = %%{epoch}:%%{version}-%%{release}\\n' %{_kernelsrcdir}/include/linux/version.h | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -vE "(is not|no such)")
e21c1bea 217%requires_eq_to() %(LC_ALL="C" rpm -q --qf 'Requires: %1 = %%{epoch}:%%{version}\\n' %2 | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
e478b9e7 218
6f3d2288 219%apache_modules_api %(awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' /usr/include/apache/ap_mmn.h 2>/dev/null || echo ERROR)
8dea1306 220
221# kernel version-release handling
1d969cf0
AM
222%__kernel_ver %([ -f %{_kernelsrcdir}/include/linux/version.h ] && (grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2) || (awk '/^VERSION/ { ver = $0; gsub(/VERSION.*=/, NIL, ver); } /^PATCHLEVEL/ { plev = $0; gsub(/PATCHLEVEL.*=/, NIL, plev); } /^SUBLEVEL/ { slev = $0; gsub(/SUBLEVEL.*=/, NIL, slev); } END { printf("%d.%d.%d", ver, plev, slev); }' %{_kernelsrcdir}/Makefile 2> /dev/null))
223%__kernel_rel %(LC_ALL="C" rpm -qf %{_kernelsrcdir}/include/linux/fs.h --queryformat "%{RELEASE}" | grep -v "is not")
8dea1306 224%_kernel_ver %(echo %{__kernel_ver}%{!?_without_dist_kernel:-%{__kernel_rel}})
225%_kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
fd4d8ee0 226
c2c27a5a 227# sgml macros
228%xmlcat_add() /usr/bin/xmlcatalog --noout --add nextCatalog \"\" %1 /etc/xml/catalog
229%xmlcat_del() /usr/bin/xmlcatalog --noout --del %1 /etc/xml/catalog
230%xmlcat_add_rewrite /usr/bin/xmlcatalog --noout --add rewriteSystem
231%xmlcat_create() /usr/bin/xmlcatalog --noout --create %1
232%sgmlcat_add() /usr/bin/install-catalog --add %1 %2 > /dev/null
233%sgmlcat_del() /usr/bin/install-catalog --remove %1 %2 > /dev/null
234%docbook_sgmlcat_fix() { for l in \
235'' \
236' -- default decl --' \
237'DTDDECL "-//OASIS//DTD DocBook XML V%2//EN" "../../xml.dcl"' \
238' -- hacks for opensp --' \
239'SYSTEM "file://%{_datadir}/sgml/docbook/xml-dtd-%2/docbookx.dtd" "%{_datadir}/sgml/docbook/xml-dtd-%2/docbookx.dtd"' \
240'SYSTEM "http://www.oasis-open.org/docbook/xml/%2/docbookx.dtd" "%{_datadir}/sgml/docbook/xml-dtd-%2/docbookx.dtd"' \
241'' \
242; do echo $l; done >> %1 \
243}
244
cd33aab7
AM
245#-----------------------------------------------------------------
246# find and gzip all files in %{_mandir} and %{infodir}
247#
248# Requires: xargs, find
249#
250#%no_install_post_compress_docs 1
251%__spec_install_post_compress_docs { \
cd33aab7 252%{!?no_install_post_compress_docs: \
89f18684 253 echo "Compress man and info pages."; \
cd33aab7
AM
254 %{?verbose:set -x;} \
255 for i in /usr/share/man /usr/X11R6/man /usr/share/info; do \
256 if [ -d "$RPM_BUILD_ROOT$i" ]; then \
257 find "$RPM_BUILD_ROOT$i" -name \*.bz2 -print | xargs -r %{__bzip2} -df; \
258 find "$RPM_BUILD_ROOT$i" -name \*.gz -print | xargs -r %{__gzip} -dnf; \
259 find "$RPM_BUILD_ROOT$i" -type f -print | xargs -r %{__gzip} -9nf; \
260 fi; \
261 done; \
262} }
263
264#-----------------------------------------------------------------
265# Strip executable binaries and shared object files
266#
267# Requires: find, awk, strip, cut, xargs
268#
269#%no_install_post_strip 1
270%__spec_install_post_strip {%{!?debug: \
271%{!?no_install_post_strip: \
f80cefa3
JB
272 %{?verbose:set -x;} \
273 if [ -d "$RPM_BUILD_ROOT" ]; then \
5b0f0ac9 274 echo "Strip executable binaries, archives and shared object files."; \
aaa1486f 275 filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautostrip:! -regex "%{_noautostrip}"}`; \
cd33aab7
AM
276 elfexelist=`echo $filelist | xargs -r file | \
277 awk '/ELF.*executable/ {print $1}' | cut -d: -f1`; \
278 elfsharedlist=`echo $filelist | xargs -r file | \
279 awk '/LF.*shared object/ {print $1}' | cut -d: -f1`; \
5b0f0ac9
MM
280 elfarchiveslist=`echo $filelist | xargs -r file | \
281 awk '/current ar archive/ {print $1}' | cut -d: -f1`; \
cd33aab7 282 if [ -n "$elfexelist" ]; then \
aaa1486f 283 %{__strip} --remove-section=.note --remove-section=.comment $elfexelist; \
cd33aab7
AM
284 fi; \
285 if [ -n "$elfsharedlist" ]; then \
aaa1486f 286 %{__strip} --strip-unneeded --remove-section=.note --remove-section=.comment $elfsharedlist; \
5b0f0ac9
MM
287 fi; \
288 if [ -n "$elfarchiveslist" ]; then \
aaa1486f 289 %{__strip} --strip-debug --remove-section=.note --remove-section=.comment $elfarchiveslist; \
f80cefa3
JB
290 fi; \
291 fi; } \
cd33aab7 292} }
cc545e1a 293#-----------------------------------------------------------------
294# remove all RPATH from executable binaries and shared object files
295#
296# Requires: find, awk, cut, xargs, chrpath, uname
297#
298#%no_install_post_chrpath 1
299%__spec_install_post_chrpath {%{!?debug: \
300%{!?no_install_post_chrpath: \
301 %{?verbose:set -x;} \
f80cefa3 302if [ -d "$RPM_BUILD_ROOT" ]; then \
cc545e1a 303echo "Remove RPATH from executable binaries and shared object files."; \
aaa1486f 304find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*" %{?_noautochrpath:! -regex "%{_noautochrpath}"} | xargs -r file | \
cc545e1a 305 awk '/ELF.*(executable|shared object)/ {print $1}' | cut -d: -f1 | \
306while read file ; do \
307 rpath= ; \
308 chmod u+w "$file"; \
309 for dir in `chrpath -l "$file" | \
310 awk '/RPATH=/ { gsub(/.*RPATH=/,""); gsub(/:/," "); print $0 }'` ; do \
311 case $dir in \
570a0c29 312 /home/* | /tmp/* | /usr/lib | /usr/lib64 | /lib | /lib64 | /usr/local/lib | /usr/local/lib64 | /usr/X11R6/lib | /usr/X11R6/lib64 ) \
cc545e1a 313 echo "remove-rpath: $dir in $file"; \
314 ;; \
315 * ) \
316 if [ "$rpath" = "" ] ; then rpath="$dir" ; \
317 else rpath="$rpath:$dir" ; fi ; \
318 ;; \
319 esac ; \
320 done ; \
321 if [ "$rpath" = "" ] ; then chrpath -d "$file" > /dev/null ; \
322 else chrpath -r "$rpath" "$file" > /dev/null ; fi ; \
f80cefa3
JB
323done; \
324fi; } \
cc545e1a 325} }
22a54b3e 326#-----------------------------------------------------------------
93b46c00 327# Find and gzip all kernel modules
328#
329# Requires: find
330#
331#%no_install_post_compress_modules 1
332%__spec_install_post_compress_modules { \
93b46c00 333%{!?no_install_post_compress_modules: \
334 %{?verbose:set -x;} \
f80cefa3
JB
335 if [ -d "$RPM_BUILD_ROOT" ]; then \
336echo "Compress kernel modules if any."; \
390bdd1d 337 if test -d $RPM_BUILD_ROOT/lib/modules ; then \
fe70546d 338 find $RPM_BUILD_ROOT/lib/modules -name \*o -type f -print | \
390bdd1d 339 xargs -r %{__gzip} -9nf; \
fe70546d 340 find $RPM_BUILD_ROOT/lib/modules -name \*o -type l -printf "%p %l\n" | \
92ebeb8d 341 while read a b; do ln -sf $b.gz $a.gz; rm -f $a; done; \
390bdd1d 342 fi; \
f80cefa3 343 fi; \
93b46c00 344} }
cd33aab7
AM
345
346%_source_payload w9.gzdio
347%_binary_payload w9.bzdio
348
aad1c8e4 349#-----------------------------------------------------------------
350# Update all GConf2 schemas
351#
352# Requires: GConf2
353#
03ff3333 354%gconf_schema_install { umask 022; \
355 GCONF_CONFIG_SOURCE="xml:readwrite:/etc/gconf/gconf.xml.defaults" \
356 /usr/bin/gconftool-2 --makefile-install-rule \
357 /etc/gconf/schemas/*.schemas > /dev/null \
82b097b9 358}
aad1c8e4 359
cd33aab7
AM
360#-----------------------------------------------------------------
361# post %install sequence:
362# - autodeps exceptions
363# - compress all man and info pages,
364# - strip all ELF executables and ELF shared objects if not %debug.
5b0f0ac9 365# - compress kernel modules if any
cd33aab7
AM
366
367###################################################################
368# Requires/Provides automation
369# exceptions system by Jacek Konieczny <jajcus@pld.org.pl>
a4852742 370#
9123f215
JK
371%_noautoreqfiles %(sed -e s'/#.*//' /etc/rpm/noautoreqfiles)
372%_noautoprovfiles %(sed -e s'/#.*//' /etc/rpm/noautoprovfiles)
984f6de6 373%_noautoreq %(sed -e s'/#.*//' /etc/rpm/noautoreq)
23183011 374%_noautoreqdep %(sed -e s'/#.*//' /etc/rpm/noautoreqdep)
984f6de6 375%_noautoprov %(sed -e s'/#.*//' /etc/rpm/noautoprov)
a4852742
JB
376#%_noautocompressdoc %{nil}
377#
5b0f0ac9
MM
378%_missing_doc_files_terminate_build 1%{nil}
379%_unpackaged_files_terminate_build %{nil}
4c7d3ba4 380# (X)emacs support
42b7e5ac 381%___emacs_lispdir_helper -batch -q -eval '(while load-path (princ (concat (car load-path) "\\n")) (setq load-path (cdr load-path)))' 2> /dev/null|sed -n '/\\(.*\\/x\\?emacs\\/site-lisp\\)\\/\\?$/{s,,\\1,p;q;}'
4c7d3ba4
AF
382%_emacs_lispdir %(emacs %___emacs_lispdir_helper)
383%_xemacs_lispdir %(xemacs %___emacs_lispdir_helper)
41a62699 384
984f6de6
JK
385%__php_provides %{nil}
386%__php_requires %{nil}
387%__perl_provides %{nil}
388%__perl_requires %{nil}
41a62699
AF
389
390# Perl specific macro definitions.
942c693c
AF
391%perl_privlib %(eval "`%{__perl} -V:installprivlib`"; echo $installprivlib)
392%perl_archlib %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)
393%perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
394%perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
395%perl_sitelib %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib)
396%perl_sitearch %(eval "`%{__perl} -V:installsitearch`"; echo $installsitearch)
41a62699 397
942c693c 398%php_pear_dir %{_datadir}/pear
41a62699
AF
399
400# Python specific macro definitions.
401# python main version
942c693c 402%py_ver %(echo `python -c "import sys; print sys.version[:3]"`)
41a62699
AF
403
404# directories
942c693c 405%py_prefix %(echo `python -c "import sys; print sys.prefix"`)
4ef692e4 406%py_libdir %{py_prefix}/%{_lib}/python%{py_ver}
a4f0b5e0 407%py_scriptdir %{py_prefix}/share/python%{py_ver}
942c693c 408%py_incdir /usr/include/python%{py_ver}
a4f0b5e0
JK
409%py_sitedir %{py_libdir}/site-packages
410%py_sitescriptdir %{py_scriptdir}/site-packages
942c693c 411%py_dyndir %{py_libdir}/lib-dynload
41a62699
AF
412
413# pure python modules compilation
942c693c 414%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
41a62699 415
942c693c 416%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
41a62699
AF
417
418# Software written in Python language require Python with main version
419# unchanged
7986b123 420%pyrequires_eq() Requires: %1 >= 1:%py_ver %1 < 1:%(echo `python -c "import sys; import string; ver=sys.version[:3].split('.'); ver[1]=str(int(ver[1])+1); print string.join(ver, '.')"`)
41a62699 421
67ed5b97 422# depmod macro
423%depmod() { \
424if [ -e /boot/System.map-%1 ]; then \
425 /sbin/depmod -a -F /boot/System.map-%1 %1; \
426else \
427 if [ -e /boot/System.map ]; then \
428 /sbin/depmod -a -F /boot/System.map %1; \
429 else \
430 /sbin/depmod -a %1; \
431 fi \
432fi; \
433}
434
495892af 435# XMMS specific macros
2f163afd
JB
436%xmms_prefix %(xmms-config --prefix)
437%xmms_exec_prefix %(xmms-config --exec-prefix)
438%xmms_version %(xmms-config --version)
439%xmms_datadir %(xmms-config --data-dir)
440%xmms_plugindir %(xmms-config --plugin-dir)
441%xmms_visualization_plugindir %(xmms-config --visualization-plugin-dir)
442%xmms_input_plugindir %(xmms-config --input-plugin-dir)
443%xmms_output_plugindir %(xmms-config --output-plugin-dir)
444%xmms_effect_plugindir %(xmms-config --effect-plugin-dir)
445%xmms_general_plugindir %(xmms-config --general-plugin-dir)
495892af 446
59d9979d 447%_target_base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/pentium./i386/;s/amd64/x86_64/')
This page took 0.239279 seconds and 4 git commands to generate.