Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
On 29/03/13 16:54, PhilippeDidier wrote: PhilippeDidier a écrit : PS I discovered a clone copy of one of our first beta spec files applied to the final source tarball in an other distro, (we can recognize our Mageia's touch) It would have been fair play from these packagers to tell in a changelog where this spec file comes from (that reminds me bad practices from old times with some Mandrake(iva) based distributions or contributions) :-( Yes - hence: https://wiki.mageia.org/en/Collaboration_policy Ardour3 pushed. Thanks again Philippe for your efforts on this :)
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
PhilippeDidier a écrit : > PS I discovered a clone copy of one of our first beta spec files > applied to the final source tarball in an other distro, (we can > recognize our Mageia's touch) It would have been fair play from these packagers to tell in a changelog where this spec file comes from (that reminds me bad practices from old times with some Mandrake(iva) based distributions or contributions) :-(
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Colin Guthrie a écrit : > 'Twas brillig, and Barry Jackson at 29/03/13 09:31 did gyre and gimble: >> BTW there was no need to use all the ../../ just removing %{buildroot} >> on the target is enough. > > Yup. All symlinks will be converted to relative ones by the packaging > script anyway (which is useful to not create broken symlinks in chroots > etc.) > > Col > Hi ! Just back from work I tested it Yes Thanks Barry and Colin Everything is OK now ! :-) and indeed the script converted all the symlinks paths into exhaustive relative paths for instance : %{_datadir}/%{name}/icons/ardour_icon_${i}px.png becomes ../../../../../../usr/share/ardour3/icons/ardour_icon_16px.png when starting from /usr/share/icons/hicolor/16x16/apps/ardour3.png You may, you can submit now ;-) (Mageia3 will be the first distribution embedding a working and localized final release of Ardour3 !) PS I discovered a clone copy of one of our first beta spec files applied to the final source tarball in an other distro, (we can recognize our Mageia's touch) but it won't be localized (it was a little tricky to find how to !) Thanks to both of you for teaching, correcting, explaining Regards
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
'Twas brillig, and Barry Jackson at 29/03/13 09:31 did gyre and gimble: > BTW there was no need to use all the ../../ just removing %{buildroot} > on the target is enough. Yup. All symlinks will be converted to relative ones by the packaging script anyway (which is useful to not create broken symlinks in chroots etc.) Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
On 29/03/13 00:19, PhilippeDidier wrote: Barry Jackson a écrit : Thanks Philippe, I have committed your changes (but somewhat shrunk ;) - please check it over and I will submit, as the group change is quite important. Cheers, Barry Hi Barry Sorry for being so late to answer I tested the spec you commited built ardour3-3.0.2 installed it tested it : the symlinks are wrong ?!!! Reused my own spec file rebuild installed : the symlinks work ?!!! Indeed : because of an artefact I couldn't see that the symlinks that I created were wrong (leading to BUILDROOT/ardour3-3.0-1.mga2.i386 that had not been deleted ... the links showed the icons ) I know why now ! Anyway there's a little typo in yours (ardour_icon_${i}x.png instead of ardour_icon_${i}px.png) Here is a new svndiff with corrected symlinks and the typo corrected Better tested this time ;-) I am sure the symlinks are correct (they needed a relative path ) I tested them several ways : they are all OK I think you may commit and submit now Regards Philippe Yep - sorry about the typo and I should have spotted the symlink error. Fixed in svn - please double check ;) BTW there was no need to use all the ../../ just removing %{buildroot} on the target is enough.
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Barry Jackson a écrit : > Thanks Philippe, > > I have committed your changes (but somewhat shrunk ;) - please check it > over and I will submit, as the group change is quite important. > > Cheers, > Barry > Hi Barry Sorry for being so late to answer I tested the spec you commited built ardour3-3.0.2 installed it tested it : the symlinks are wrong ?!!! Reused my own spec file rebuild installed : the symlinks work ?!!! Indeed : because of an artefact I couldn't see that the symlinks that I created were wrong (leading to BUILDROOT/ardour3-3.0-1.mga2.i386 that had not been deleted ... the links showed the icons ) I know why now ! Anyway there's a little typo in yours (ardour_icon_${i}x.png instead of ardour_icon_${i}px.png) Here is a new svndiff with corrected symlinks and the typo corrected Better tested this time ;-) I am sure the symlinks are correct (they needed a relative path ) I tested them several ways : they are all OK I think you may commit and submit now Regards Philippe Index: SPECS/ardour3.spec === --- SPECS/ardour3.spec (révision 406066) +++ SPECS/ardour3.spec (copie de travail) @@ -125,9 +125,9 @@ for i in 16 22 32 48; do install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes -ln -s %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_${i}px.png \ +ln -s ../../../../%{name}/icons/application-x-ardour_${i}px.png \ %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/application-x-ardour3.png -ln -s %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_${i}x.png \ +ln -s ../../../../%{name}/icons/ardour_icon_${i}px.png \ %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/ardour3.png done
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
On 27/03/13 22:34, PhilippeDidier wrote: Colin Guthrie a écrit : FYI, these lines can be more neatly (IMO) done as: install -D -p %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png (you can also add "-m 0644" if you want to be specific about permission. All that said, if the icons are being shipped already, why not just symlink them rather than provide two copies? (in which case the install -d lines should remain :D) Col So ... here is a svndiff adding symlinks instead of copying It works for me (applied to the last spec from Cauldron) I could build and install I think it may be commited (even if not submitted : it's just a cosmetic improvement...) Thanks Philippe, I have committed your changes (but somewhat shrunk ;) - please check it over and I will submit, as the group change is quite important. Cheers, Barry
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Colin Guthrie a écrit : > > FYI, these lines can be more neatly (IMO) done as: > > install -D -p %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png > %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png > > > (you can also add "-m 0644" if you want to be specific about permission. > > All that said, if the icons are being shipped already, why not just > symlink them rather than provide two copies? (in which case the install > -d lines should remain :D) > > Col > So ... here is a svndiff adding symlinks instead of copying It works for me (applied to the last spec from Cauldron) I could build and install I think it may be commited (even if not submitted : it's just a cosmetic improvement...) Index: SPECS/ardour3.spec === --- SPECS/ardour3.spec (révision 405348) +++ SPECS/ardour3.spec (copie de travail) @@ -12,7 +12,7 @@ Version: 3.0 Release: %{release} Summary: Professional multi-track audio recording application -Group: Sound/Mixers +Group: Sound/Editors and Converters License: GPLv2+ URL: http://ardour.org/ @@ -21,6 +21,8 @@ %if %{rev} Source0: %{name}-%{rev}.tar.bz2 %else +# NB to receive a free (as beer) source tarbal you need to give your e.mail address here : +# "http://community.ardour.org/download_process_selection_and_amount"; you'll get a download link Source0: %{oname}-%{version}.tar.bz2 %endif Source1: %{name}.desktop @@ -117,8 +119,32 @@ desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} +# Symlink icons and mimetypes into the right folders install -d -m 0755 %{buildroot}%{_iconsdir} -cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png %{buildroot}%{_iconsdir}/%{name}.png +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes +ln -s %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_16px.png \ +%{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes/application-x-ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_22px.png \ +%{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes/application-x-ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_32px.png \ +%{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes/application-x-ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png \ +%{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes/application-x-ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_16px.png \ +%{buildroot}%{_iconsdir}/hicolor/16x16/apps/ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_22px.png \ +%{buildroot}%{_iconsdir}/hicolor/22x22/apps/ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_32px.png \ +%{buildroot}%{_iconsdir}/hicolor/32x32/apps/ardour3.png +ln -s %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png \ +%{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png %files @@ -138,5 +164,5 @@ %config(noreplace) %{_sysconfdir}/%{name}/mixer.bindings %dir %{_sysconfdir}/%{name}/export %config(noreplace) %{_sysconfdir}/%{name}/export/CD.format -%{_iconsdir}/ardour3.png +%{_iconsdir}/hicolor/* %{_datadir}/locale/*/*/*.mo
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Colin Guthrie a écrit : > > FYI, these lines can be more neatly (IMO) done as: > > install -D -p %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png > %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png > > > (you can also add "-m 0644" if you want to be specific about permission. > > All that said, if the icons are being shipped already, why not just > symlink them rather than provide two copies? (in which case the install > -d lines should remain :D) > > Col > Thanks Colin ! It is always useful to have an external look : I didn't even think of creating symlinks : I was only concentrated on the need of files in the right directory ... blinkered by this idea So, the spec file will be as heavy but the built rpm lighter ! Thanks again for both your suggests (allowing to have a lighter spec or a lighter rpm... ) Regards Philippe
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
'Twas brillig, and PhilippeDidier at 26/03/13 23:24 did gyre and gimble: > +# Copy icons and mimetypes into the right folders > install -d -m 0755 %{buildroot}%{_iconsdir} > -cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png > %{buildroot}%{_iconsdir}/%{name}.png > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/apps > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/apps > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/apps > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/apps > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes > +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes > +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_16px.png \ > +%{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes/application-x-ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_22px.png \ > +%{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes/application-x-ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_32px.png \ > +%{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes/application-x-ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png \ > +%{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes/application-x-ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_16px.png \ > +%{buildroot}%{_iconsdir}/hicolor/16x16/apps/ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_22px.png \ > +%{buildroot}%{_iconsdir}/hicolor/22x22/apps/ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_32px.png \ > +%{buildroot}%{_iconsdir}/hicolor/32x32/apps/ardour3.png > +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png \ > +%{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png FYI, these lines can be more neatly (IMO) done as: install -D -p %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png (you can also add "-m 0644" if you want to be specific about permission. All that said, if the icons are being shipped already, why not just symlink them rather than provide two copies? (in which case the install -d lines should remain :D) Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Barry Jackson a écrit : > On 25/03/13 23:31, PhilippeDidier wrote: >> zezinho a écrit : >>> Em 25-03-2013 13:30, PhilippeDidier escreveu: What do you think ? >>> There are enough bugs to fix for now, let's wait for MGA4. >>> >>> >> So we may simply provide the final release of Ardour3, built upon the >> BuildRequires already existing inside Cauldron (it can be built this way >> ) the spec file is ready ! >> >> And wait to update the whole stuff after Mageia3 is out ! >> >> >> >> Any other opinion ? >> > > Pushed - please test. > > We do have an anomaly between ardour and ardour3 - they are in different > rpm groups. We need to decide which (if either) is correct and change > one or both. > Any thoughts Philippe ? > > Hi Barry ! You are too fast ! I prepared a spec file, ready to send after the replies... but you did it ! Your spec file is OK and much simpler than the previous used for the beta releases of Ardour3 : I could build and install and use it... Nevertheless : I propose to use the rpm group "Sound/Editors and Converters" same as Ardour2 I added some comment about how to download the source file I found a way to install the icons and mimetypes in their right place here is the svndiff attached Index: SPECS/ardour3.spec === --- SPECS/ardour3.spec (révision 405348) +++ SPECS/ardour3.spec (copie de travail) @@ -12,7 +12,7 @@ Version: 3.0 Release: %{release} Summary: Professional multi-track audio recording application -Group: Sound/Mixers +Group: Sound/Editors and Converters License: GPLv2+ URL: http://ardour.org/ @@ -21,6 +21,8 @@ %if %{rev} Source0: %{name}-%{rev}.tar.bz2 %else +# NB to receive a free (as beer) source tarbal you need to give your e.mail address here : +# "http://community.ardour.org/download_process_selection_and_amount"; you'll get a download link Source0: %{oname}-%{version}.tar.bz2 %endif Source1: %{name}.desktop @@ -117,8 +119,32 @@ desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} +# Copy icons and mimetypes into the right folders install -d -m 0755 %{buildroot}%{_iconsdir} -cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png %{buildroot}%{_iconsdir}/%{name}.png +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/apps +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes +install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_16px.png \ +%{buildroot}%{_iconsdir}/hicolor/16x16/mimetypes/application-x-ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_22px.png \ +%{buildroot}%{_iconsdir}/hicolor/22x22/mimetypes/application-x-ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_32px.png \ +%{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes/application-x-ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/application-x-ardour_48px.png \ +%{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes/application-x-ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_16px.png \ +%{buildroot}%{_iconsdir}/hicolor/16x16/apps/ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_22px.png \ +%{buildroot}%{_iconsdir}/hicolor/22x22/apps/ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_32px.png \ +%{buildroot}%{_iconsdir}/hicolor/32x32/apps/ardour3.png +cp -f %{buildroot}%{_datadir}/%{name}/icons/ardour_icon_48px.png \ +%{buildroot}%{_iconsdir}/hicolor/48x48/apps/ardour3.png %files @@ -138,5 +164,5 @@ %config(noreplace) %{_sysconfdir}/%{name}/mixer.bindings %dir %{_sysconfdir}/%{name}/export %config(noreplace) %{_sysconfdir}/%{name}/export/CD.format -%{_iconsdir}/ardour3.png +%{_iconsdir}/hicolor/* %{_datadir}/locale/*/*/*.mo
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
On 25/03/13 23:31, PhilippeDidier wrote: zezinho a écrit : Em 25-03-2013 13:30, PhilippeDidier escreveu: What do you think ? There are enough bugs to fix for now, let's wait for MGA4. So we may simply provide the final release of Ardour3, built upon the BuildRequires already existing inside Cauldron (it can be built this way ) the spec file is ready ! And wait to update the whole stuff after Mageia3 is out ! Any other opinion ? Pushed - please test. We do have an anomaly between ardour and ardour3 - they are in different rpm groups. We need to decide which (if either) is correct and change one or both. Any thoughts Philippe ?
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
zezinho a écrit : > Em 25-03-2013 13:30, PhilippeDidier escreveu: >> What do you think ? >> > There are enough bugs to fix for now, let's wait for MGA4. > > So we may simply provide the final release of Ardour3, built upon the BuildRequires already existing inside Cauldron (it can be built this way ) the spec file is ready ! And wait to update the whole stuff after Mageia3 is out ! Any other opinion ?
Re: [Mageia-dev] Last versions of programs concerning Computer Assisted Music
Em 25-03-2013 13:30, PhilippeDidier escreveu: What do you think ? There are enough bugs to fix for now, let's wait for MGA4.
[Mageia-dev] Last versions of programs concerning Computer Assisted Music
Ardour3 final release has just been provided by its developpers... in Cauldron we have a beta release of Ardour3 that might be updated before Mageia3 is out... It can be built with the actual version of its BuildRequires as provided by Cauldron (and it works this way) But some of its BuildRequires may be updated to their last version too before building Ardour3 ; and this implies the rebuild of other programs ... which can be updated to their last version (recently provided by their devs) for their own new rebuild ! I join a basical graphic of the situation (with the ordered steps for these builds ) Is it worth of it before Mageia3 is out ? are we too short in time ? Or will it be possible to provide these rebuild as updates after Mageia3 is out ? What do you think ? Philippe gig lv2 1.4.0 ___|_ serd 1.8.2 ||sord 0.12 | liblscp sratom 0.4.2 ||suil 0.6.12 ||lilv 0.16.0 ||| || |___ ||___|| | | | ||ardour3 3.0 qtractor lv2-c++-tools 1.0.4some lv2-plugins gigedit linuxsampler| | | some lv2-plugins | | | qsampler |___calflv2-vocoder | | | | lv2-mdaEPiano