From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Date: Wed, 11 Jun 2008 18:31:47 +0300 From: Igor Vlasenko To: ALT Linux Team development discussions Message-ID: <20080611153146.GA27304@dad.imath.kiev.ua> References: <484FFB9B.5050207@rambler.ru> <20080611145023.GA26358@dad.imath.kiev.ua> <20080611194044.GE17621@hell.fortress> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080611194044.GE17621@hell.fortress> User-Agent: Mutt/1.5.17 (2007-11-01) Received-SPF: pass (dad.imath.kiev.ua: domain of vlasenko@dad.imath.kiev.ua designates 127.0.0.1 as permitted sender) receiver=dad.imath.kiev.ua; client-ip=127.0.0.1; helo=dad.imath.kiev.ua; envelope-from=vlasenko@dad.imath.kiev.ua; x-software=spfmilter 0.95 http://www.acme.com/software/spfmilter/ with libspf2; Subject: Re: [devel] =?utf-8?b?0JrQvtCz0LTQsCDQv9C+0Y/QstC40YLRgdGPINC90L4=?= =?utf-8?b?0LLQsNGPIGxpYnF1aWNrdGltZT8=?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 19:59:06 -0000 Archived-At: List-Archive: List-Post: On Wed, Jun 11, 2008 at 11:40:44PM +0400, Alexey I. Froloff wrote: > * Igor Vlasenko [080611 23:22]: > > Я вот в апреле nmu получал. > > Запомнилось... > Ну согласись, что повод (%update_menus/%update_descktopdb) был > так себе. И решалась проблема другими способами. (%update_menus/%update_descktopdb) был выбран, поскольку на чем-то безвредном хотелось попробовать. На собаках, так сказать... Дальше веселее пошло бы. Машинизация по Винтику и Шпунтику. Например, программа, которая при наличии в пакете хоть какой-то пиктограммы добавляет команды, которые ее смасштабируют и разложат в правильные места; или устаревшие макросы поправят; или статическую библиотеку выделят в -devel-static подпакет; или ... Там можно весьма нетривиальные изменения в спеках программировать, вот например правки к спекам tomcat5: ------------------ #!/usr/bin/perl -w require 'set_fix_homedir_macro.pl'; push @SPECHOOKS, sub { my ($jpp, $alt) = @_; # BUG to report (5.5.25 1-fc9) too $jpp->get_section('build')->subst(qr'%{java.home}','%{java_home}'); # fedora specific (5.5.25 1-fc9) $jpp->get_section('package','')->push_body('BuildRequires: zip'."\n"); # break build with java 1.5.0 #Patch19: %{name}-%{majversion}-connectors-util-build.patch $jpp->get_section('prep')->subst(qr'%patch19 -b .p19','#%patch19 -b .p19'); #$jpp->get_section('prep')->subst(qr'%patch20 -b .p20','#%patch20 -b .p20'); #Patch21: %{name}-%{majversion}-acceptlangheader.patch $jpp->get_section('prep')->subst(qr'%patch21 -b .p21','#%patch21 -b .p21'); # to make them 1.4, not 1.5 $jpp->get_section('build')->subst(qr'ant\s+-Dservletapi.build="build"','ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -Dservletapi.build="build"'); # end fedora specific $jpp->get_section('package','server-lib')->push_body('Requires: jaf javamail'."\n"); $jpp->get_section('package','')->push_body('Provides: %{name}-server = %{version}-%{release}'."\n"); $jpp->get_section('package','')->push_body('Obsoletes: %{name}-server <= 5.5.16-alt1.1'."\n"); $jpp->get_section('package','admin-webapps')->push_body('Provides: %{name}-admin-webapps = %{version}-%{release}'."\n"); $jpp->raw_rename_section('admin-webapps','webapps-admin'); # #14415 $jpp->get_section('description','')->subst(qr'We invite you to participate in this open development project. To',''); $jpp->get_section('description','')->subst(qr'learn more about getting involved, click here.',''); $jpp->get_section('pre')->subst(qr'-[gu] %\{tcuid\}',''); # a part of #%post_service %name that is not implemented there: # condrestart on upgrade $jpp->get_section('post')->push_body('/sbin/service %name condrestart'."\n"); # merge from old alt tomcat5: # do we really need all of this? $jpp->get_section('post','webapps')->push_body(q'/sbin/service %name condrestart '); $jpp->get_section('post','webapps-admin')->push_body(q'/sbin/service %name condrestart '); $jpp->get_section('preun','webapps')->push_body(q'[ $1 != 0 ] || /sbin/service %name condrestart '); $jpp->get_section('preun','webapps-admin')->push_body(q'[ $1 != 0 ] || /sbin/service %name condrestart '); # todo: make an extension? $jpp->get_section('install')->push_body('mkdir -p $RPM_BUILD_ROOT/%_altdir/ cat >>$RPM_BUILD_ROOT/%_altdir/servletapi_%{name}<get_section('files','servlet-2.4-api')->push_body('%_altdir/servletapi_*'."\n"); $jpp->get_section('post','servlet-2.4-api')->push_body('%register_alternatives servletapi_%{name}'."\n"); $jpp->get_section('postun','servlet-2.4-api')->push_body('%unregister_alternatives servletapi_%{name}'."\n"); $jpp->get_section('install')->push_body( q' %triggerpostun -- tomcat5-server <= 5.5.16-alt1.1 for i in common/classes common/endorsed common/lib shared/classes shared/lib webapps; do if [ -d /usr/lib/tomcat5/$i ]; then echo "upgrade: moving old /usr/lib/tomcat5/$i to /var/lib/tomcat5/$i" mv -f /usr/lib/tomcat5/$i/* /var/lib/tomcat5/$i/ fi done || : '); } __DATA__ todo: verify logrotate -- Dr. Igor Vlasenko -------------------- Topology Department Institute of Math Kiev, Ukraine