From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 Date: Tue, 2 Nov 2010 01:09:25 +0300 From: Anatoly Bashmakov To: devel-newbies@lists.altlinux.org Message-ID: <20101101220924.GB2069@otherland.localdomain> References: <20101101205419.GA2069@otherland.localdomain> <20101101212457.GB13798@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101101212457.GB13798@altlinux.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [newbies] =?koi8-r?b?bmNtcGNwcC4g8NLPy8/NzcXO1MnS1crUxSwg0M/WwczV?= =?koi8-r?b?ytPUwSwg09DFyw==?= X-BeenThere: devel-newbies@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "devel@ where you _can_ ask" List-Id: "devel@ where you _can_ ask" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 22:09:48 -0000 Archived-At: List-Archive: --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Спасибо! Alexey I. Froloff wrote: > On Mon, Nov 01, 2010 at 11:54:19PM +0300, Anatoly Bashmakov wrote: > > %setup -n %name-%version > %setup Понял > > > %__sed -i -e 's,docdir = $(prefix)/share/doc/$(PACKAGE),#docdir = $(prefix)/share/doc/$(PACKAGE),' Makefile.am > > %__sed -i -e 's,docdir = $(prefix)/share/doc/$(PACKAGE),#docdir = $(prefix)/share/doc/$(PACKAGE),' doc/Makefile.am > sed -i -e '/^docdir = /d' Makefile.am doc/Makefile.am Думал, закомментировать понятнее будет, да и s/^docdir/#docdir/ хватило бы. > > > bzip2 --best --keep --force NEWS > Совершенно бессмысленная операция в %build. Это после install делать? Имеет смысл делать эту операцию вообще? Заметил в некоторых пакетах сжимают, в некоторых нет. > > > %make_install DESTDIR=%buildroot install > %makeinstall_std > > > %doc %dir %_docdir/%name-%version > > %doc %_docdir/%name-%version/AUTHORS > > %doc %_docdir/%name-%version/COPYING > > %doc %_docdir/%name-%version/NEWS.* > > %doc %_docdir/%name-%version/config > > %doc %_docdir/%name-%version/keys > Достаточно > %_docdir/%name-%version > удалив предварительно оттуда мусор (if any) в %install. Исправил. -- Anatoly --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=koi8-r Content-Disposition: attachment; filename="ncmpcpp.spec" %def_disable debug %def_disable static %def_enable outputs %def_enable visualizer %def_enable clock %def_enable unicode %def_with taglib %def_with iconv %def_with fftw %def_with curl Name: ncmpcpp Version: 0.5.5 Release: alt1 Summary: Music Player Daemon console client License: %gpl2only Group: Sound URL: http://unkart.ovh.org/ncmpcpp Source0: http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.5.tar.bz2 Packager: Anatoly Bashmakov BuildRequires(pre): rpm-build-licenses # Automatically added by buildreq on Sun Oct 24 2010 BuildRequires: gcc-c++ libcurl-devel libfftw3-devel libmpdclient-devel libncursesw-devel libtag-devel %{?_with_curl:BuildRequires: libcurl-devel} %{?_with_fftw:BuildRequires: libfftw3-devel} %{?_with_taglib:BuildRequires: libtag-devel} %{?_enable_unicode:BuildRequires: libncursesw-devel} %description Ncmpcpp has UI very similar to ncmpc's one, but it provides new useful features such as support for regular expressions in search engine, extended song format, items filtering, last.fm support, ability to sort playlist, local filesystem browser and other minor functions. %prep %setup %build # Put doc files to the right place sed -i -e '/^docdir = /d' Makefile.am doc/Makefile.am %autoreconf %configure \ %{subst_enable debug} \ %{subst_enable static} \ %{subst_enable outputs} \ %{subst_enable visualizer} \ %{subst_enable clock} \ %{subst_enable unicode} \ %{subst_with taglib} \ %{subst_with iconv} \ %{subst_with fftw} \ %{subst_with curl} \ --docdir=%_docdir/%name-%version %make_build %install %makeinstall_std %files %_docdir/%name-%version/* %_bindir/* %_man1dir/* %changelog * Sat Oct 23 2010 Anatoly Bashmakov 0.5.5-alt1 - 0.5.5. Initial build --A6N2fC+uXW/VQSAv--