#
%_sharedstatedir /var/lib
%_localstatedir /var
-%_initrddir %{_sysconfdir}/rc.d/init.d
+%_localedir %{_datadir}/locale
+%_lispdir %{_datadir}/emacs/site-lisp
+%_initddir %{_sysconfdir}/rc.d/init.d
%_defaultdocdir %{_usr}/share/doc
%{?__cxx:CXX="${CXX:-%{__cxx}}"} \\\
CPPFLAGS="${CPPFLAGS:-%{rpmcppflags}}" \\\
%{__cmake} \\\
- -DCMAKE_VERBOSE_MAKEFILE=BOOL:ON \\\
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
-DCMAKE_BUILD_TYPE=%{!?debug:PLD}%{?debug:Debug} \\\
-DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \\\
-DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \\\
# noarch subpackage helper
# BuildRequires: rpmbuild(macros) >= 1.752
%noarchpackage \
-%if %{_ver_ge '%{_rpmversion}' '4.6'} \
BuildArch: noarch \
-%endif \
%{nil}
%apache_modules_api %{expand:%%global apache_modules_api %(awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' /usr/include/apache/ap_mmn.h 2>/dev/null || echo ERROR)}%apache_modules_api
#
%__noautoreqfiles %(sed -e s'/#.*//' /etc/rpm/noautoreqfiles)%{?_noautoreqfiles: %{_noautoreqfiles}}
%__noautoprovfiles %(sed -e s'/#.*//' /etc/rpm/noautoprovfiles)%{?_noautoprovfiles: %{_noautoprovfiles}}
-%__noautoreqdep %(sed -e s'/#.*//' /etc/rpm/noautoreqdep)%{?_noautoreqdep: %{_noautoreqdep}}
%__noautoprov %(sed -e s'/#.*//' /etc/rpm/noautoprov) \
%{?_noautoprov: %{_noautoprov}} \
%{?_noautoprov_java: %{__noauto_regexp_helper -p java %{_noautoprov_java}}} \
%{nil}
%__noautoreq %(sed -e s'/#.*//' /etc/rpm/noautoreq) \
%{?_noautoreq: %{_noautoreq}} \
+ %{?_noautoreqdep: %{_noautoreqdep}} \
%{?_noautoreq_java: %{__noauto_regexp_helper -p java %{_noautoreq_java}}} \
%{?_noautoreq_mono: %{__noauto_regexp_helper -p mono %{_noautoreq_mono}}} \
%{?_noautoreq_pear: %{__noauto_regexp_helper -p pear %{_noautoreq_pear}}} \
%{?_noautoreq_py3egg: %{__noauto_regexp_helper -p python3egg %{_noautoreq_py3egg}}} \
%{nil}
+%__noautodep_helper() %(awk -v x="%*" 'BEGIN {
+ RS = "\n([ \t]+\n)+";
+ FS = " ";
+ split(x, F);
+ if (length(F) > 0) {
+ printf("(");
+ for (i=1; i<=length(F); i++) {
+ s = F[i];
+ sub(/#.*/, "z&z", s);
+ if (s ~ /^$/) { continue; };
+ printf(s);
+ if (i != length(F)) { printf("|"); };
+ };
+ printf(")");
+ }
+}')
+%__requires_exclude_from %{__noautodep_helper %{__noautoreqfiles}}%{nil}
+%__provides_exclude_from %{__noautodep_helper %{__noautoprovfiles}}%{nil}
+%__requires_exclude %{__noautodep_helper %{__noautoreq}}%{nil}
+%__provides_exclude %{__noautodep_helper %{__noautoprov}}%{nil}
+
# helper for wrapping _noautoreq between perl() or pear()
# Author: Elan Ruusamäe <glen@pld-linux.org>
# Usage: