From: Hihin Ruslan <ruslandh@altlinux.ru> To: devel@lists.altlinux.org Subject: [devel] Множественные зависимости xdtv Date: Sun, 27 May 2007 12:27:53 +0400 Message-ID: <200705271227.59094@ruslandh> (raw) [-- Attachment #1.1: Type: text/plain, Size: 1130 bytes --] Здравствуйте ! Хотел задать несколько вопросов : Пакет xdtv может различный внешний вид в зависимомти от того, с какими библиотеками он линкуется : http://xawdecode.sourceforge.net/htmlpageUS/xawGUI-US.html Мне не хотелось-бы выбирать за пользователя внешний вид программы. Как сделать так, что-бы xdtv был слинкован со всеми этими библиотеками, но не имел-бы зависимость не на одну из них них конкретно ? Я попытался сделать это таким образом : Создать пустой пакет, на который "перевести" зависимости на эти библиотеки. Но знаю, что это неправильно (ненужный не кому пустой пакет, пользователь может вообще не установить не одного пакета), а как правильно ? Т.е. как правильно оформлять зависимости вида : - один из множестважа; - один из множества или пусто (т.е. один из множества пакетов или ничего). - как правильно "отменять" зависимость пакета, несмотря на то, что пакет строился с этой библиотекой ? %package -n %{name}-dummy Summary: Developpement files for XdTV Group: Development/C ........ Requires: libneXtaw Requires: libXaw95 Requires: libXaw3d Requires: libXawM1 -- С уважением Xихин Руслан [-- Attachment #1.2: xdtv.cvs.spec --] [-- Type: text/plain, Size: 11779 bytes --] ############################################################################## # $Id: xdtv.spec.in,v 1.26 2006/01/27 20:38:14 pingus77 Exp $ ############################################################################## # Minimum required is: X11 & XPM & Xaw from X.org + Xterm # # Optional: # To have a better GUI: # neXtaw (0.15.1) from http://siag.nu/neXtaw/ # or XawM from http://sourceforge.net/projects/xawm/ # or Xaw95 & Xaw3d (not advised) # # To Record with a lot of audio/video codecs: # FFMpeg (50.0.0+) from http://ffmpeg.sourceforge.net/ read README.ffmpeg for more infos # Lame (3.96+)from http://lame.sourceforge.net/ # XviD (1.x+) from http://www.xvid.org/ # DivX (5.0.1alpha only) from http://www.divx.com/divx/linux/ # Ogg (1.1.2+) & Theora (1.0alpha5) & Vorbis (1.1.0+) from http://www.xiph.org/ # # Other options: # Zvbi (0.2.15+) from http://zapping.sourceforge.net/ (Scanning channels and get their names # Alsa (1.x) from http://www.alsa-project.org/ (Better sound architecture than OSS) # Lirc (0.7.x+) from http://www.lirc.org/ (If you have a remote and want to use it) # libpng & libjpeg (For capturing AleVT & XdTV snapshots) ############################################################################## #set_verify_elf_method textrel=relaxed %set_automake_version 1.9 %set_autoconf_version 2.5 %define cvsversion cvs20070519 %define new_name xawdecode Name: xdtv Summary: XdTV is a software to record & watch TV Version: 2.4.0. Release: alt0.3.%cvsversion License: GPL Url: http://xawdecode.sourceforge.net/ Packager: Hihin Ruslan <ruslandh@altlinux.ru> Source0: %new_name-%cvsversion.tar.bz2 Source1: %name.desktop Patch0: xawdecode-autotols_new.patch Patch1: xdtv-2.4.cvs20070519-mini-alevt.patch Patch2: xdtv-2.4.cvs20070519.ffmpeg-record.patch Patch3: xdtv-2.4.cvs20070519-tv_debug.patch Patch4: xdtv-2.4.cvs20070519-right.patch Group: Video %def_disable optimization #def_disable cpu-detection %def_disable debug %def_enable mmx # Defaults : %def_enable nls %def_enable pixmaps %def_enable xinerama %def_enable nextaw %def_enable xawm %def_enable xaw95 %def_enable xaw3d %def_enable ogg %def_enable xvid %def_enable ffmpeg %def_disable divx4linux %def_enable lame %def_enable dvb %def_enable zvbi %def_enable lirc %def_enable alsa %def_enable png %def_enable jpeg %def_enable faac %def_enable mowitz %def_enable xvtv %def_enable x264 %define Name XdTV %define summary1 %name is a software to record & watch TV. %define tvtuner_launcher %_desktopdir # Automatically added by buildreq on Mon Mar 27 2006 BuildRequires: libX11-devel bdftopcf gcc-c++ imake libXv-devel libXxf86dga-devel BuildRequires: libXxf86vm-devel mkfontdir xorg-cf-files xset BuildPreReq: libX11-devel linux-libc-headers libXpm-devel libXaw-devel BuildPreReq: autoconf automake %if_enabled x264 BuildPreReq: libx264-devel %endif %if_enabled ogg BuildPreReq: libogg-devel libtheora-devel libvorbis-devel %endif %if_enabled xvid BuildPreReq: libxvid-devel %endif %if_enabled ffmpeg BuildPreReq: libffmpeg-devel %endif %if_enabled divx BuildPreReq: libavifile-devel %endif %if_enabled lame BuildPreReq: liblame-devel %endif %if_enabled dvb BuildPreReq: libdvbpsi-devel %endif %if_enabled zvbi BuildPreReq: libzvbi-devel %endif %if_enabled lirc BuildPreReq: liblirc-devel %endif %if_enabled alsa BuildPreReq: libalsa-devel %endif %if_enabled png BuildPreReq: libpng-devel %endif %if_enabled jpeg BuildPreReq: libjpeg-devel %endif %if_enabled faac BuildPreReq: libfaac-devel %endif %description XdTV is a software that allows you to to record & watch TV. It interacts with Nxtvepg for NextView, and uses the video4linux API. It can use some deinterlacing filters and can record video files in various containers (AVI, MPEG, OGG, etc.) with many codecs (FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis and DivX4/5). For AleVT for Teletext install libalevt It has also some plugin capabilities. %description -l ru_RU.CP1251 XdTV (О©╫О©╫О©╫О©╫О©╫О©╫О©╫X11 О©╫О©╫О©╫О©╫О©╫ О©╫ xawtv) О©╫ О©╫О©╫ О©╫ О©╫О©╫О©╫О©╫О©╫TV. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫AleVT О©╫ Teletext О©╫О©╫Nxtvepg О©╫ NextView, О©╫О©╫О©╫О©╫О©╫ video4linux API. О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫ FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫. О©╫ О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫libalevt %description -l ru_RU.CP1251 XdTV (ОПНЦПЮЛЛЮ ОНД X11 НЯМНБЮММЮЪ МЮ xawtv) ЩРН ЯНТР ДКЪ ОПНЯЛНРПЮ TV. нМЮ БГЮХЛНДЕИЯРБСЕР Я AleVT ДКЪ Teletext Х Я Nxtvepg ДКЪ NextView, ХЯОНКЭГСЕР video4linux API. лНФЕР ХЯОНКЭГНБЮРЭ ДЕХМРЕПКЕИЯ ТХКЭРПШ Х ГЮОХЯШБЮРЭ БХДЕН Я ОНЛНЫЭЧ ЙНДЕЙНБ: FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. хЛЕЧРЯЪ БНГЛНФМНЯРХ ОН ОНДЙКЧВЕМХЧ ОКЮЦХМНБ. дКЪ ХЯОНКЭГНБЮМХЪ РЕКЕРЕЙЯРЮ МЕНАУНДХЛН СЯРЮМНБХРЭ ОЮЙЕР libalevt %description -l ru_RU.KOI8-R XdTV (программа под X11 основанная на xawtv) это софт для просмотра TV. Она взаимодействует с AleVT для Teletext и с Nxtvepg для NextView, использует video4linux API. Может использовать деинтерлейс фильтры и записывать видео с помощью кодеков: FFMpeg(>=0.4.6), XviD(0.9 & 1.x), Ogg Theora (>=1.0alpha5) & Vorbis, DivX4/5. Имеются возможности по подключению плагинов. Для использования телетекста необходимо установить пакет libalevt. %package -n libalevt Summary: Developpement files for XdTV Group: Development/C %package -n %{name}-dummy Summary: Developpement files for XdTV Group: Development/C %if_enabled nextaw BuildPreReq: libneXtaw-devel %endif %if_enabled xawm BuildPreReq: libXawM1-devel %endif %if_enabled xaw95 BuildPreReq: libXaw95-devel %endif %if_enabled xaw3d BuildPreReq: libXaw3d-devel %endif %if_enabled xinerama BuildPreReq: libXinerama-devel %endif Requires: libXinerama Requires: libneXtaw Requires: libXaw95 Requires: libXaw3d Requires: libXawM1 Requires: liblirc %package -n libalevt-devel Summary: Developpement files for XdTV Group: Development/C Requires: libalevt = %version %description -n %{name}-dummy Virtual packet %description -n libalevt Teletext decoder and browser for the bttv driver. %description -n libalevt-devel Headers and tool for development with libalevt. %description -n libalevt -l ru_RU.UTF8 X11 п╠п╦п╠п╩п╦п╬я┌п╨п╟ п╢п╩я▐ п╢п╣п╨п╬п╢п╦я─п╬п╡п╟п╫п╦я▐ я┌п╣п╩п╣я┌п╣п╨я│я┌п╟. %description -n libalevt -l ru_RU.cp1251 X11 АХАКХНРЕЙЮ ДКЪ ДЕЙНДХПНБЮМХЪ РЕКЕРЕЙЯРЮ. %package OSD-font Summary: Font used by XdTV OSD function Group: Video %description OSD-font Font used by XdTV OSD function. %prep %setup -n %new_name -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %__autoreconf export FLAGS="%optflags -DNDEBUG -DNO_DEBUG -D_GNU_SOURCE " %configure \ %if_enabled optimization --enable-cpu-detection \ %else --disable-cpu-detection \ %endif --with-external-ffmpeg \ --with-gnu-ld \ --with-pic \ --with-x \ --enable-smallfont \ --disable-x11-ext-checking \ --with-fontdir=%buildroot%_x11fontsdir/%name \ --with-appdefaultsdir=%_x11appconfdir \ %{subst_enable mmx} \ %{subst_enable nls} \ %{subst_enable pixmaps} \ %{subst_enable debug} \ %{subst_enable xinerama} \ %{subst_enable ogg} \ %{subst_enable x264} \ %{subst_enable xvtv} \ %{subst_enable divx} \ %{subst_enable xvid} \ %{subst_enable ffmpeg} \ %{subst_enable lame} \ %{subst_enable zvbi} \ %{subst_enable lirc} \ %{subst_enable dvb} \ %{subst_enable alsa} \ %{subst_enable jpeg} \ %{subst_enable png} \ %{subst_enable nextaw} \ %{subst_enable xawm} \ %{subst_enable faac} \ %{subst_enable xaw95} \ %{subst_enable xaw3d} \ %{subst_enable mowitz} \ export ROOT=%buildroot/usr %make_build %install %makeinstall ROOT=%buildroot \ SUID_ROOT="" \ libdir=%buildroot/%_libdir \ # Cure man path if needed install -d -m 755 %buildroot%_includedir/libalevt install -m 644 alevt/*.h %buildroot%_includedir/libalevt install -d -m 755 %buildroot%_man1dir install -m 644 man/%name.1 %buildroot%_man1dir install -m 644 man/%{name}_cmd.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt-cap.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt-date.1 %buildroot%_man1dir install -m 644 man/%{name}_alevt.1 %buildroot%_man1dir # Dynamic desktop support mkdir -p %buildroot/%tvtuner_launcher cp %{SOURCE1} %buildroot/%tvtuner_launcher/ # menu install -pD -m 644 %name-16.png %buildroot/%_miconsdir/%name.png install -pD -m 644 %name-32.png %buildroot/%_iconsdir/%name.png install -pD -m 644 %name-48.png %buildroot/%_liconsdir/%name.png %files %doc AUTHORS COPYING INSTALL FAQfr-xdtv TODO %doc README README.dvb README.record README.bs README.ffmpeg README.streaming %doc README.bsd README.gentoo README.xvid README.buildme README.lirc %doc README.deinterlace README.plugins ChangeLog lisez-moi xdtvrc.sample %doc lircrc.miro.sample lircrc.hauppauge.sample lircrc.animax.sample %doc lircrc.WinfastTV2000.sample %dir %_sysconfdir/%name %_sysconfdir/%name/%{name}_wizard-en.conf %_sysconfdir/%name/%{name}_wizard-en-UTF8.conf %_bindir/%name %_bindir/%{name}_cmd %_bindir/%{name}_wizard %_bindir/%{name}_scantv %_bindir/%{name}_alevt-cap %_bindir/%{name}_alevt-capall %_bindir/%{name}_alevt-date %_bindir/%{name}_v4l-conf %_bindir/%{name}_scan.sh %_bindir/%{name}_record.sh %_bindir/%{name}_makedvd.sh %_man1dir/* %_datadir/%name/icons/* %_x11appconfdir/* #_menudir/%name #_menudir/%{name}_wizard %_iconsdir/%name.png %_miconsdir/%name.png %_liconsdir/%name.png %_desktopdir/*.desktop %files -n %{name}-dummy %files -n libalevt %_libdir/*.so.* #exclude %_libdir/libalevt.la #exclude %_libdir/libalevt.a %files -n libalevt-devel %_includedir/* %_libdir/*.so %files OSD-font %dir %_x11fontsdir/xdtv %_x11fontsdir/xdtv/* %post -n libalevt %post_ldconfig %postun -n libalevt %postun_ldconfig %post OSD-font %_sbindir/chkfontpath -q --add %_x11fontsdir/%name ||: %postun OSD-font if [ "$1" = "0" ]; then %_sbindir/chkfontpath -q --remove %_x11fontsdir/%name ||: fi %changelog * Sun May 27 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0.-alt0.3.cvs20070519 - add xdtv-2.4.cvs20070519-right.patch * Sun May 20 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0.cvs20070519-alt0.1 - cvs version * Thu May 17 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt2.4 - add --enable-mmx * Tue May 08 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt2.3 - correct xdtv.desktop * Mon May 07 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt2.2 - correct xdtv.desktop * Sun Mar 11 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt2.1 - correct xdtv-2.4.0-alevt.patch * Sun Feb 25 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt2 - new version - add dynamic libalevt.so - patch ffmpeg-record from Alexey V. Novikov - add key --with-external-ffmpeg - correct spec * Sat Sep 23 2006 Hihin Ruslan <ruslandh@altlinux.ru> 2.4.0-alt1.pre0 - first version for ALT-Linux * Sat Jul 22 2006 Hihin Ruslan <hihin_c@t_narod_dot_ru> 2.4.0pre0-alt1a - add menu and desktop * Wed Jul 19 2006 Sergei Epiphanov <serpiph@altlinux.ru> 2.4.0pre0-alt1 - Updated version to 2.4.0pre0 - Cleanup spec * Thu Dec 22 2005 Sir Pingus <pingus_77@yahoo.fr> 2.3.0-1mdk - 2.3.0 - review all the spec: now -with / without can be use with rpmbuild [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-05-27 8:27 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-27 8:27 Hihin Ruslan [this message] 2007-05-27 9:50 ` Andrey Rahmatullin 2007-05-27 10:35 ` Hihin Ruslan 2007-05-27 11:54 ` Andrey Rahmatullin 2007-05-27 12:01 ` Hihin Ruslan 2007-05-27 12:06 ` Andrey Rahmatullin 2007-05-27 15:39 ` Hihin Ruslan 2007-05-27 15:52 ` Andrey Rahmatullin 2007-05-27 16:05 ` Hihin Ruslan 2007-05-27 16:24 ` Andrey Rahmatullin 2007-05-27 16:35 ` Hihin Ruslan 2007-05-27 16:48 ` Hihin Ruslan 2007-05-27 9:57 ` Michael Shigorin 2007-05-27 10:19 ` Hihin Ruslan 2007-05-27 10:54 ` Pavlov Konstantin 2007-05-27 11:31 ` Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200705271227.59094@ruslandh \ --to=ruslandh@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git