]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - adapter.awk
- let --mr-proper respect builddir
[packages/rpm-build-tools.git] / adapter.awk
index 3ef9d0b3a4043e569efd645306507626edcdc08d..f6f0b16de258a66de42049af023e2565a9f4ade4 100644 (file)
@@ -637,6 +637,16 @@ function b_makekey(a, b,   s) {
        # fedora extras macros
        sub("%__chkconfig", "/sbin/chkconfig");
 
+       sub("update-desktop-database &> /dev/null \\|\\| :", "%update_desktop_database");
+       sub("touch --no-create %{_datadir}/icons/hicolor", "%update_icon_cache_post hicolor");
+       sub("if \\[ -x %{_bindir}/gtk-update-icon-cache \\]; then\n\t%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor \|\| :\nfi", "");
+
+       sub("export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`", "")
+       if (/gconftool-2 --makefile-install-rule/) {
+               sub("gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/", "%gconf_schema_install ")
+               sub("> /dev/null", "");
+       }
+
        use_macros()
 }
 /^%preun/, (!/^%preun/ && $0 ~ SECTIONS) {
@@ -2111,6 +2121,7 @@ function replace_requires() {
 
        # fedora / redhat
        sub(/^Django$/, "python-django", $2);
+       sub(/^Django$/, "python-django", $2);
        sub(/^GitPython$/, "python-git", $2);
        sub(/^PyQt4-devel$/, "python-PyQt4-devel", $2);
        sub(/^PyQwt-devel$/, "python-PyQwt-devel", $2);
@@ -2124,6 +2135,8 @@ function replace_requires() {
        sub(/^gamin-python$/, "python-gamin", $2);
        sub(/^gcc-c\+\+$/, "libstdc++-devel", $2);
        sub(/^gnome-python2-extras$/, "python-gnome-extras", $2);
+       sub(/^gnome-python2-gconf$/, "python-gnome-gconf", $2);
+       sub(/^gnome-python2-gnomekeyring$/, "python-gnome-desktop-keyring", $2);
        sub(/^gnome-python2-gtkspell$/, "python-gnome-extras-gtkspell", $2);
        sub(/^gtk-sharp2-devel$/, "dotnet-gtk-sharp2-devel", $2);
        sub(/^gtk2$/, "gtk+2", $2);
@@ -2136,6 +2149,7 @@ function replace_requires() {
        sub(/^libXrandr-devel$/, "xorg-lib-libXrandr-devel", $2);
        sub(/^libacl-devel$/, "acl-devel", $2);
        sub(/^libcurl-devel$/, "curl-devel", $2);
+       sub(/^libgudev1-devel$/, "udev-glib-devel", $2);
        sub(/^libsrtp-devel$/, "srtp-devel", $2);
        sub(/^mod_wsgi$/, "apache-mod_wsgi", $2);
        sub(/^notify-python$/, "python-pynotify", $2);
@@ -2146,6 +2160,7 @@ function replace_requires() {
        sub(/^pygobject2$/, "python-pygobject", $2);
        sub(/^pygtk2$/, "python-pygtk", $2);
        sub(/^pygtk2-devel$/, "python-pygtk-devel", $2);
+       sub(/^pygtk2-libglade$/, "python-pygtk-glade", $2);
        sub(/^pysvn$/, "python-pysvn", $2);
        sub(/^python-enchant$/, "python-pyenchant", $2);
        sub(/^python-imaging$/, "python-PIL", $2);
This page took 0.225138 seconds and 4 git commands to generate.