rpm for ffdiaporama

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

rpm for ffdiaporama

Postby dglent » Mar 5th, '12, 19:31

I build the rpm for the program ffdiaporama
http://download.tuxfamily.org/ffdiapora ... 303.tar.gz
http://ffdiaporama.tuxfamily.org/?page_id=178

and in my computer mageia 1 64bit everything goes well, i try to build it in a 32bit (in my wife's laptop, mageia 1, 32bit) and it fails with the follow message:

Code: Select all
../sharedfiles/DlgCheckConfig.cpp: In member function ‘virtual void DlgCheckConfig::DoInitDialog()’:
../sharedfiles/DlgCheckConfig.cpp:103:101: erreur: ‘EXIV2_MAJOR_VERSION’ was not declared in this scope
../sharedfiles/DlgCheckConfig.cpp:103:126: erreur: ‘EXIV2_MINOR_VERSION’ was not declared in this scope
../sharedfiles/DlgCheckConfig.cpp:103:151: erreur: ‘EXIV2_PATCH_VERSION’ was not declared in this scope
../sharedfiles/DlgCheckConfig.cpp:119:99: erreur: ‘TAGLIB_MAJOR_VERSION’ was not declared in this scope
../sharedfiles/DlgCheckConfig.cpp:119:125: erreur: ‘TAGLIB_MINOR_VERSION’ was not declared in this scope
../sharedfiles/DlgCheckConfig.cpp:119:151: erreur: ‘TAGLIB_PATCH_VERSION’ was not declared in this scope
make[1]: *** [../../../build/src/ffDiaporama/DlgCheckConfig.o] Erreur 1
make[1] : on quitte le répertoire « /home/myriam/rpm/BUILD/ffdiaporama/src/ffDiaporama »
make: *** [sub-src-ffDiaporama-make_default] Erreur 2
erreur: Mauvais status de sortie pour /home/myriam/rpm/tmp/rpm-tmp.Pmk6iE (%build)


Erreur de construction de RPM:
    Mauvais status de sortie pour /home/myriam/rpm/tmp/rpm-tmp.Pmk6iE (%build)
[myriam@localhost SPECS]$


In my system , the 64bit, i have these packages installed:

Code: Select all
[dglent@localhost ~]$ rpm -qa | grep exiv
lib64kexiv2_9-4.6.5-0.mga1
lib64exiv2-devel-0.21.1-1.mga1
exiv2-0.21.1-1.mga1
lib64exiv2_10-0.21.1-1.mga1

[dglent@localhost ~]$ rpm -qa | grep taglib
lib64taglib1-1.6.3-2.mga1
lib64taglib_c0-1.6.3-2.mga1
lib64taglib-devel-1.6.3-2.mga1


and in the laptop 32bit:

Code: Select all
[myriam@localhost SPECS]$ rpm -qa | grep exiv2
libkexiv2_9-4.6.5-0.mga1
libexiv2_10-0.21.1-1.mga1
libexiv2-devel-0.21.1-1.mga1
exiv2-0.21.1-1.mga1

[myriam@localhost SPECS]$ rpm -qa | grep taglib
taglib-extras-1.0.1-3.mga1
libtaglib1-1.6.3-2.mga1
libtaglib_c0-1.6.3-2.mga1
libtaglib-devel-1.6.3-2.mga1


I use this spec file:

Code: Select all
%define name1   ffDiaporama

Name:      ffdiaporama
Version:   1.2
Release:   %mkrel 1
Summary:   Movie creator from photos and video clips
License:   GPLv2
URL:      http://ffdiaporama.tuxfamily.org
Group:      Video

Source0:   http://download.tuxfamily.org/ffdiaporama/Stable/1.2_20120303/ffdiaporama_1.2.2012.0303.tar.gz

BuildRequires:   qt4-devel
BuildRequires:   ffmpeg-devel
BuildRequires:   pkgconfig(SDL_mixer)
BuildRequires:   pkgconfig(sdl)
BuildRequires:   desktop-file-utils
BuildRequires:   taglib-devel
BuildRequires:   pkgconfig(exiv2)

Requires:   ffmpeg
Requires:   qt4-common
Requires:   %{_lib}exiv2_10
Requires:   %{_lib}taglib1


%description
ffDiaporama is an application of creation of videos sequences established by
    * titles, fixed or livened up.
    * images or by photos, fixed or livened up.
    * movie clip
    * music

These sequences are assembled in slide show by means of transitions of sequence
to produce complete videos

Main features:
    * Refocused of images and photos and refocused and cutting of video clips
    * Note (addition of text) for images, photos, sequences and animations
    * Graphic filters on the images and the videos (passage in black and white,
      dust removal, equalization of colors, etc.)
    * Creation of animation by zoom, rotation or Ken Burns Effect on part of
      images or photos
    * Correction of the images and the videos during the animations
      (luminosity, contrast, gamma, colors, etc.)
    * Transitions between sequence with definition of the transition type,
      sequence by sequence.
    * Addition of a background sound (wav, mp3 or ogg) with customizable
      effects of volume, fade in/out and passage in pause, sequence by
      sequence.
    * Generation of usable videos by most of the current videos equipments
      (DVD player/smartphone, multimedia box, hard drive, etc.) but also
      publishable on the main video sharing Web sites (YouTube, Dailymotion,
      etc.)

%prep
%setup -q -n %name


%build
%qmake_qt4 %name1.pro
%make


%install
make install INSTALL_ROOT=$RPM_BUILD_ROOT


%files
%doc %{_datadir}/ffDiaporama/licences.txt
%{_datadir}/%name1/
%{_bindir}/%name1
%{_datadir}/applications/ffDiaporama.desktop
%{_datadir}/mime/packages/ffDiaporama-mime.xml


%clean
rm -rf %{buildroot}


Could someone with 32bit system helps me with this ?

Thanks
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: rpm for ffdiaporama

Postby doktor5000 » Mar 5th, '12, 21:01

Actually this is the wrong place to ask, you should either ask your packaging mentor about that, or if it proves too difficult or he doesn't know,
ask either in #mageia-mentoring IRC channel or on mageia-dev mailing list.
So why are you asking here?

Unrelated, but anyways, Oliver asked me some time ago about other aspects of this package, and i can tell you at least that
Code: Select all
Requires:   %{_lib}exiv2_10
Requires:   %{_lib}taglib1

is unneeded and wrong. Explicit requires on libraries are almost always wrong.

Will take a look for the i586 build, but may take a while for the chroot to be generated.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpm for ffdiaporama

Postby dglent » Mar 5th, '12, 21:15

doktor5000 wrote:Actually this is the wrong place to ask, you should either ask your packaging mentor about that, or if it proves too difficult or he doesn't know,
ask either in #mageia-mentoring IRC channel or on mageia-dev mailing list.
So why are you asking here?


Why there is the title packaging in this section of the forum ?
Why i have to ask only my mentor for such things ?
Why i have to ask on irc or dev-list when i can use the forum ?
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: rpm for ffdiaporama

Postby doktor5000 » Mar 5th, '12, 21:27

dglent wrote:Why i have to ask only my mentor for such things ?
Why i have to ask on irc or dev-list when i can use the forum ?

Because those are the primary means to use in case of such problems? You can use the forum, but all the packagers, who may help you with your problem, are not reading forums, so i just proposed to use the appropriate channels. But you're free to do as you wish, just don't expect much feedback here in the forums.

BTW: ffdiaporama builds just fine in a clean i586 chroot on Mageia 1 via iurt:
https://wiki.mageia.org/en/Packagers_Me ... Howto#iurt
But that doesn't matter much, as you should verify the build on cauldron installs.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpm for ffdiaporama

Postby dglent » Mar 5th, '12, 21:41

This period, while mageia 2 is preparing, i don't want to arrive to irc or the dev-list and distract the developers from other more important tasks.

It is a beginners level problem, maybe other beginners are interested about and i estimated that the better place for this question is here in the forum.
User avatar
dglent
 
Posts: 186
Joined: Mar 30th, '11, 07:04
Location: Paris region, France

Re: rpm for ffdiaporama

Postby doktor5000 » Mar 5th, '12, 22:07

Well, this is no beginner-level problem, and the mageia-mentoring IRC channel is perfectly suited for that, and you won't distract anybody by just asking there.

FWIW, ffdiaporama also builds just fine in a cauldron i586 installation, just checked.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron