{"thread":{"id":"2521","subject":"[PATCH] Small script to patch .spec for Suse","startedAt":"2005-11-15T11:30:29Z","lastAt":"2005-11-18T05:57:19Z","messageCount":11,"participants":["Josef Weidendorfer","Junio C Hamano","H. Peter Anvin","Andreas Ericsson","Petr Baudis","A Large Angry SCM"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11888","messageId":"200511151230.30030.Josef.Weidendorfer@gmx.de","threadId":"2521","inReplyTo":null,"subject":"[PATCH] Small script to patch .spec for Suse","fromName":"Josef Weidendorfer","fromEmail":"josef.weidendorfer@gmx.de","sentAt":"2005-11-15T11:30:29Z","receivedAt":"2005-11-15T11:30:29Z","isPatch":true,"sender":{"key":"josef.weidendorfer@gmx.de","avatar":null},"body":"Everytime I update and want to generate RPM packages for\nmy Suse distribution, I have to patch the git-core.spec.in\nHere is the current script for patching. It is only about\npackage names, so a seperate .spec file would\nbe overkill and a maintenance problem for me.\n\nUsage: Run contrib/patch-spec-for-suse before \"make rpm\"\n\nSigned-off-by: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>\n---\nThis is handy for Suse users which want to install Git by creating\nthere own RPM from source. It works for me (on Suse 10.0).\nI hope it works for other versions, too.\nPerhaps somebody has a better idea how to come up with\ncorrected .spec files for different distros.\n\n contrib/patch-spec-for-suse |   29 +++++++++++++++++++++++++++++\n 1 files changed, 29 insertions(+), 0 deletions(-)\n create mode 100755 contrib/patch-spec-for-suse\n\napplies-to: 4b6dbe856a3e63699b299c76f4f1fc5cb34cbe26\n3e0d98b8065c7a23c6b9a16811bb7b066b13bffc\ndiff --git a/contrib/patch-spec-for-suse b/contrib/patch-spec-for-suse\nnew file mode 100755\nindex 0000000..5b9795c\n--- /dev/null\n+++ b/contrib/patch-spec-for-suse\n@@ -0,0 +1,29 @@\n+#!/bin/sh\n+#\n+# The git-core.spec for RPM creation in the git source works\n+# fine for fedora core, but not other distributions.\n+# This script patches some distribution dependent package names\n+# to make it work for Suse (at least 10.0)\n+#\n+# Run it from gits main directory like\n+#  contrib/patch-for-suse\n+# Note! This changes git-core.spec.in. So if you do git development\n+# yourself, do *not* commit the changed file, or revert before with\n+#  mv git-core.spec.in.orig git-core.spec.in\n+#\n+\n+[ ! -f git-core.spec.in ] && echo \"git-core.spec.in not found!\" && exit 1\n+cp git-core.spec.in git-core.spec.in.orig\n+\n+# Updates for Suse:\n+#  - no seperate \"openssh-clients\"\n+#  - \"expat\" contains devel files\n+\n+cat git-core.spec.in \\\n+ | sed -e 's/openssh-clients/openssh/' \\\n+ | sed -e 's/expat-devel/expat/' \\\n+ > git-core.spec.temp\n+\n+mv git-core.spec.temp git-core.spec.in\n+echo \"git-core.spec.in sucessfully patched.\"\n+\n---\n0.99.9.GIT\n"},{"id":"11924","messageId":"7vfypxlp8k.fsf@assigned-by-dhcp.cox.net","threadId":"2521","inReplyTo":"200511151230.30030.Josef.Weidendorfer@gmx.de","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-11-15T18:50:35Z","receivedAt":"2005-11-15T18:50:35Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:\n\n> Everytime I update and want to generate RPM packages for\n> my Suse distribution, I have to patch the git-core.spec.in\n> Here is the current script for patching. It is only about\n> package names, so a seperate .spec file would\n> be overkill and a maintenance problem for me.\n\nI've applied the patch from HPA to update it to git.spec already\nin my tree, so your script would not work any more ;-)\n\nBut seriously, I suspect we should take a hint from the fact\nthat \"git.spec.in\" has \".in\" in its name already.\n\nRight now, git.spec is generated with this:\n\n    git.spec: git.spec.in Makefile\n            sed -e 's/@@VERSION@@/$(GIT_VERSION)/g' < $< > $@\n\nSo presumably you could do something like this:\n\n    --- git.spec.in\n    +++ git.spec.in\n    @@ -9,3 +9,3 @@\n     Source:        http://kernel.org/pub/software/scm/git/%{name}-%{...\n    -BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, exp...\n    +BuildRequires: @@BUILD_REQUIRES@@\n     BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(...\n    @@ -26,3 +26,3 @@\n     Group:         Development/Tools\n    -Requires:      zlib >= 1.2, rsync, rcs, curl, less, openssh-clie...\n    +Requires:      @@CORE_REQUIRES@@\n     %description core\n    @@ -40,3 +40,3 @@\n     Group:          Development/Tools\n    -Requires:       git-core = %{version}-%{release}, subversion\n    +Requires:       git-core = %{version}-%{release}, @@SVN_REQUIRES@@\n     %description svn\n    @@ -47,3 +47,3 @@\n     Group:          Development/Tools\n    -Requires:       git-core = %{version}-%{release}, cvs, cvsps\n    +Requires:       git-core = %{version}-%{release}, @@CVS_REQUIRES@@\n    ...\n\nand have something like this in the Makefile when you munge\ngit.spec.in to produce git.spec for use with rpmbuild?\n\n    RPM_BUILD_REQUIRES = zlib-devel >= 1.2 openssl-devel ...\n    RPM_CORE_REQUIRES = zlib >= 1.2 rsync rcs curl less ...\n    ifdef SUSE\n    include suse.rpm.defs\n    endif\n    git.spec: git.spec.in Makefile\n            sed \\\n                -e 's/@@VERSION@@/$(GIT_VERSION)/g' \\\n                -e 's/@@BUILD_REQUIRES@@/$(RPM_BUILD_REQUIRES)/g' \\\n                -e 's/@@CORE_REQUIRES@@/$(RPM_CORE_REQUIRES)/g' \\\n                -e 's/@@SVN_REQUIRES@@/$(RPM_SVN_REQUIRES)/g' \\\n                -e 's/@@CVS_REQUIRES@@/$(RPM_CVS_REQUIRES)/g' \\\n                -e 's/@@TLA_REQUIRES@@/$(RPM_TLA_REQUIRES)/g' \\\n                -e 's/@@EMAIL_REQUIRES@@/$(RPM_EMAIL_REQUIRES)/g' \\\n                -e 's/@@GITK_REQUIRES@@/$(RPM_GITK_REQUIRES)/g' \\\n\t        <$< >$@\n"},{"id":"11929","messageId":"437A46E4.5010909@zytor.com","threadId":"2521","inReplyTo":"7vfypxlp8k.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-11-15T20:36:52Z","receivedAt":"2005-11-15T20:36:52Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Junio C Hamano wrote:\n> \n> I've applied the patch from HPA to update it to git.spec already\n> in my tree, so your script would not work any more ;-)\n> \n> But seriously, I suspect we should take a hint from the fact\n> that \"git.spec.in\" has \".in\" in its name already.\n> \n\nI'd prefer to have just @@OPENSSH_PACKAGE@@ and @@EXPAT_PACKAGE@@ \ninstead of completely virtualizing the dependencies.  Less flexible to \nbe sure, but it makes it less confusing to read and fix.\n\n\t-hpa\n"},{"id":"11940","messageId":"7vfypxinx1.fsf@assigned-by-dhcp.cox.net","threadId":"2521","inReplyTo":"437A46E4.5010909@zytor.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-11-15T21:47:22Z","receivedAt":"2005-11-15T21:47:22Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"H. Peter Anvin\" <hpa@zytor.com> writes:\n\n> Junio C Hamano wrote:\n>> I've applied the patch from HPA to update it to git.spec already\n>> in my tree, so your script would not work any more ;-)\n>> But seriously, I suspect we should take a hint from the fact\n>> that \"git.spec.in\" has \".in\" in its name already.\n>>\n>\n> I'd prefer to have just @@OPENSSH_PACKAGE@@ and @@EXPAT_PACKAGE@@ \n> instead of completely virtualizing the dependencies.  Less flexible to \n> be sure, but it makes it less confusing to read and fix.\n\nSounds good.\n"},{"id":"11941","messageId":"437A5975.3020705@op5.se","threadId":"2521","inReplyTo":"437A46E4.5010909@zytor.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-15T21:56:05Z","receivedAt":"2005-11-15T21:56:05Z","isPatch":true,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"H. Peter Anvin wrote:\n> \n> I'd prefer to have just @@OPENSSH_PACKAGE@@ and @@EXPAT_PACKAGE@@ \n> instead of completely virtualizing the dependencies.  Less flexible to \n> be sure, but it makes it less confusing to read and fix.\n> \n\ngit doesn't, strictly speaking, require openssh, for two reasons;\na. It's been known to work equally well over rsh.\nb. ssh is run as an executed command. ssh can be installed later and the \npreviously installed git will start working just like magic.\n\nIf you really *want* an openssh requirement, you should just go with\nRequires: /usr/bin/ssh\nIt's the most accurate one after all, since git doesn't really care \nwhich package it came from so long as it's there.\n\nAs for BuildRequires, I think package maintainers can be trusted to \nfigure those out for themselves. It's not as if they'll be producing \nflawed RPM's after all.\n\nIf you want one for expat anyways, then go with\nBuildRequires: expat\nsince that's true for both dists (and FC maintainers will then happily \nfigure out that they need expat-devel to build it).\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"11942","messageId":"20051115215943.GW30496@pasky.or.cz","threadId":"2521","inReplyTo":"437A46E4.5010909@zytor.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-11-15T21:59:43Z","receivedAt":"2005-11-15T21:59:43Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Tue, Nov 15, 2005 at 09:36:52PM CET, I got a letter\nwhere \"H. Peter Anvin\" <hpa@zytor.com> said that...\n> Junio C Hamano wrote:\n> >\n> >I've applied the patch from HPA to update it to git.spec already\n> >in my tree, so your script would not work any more ;-)\n> >\n> >But seriously, I suspect we should take a hint from the fact\n> >that \"git.spec.in\" has \".in\" in its name already.\n> >\n> \n> I'd prefer to have just @@OPENSSH_PACKAGE@@ and @@EXPAT_PACKAGE@@ \n> instead of completely virtualizing the dependencies.  Less flexible to \n> be sure, but it makes it less confusing to read and fix.\n\nActually, can you have some kind of %if in specfiles? Then you could\nkeep everything in the specfile and just pass it whatever system you\nwant to build for.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"},{"id":"11945","messageId":"437A5FAF.2000609@zytor.com","threadId":"2521","inReplyTo":"20051115215943.GW30496@pasky.or.cz","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-11-15T22:22:39Z","receivedAt":"2005-11-15T22:22:39Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Petr Baudis wrote:\n> \n> Actually, can you have some kind of %if in specfiles? Then you could\n> keep everything in the specfile and just pass it whatever system you\n> want to build for.\n> \n\nSure.  It's called %if.  There is also %ifdef and %define.\n\n\t-hpa\n"},{"id":"11975","messageId":"200511160232.15162.Josef.Weidendorfer@gmx.de","threadId":"2521","inReplyTo":"437A5FAF.2000609@zytor.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"Josef Weidendorfer","fromEmail":"josef.weidendorfer@gmx.de","sentAt":"2005-11-16T01:32:14Z","receivedAt":"2005-11-16T01:32:14Z","isPatch":true,"sender":{"key":"josef.weidendorfer@gmx.de","avatar":null},"body":"On Tuesday 15 November 2005 23:22, H. Peter Anvin wrote:\n> Sure.  It's called %if.  There is also %ifdef and %define.\n\nSo by replacing @@FOR_SUSE@@ to 0 or 1 in the Makefile, this: \n\n %if @@FOR_SUSE@@\n BuildRequires: openssh ...\n %else\n BuildRequires: openssh-clients ...\n %endif\n\nwould work?\n\nJosef\n"},{"id":"12190","messageId":"437D6294.8020003@zytor.com","threadId":"2521","inReplyTo":"200511160232.15162.Josef.Weidendorfer@gmx.de","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-11-18T05:11:48Z","receivedAt":"2005-11-18T05:11:48Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Josef Weidendorfer wrote:\n> On Tuesday 15 November 2005 23:22, H. Peter Anvin wrote:\n> \n>>Sure.  It's called %if.  There is also %ifdef and %define.\n> \n> \n> So by replacing @@FOR_SUSE@@ to 0 or 1 in the Makefile, this: \n> \n>  %if @@FOR_SUSE@@\n>  BuildRequires: openssh ...\n>  %else\n>  BuildRequires: openssh-clients ...\n>  %endif\n> \n> would work?\n> \n\nSuSE might even have defined a distribution-specific macro that one can \nkey off of.  Some SuSE expert would have to comment.\n\n\t-hpa\n"},{"id":"12192","messageId":"437D6AD8.90907@gmail.com","threadId":"2521","inReplyTo":"437D6294.8020003@zytor.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"A Large Angry SCM","fromEmail":"gitzilla@gmail.com","sentAt":"2005-11-18T05:47:04Z","receivedAt":"2005-11-18T05:47:04Z","isPatch":true,"sender":{"key":"gitzilla@gmail.com","avatar":"https://gravatar.com/avatar/354625c442439908ff3dd99757dee330e29e9df7847472384faf7a00add247fb?d=mp&s=160"},"body":"H. Peter Anvin wrote:\n> Josef Weidendorfer wrote:\n>> On Tuesday 15 November 2005 23:22, H. Peter Anvin wrote:\n>>\n>>> Sure.  It's called %if.  There is also %ifdef and %define.\n>>\n>>\n>> So by replacing @@FOR_SUSE@@ to 0 or 1 in the Makefile, this:\n>>  %if @@FOR_SUSE@@\n>>  BuildRequires: openssh ...\n>>  %else\n>>  BuildRequires: openssh-clients ...\n>>  %endif\n>>\n>> would work?\n>>\n> \n> SuSE might even have defined a distribution-specific macro that one can \n> key off of.  Some SuSE expert would have to comment.\n> \n\nAttached is the output of 'rpm --showrc' on my Suse 9.3 system.\n\n\nARCHITECTURE AND OS:\nbuild arch            : i586\ncompatible build archs: i686 i586 i486 i386 noarch\nbuild os              : Linux\ncompatible build os's : Linux\ninstall arch          : i686\ninstall os            : Linux\ncompatible archs      : i686 i586 i486 i386 noarch\ncompatible os's       : Linux\n\nRPMRC VALUES:\nmacrofiles            : /usr/lib/rpm/macros:/usr/lib/rpm/i686-linux/macros:/usr/lib/rpm/suse_macros:/etc/rpm/macros.specspo:/etc/rpm/macros.prelink:/etc/rpm/macros.solve:/etc/rpm/macros.up2date:/etc/rpm/macros:/etc/rpm/i686-linux/macros:~/.rpmmacros\noptflags              : -O2 -g -march=i686 -mcpu=i686\n\nFeatures supported by rpmlib:\n    rpmlib(VersionedDependencies) = 3.0.3-1\n\tPreReq:, Provides:, and Obsoletes: dependencies support versions.\n    rpmlib(CompressedFileNames) = 3.0.4-1\n\tfile name(s) stored as (dirName,baseName,dirIndex) tuple, not as path.\n    rpmlib(PayloadIsBzip2) = 3.0.5-1\n\tpackage payload can be compressed using bzip2.\n    rpmlib(PatchRPMs) = 3.0.6-1\n\tunderstand rpms that replace a subset of files.\n    rpmlib(PayloadFilesHavePrefix) = 4.0-1\n\tpackage payload file(s) have \"./\" prefix.\n    rpmlib(ExplicitPackageProvide) = 4.0-1\n\tpackage name-version-release is not implicitly provided.\n    rpmlib(HeaderLoadSortsTags) = 4.0.1-1\n\theader tags are always sorted after being loaded.\n    rpmlib(ScriptletInterpreterArgs) = 4.0.3-1\n\tthe scriptlet interpreter can use arguments from header.\n    rpmlib(PartialHardlinkSets) = 4.0.4-1\n\ta hardlink file set may be installed without being complete.\n    rpmlib(ConcurrentAccess) = 4.1-1\n\tpackage scriptlets may access the rpm database while installing.\n\n========================\n-14: GNUconfigure(MCs:)\t\n  CFLAGS=\"${CFLAGS:-%optflags}\" ; export CFLAGS; \n  LDFLAGS=\"${LDFLAGS:-%{-s:-s}}\"  ; export LDFLAGS; \n  %{-C:_mydir=\"`pwd`\"; %{-M: %{__mkdir} -p %{-C*};} cd %{-C*}} \n  dirs=\"`find ${_mydir} -name configure.in -print`\"; export dirs; \n    for coin in `echo ${dirs}` \ndo \n  dr=`dirname ${coin}`; \nif test -f ${dr}/NO-AUTO-GEN; then \n : \nelse \n     macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE((.*)),1,gp' < ${coin}`; \n    ( cd ${dr}; \n      aclocalinclude=\"${ACLOCAL_FLAGS}\"; \n      for k in ${macrodirs}; do \n        if test -d ${k}; then \n          aclocalinclude=\"${aclocalinclude} -I ${k}\"; \n        ##else \n        ##  echo \"**Warning**: No such directory `${k}'.  Ignored.\" \n        fi \n      done \n      if grep \"^AM_GNU_GETTEXT\" configure.in >/dev/null; then \n        if grep \"sed.*POTFILES\" configure.in >/dev/null; then \n          : do nothing -- we still have an old unmodified configure.in \n        else \n          test -r ${dr}/aclocal.m4 || touch ${dr}/aclocal.m4; \n          echo \"no\" | gettextize --force --copy; \n          test -r ${dr}/aclocal.m4 && %{__chmod} u+w ${dr}/aclocal.m4; \n        fi \n      fi \n      if grep \"^AM_PROG_LIBTOOL\" configure.in >/dev/null; then \n        %{__libtoolize} --force --copy; \n      fi \n      aclocal ${aclocalinclude}; \n      if grep \"^AM_CONFIG_HEADER\" configure.in >/dev/null; then \n        %{__autoheader}; \n      fi \n      echo \"Running automake --gnu ${am_opt} ...\"; \n      %{__automake} --add-missing --gnu ${am_opt}; \n      %{__autoconf}; \n    ); \n  fi \ndone \n  %{-C:${_mydir}}%{!-C:.}/configure %{_target_platform} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} %* ; \n  %{-C:cd ${_mydir}; unset _mydir}\n-14: ___build_args\t-e\n-14: ___build_cmd\t%{?_sudo:%{_sudo} }%{?_remsh:%{_remsh} %{_remhost} }%{?_remsudo:%{_remsudo} }%{?_remchroot:%{_remchroot} %{_remroot} }%{___build_shell} %{___build_args}\n-14: ___build_post\texit 0\n-14: ___build_pre\t\n  RPM_SOURCE_DIR=\"%{u2p:%{_sourcedir}}\"\n  RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"\n  RPM_OPT_FLAGS=\"%{optflags}\"\n  RPM_ARCH=\"%{_arch}\"\n  RPM_OS=\"%{_os}\"\n  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\n  RPM_DOC_DIR=\"%{_docdir}\"\n  export RPM_DOC_DIR\n  RPM_PACKAGE_NAME=\"%{name}\"\n  RPM_PACKAGE_VERSION=\"%{version}\"\n  RPM_PACKAGE_RELEASE=\"%{release}\"\n  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\n  %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\n  export RPM_BUILD_ROOT}\n  %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\n  export CLASSPATH}\n  \n  %{verbose:set -x}%{!verbose:exec > /dev/null}\n  umask 022\n  cd %{u2p:%{_builddir}}\n-14: ___build_shell\t%{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh}\n-14: ___build_template\t#!%{___build_shell}\n%{___build_pre}\n%{nil}\n-14: __aclocal\taclocal\n-14: __ar\tar\n-14: __arch_install_post\t%{nil}\n-14: __as\tas\n-14: __autoconf\tautoconf\n-14: __autoheader\tautoheader\n-14: __automake\tautomake\n-14: __awk\tgawk\n-14: __bzip2\t/usr/bin/bzip2\n-14: __cat\t/bin/cat\n-14: __cc\tgcc\n-14: __check_files\t/usr/lib/rpm/check-files %{buildroot}\n-14: __chgrp\t/bin/chgrp\n-14: __chgrp_Rhf\t%{__chgrp} -Rhf\n-14: __chmod\t/bin/chmod\n-14: __chown\t/bin/chown\n-14: __chown_Rhf\t%{__chown} -Rhf\n-14: __cp\t/bin/cp\n-14: __cpio\t/usr/bin/cpio\n-14: __cpp\tgcc -E\n-14: __cxx\tg++\n-14: __dbi_btconfig\t\n  btree\t\t\n  %{__dbi_other}\n  %{__dbi_perms}\n%{nil}\n-14: __dbi_btconfig_current\t%{__dbi_btconfig}\n-14: __dbi_btconfig_rebuild\t%{__dbi_btconfig} %{__dbi_rebuild}\n-14: __dbi_cdb\tcreate cdb mpool mp_mmapsize=16Mb mp_size=1Mb\n-14: __dbi_htconfig\t\n  hash\t\t\n  %{__dbi_other}\n  %{__dbi_perms}\n%{nil}\n-14: __dbi_htconfig_current\t%{__dbi_htconfig}\n-14: __dbi_htconfig_rebuild\t%{__dbi_htconfig} %{__dbi_rebuild}\n-14: __dbi_other\t%{?_tmppath:tmpdir=%{_tmppath}} %{?__dbi_cdb}\n-14: __dbi_perms\tperms=0644\n-14: __dbi_rebuild\tnofsync !log !txn !cdb\n-14: __dbi_transient\t%{__dbi_rebuild} temporary private\n-14: __debug_install_post\t\n   /usr/lib/rpm/find-debuginfo.sh %{_builddir}/%{?buildsubdir}\n%{nil}\n-14: __file\t/usr/bin/file\n-14: __find_provides\t/usr/lib/rpm/find-provides\n-14: __find_requires\t/usr/lib/rpm/find-requires\n-14: __gpg\t/usr/bin/gpg\n-14: __gpg_check_password_cmd\t%{__gpg} \n\tgpg --batch --no-verbose --passphrase-fd 3 -u \"%{_gpg_name}\" -so -\n-14: __gpg_sign_cmd\t%{__gpg} \n\tgpg --batch --no-verbose --no-armor --passphrase-fd 3 --no-secmem-warning \n\t-u \"%{_gpg_name}\" -sbo %{__signature_filename} %{__plaintext_filename}\n-14: __grep\t/usr/bin/grep\n-14: __gzip\t/usr/bin/gzip\n-14: __id\t/usr/bin/id\n-14: __id_u\t%{__id} -u\n-14: __install\t/usr/bin/install\n-14: __ld\t/usr/bin/ld\n-14: __libtoolize\tlibtoolize\n-14: __ln_s\tln -s\n-14: __make\t/usr/bin/make\n-14: __mkdir\t/bin/mkdir\n-14: __mkdir_p\t/bin/mkdir -p\n-14: __mv\t/bin/mv\n-14: __nm\t/usr/bin/nm\n-14: __objcopy\t/usr/bin/objcopy\n-14: __objdump\t/usr/bin/objdump\n-14: __os_install_post\t\n    %{suse_check} \n    /usr/lib/rpm/brp-compress \n    /usr/lib/rpm/brp-symlink \n%{nil}\n-14: __patch\t/usr/bin/patch\n-14: __perl\t/usr/bin/perl\n-14: __perl_provides\t/usr/lib/rpm/perl.prov\n-14: __perl_requires\t/usr/lib/rpm/perl.req\n-14: __pgp\t/usr/bin/pgp\n-14: __pgp5_check_password_cmd\t%{__pgp} \n\tpgps +batchmode=on +verbose=0 +armor=off \"%{_pgp_name}\" -f\n-14: __pgp5_sign_cmd\t%{__pgp} \n\tpgps +batchmode=on +verbose=0 +armor=off \n\t\"+myname=%{_pgp_name}\" -b %{__plaintext_filename} -o %{__signature_filename}\n-14: __pgp_check_password_cmd\t%{__pgp} \n\tpgp +batchmode=on +verbose=0 \"%{_pgp_name}\" -sf\n-14: __pgp_sign_cmd\t%{__pgp} \n\tpgp +batchmode=on +verbose=0 +armor=off \n\t\"+myname=%{_pgp_name}\" -sb %{__plaintext_filename} %{__signature_filename}\n-14: __python\t/usr/bin/python\n-14: __ranlib\tranlib\n-14: __remsh\t%{__rsh}\n-14: __rm\t/bin/rm\n-14: __rsh\t/usr/bin/rsh\n-14: __sed\t/usr/bin/sed\n-14: __spec_build_args\t%{___build_args}\n-14: __spec_build_body\t%{___build_body}\n-14: __spec_build_cmd\t%{___build_cmd}\n-14: __spec_build_post\t%{___build_post}\n-14: __spec_build_pre\t%{___build_pre}\n%{?buildroot:  %__rm -rf \"$RPM_BUILD_ROOT\"\n  %__mkdir_p `dirname \"$RPM_BUILD_ROOT\"`\n  %__mkdir \"$RPM_BUILD_ROOT\"\n}\n-14: __spec_build_shell\t%{___build_shell}\n-14: __spec_build_template\t#!%{__spec_build_shell}\n%{__spec_build_pre}\n%{nil}\n-14: __spec_check_args\t%{___build_args}\n-14: __spec_check_body\t%{___build_body}\n-14: __spec_check_cmd\t%{___build_cmd}\n-14: __spec_check_post\t%{___build_post}\n-14: __spec_check_pre\t%{___build_pre}\n-14: __spec_check_shell\t%{___build_shell}\n-14: __spec_check_template\t#!%{__spec_check_shell}\n%{__spec_check_pre}\n%{nil}\n-14: __spec_clean_args\t%{___build_args}\n-14: __spec_clean_body\t%{___build_body}\n-14: __spec_clean_cmd\t%{___build_cmd}\n-14: __spec_clean_post\t%{___build_post}\n-14: __spec_clean_pre\t%{___build_pre}\n-14: __spec_clean_shell\t%{___build_shell}\n-14: __spec_clean_template\t#!%{__spec_clean_shell}\n%{__spec_clean_pre}\n%{nil}\n-14: __spec_install_args\t%{___build_args}\n-14: __spec_install_body\t%{___build_body}\n-14: __spec_install_cmd\t%{___build_cmd}\n-14: __spec_install_post\t\n    %{?__debug_package:%{__debug_install_post}}\n    %{__arch_install_post}\n    %{__os_install_post}\n%{nil}\n-14: __spec_install_pre\t%{___build_pre}\n-14: __spec_install_shell\t%{___build_shell}\n-14: __spec_install_template\t#!%{__spec_install_shell}\n%{__spec_install_pre}\n%{nil}\n-14: __spec_prep_args\t%{___build_args}\n-14: __spec_prep_body\t%{___build_body}\n-14: __spec_prep_cmd\t%{___build_cmd}\n-14: __spec_prep_post\t%{___build_post}\n-14: __spec_prep_pre\t%{___build_pre}\n-14: __spec_prep_shell\t%{___build_shell}\n-14: __spec_prep_template\t#!%{__spec_prep_shell}\n%{__spec_prep_pre}\n%{nil}\n-14: __spec_rmbuild_args\t%{___build_args}\n-14: __spec_rmbuild_body\t%{___build_body}\n-14: __spec_rmbuild_cmd\t%{___build_cmd}\n-14: __spec_rmbuild_post\t%{___build_post}\n-14: __spec_rmbuild_pre\t%{___build_pre}\n-14: __spec_rmbuild_shell\t%{___build_shell}\n-14: __spec_rmbuild_template\t#!%{__spec_rmbuild_shell}\n%{__spec_rmbuild_pre}\n%{nil}\n-14: __ssh\t/usr/bin/ssh\n-14: __strip\t/usr/bin/strip\n-14: __tar\t/bin/tar\n-14: __unzip\t/usr/bin/unzip\n-14: __vsflags\t0\n-14: _arch\ti386\n-14: _bhA\tRPMS\n-14: _bhN\t@(SRPMS|i386|alpha|sparc|s390|ia64)\n-14: _bhVR\tRedHat\n-14: _bhcoll\t@(7.3|7.2|7.1|7.1sbe|7.1k|7.0|7.01j|7.0j|7.0sbe|7.0tc|6.2|6.2ha|6.2ee|6.1|6.0|5.2|5.1|5.0)\n-14: _bhpath\tfile://localhost/mnt/dist\n-14: _binary_payload\tw9.bzdio\n-14: _bindir\t%{_exec_prefix}/bin\n-14: _build\t%{_host}\n-14: _build_alias\t%{_host_alias}\n-14: _build_arch\ti386\n-14: _build_cpu\t%{_host_cpu}\n-14: _build_name_fmt\t%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\n-14: _build_os\t%{_host_os}\n-14: _build_vendor\t%{_host_vendor}\n-14: _builddir\t%{_topdir}/BUILD\n-14: _buildshell\t/bin/sh\n-14: _bzip2bin\t%{__bzip2}\n-14: _cache_dbpath\t/var/spool/up2date/cache\n-14: _datadir\t%{_prefix}/share\n-14: _dbapi\t3\n-14: _dbapi_rebuild\t3\n-14: _dbi_btconfig\t\n  %{?_rpmdb_rebuild:%{__dbi_btconfig_rebuild}}\n  %{!?_rpmdb_rebuild:%{__dbi_btconfig_current}}\n%{nil}\n-14: _dbi_config\t%{_dbi_htconfig} nofsync\n-14: _dbi_config_Depends\t%{_dbi_htconfig} temporary private nofsync\n-14: _dbi_config_Dirnames\t%{_dbi_btconfig} nofsync\n-14: _dbi_config_Installtid\t%{_dbi_btconfig} nofsync\n-14: _dbi_config_Packages\t%{_dbi_htconfig} lockdbfd\n-14: _dbi_config_Provideversion\t%{_dbi_btconfig} nofsync\n-14: _dbi_config_Removetid\t%{_dbi_btconfig} nofsync\n-14: _dbi_config_Requireversion\t%{_dbi_btconfig} nofsync\n-14: _dbi_htconfig\t\n  %{?_rpmdb_rebuild:%{__dbi_htconfig_rebuild}}\n  %{!?_rpmdb_rebuild:%{__dbi_htconfig_current}}\n%{nil}\n-14: _dbi_tags\tPackages:Name:Basenames:Group:Requirename:Providename:Conflictname:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filemd5s:Depends:Pubkeys\n-14: _dbpath\t%{_var}/lib/rpm\n-14: _dbpath_rebuild\t%{_dbpath}\n-14: _defaultdocdir\t%{_usr}/share/doc/packages\n-14: _docdir_fmt\t%%{NAME}\n-14: _exec_prefix\t%{_prefix}\n-14: _fixgroup\t[ `%{__id_u}` = '0' ] && %{__chgrp_Rhf} root\n-14: _fixowner\t[ `%{__id_u}` = '0' ] && %{__chown_Rhf} root\n-14: _fixperms\t%{__chmod} -Rf a+rX,g-w,o-w\n-14: _gnu\t-gnu\n-14: _gzipbin\t%{__gzip}\n-14: _host\ti686-suse-linux\n-14: _host_alias\ti686-suse-linux%{nil}\n-14: _host_cpu\ti686\n-14: _host_os\tlinux\n-14: _host_vendor\tsuse\n-14: _includedir\t%{_prefix}/include\n-14: _infodir\t%{_prefix}/share/info\n-14: _initrddir\t%{_sysconfdir}/init.d\n-14: _install_langs\tall\n-14: _install_script_path\t/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin\n-14: _instchangelog\t5\n-14: _javadir\t%{_datadir}/java\n-14: _javadocdir\t%{_datadir}/javadoc\n-14: _jnidir\t%{_libdir}/java\n-14: _jvmdir\t%{_libdir}/jvm\n-14: _jvmjardir\t%{_libdir}/jvm-exports\n-14: _jvmprivdir\t%{_libdir}/jvm-private\n-14: _lib\tlib\n-14: _libdir\t%{_exec_prefix}/%{_lib}\n-14: _libexecdir\t%{_exec_prefix}/libexec\n-14: _localstatedir\t/var\n-14: _mandir\t%{_prefix}/share/man\n-14: _missing_doc_files_terminate_build\t1\n-14: _multilibno\t1\n-14: _multilibpatt\t(/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$\n-14: _oldincludedir\t/usr/include\n-14: _os\tlinux\n-14: _package_version\t30005\n-14: _pgpbin\t%{__pgp}\n-15: _preScriptEnvironment\t\nRPM_SOURCE_DIR=\"%{_sourcedir}\"\nRPM_BUILD_DIR=\"%{_builddir}\"\nRPM_OPT_FLAGS=\"%{optflags}\"\nRPM_ARCH=\"%{_arch}\"\nRPM_OS=\"%{_os}\"\nexport RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\nRPM_DOC_DIR=\"%{_docdir}\"\nexport RPM_DOC_DIR\nRPM_PACKAGE_NAME=\"%{name}\"\nRPM_PACKAGE_VERSION=\"%{version}\"\nRPM_PACKAGE_RELEASE=\"%{release}\"\nexport RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\n%{?buildroot:RPM_BUILD_ROOT=\"%{buildroot}\"\nexport RPM_BUILD_ROOT\n}\n-14: _prefix\t/usr\n-14: _query_all_fmt\t%%{name}-%%{version}-%%{release}\n-14: _query_selector_match\tdefault\n-14: _repackage_all_erasures\t0\n-14: _repackage_dir\t/var/spool/repackage\n-14: _repackage_name_fmt\t%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\n-14: _repackage_root\t%{nil}\n-14: _rpmdir\t%{_topdir}/RPMS\n-14: _rpmfilename\t%{_build_name_fmt}\n-14: _sbindir\t%{_exec_prefix}/sbin\n-14: _sharedstatedir\t%{_prefix}/com\n-14: _signature\tnone\n-14: _smp_mflags\t%([ -z \"$RPM_BUILD_NCPUS\" ] \\\n\t&& RPM_BUILD_NCPUS=\"`/usr/bin/getconf _NPROCESSORS_ONLN`\"; \\\n\t[ \"$RPM_BUILD_NCPUS\" -gt 1 ] && echo \"-j$RPM_BUILD_NCPUS\")\n-14: _sourcedir\t%{_topdir}/SOURCES\n-14: _specdir\t%{_topdir}/SPECS\n-14: _srcrpmdir\t%{_topdir}/SRPMS\n-14: _sysconfdir\t/etc\n-11: _target\ti586-linux\n-14: _target_alias\t%{_host_alias}\n-11= _target_cpu\ti586\n-11= _target_os\tlinux\n-14: _target_platform\t%{_target_cpu}-%{_vendor}-%{_target_os}\n-14: _target_vendor\t%{_host_vendor}\n-14: _tmppath\t%{_topdir}/TMP\n-14: _topdir\t/home/internet/RPM_TOP_DIR\n-14: _transaction_color\t0\n-14: _unpackaged_files_terminate_build\t1\n-14: _unzipbin\t%{__unzip}\n-14: _use_internal_dependency_generator\t0\n-14: _usr\t/usr\n-14: _usrsrc\t%{_usr}/src\n-14: _var\t/var\n-14: _vendor\tsuse\n-14: _vsflags_build\t%{__vsflags}\n-14: _vsflags_erase\t%{__vsflags}\n-14: _vsflags_install\t%{__vsflags}\n-14: _vsflags_query\t%{__vsflags}\n-14: _vsflags_rebuilddb\t%{__vsflags}\n-14: _vsflags_up2date\t%{__vsflags}\n-14: _vsflags_verify\t%{__vsflags}\n-14: add_jvm_extension\tJAVA_LIBDIR=%{buildroot}/%{_javadir}\t%{_bindir}/jvmjar -l\n-14: add_start_if_needed\t\n   set -- %{?*} \n    while [ ${#*} -gt 0 ] ; do \n\tSCRIPTNAME=$1 \n\tSTARTVAR=$2 \n\tshift 2 \n\ttest -n \"$STARTVAR\" -a -n \"$SCRIPTNAME\" || { \n\t    echo \"STARTVAR or SCRIPTNAME unknown\" \n\t    exit 1 \n\t} \n\tif test \"$FIRST_ARG\" = \"1\" -o \"$REMOVED_START\" = \"yes\" -o \"$FORCE_YES\" = \"1\" ; then \n\t  if test -n \"$YAST_IS_RUNNING\" ; then \n\t    INSSERV_FORCE=\"-f\" \n\t  else \n\t    INSSERV_FORCE=\"\" \n\t  fi \n\t  if test \"${!STARTVAR}\" = \"yes\" -o \"$FORCE_YES\" = \"1\" ; then \n\t    sbin/insserv $INSSERV_FORCE etc/init.d/$SCRIPTNAME \n\t  else \n\t    sbin/insserv $INSSERV_FORCE -r etc/init.d/$SCRIPTNAME \n\t  fi \n\tfi \n    done\n-14: ant\tJAVA_HOME=%{java_home} ant\n-14: cflags_profile_feedback\t-fbranch-probabilities\n-14: cflags_profile_generate\t-fprofile-arcs\n-14: configure\t\n  CFLAGS=\"${CFLAGS:-%optflags}\" ; export CFLAGS ; \n  CXXFLAGS=\"${CXXFLAGS:-%optflags}\" ; export CXXFLAGS ; \n  FFLAGS=\"${FFLAGS:-%optflags}\" ; export FFLAGS ; \n  ./configure --host=%{_host} --build=%{_build} \\\n\t--target=%{_target_platform} \\\n\t--program-prefix=%{?_program_prefix} \\\n \t--prefix=%{_prefix} \\\n\t--exec-prefix=%{_exec_prefix} \\\n\t--bindir=%{_bindir} \\\n\t--sbindir=%{_sbindir} \\\n\t--sysconfdir=%{_sysconfdir} \\\n\t--datadir=%{_datadir} \\\n\t--includedir=%{_includedir} \\\n\t--libdir=%{_libdir} \\\n\t--libexecdir=%{_libexecdir} \\\n\t--localstatedir=%{_localstatedir} \\\n\t--sharedstatedir=%{_sharedstatedir} \\\n\t--mandir=%{_mandir} \\\n\t--infodir=%{_infodir}\n-14: configure_kernel_source\t\n\tif test -d /usr/src/linux ; then \n\t    pushd /usr/src/linux \n\t    test -f .config || cp arch/%_arch/defconfig.default .config \n\t    yes \"\" | make oldconfig \n\t    make dep \n\t    popd \n\tfi \n\t%nil\n-14: debug_package\t\n%ifnarch noarch\n%global __debug_package 1\n%package debuginfo\nSummary: Debug information for package %{name}\nGroup: Development/Debug\nAutoReqProv: 0\n%description debuginfo\nThis package provides debug information for package %{name}.\nDebug information is useful when developing applications that use this\npackage or when debugging this package.\n%files debuginfo -f debugfiles.list\n%defattr(-,root,root)\n%endif\n%{nil}\n-14: do_profiling\t1\n-14: do_real_fillup\t\n    TEMPLATE_DIR=var/adm/fillup-templates \n    SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME \n    RC_TEMPLATE=$TEMPLATE_DIR/rc.config.$PNAME \n    SD_NAME=\"\" \n    if [ -x bin/fillup ] ; then \n\t%{sysc_fillup} \n\t# remove the START_ variables from the base fillup template \n\tif [ -f $RC_TEMPLATE.del -a -f $RC_TEMPLATE ] ; then \n\t  bin/fillup -q -r -i  $RC_TEMPLATE $RC_TEMPLATE.del /dev/null \n\t  mv $RC_TEMPLATE.new $RC_TEMPLATE \n\tfi \n\tif [ -f etc/rc.config ] ; then \n\t  %{rc_fillup} \n\t  # remove the deprecated START_ variables from rc.config \n\t  if [ -f $TEMPLATE_DIR/rc.config.$PNAME.del ] ; then \n\t    rm -f etc/rc.config.xtract \n\t    bin/fillup -q -r -i etc/rc.config $RC_TEMPLATE.del etc/rc.config.xtract \n\t    if [ -f etc/rc.config.xtract ] ; then \n\t      . etc/rc.config.xtract \n\t    fi \n\t    rm -f etc/rc.config.xtract $RC_TEMPLATE.del \n\t    if [ -f etc/rc.config.new ] ; then \n\t      cmp -s etc/rc.config.new etc/rc.config || REMOVED_START=yes \n\t      mv etc/rc.config.new etc/rc.config \n\t    fi \n\t  fi \n\tfi \n    else \n\techo \"ERROR: fillup not found. This should not happen. Please compare\" \n\techo \"etc/rc.config and $TEMPLATE_DIR/rc.config.$PNAME and\" \n\techo \"update by hand.\" \n    fi\n-14: fillup_and_insserv(finpsyY)\t\n  test -n \"$FIRST_ARG\" || FIRST_ARG=$1 \n  %{-Y:FORCE_YES=1}%{!-Y:FORCE_YES=0} \n  REMOVED_START=no \n  set -- %{?*} \n  %{-n:PNAME=$1 ; shift }%{!-n:PNAME=%{name}} \n  INSSRV_ARRAY=\"\" \n  while [ ${#*} -gt 0 ] ; do \n    SCRIPTNAME=$1 \n    shift \n    %{-s:STARTVAR=$1 ; shift} \n    %{!-s:STARTVAR=START_`echo $SCRIPTNAME | tr a-z.- A-Z__`} \n    SV_B='^### BEGIN INIT INFO' \n    SV_E='^### END INIT INFO' \n    SV_KW=X-UnitedLinux-Default-Enabled \n    SV_VAL=`sed -n -e \"/$SV_B/,/$SV_E/{/^# $SV_KW:[[:space:]]*\\([^[:space:]]*\\).*/s//\\1/p;}\" < etc/init.d/$SCRIPTNAME` \n    test -n \"$SV_VAL\" || SV_VAL=%{-y:\"yes\"}%{!-y:\"no\"} \n    eval $STARTVAR=$SV_VAL \n    test -n \"$STARTVAR\" -a -n \"$SCRIPTNAME\" || { \n\techo \"STARTVARIABLE or SCRIPTNAME unknown\" \n\texit 1 \n    } \n    INSSRV_ARRAY=\"$INSSRV_ARRAY $SCRIPTNAME $STARTVAR\" \n    %{!-f:%{!-i:grep -q \"$STARTVAR=\" var/adm/fillup-templates/rc.config.$PNAME.del 2>/dev/null || \n\techo -e \"#\\n# Start service $SCRIPTNAME\\n#\\n$STARTVAR=\\\"${!STARTVAR}\\\"\\n\\n\" >> var/adm/fillup-templates/rc.config.$PNAME.del } } \n  done \n  %{!-f: %{do_real_fillup}} \n  %{!-i: %{add_start_if_needed $INSSRV_ARRAY } }\n-14: fillup_only(dans)\t\n  %{-n:PNAME=%{1}}%{!-n:PNAME=%{name}} \n  %{-s:SUBPNAME=-%{2}}%{!-s:SUBPNAME=%{-a:-%{name}}} \n    TEMPLATE_DIR=var/adm/fillup-templates \n    SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME \n    RC_TEMPLATE=$TEMPLATE_DIR/rc.config.$PNAME \n    SD_NAME=\"\" \n    %{-d:%{-s:SD_NAME=%{3}/}%{!-s:SD_NAME=%{2}/}} \n    if [ -x bin/fillup ] ; then \n\t%{sysc_fillup} \n\t%{rc_fillup} \n    else \n\techo \"ERROR: fillup not found. This should not happen. Please compare\" \n\techo \"etc/rc.config and $RC_TEMPLATE and\" \n\techo \"update by hand.\" \n    fi\n-14: fillup_prereq\tfillup coreutils\n-14: find_lang\t/usr/lib/rpm/find-lang.sh %{buildroot}\n-14: insserv_cleanup\t\n\tsbin/insserv etc/init.d\n-14: insserv_force_if_yast\t\n\tif test -n \"$YAST_IS_RUNNING\" ; then \n            INSSERV_FORCE=\"-f\" \n\telse \n\t    INSSERV_FORCE=\"\" \n\tfi \n\tsbin/insserv $INSSERV_FORCE %{?*}\n-14: insserv_prereq\tinsserv sed devs\n-14: install_info(:-:)\t\n\tALL_ARGS=(%{**}) \n\tNUM_ARGS=${#ALL_ARGS[@]} \n\tif test -x sbin/install-info ; then \n\t    if test -e \"${ALL_ARGS[$((NUM_ARGS-1))]}\" ; then \n\t\tsbin/install-info \"${ALL_ARGS[@]}\" \n\t    fi \n\tfi ;\n-14: install_info_delete(:-:)\t\n\tALL_ARGS=(%{**}) \n\tNUM_ARGS=${#ALL_ARGS[@]} \n\tif test -x sbin/install-info ; then \n\t   if ! test -e \"${ALL_ARGS[$((NUM_ARGS-1))]}\" ; then \n\t\tsbin/install-info --quiet --delete \"${ALL_ARGS[@]}\" \n\t   fi ; \n\tfi ;\n-14: install_info_prereq\tinfo\n-14: is_plus\t%(if test -f /.buildenv ; then source /.buildenv ; if [[ \"$BUILD_BASENAME\" == *+kde ]] ; then echo 1 ; else echo 0 ; fi ; else echo 0 ; fi)\n-14: ix86\ti386 i486 i586 i686 athlon\n-14: jar\t%{java_home}/bin/jar\n-14: java\t%(. %{_javadir}-utils/java-functions; set_javacmd; echo $JAVACMD)\n-14: java_home\t%(. %{_javadir}-utils/java-functions; set_jvm; echo $JAVA_HOME)\n-14: javac\t%{java_home}/bin/javac\n-14: javadoc\t%{java_home}/bin/javadoc\n-14: jpackage_script\t\ninstall -d -m 755 $RPM_BUILD_ROOT%{_bindir}\ncat > $RPM_BUILD_ROOT%{_bindir}/%5 << EOF \n#!/bin/sh\n#\n# %{name} script\n# JPackage Project <http://www.jpackage.org/>\n\n# Source functions library\n. %{_javadir}-utils/java-functions\n\n# Source system prefs\nif [ -f %{_sysconfdir}/java/%{name}.conf ] ; then\n  . %{_sysconfdir}/java/%{name}.conf\nfi\n\n# Source user prefs\nif [ -f \\$HOME/.%{name}rc ] ; then\n  . \\$HOME/.%{name}rc\nfi\n\n# Configuration\nMAIN_CLASS=%1\nBASE_FLAGS=%2\nBASE_OPTIONS=%3\nBASE_JARS=\"%(echo %4 | sed -e 's,:, ,g')\"\n\n# Set parameters\nset_jvm\nset_classpath \\$BASE_JARS\nset_flags \\$BASE_FLAGS\nset_options \\$BASE_OPTIONS\n\n# Let's start\nrun \"\\$@\"\nEOF\n-14: makeinstall\tmake DESTDIR=%{?buildroot:%{buildroot}} install\n-14: nil\t%{!?nil}\n-11: optflags\t-O2 -g -march=i586 -mcpu=i686 -fmessage-length=0\n-14: perl_archlib\t%(eval \"`perl -V:installarchlib`\"; echo $installarchlib)\n-14: perl_installarchlib\t%(perl -V:installarchlib | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_installman1dir\t%(perl -V:installman1dir | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_installman3dir\t%(perl -V:installman3dir | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_make_install\tmake DESTDIR=$RPM_BUILD_ROOT install_vendor\n-14: perl_man1dir\t%(perl -V:man1dir | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_man1ext\t%(perl -V:man1ext | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_man3dir\t%(perl -V:man3dir | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_man3ext\t%(perl -V:man3ext | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_prefix\t%{buildroot}\n-14: perl_process_packlist(n:)\t\n  mkdir -p $RPM_BUILD_ROOT/var/adm/perl-modules \n  test -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod && { sed -e \"s@$RPM_BUILD_ROOT@@g\" < $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod > $RPM_BUILD_ROOT/var/adm/perl-modules/%{-n:%{-n*}}%{!-n:%{name}} ; } ; \n  test -n \"$RPM_BUILD_ROOT\" -a -d $RPM_BUILD_ROOT/%perl_sitearch/auto && find $RPM_BUILD_ROOT/%perl_sitearch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e \"s@$RPM_BUILD_ROOT@@g\" ; \n  test -n \"$RPM_BUILD_ROOT\" -a -d $RPM_BUILD_ROOT/%perl_vendorarch/auto && find $RPM_BUILD_ROOT/%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e \"s@$RPM_BUILD_ROOT@@g\" ; \n  rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \n  %nil\n-14: perl_sitearch\t%(eval \"`perl -V:installsitearch`\"; echo $installsitearch)\n-14: perl_sitelib\t%(perl -V:sitelib | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_vendorarch\t%(perl -V:vendorarch | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_vendorlib\t%(perl -V:vendorlib | sed \"s!.*='!!;s!'.*!!\")\n-14: perl_version\t%(perl -V:version | sed \"s!.*='!!;s!'.*!!\")\n-14: py_compile(O)\t\nfind %1 -name '*.pyc' -exec rm -f {} \\; \npython -c \"import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)\" %1 \n%{-O: \nfind %1 -name '*.pyo' -exec rm -f {} \\; \npython -O -c \"import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)\" %1 \n}\n-14: py_incdir\t%{py_prefix}/include/python%{py_ver}\n-14: py_libdir\t%{py_prefix}/%{_lib}/python%{py_ver}\n-14: py_prefix\t%(python -c \"import sys; print sys.prefix\" 2>/dev/null || echo PYTHON-NOT-FOUND)\n-14: py_requires(d)\t\n%define minver %py_ver \n%define maxver %(python -c \"import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)\" 2>/dev/null || echo PYTHON-NOT-FOUND) \nBuildRequires: python %{-d:python-devel} \nPreReq: python >= %minver, python < %maxver\n-14: py_sitedir\t%{py_libdir}/site-packages\n-14: py_ver\t%(python -c \"import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v\" 2>/dev/null || echo PYTHON-NOT-FOUND)\n-14: rc_fillup\t\n\t# maybe the fillup template for rc.config is old, make sure we do not readd stuff here \n\tif [ -f $SYSC_TEMPLATE -a -f $RC_TEMPLATE ] ; then \n\t  bin/fillup -q -r -i $RC_TEMPLATE $SYSC_TEMPLATE /dev/null \n\t  mv $RC_TEMPLATE.new $RC_TEMPLATE \n\tfi \n\t# do the normal fillup for the rc.config variables \n\tif [ -f $RC_TEMPLATE ] ; then \n\t  bin/fillup -q -d = etc/rc.config $RC_TEMPLATE \n\tfi\n-14: remove_and_set(n:y)\t\n  %{-n:PNAME=%{-n*}}%{!-n:PNAME=%{name}} \n  DEF_VAL=%{-y:\"yes\"}%{!-y:\"no\"} \n  DEL_TEMPL=var/adm/fillup-templates/$PNAME.del \n  rm -f $DEL_TEMPL \n  for var in %{?*} ; do \n    echo -e \"#\\n$var=$DEF_VAL\\n\" >> $DEL_TEMPL \n  done \n  if [ -f etc/rc.config ]  ; then \n    bin/fillup -q -t -r -i -d \"=\" etc/rc.config $DEL_TEMPL etc/rc.config.xtract \n    test -f etc/rc.config.new && mv etc/rc.config.new etc/rc.config \n  fi \n  if [ -f etc/sysconfig/$PNAME ] ; then \n    bin/fillup -q -t -r -i -d \"=\" etc/sysconfig/$PNAME $DEL_TEMPL etc/rc.config.xtract.too \n    test -f etc/sysconfig/$PNAME.new && mv etc/sysconfig/$PNAME.new etc/sysconfig/$PNAME \n  fi  \n  for i in $DEL_TEMPL etc/rc.config.xtract etc/rc.config.xtract.too ; do \n    if [ -f $i ] ; then \n     . $i \n     rm -f $i \n    fi \n  done\n-14: rename_sysconfig_variable(f:)\t\n\t%{!-f:FILE=etc/rc.config}%{-f:FILE=%{-f*}} \n\tif [ -f $FILE ] ; then \n\t  sed -e \"s/^%{1}=/%{2}=/\" $FILE > $FILE.new \n\t  mv $FILE.new $FILE \n\tfi\n-14: requires_eq\t%(LC_ALL=\"C\" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v \"is not\")\n-14: restart_on_update\t\n\ttest -n \"$FIRST_ARG\" || FIRST_ARG=$1 \n\tif test \"$FIRST_ARG\" -ge 1 ; then \n\t   test -f /etc/sysconfig/services && . /etc/sysconfig/services \n           if test \"$YAST_IS_RUNNING\" != \"instsys\" -a \"$DISABLE_RESTART_ON_UPDATE\" != yes ; then \n              for service in %{?*} ; do \n                 /etc/init.d/$service try-restart > /dev/null || : \n              done \n           fi \n        fi \n\t%nil\n-14: run_ldconfig\t/sbin/ldconfig\n-14: run_permissions\t\n\tif test \"$YAST_IS_RUNNING\" != \"instsys\" ; then \n\t    if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.permissions ; then \n\t\t/sbin/SuSEconfig --module permissions \n\t    fi \n\tfi \n\t%nil\n-14: run_suseconfig(m:)\t\n   %{!-m:echo -e \"\\nERROR: missing parameter for macro run_suseconfig\\n\" ; exit 1 ; } \n   if test \"$YAST_IS_RUNNING\" != \"instsys\" ; then \n     if test -x /sbin/SuSEconfig -a -f /sbin/conf.d/SuSEconfig.%{-m*} ; then \n       /sbin/SuSEconfig --module %{-m*} \n     else \n       echo -e \"\\nERROR: SuSEconfig or requested SuSEconfig module not present!\\n\" ; exit 1 \n     fi \n   fi \n   %nil\n-14: run_suseconfig_fonts(c)\t\n  if test -x /sbin/conf.d/SuSEconfig.fonts ; then \n    %run_suseconfig -m fonts \n  fi \n  if test -x /sbin/conf.d/SuSEconfig.pango ; then \n    %run_suseconfig -m pango \n  fi \n  %{-c:if test -x /sbin/conf.d/SuSEconfig.ghostscript-cjk ; then \n         %run_suseconfig -m ghostscript-cjk \n       fi} \n  %nil\n-14: save_rc_config_d_was_in_filelist(n)\t\n  %{-n:PNAME=%{?*}}%{!-n:PNAME=%{name}} \n  mkdir -p etc/sysconfig \n  if [ -f etc/rc.config.d/$PNAME.rc.config -a ! -f etc/sysconfig/$PNAME ] ; then \n    cp etc/rc.config.d/$PNAME.rc.config etc/sysconfig/$PNAME \n  fi\n-15: sigtype\tnone\n-14: sles_version\t0\n-14: stop_on_removal\t\n        test -n \"$FIRST_ARG\" || FIRST_ARG=$1 \n        if test \"$FIRST_ARG\" = \"0\" ; then \n\t   test -f /etc/sysconfig/services && . /etc/sysconfig/services \n           if test \"$YAST_IS_RUNNING\" != \"instsys\" -a \"$DISABLE_STOP_ON_REMOVAL\" != yes ; then \n              for service in %{?*} ; do \n                 /etc/init.d/$service stop > /dev/null \n              done \n           fi \n        fi \n        %nil\n-14: suse_check\t\n        %{?buildroot:RPM_BUILD_ROOT=\"%{buildroot}\"\n        export RPM_BUILD_ROOT}\n        test -x /usr/sbin/Check -a $UID = 0 -o -x /usr/sbin/Check -a ! -z \"$RPM_BUILD_ROOT\" && {\n            echo \"I call /usr/sbin/Check...\"\n            /usr/sbin/Check\n        }\n-14: suse_update_config(fcl)\t\n    AUTOMAKE_DIR=/usr/share/automake \n    [ -d $AUTOMAKE_DIR ] || AUTOMAKE_DIR=/usr/share/automake* \n    %{!-c:\n      [ -d $AUTOMAKE_DIR ] || { \n        echo 'Please, install automake.' \n        exit 1 \n      } \n    } \n    for d in . %{?*}; do \n      %{!-c:\n        for f in config.sub config.guess; do \n          if test -f $d/$f -a ! $d/$f -ef $AUTOMAKE_DIR/$f ; then \n            %{!-f:[ $d/$f -nt $AUTOMAKE_DIR/$f ] ||} cp -f $AUTOMAKE_DIR/$f $d/$f \n          fi \n\t  if test -d $d -a ! -f $d/depcomp -a -f $AUTOMAKE_DIR/depcomp ; then \n\t    cp -f $AUTOMAKE_DIR/depcomp $d/depcomp \n\t    echo \"please add depcomp to sources for new automake!\" \n\t  fi \n\t  if test -f $d/missing -a ! $d/missing -ef $AUTOMAKE_DIR/missing ; then \n\t     cp -f $AUTOMAKE_DIR/missing $d/missing \n\t  fi \n        done \n      } \n      %{!-l:\n        for f in ltconfig ltmain.sh; do \n          if test -f $d/$f; then \n\t    sed 's/linux-gnu\\([^*][^*]*\\)\\*/linux*\\1*/g; s/linux-gnu/linux/g; s,/lib\\>,/%_lib,g; s,/%_lib\\([$-]\\),/lib\\1,g' $d/$f > $d/$f-$$ && \n\t    mv -f $d/$f-$$ $d/$f \n\t    chmod +x $d/$f \n          fi \n        done \n      } \n    done\n-14: suse_update_desktop_file(cinrud)\t\n  /usr/lib/rpm/suse_update_desktop_file.sh %{-c:-c} %{-i:-i} %{-n:-n} %{-r:-r} %{-u:-u} %{-d:-d} %* || exit 1 \n  %nil\n-14: suse_update_libdir\t\n   if [ %_lib != lib ]; then \n     for file in %{?*} ; do \n        [ ! -e $file ] && echo \"Error:  $file does not exist!\" && exit -1 \n        [ -e $file.nolib64 ] && echo \"Error:  $file.nolib64 already exists!\" && exit -1 \n        cp $file $file.nolib64 \n        echo \"patching $file\" \n        sed -e \"s,/lib\\>,/%_lib,g\" $file.nolib64 | sed -e \"s,/%_lib/cpp,/lib/cpp,; s,/usr/%_lib/perl,/usr/lib/perl, ; s,/%_lib\\([$-]\\),/lib\\1,g\" > $file \n        rm -f $file.nolib64 \n     done; \n   fi ;\n-14: suse_version\t930\n-14: suseconfig_fonts_prereq\tperl aaa_base\n-14: sysc_fillup\t\n\tif [ -f $SYSC_TEMPLATE ] ; then \n\t    echo \"Updating etc/sysconfig/$SD_NAME$PNAME...\" \n\t    if [ ! -d etc/sysconfig/$SD_NAME ] ; then \n\t\tmkdir -p etc/sysconfig/$SD_NAME \n\t    fi \n\t    if [ -f etc/rc.config.d/$PNAME.rc.config ] ; then \n\t\tif [ -f etc/sysconfig/$SD_NAME$PNAME ] ; then \n\t\t    bin/fillup -q etc/sysconfig/$SD_NAME$PNAME etc/rc.config.d/$PNAME.rc.config \n\t\t    rm -f etc/rc.config.d/$PNAME.rc.config \n\t\telse \n\t\t    mv etc/rc.config.d/$PNAME.rc.config etc/sysconfig/$SD_NAME$PNAME \n\t\tfi \n\t    fi \n\t    if [ ! -f etc/rc.config ] ; then \n\t\ttest -f etc/sysconfig/$SD_NAME$PNAME || touch etc/sysconfig/$SD_NAME$PNAME \n\t\tbin/fillup -q etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE \n\t    else \n\t        if [ ! -f etc/sysconfig/$SD_NAME$PNAME ] ; then \n\t\t    bin/fillup -q -r -i etc/rc.config $SYSC_TEMPLATE etc/sysconfig/$SD_NAME$PNAME \n\t        else \n\t\t    bin/fillup -q -r -i etc/rc.config $SYSC_TEMPLATE etc/sysconfig/$SD_NAME$PNAME.tmp \n\t\t    bin/fillup -q etc/sysconfig/$SD_NAME$PNAME etc/sysconfig/$SD_NAME$PNAME.tmp \n\t\t    rm -f etc/sysconfig/$SD_NAME$PNAME.tmp \n\t        fi \n\t        if [ -f etc/rc.config.new ] ; then \n\t\t    mv etc/rc.config.new etc/rc.config \n\t        fi \n\t    fi\n\tfi\n-14: tcl_version\t%(echo 'puts [package require Tcl]' | tclsh)\n-14: ul_version\t0\n-14: verify_permissions(:-:)\t\n   if test -f /etc/sysconfig/security ; then \n      source /etc/sysconfig/security \n   fi \n   PERMFILES=\"/etc/permissions\" \n   for PERMEXT in $PERMISSION_SECURITY ; do \n     if test -f /etc/permissions.$PERMEXT ; then \n       PERMFILES=\"$PERMFILES /etc/permissions.$PERMEXT\" \n     fi \n   done \n   /usr/bin/chkstat -n %{**} $PERMFILES 1>&2 \n   %nil\n======================== active 314 empty 0\n"},{"id":"12191","messageId":"437D6D3F.4050904@zytor.com","threadId":"2521","inReplyTo":"437D6AD8.90907@gmail.com","subject":"Re: [PATCH] Small script to patch .spec for Suse","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-11-18T05:57:19Z","receivedAt":"2005-11-18T05:57:19Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"A Large Angry SCM wrote:\n> \n> Attached is the output of 'rpm --showrc' on my Suse 9.3 system.\n> \n> -14: _vendor\tsuse\n\n... looks promising.\n\n\t-hpa\n"}]}