# Jakub Bogusz <qboosh@pld-linux.org>
# Elan Ruusamäe <glen@pld-linux.org>
#
-# See cvs log adapter{,.awk} for list of contributors
+# See git log adapter{,.awk} for list of contributors
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
$1 = "Requires:";
}
+ # F<16 had requires(hint)
+ if (/^Requires\(hint\):/) {
+ $1 = "Suggests:";
+ }
+
field = tolower($1)
if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
sub(/\.$/, "", $0);
if (l == "Python Software Foundation License") {
l = "PSF"
}
- if (l == "Apache License 2.0" || l == "Apache 2.0" || l == "Apache License Version 2.0" || l == "Apache License, Version 2.0" || l == "Apache Software License v2") {
+ if (l == "Apache License 2.0" || \
+ l == "Apache 2.0" || \
+ l == "Apache License Version 2.0" || \
+ l == "Apache License, Version 2.0" || \
+ l == "Apache Software License v2" || \
+ l == "ASL 2.0" \
+ ) {
l = "Apache v2.0"
}
if (l == "Apache Group License" || l == "Apache Software License" || l == "Apache License") {
}
sub("%{_defaultdocdir}", "%{_docdir}");
+ sub("%{_datadir}/doc", "%{_docdir}");
sub("%{_bindir}/perl", "%{__perl}");
sub("%{_bindir}/python", "%{__python}");
gsub(py3_sitescriptdir, "%{py3_sitescriptdir}")
gsub(py3_sitedir, "%{py3_sitedir}")
gsub(py3_scriptdir, "%{py3_scriptdir}")
+ gsub("%{python3_sitelib}", "%{py3_sitescriptdir}")
+ gsub("%{python3_version}", "%{py3_ver}")
gsub(ruby_archdir, "%{ruby_archdir}")
- gsub(ruby_ridir, "%{ruby_ridir}")
- gsub(ruby_rubylibdir, "%{ruby_rubylibdir}")
+ gsub(ruby_libdir, "%{ruby_libdir}")
+
gsub(ruby_sitearchdir, "%{ruby_sitearchdir}")
gsub(ruby_sitelibdir, "%{ruby_sitelibdir}")
+ gsub(ruby_sitedir, "%{ruby_sitedir}")
+ gsub(ruby_vendorarchdir, "%{ruby_vendorarchdir}")
+ gsub(ruby_vendorlibdir, "%{ruby_vendorlibdir}")
+ gsub(ruby_vendordir, "%{ruby_vendordir}")
+ gsub(ruby_rubylibdir, "%{ruby_rubylibdir}") # deprecated
gsub(ruby_rdocdir, "%{ruby_rdocdir}")
+ gsub(ruby_ridir, "%{ruby_ridir}")
gsub("%{_unitdir}", "%{systemdunitdir}")
gsub(systemdunitdir, "%{systemdunitdir}")
py3_ver = ENVIRON["py3_ver"]
ruby_archdir = ENVIRON["ruby_archdir"]
- ruby_ridir = ENVIRON["ruby_ridir"]
- ruby_rubylibdir = ENVIRON["ruby_rubylibdir"]
+ ruby_libdir = ENVIRON["ruby_libdir"]
+ ruby_sitedir = ENVIRON["ruby_sitedir"]
ruby_sitearchdir = ENVIRON["ruby_sitearchdir"]
ruby_sitelibdir = ENVIRON["ruby_sitelibdir"]
+ ruby_vendordir = ENVIRON["ruby_vendordir"]
+ ruby_vendorarchdir = ENVIRON["ruby_vendorarchdir"]
+ ruby_vendorlibdir = ENVIRON["ruby_vendorlibdir"]
+ ruby_rubylibdir = ENVIRON["ruby_rubylibdir"] # deprecated
ruby_rdocdir = ENVIRON["ruby_rdocdir"]
+ ruby_ridir = ENVIRON["ruby_ridir"]
php_pear_dir = ENVIRON["php_pear_dir"]
php_data_dir = ENVIRON["php_data_dir"]
# {{{ fedora / redhat
sub(/^Django$/, "python-django", $2);
sub(/^GitPython$/, "python-git", $2);
+ sub(/^pytest$/, "python-pytest", $2);
sub(/^MySQL-python$/, "python-MySQLdb", $2);
sub(/^PyQt4-devel$/, "python-PyQt4-devel", $2);
sub(/^PyQwt-devel$/, "python-PyQwt-devel", $2);
sub(/^libssl-devel$/, "openssl-devel", $2);
# }}}
- # {{{ suse
+ # {{{ suse/opensuse
sub(/^alsa-devel$/, "alsa-lib-devel", $2);
sub(/^gtk-sharp2$/, "dotnet-gtk-sharp2", $2);
sub(/^gtkmm2-devel$/, "gtkmm-devel", $2);
sub(/^libopenssl-devel$/, "openssl-devel", $2);
sub(/^libpulse-devel$/, "pulseaudio-devel", $2);
sub(/^monodoc-core$/, "mono-monodoc", $2);
+ sub(/^python-cairo$/, "python-pycairo", $2);
+ sub(/^python-gobject$/, "python-pygobject", $2);
+ sub(/^python-gstreamer-0_10$/, "python-gstreamer", $2);
sub(/^python-gtk$/, "python-pygtk-gtk", $2);
+ sub(/^python-xdg$/, "python-pyxdg", $2);
# }}}
replace_php_virtual_deps(field)