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