OBS User unknown
2008-01-19 16:15:33 +00:00
committed by Git OBS Bridge
parent 95a184d0a8
commit 2c9120d841
4 changed files with 58 additions and 23 deletions

View File

@@ -14,16 +14,21 @@
%_defaultdocdir %{_usr}/share/doc/packages
# package build macros
%makeinstall make DESTDIR=%{buildroot} install
%makeinstall make DESTDIR=%{?buildroot:%{buildroot}} install
%tcl_version %(echo 'puts [package require Tcl]' | tclsh)
%insserv_prereq insserv
%fillup_prereq fillup fileutils
%tclscriptdir %_datadir/tcl
%rb_arch %(echo %{_host_cpu}-linux | sed -e "s/i686/i586/" -e "s/armv5tel/armv4l/" -e "s/hppa2.0/hppa/")
%rb_ver %(/usr/bin/ruby -e 'puts VERSION.sub(/\\\.\\\d$/, "")')
%insserv_prereq insserv sed
%fillup_prereq fillup coreutils grep diffutils
%suseconfig_fonts_prereq perl aaa_base
%install_info_prereq info
%__os_install_post \
%__os_install_post %{?_suse_os_install_post}%{!?_suse_os_install_post: \
%{suse_check} \
/usr/lib/rpm/brp-compress \
%{nil}
/usr/lib/rpm/brp-symlink \
%{nil}}
# perl_vendorarch is defined
# perl_vendorlib is defined
@@ -40,8 +45,8 @@
# macro: %suse_update_desktop_file
# Used to add easily a category to .desktop files according to XDG
# standard.
%suse_update_desktop_file(:-:) \
/usr/lib/rpm/suse_update_desktop_file.sh %{**} || exit 1 \
%suse_update_desktop_file(cinrud:D:N:C:G:) \
/usr/lib/rpm/suse_update_desktop_file.sh %{**} || exit 1 \
%nil
# macro: %restart_on_update()
@@ -102,12 +107,32 @@
if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.%{-m*} ; then \
/sbin/SuSEconfig --module %{-m*} \
else \
echo -e "\\nERROR: SuSEconfig or requested SuSEconfig module not present!\\n" ; exit 1 \
echo -e "\\nWARNING: SuSEconfig or requested SuSEconfig module not present!\\n" ; \
fi \
fi \
%nil
%verify_permissions(:-:) \
# macro: run_suseconfig_fonts
# call SuSEconfig modules necessary for font setup
# options:
# -c (the fonts are CJK fonts, also do setup which is only needed
# for CJK)
%run_suseconfig_fonts(c) \
if test -z "$YAST_IS_RUNNING" ; then \
if test -x /sbin/conf.d/SuSEconfig.fonts ; then \
%run_suseconfig -m fonts \
fi \
if test -x /sbin/conf.d/SuSEconfig.pango ; then \
%run_suseconfig -m pango \
fi \
%{-c:if test -x /sbin/conf.d/SuSEconfig.ghostscript-cjk ; then \
%run_suseconfig -m ghostscript-cjk \
fi} \
fi \
%nil
%verify_permissions(e:f:) \
if test -f /etc/sysconfig/security ; then \
source /etc/sysconfig/security \
fi \
@@ -119,6 +144,7 @@
done \
/usr/bin/chkstat -n %{**} $PERMFILES 1>&2 \
%nil
# %{suse_update_config [-fcl] [dirs...]}
# -f: force, ignore timestamp
# -c: no config.guess,config.sub
@@ -223,7 +249,8 @@
echo -e "#\\n# Start service $SCRIPTNAME\\n#\\n$STARTVAR=\\"${!STARTVAR}\\"\\n\\n" >> var/adm/fillup-templates/rc.config.$PNAME.del } } \
done \
%{!-f: %{do_real_fillup}} \
%{!-i: %{add_start_if_needed $INSSRV_ARRAY } }
%{!-i: %{add_start_if_needed $INSSRV_ARRAY } } \
%nil
# do_real_fillup: internal macro
# this part really calls fillup for the appropriate files
@@ -258,7 +285,7 @@
fi \
else \
echo "ERROR: fillup not found. This should not happen. Please compare" \
echo "etc/rc.config and $TEMPLATE_DIR/rc.config.$PNAME and" \
echo "etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" \
echo "update by hand." \
fi
@@ -320,9 +347,10 @@
%{rc_fillup} \
else \
echo "ERROR: fillup not found. This should not happen. Please compare" \
echo "etc/rc.config and $RC_TEMPLATE and" \
echo "etc/sysconfig/$SD_NAME$PNAME and $SYSC_TEMPLATE and" \
echo "update by hand." \
fi
fi \
%nil
# internal only: rc_fillup
%rc_fillup() \
@@ -445,19 +473,18 @@
fi ; \
fi ;
%suse_version 901
# find-supplements.ksyms parses this macro directly out of the spec file:
%supplements_kernel_module() \
%{expand:%(if ! rpm -q kernel-syms > /dev/null; then echo "%fail Please add the kernel-syms package to BuildRequires"; fi)}
%suse_version 1031
%sles_version 0
%ul_version 0
%do_profiling 1
%cflags_profile_generate -fprofile-generate
%cflags_profile_feedback -fprofile-use
# find-supplements.ksyms parses this macro directly out of the spec file:
%supplements_kernel_module() \
%{expand:%(if ! rpm -q kernel-syms > /dev/null; then echo "%fail Please add the kernel-syms package to BuildRequires"; fi)}
# Template for lang sub-package.
%lang_package(n:) \
%package %{-n:-n %{-n*}-}lang \
@@ -468,3 +495,4 @@ Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \
Supplements: packageand(bundle-lang-other:%{-n:%{-n*}}%{!-n:%{name}}) \
%description %{-n:-n %{-n*}-}lang \
Provides translations to the package %{name}