Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Yoric Kotchukov                      2:50/913.47    29 Mar 2003  14:18:08
 To : Vladimir Bormotov
 Subject : Re: rpm -bb blah.spec
 -------------------------------------------------------------------------------- 
 
 .RFC-X-Complaints-To: news@p47.f913.n50.z2.fidonet.org
 .RFC-NNTP-Posting-Date: 29 Mar 2003 06:18:11 GMT
 .RFC-X-Sender: globus@haus.localdomain
 .RFC-In-Reply-To: <m33cl8lgu4.fsf@vb.dn.ua>
 
 n> <m33cl8lgu4.fsf@vb.dn.ua>
 
  Здравствуйте!
 
 Mar 29, от Vladimir Bormotov прибыло: >
 
 >Вот только --rebuild пытается после сборки устанавливать собранный пакет,
 >>>> ??!
 >>>Видимо имелись ввиду криво написанные .spec,
 >>>в которых make install делается без всяких там
 >>>DESTDIR=bla-bla-bla
 
 YK> А если присутствует DESTDIR=/usr/local (например), 
 > 
 > давайте перейдем от абстрактных пирмеров, к конкретным.
 
 Это был вопрос.
 
 YK> то ставиться будет в него, не перекрывая оригинал?  То есть всё равно
 YK> в .спек-е надо проверять, не установлен ли уже такой пакет и прочие
 YK> несовместимые условия? 
 YK> А также, только ".spec" должен разрешать все конфликтные ситуации?
 >
 > http://www.rpm.org/max-rpm/
 
 Hу мы же всё-таки в Фидо, а не в интернете...
 
 >>>Я таких полно видел.
 >>>Hапример Вагнеровский catdoc в suse-73:
 >>>%install
 >>>make install
 >>>%files
 >>>Прямо вот так по-живому и ставят...
 >
 YK> Вот-вот, во всех имеющихся у меня *src.rpm (частью из RH5.0, частью из
 YK> MDK8.0 Spring RE, кол-во ~=20 шт.) именно так.  Буду знать теперь...
 >
 > где какашки подсовывают?
 > 
 > Про пакеты из RH5.0 можно давно забыть, а про Mdk8.0, даже не знаю, че-то
 > мне не верится что там все так плохо ;)
 
 1) Вот .спек, который в src.rpm рядом с tar.gz:
 
 1)----начало---------------
 %define name     recode
 %define ver      3.5e
 %define rel       ipl3mdk
 
 Summary: The `recode' library converts files between character sets and usages.
 Name:     %name
 Version:  %ver
 Release:  %rel
 Copyright: GPL
 Group:    Text tools
 Source:    http://www.iro.umontreal.ca/contrib/recode/%{name}-%{ver}.tar.bz2
 URL:   http://www.iro.umontreal.ca/~pinard/
 
 %description
 The `recode' library converts files between character sets and usages.
 The library recognises or produces nearly 150 different character sets
 and is able to transliterate files between almost any pair.  When
 exact transliteration are not possible, it may get rid of the
 offending characters or fall back on approximations.  Most RFC 1345
 character sets are supported.  The `recode' program is a handy
 front-end to the library.
 
 The `recode' program and library have been written by FranГois Pinard.
 It is an evolving package, and specifications might change in future
 releases.  Option `-f' is now fairly implemented, yet not fully.
 
 %package devel
 Summary:  Libraries and include files for developing applications using the
 `recode' library.
 Group:    Development/Other
 
 %description devel
 This package provides the necessary development libraries and include
 files to allow you to develop applications using the `recode' libraries.
 %prep
 %setup -q
 
 %build
 if [ ! -f configure ]; then
   CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh \
   --prefix=%{_prefix} 
 else
   CFLAGS="$RPM_OPT_FLAGS" ./configure  \
   --prefix=%{_prefix}
 fi
 
 %make_build
 
 %install
 
 make install-strip \
   prefix=$RPM_BUILD_ROOT%{_prefix} \
   infodir=$RPM_BUILD_ROOT%{_infodir} \
   mandir=$RPM_BUILD_ROOT%{_mandir}
 
 cd $RPM_BUILD_ROOT%{prefix}/lib
 strip --strip-debug *.so*
 strip --strip-debug *.a*
 cd -
 %clean
 
 %post
 if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
   echo "%{prefix}/lib" >> /etc/ld.so.conf
 fi
 
 [ -x /sbin/ldconfig ] && /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(-, bin, bin)
 
 %doc ABOUT-NLS AUTHORS BACKLOG COPYING COPYING-LIB ChangeLog INSTALL THANKS TODO
 %{_bindir}/*
 %{_libdir}/*.so*
 %{_infodir}/recode*
 %{_mandir}/man1/*
 %{_datadir}/locale/*
 
 %files devel
 %defattr(0555, bin, bin)
 
 %{_includedir}/*
 %{_libdir}/*.a
 %{_libdir}/*.la
 %changelog 
 * Sun Feb 18 2001 AEN <aen@logic.ru>
 - group names changed
 * Fri Jan 05 2001 AEN <aen@logic.ru>
 - rebuild for Sisyphus
 * Fri Sep 29 2000 AEN <aen@logic.ru>
 - build 3.5e for RE
 * Thu Jun 29 2000 David Lebel <lebel@lebel.org>
 - Initial public release of this SPEC file.
 1)--конец---------------
 2) А вот .спек, который внутри tar.gz, который, в свою очередь, внутри
 src.rpm (какой высокопоэтичный оборот получился). Кстати, в каком случае
 какой .спек используется? Первый - "rpm --rebuild *.src.rpm",
 а второй - "rpm -tb|bb *.spec"? Или зачем их два?
 
 2) ----начало-----------
 # RPM spec file for Free recode.
 # Copyright (C) 2000 Progiciels Bourbeau-Pinard inc.
 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 2000.
 
 Name:    recode
 Version: 3.5d
 Release: 1
 Summary: Converter between charsets and surfaces
 Group:   Utilities/Text
 
 Vendor:    Progiciels Bourbeau-Pinard inc.
 Copyright: GPL, LGPL
 Packager:  Franc,ois Pinard <pinard@iro.umontreal.ca>
 
 Source: http://www.iro.umontreal.ca/contrib/recode/recode-3.5d.tar.gz
 URL:    http://www.iro.umontreal.ca/contrib/recode/HTML
 
 Buildroot: /bpi/titan/home/pinard/.rpm
 
 %description
 The recode library converts files between character sets and usages.
 It recognises or produces more than 300 different character sets
 and transliterates files between almost any pair.  When exact
 transliteration are not possible, it gets rid of offending characters
 or fall back on approximations.  The recode program is a handy
 front-end to the library.
 
 %prep
 %setup
 %patch
 
 %build
 
 %install
 
 %files
 %doc /usr/doc/packages/recode/README
 %doc /usr/doc
 /usr/bin/recode
 /usr/include/recode.h
 /usr/include/recodext.h
 /usr/info/recode.info*.gz
 /usr/lib/librecode.a
 /usr/lib/librecode.la
 /usr/man/man1/recode.1.gz
 /usr/share/locale/*/LC_MESSAGES/recode.mo
 2)-----конец----------
 
 Как говаривал Чингачкук, "я всё сказал".
 
  Спасибо за внимание.
  Всего хорошего.
  Йорик.
 
 --- ifmail v.2.14.os7-aks5
  * Origin: << Haus >> (2:50/913.47@fidonet)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: rpm -bb blah.spec   Yoric Kotchukov   29 Mar 2003 14:18:08 
Архивное /ru.linux/147417b26a9af.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional