+ i != boost::filesystem::directory_iterator(); ++i )
+ {
+ boost::smatch m;
-+ if ( boost::regex_match( i->string(), m, re ) )
++ if ( boost::regex_match( i->path().string(), m, re ) )
+ return m.str();
+ }
+ return ( p + ".la" );
+ {
+ boost::filesystem::path p( filename );
+ if ( p.has_root_directory() )
-+ dlfilename = makeLibraryName( p.branch_path().string(), p.leaf() );
++ dlfilename = makeLibraryName( p.branch_path().string(), p.filename().string() );
+ }
+ catch ( boost::filesystem::filesystem_error const& )
+ {
#
# Conditional build:
-%bcond_without alsa # disable ALSA support
-%bcond_with nas # enable NAS support
-%bcond_with arts # build with aRts support
-%bcond_without esd # disable esound support
-%bcond_without hidden_visibility # pass '--fvisibility=hidden' & '--fvisibility-inlines-hidden' to g++
+%bcond_without alsa # ALSA support
+%bcond_with nas # NAS support
+%bcond_with arts # aRts support (i.e. actually build this package)
+%bcond_without esd # EsounD support
+%bcond_without hidden_visibility # '--fvisibility=hidden' & '--fvisibility-inlines-hidden' g++ opts
%define _state stable
%define _kdever 3.5.10
DESTDIR=$RPM_BUILD_ROOT
# it seems to be only (lt_)dlopened, nothing links with it - so not needed
-rm -f $RPM_BUILD_ROOT%{_libdir}/libx11globalcomm.{la,so}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libx11globalcomm.{la,so}
# remove unwanted boost deps from .la
sed -i 's:-lboost_filesystem -lboost_regex::' $RPM_BUILD_ROOT%{_libdir}/*.la
exit 1
;;
- automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
-+ automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10* | automake*1.11*)
++ automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.1[01234]*)
echo "*** $AUTOMAKE_STRING found."
UNSERMAKE=no
;;
+@@ -135,7 +135,7 @@
+ fi
+
+ echo "*** Creating Makefile templates"
+-$AUTOMAKE || exit 1
++$AUTOMAKE --add-missing --copy || exit 1
+
+ if test "$UNSERMAKE" = no; then
+ echo "*** Postprocessing Makefile templates"