Forum

Pacchetto pytube
 
Notifiche
Cancella tutti

Pacchetto pytube

14 Post
2 Utenti
0 Reactions
3 Visualizzazioni
Post: 140
 gil
(@gil)
Registrato: 19 anni fa

ciao

puoi anche definire la versione quando come in questo caso é composta cosi 0.8.0-1(-1 se non misbaglio dovrebbe indicare la release)

la parte finale la puoi omettere se

utilizzi -v con autospec

esempio

autospec -s *url* -v 0.8.0 -t standard -o /usr/.... ecc

in questo caso la versione reale é 1_0_0_3

%define sourcever %(echo %version | tr . _)

Version: 1.0.0.3

...

...

Source: http:XXXXXXXXX_%{sourcever}_source_code_only.zip

%define realversion 3.0-0602

%define dotversion %(echo %{realversion} | sed 's/-/./g')

Name: emr

Version: %{dotversion}

Source0: http:****-%{realversion}.tgz

%define majver %(echo %version | cut -d. -f 1-2)

Name: libgnome

Version: 2.22.0

Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome/ %{majver}/%{name}-%{version}.tar.bz2

poi non saprei che esempi farti ..


Rispondi
Post: 285
Topic starter
(@marcpaa)
Registrato: 19 anni fa

Ciao Gil,purtroppo per te........ :-)))) mi occorre ancora un aiuto!!!

Ho seguito le tue istruzioni ed ho scelto quella più facile, ho usato il -v e quindi diventa versione 0.8.0 (almeno da quello che ho capito)

Ho per caso allo spec devo aggiungere altro? se si,ti chiedo gentilmente di usare come esempio lo spec che ti ho postato (dvd-slideshow) in modo che rendo conto in modo diretto delle differenze.

Pensando che così vada bene ho provato a compilarlo:


[marco@linux ~]$ autospec -u -a5,6 dvd-slideshow.spec

aggiornamento del pacchetto dvd-slideshow alla versione [?]...

[step 5] -- creazione dei pacchetti rpm e srpm

* trovato build requirement: `ImageMagick' (ImageMagick-6.4.1-2mamba.i586)

* trovato build requirement: `dvdauthor' (dvdauthor-0.6.14-2mamba.i586)

* trovato build requirement: `ffmpeg' (libffmpeg-20080504-2mamba.i586)

* trovato build requirement: `mjpegtools' (mjpegtools-1.8.0-2mamba.i586)

* trovato build requirement: `sox' (sox-14.0.0-1mamba.i586)

* trovato build requirement: `urw-fonts' (urw-fonts-1.0-4qilnx.noarch)

esecuzione dei test sullo specfile...

error: line 28: Bad %setup option -n: missing argument

ERROR: rpmbuild è terminato con il codice d'errore `1'

[marco@linux ~]$


Qst è il risultato, allora ho provato a togliere il -n al setup

e quindi:


[marco@linux ~]$ autospec -u -a5,6 dvd-slideshow.spec

aggiornamento del pacchetto dvd-slideshow alla versione [?]...

[step 5] -- creazione dei pacchetti rpm e srpm

* trovato build requirement: `ImageMagick' (ImageMagick-6.4.1-2mamba.i586)

* trovato build requirement: `dvdauthor' (dvdauthor-0.6.14-2mamba.i586)

* trovato build requirement: `ffmpeg' (libffmpeg-20080504-2mamba.i586)

* trovato build requirement: `mjpegtools' (mjpegtools-1.8.0-2mamba.i586)

* trovato build requirement: `sox' (sox-14.0.0-1mamba.i586)

* trovato build requirement: `urw-fonts' (urw-fonts-1.0-4qilnx.noarch)

esecuzione dei test sullo specfile...

creazione dei pacchetti rpm e srpm...

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.65858

+ umask 022

+ cd /usr/src/RPM/BUILD

+ cd /usr/src/RPM/BUILD

+ rm -rf dvd-slideshow-0.8.0

+ tar -xf /usr/src/RPM/SOURCES/dvd-slideshow-0.8.0-1.tar.gz

tar: This does not look like a tar archive

tar: Skipping to next header

tar: Error exit delayed from previous errors

error: Bad exit status from /var/tmp/rpm-tmp.65858 (%prep)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.65858 (%prep)

ERROR: rpmbuild è terminato con il codice d'errore `1'

[marco@linux ~]$


Sono nel pallone..................che fò adesso? un saluto


Rispondi
Post: 140
 gil
(@gil)
Registrato: 19 anni fa

ciao

per omogenita con gli altri specfile

si dovrebbe fare cosi

inserire i buildrequires dopo la licenza

adesso provo a farlo anche io e ti posto il risultato (mi diverto di piu a pacchettizzare che a utilizzare i sw...)

Name: dvd-slideshow

Version: 0.8.0-1

Release: 1mamba

Summary: Creates a DVD slideshow with menus and effects from a list of images

Group: Applications/Multimedia

Vendor: openmamba

Distribution: openmamba

Packager: *************************************

URL: http://dvd-slideshow.sourceforge.net

Source: http://mesh.dl.sourceforge.net/dvd-slideshow-%{version}.tar.gz

License: GPL

## AUTOBUILDREQ-BEGIN

BuildRequires: ImageMagick

BuildRequires: dvdauthor

BuildRequires: ffmpeg

BuildRequires: mjpegtools

BuildRequires: sox

BuildRequires: urw-fonts

## AUTOBUILDREQ-END

BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description

DVD-slideshow makes a DVD slideshow video with menus from a batch of pictures. It consists of a set of scripts: * dvd-slideshow reads a text file list of all the pictures you want in one slideshow and creates a DVD-compatible MPEG movie with your audio track and specified timing. * dvd-menu makes a top-level DVD menu with the output files from dvd-slideshow or your own movies. * dir2slideshow makes the input file for dvd-slideshow from a directory of pictures. * gallery1-to-slideshow makes the input file for dvd-slideshow from your Gallery v1.x album. * jigl2slideshow makes the input file for dvd-slideshow from your jigl album. NOTE: You'll need an ogg or mp2 or mp3 decoder if you wish to add audio.


Rispondi
Post: 285
Topic starter
(@marcpaa)
Registrato: 19 anni fa

Beato te io ancora non ne risolvo nemmeno una (anzi una l'ho risolta era devede,ma in pratica e come se l'ho avessi fatto tu) e ne ho un elenco.

Un saluto alla prossima


Rispondi
Pagina 3 / 3
Condividi: