Hi,
Can we revise the current ScriptletSnippets page to suggest packagers using this macro instead of "%{_datadir}/icons" ?
For example,
%post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
can be:
%post /bin/touch --no-create %{_iconsdir}/hicolor &>/dev/null || :
Shorter, right?
Thanks.
Yours sincerely, Christopher Meng
Always playing in Fedora Project
Hello,
On 12 June 2013 12:34, Christopher Meng cickumqt@gmail.com wrote:
Can we revise the current ScriptletSnippets page to suggest packagers using this macro instead of "%{_datadir}/icons" ?
Shorter, right?https://admin.fedoraproject.org/mailman/listinfo/packaging
yep, it would be, unfortunately you would require the java package utils for it:
$ grep -R _iconsdir /etc/rpm /etc/rpm/macros.jpackage:%_iconsdir %{_datadir}/icons /etc/rpm/macros.jpackage:install -D -m 644 %1-32.png $RPM_BUILD_ROOT%{_iconsdir}/%1.png\ $ rpm -qf /etc/rpm/macros.jpackage jpackage-utils-1.7.5-26.fc19.noarch
And adding jpackage-utils to BuildRequires just to have the macro is not a good idea; that's why people don't use it.
Maybe we can move the macro somewhere else.
Regards, --Simone
Am Mittwoch, 12. Juni 2013, 13:13:17 schrieb Simone Caronni:
Hello,
On 12 June 2013 12:34, Christopher Meng cickumqt@gmail.com wrote:
Can we revise the current ScriptletSnippets page to suggest packagers using this macro instead of "%{_datadir}/icons" ?
Shorter, right?https://admin.fedoraproject.org/mailman/listinfo/packaging
yep, it would be, unfortunately you would require the java package utils for it:
$ grep -R _iconsdir /etc/rpm /etc/rpm/macros.jpackage:%_iconsdir %{_datadir}/icons /etc/rpm/macros.jpackage:install -D -m 644 %1-32.png $RPM_BUILD_ROOT%{_iconsdir}/%1.png\ $ rpm -qf /etc/rpm/macros.jpackage jpackage-utils-1.7.5-26.fc19.noarch
And adding jpackage-utils to BuildRequires just to have the macro is not a good idea; that's why people don't use it.
Maybe we can move the macro somewhere else.
Besides a lot of Java-only stuff, this package contains some more macros for general use:
%_desktopdir %{_datadir}/applications %_iconstheme hicolor %_iconsbasedir %{_datadir}/icons/%{_iconstheme}
Cheers, Mario
Am Mittwoch, den 12.06.2013, 19:04 +0200 schrieb Mario Blättermann:
Am Mittwoch, 12. Juni 2013, 13:13:17 schrieb Simone Caronni:
Hello,
On 12 June 2013 12:34, Christopher Meng cickumqt@gmail.com wrote:
Can we revise the current ScriptletSnippets page to suggest packagers using this macro instead of "%{_datadir}/icons" ?
Shorter, right?https://admin.fedoraproject.org/mailman/listinfo/packaging
yep, it would be, unfortunately you would require the java package utils for it:
$ grep -R _iconsdir /etc/rpm /etc/rpm/macros.jpackage:%_iconsdir %{_datadir}/icons /etc/rpm/macros.jpackage:install -D -m 644 %1-32.png $RPM_BUILD_ROOT%{_iconsdir}/%1.png\ $ rpm -qf /etc/rpm/macros.jpackage jpackage-utils-1.7.5-26.fc19.noarch
And adding jpackage-utils to BuildRequires just to have the macro is not a good idea; that's why people don't use it.
Maybe we can move the macro somewhere else.
Besides a lot of Java-only stuff, this package contains some more macros for general use:
%_desktopdir %{_datadir}/applications %_iconstheme hicolor %_iconsbasedir %{_datadir}/icons/%{_iconstheme}
Cheers, Mario
How about moving these to rpmbuild-pkg?
Cheers, Björn
packaging@lists.fedoraproject.org