#
# Adapter adapts .spec files for PLD Linux.
#
-# Copyright (C) 1999-2015 PLD-Team <feedback@pld-linux.org>
+# Copyright (C) 1999-2016 PLD-Team <feedback@pld-linux.org>
# Authors:
# MichaĆ Kuratczyk <kura@pld.org.pl>
# Sebastian Zagrodzki <s.zagrodzki@mimuw.edu.pl>
sub("%{_datadir}/doc", "%{_docdir}")
sub("%{_bindir}/perl", "%{__perl}")
sub("%{_bindir}/python", "%{__python}")
+ sub("%{__python2}", "%{__python}")
+ sub("%{nodejs_sitelib}", "%{nodejs_libdir}")
+
+ sub("%py2_build", "%py_build")
+ sub("%py2_install", "%py_install")
gsub(infodir, "%{_infodir}")
gsub(php_pear_dir, "%{php_pear_dir}")
gsub(php_data_dir, "%{php_data_dir}")
gsub("%{_datadir}/php", "%{php_data_dir}")
+ gsub("%{php_home}", "%{php_data_dir}")
+ gsub("%{php_extdir}", "%{php_extensiondir}")
# change to %{_datadir}, with some exceptions
for (c = 1; c <= NF; c++) {
}
sub("^%doc %{_mandir}", "%{_mandir}")
+ sub("^%license", "%doc")
gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
}
}
+ if (pkg == "php(language)") {
+ $2 = "php(core)"
+ }
+
if (pkg == "php4") {
$2 = "webserver(php)"
if ($4 ~ /^[0-9]:/) {
sub(/^mod_wsgi$/, "apache-mod_wsgi", $2)
sub(/^newt-python$/, "python-snack", $2)
sub(/^notify-python$/, "python-pynotify", $2)
+ sub(/^oxygen-icon-theme$/, "kde4-icons-oxygen", $2)
sub(/^pcsc-lite-ccid$/, "pcsc-driver-ccid", $2)
sub(/^pulseaudio-libs-devel$/, "pulseaudio-devel", $2)
sub(/^pyOpenSSL$/, "python-pyOpenSSL", $2)
sub(/^python-enchant$/, "python-pyenchant", $2)
sub(/^python-imaging$/, "python-PIL", $2)
sub(/^python-imaging-tk$/, "python-PIL-tk", $2)
+ sub(/^python-ndg_httpsclient$/, "python-ndg-httpsclient", $2)
sub(/^python-newt$/, "python-snack", $2)
sub(/^python-pygtk$/, "python-pygtk-gtk", $2)
sub(/^python-recaptcha-client$/, "python-recaptcha", $2)
sub(/^python-uuid$/, "python-modules", $2)
sub(/^python-xlib$/, "python-Xlib", $2)
sub(/^python-zope-interface$/, "Zope-Interface", $2)
+ sub(/^python-zope.component$/, "Zope-Component", $2)
+ sub(/^python-zope.interface$/, "Zope-Interface", $2)
sub(/^python2-devel$/, "python-devel", $2)
sub(/^pytz$/, "python-pytz", $2)
sub(/^pyxdg$/, "python-pyxdg", $2)