Name: ace Version: 5.7.2 Release: %mkrel 1 Epoch: 0 Summary: ADAPTIVE Communication Environment URL: http://www.cs.wustl.edu/~schmidt/ACE.html Source0: http://download.dre.vanderbilt.edu/ACE+TAO-distribution/ACE-src.tar.bz2 Patch0: ACE-src-install.patch License: BSD-style Group: System/Libraries BuildRequires: libopenssl-devel Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The ADAPTIVE Communication Environment (ACE) is a freely available, open-source object-oriented (OO) framework that implements many core patterns for concurrent communication software. ACE provides a rich set of reusable C++ wrapper facades and framework components that perform common communication software tasks across a range of OS platforms. The communication software tasks provided by ACE include event demultiplexing and event handler dispatching, signal handling, service initialization, interprocess communication, shared memory management, message routing, dynamic (re)configuration of distributed services, concurrent execution and synchronization. #---------------------------------------------------------------------------- %define lib_major 5 %define lib_name %mklibname %{name} %{lib_major} %package -n %{lib_name} Summary: Main library for ACE (ADAPTIVE Communication Environment) Group: System/Libraries %description -n %{lib_name} This package contains the libraries needed to run programs dynamically linked with ACE (ADAPTIVE Communication Environment). %if %mdkversion < 200900 %post -n %{lib_name} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{lib_name} -p /sbin/ldconfig %endif %files -n %{lib_name} %defattr(-,root,root) %{_libdir}/*-%{version}.so #---------------------------------------------------------------------------- %define lib_name_devel %mklibname %{name} -d %package -n %{lib_name_devel} Group: Development/C++ Summary: Shared libraries and header files for ACE (ADAPTIVE Communication Environment) Obsoletes: %{mklibname ace 5 -d} < %{epoch}:%{version}-%{release} Provides: %{name}-devel = %{epoch}:%{version}-%{release} Requires: %{lib_name} = %{epoch}:%{version}-%{release} Obsoletes: gperf-ace %description -n %{lib_name_devel} The %{name} package contains the shared libraries and header files needed for developing ACE (ADAPTIVE Communication Environment) applications. %files -n %{lib_name_devel} %defattr(-,root,root) %doc ACE-INSTALL.html AUTHORS ChangeLog COPYING FAQ NEWS PROBLEM-REPORT-FORM README THANKS VERSION %{_bindir}/* %{_mandir}/man1/* %{_includedir}/%{name} %{_includedir}/ACEXML %{_includedir}/Kokyu %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/pkgconfig/* %multiarch %{multiarch_includedir}/* %exclude %{_libdir}/*-%{version}.so #---------------------------------------------------------------------------- %define lib_name_devel_stat %mklibname %{name} -d -s %package -n %{lib_name_devel_stat} Group: Development/C++ Summary: Shared libraries and header files for ACE (ADAPTIVE Communication Environment) Requires: %{lib_name_devel} = %{epoch}:%{version}-%{release} %description -n %{lib_name_devel_stat} The %{name} package contains the shared libraries and header files needed for developing ACE (ADAPTIVE Communication Environment) applications. %files -n %{lib_name_devel_stat} %defattr(-,root,root) %{_libdir}/*.a #---------------------------------------------------------------------------- %package -n %{name}-doc Group: Books/Howtos Summary: Documentation and examples for ACE (ADAPTIVE Communication Environment) Obsoletes: %{lib_name}-doc < %{epoch}:%{version}-%{release} Provides: %{lib_name}-doc = %{epoch}:%{version}-%{release} %description -n %{name}-doc Documentation and examples for ACE (ADAPTIVE Communication Environment). %files -n %{name}-doc %defattr(-,root,root) %doc docs examples #---------------------------------------------------------------------------- %prep %setup -q -n ACE_wrappers %patch0 -p0 -b .install find examples -type f -name "*.ds[pw]" -o -name "*.sln" -o -name "*.vc[pw]" -o -name "*.vcproj" -o -name "*.bor" | \ xargs perl -pi -e 's|\r$||g' %build autoreconf -i -v -f # Lack of proper config way requires some sed trick to get functionalities enabled # THREAD_SAFE_ACCEPT sed -i "s/^#undef ACE_HAS_THREAD_SAFE_ACCEPT.*/#define ACE_HAS_THREAD_SAFE_ACCEPT/g" ace/config.h.in export CPPFLAGS="%{optflags} -fPIC -DPIC" export LDFLAGS="%{ldflags} -lpthread" export CONFIGURE_TOP=${PWD} mkdir -p build cd build %configure2_5x \ --enable-lib-all \ --enable-static \ --enable-symbol-visibility \ --disable-qos %make %install rm -rf %{buildroot} %makeinstall_std -C build # The install script is incomplete (to be polite) # Shameless adaptation from Debian rules install -m 755 bin/generate_export_file.pl %{buildroot}%{_bindir} files=`grep -lr defined.*ACE_TEMPLATES_REQUIRE_SOURCE ace | %{__sed} -e 's/^\.//' -e 's/.h$/.cpp/'` for i in $files ; do if [ ! -f %{buildroot}%{_includedir}/$i -a -f $i ] ; then install -m 644 $i %{buildroot}%{_includedir}/`dirname $i` fi done files=`grep -lr defined.*ACE_TEMPLATES_REQUIRE_SOURCE Kokyu | %{__sed} -e 's/^\.//' -e 's/.h$/.cpp/'` for i in $files ; do if [ ! -f %{buildroot}%{_includedir}/$i -a -f $i ] ; then install -m 644 $i %{buildroot}%{_includedir}/`dirname $i` fi done # I hope that's all we need # fix location of .pc files if test x"%{_libdir}" != "x%{_prefix}/lib"; then if test -d %{buildroot}%{_prefix}/lib/pkgconfig; then for i in %{buildroot}%{_prefix}/lib/pkgconfig/*.pc; do mv -f $i %{buildroot}%{_libdir}/pkgconfig done rm -rf %{buildroot}%{_prefix}/lib/pkgconfig fi fi # multiarch %multiarch_includes %{buildroot}%{_includedir}/ace/config.h %multiarch_includes %{buildroot}%{_includedir}/ace/config-win32-common.h %multiarch_includes %{buildroot}%{_includedir}/ace/config-win32-ghs.h %clean rm -rf %{buildroot} %changelog * Thu Jul 30 2009 Helio Chissini de Castro <helio@mandriva.com> 0:5.7.2-1mdv2010.0 + Revision: 404696 - New upstream version 5.7.2 - Remodeled package to remove some unwanted hacks - Enable static devel package and moved static files - Enable gcc visibility + Thierry Vignaud <tvignaud@mandriva.com> - rebuild - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 0:5.6-1mdv2008.1 + Revision: 135813 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Sep 04 2007 David Walluck <walluck@mandriva.org> 0:5.6-1mdv2008.0 + Revision: 78932 - 5.6 - new lib policy - rename doc package * Mon May 14 2007 Helio Chissini de Castro <helio@mandriva.com> 0:5.5.8-2mdv2008.0 + Revision: 26715 - Added THREAD_SAFE_ACCEPT option. Some mapping tools need this feature * Sat May 12 2007 David Walluck <walluck@mandriva.org> 0:5.5.8-1mdv2008.0 + Revision: 26468 - fix docs - 5.5.8 * Wed Sep 13 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-09-13 15:42:44 (61236) - Raise release * Wed Sep 13 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-09-13 14:16:27 (61226) - Enable safe threads * Tue Sep 12 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-09-12 22:43:49 (61138) - Fix for bug http://qa.mandriva.com/show_bug.cgi?id=24852 ( missing header ) * Mon Aug 14 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-08-14 23:25:04 (56095) - import ace-5.5.2-1mdv2007.0 * Thu Jul 13 2006 David Walluck <walluck@mandriva.org> 0:5.5.2-1mdv2007.0 - 5.5.2 * Mon Jun 26 2006 Lenny Cartier <lenny@mandriva.com> 0:5.5.1-2mdv2007.0 - rebuild * Wed May 24 2006 David Walluck <walluck@mandriva.org> 0:5.5.1-1mdk - 5.5.1 * Mon Mar 20 2006 David Walluck <walluck@mandriva.org> 0:5.5-1mdk - 5.5 * Sun Feb 26 2006 David Walluck <walluck@mandriva.org> 0:5.4.10-3mdk - deal with more install issues - use lib%%{1} - add Provides: libace-devel * Sun Feb 26 2006 David Walluck <walluck@mandriva.org> 0:5.4.10-2mdk - fix info install * Sun Feb 26 2006 David Walluck <walluck@mandriva.org> 0:5.4.10-1mdk - 5.4.10 * Fri Sep 16 2005 David Walluck <walluck@mandriva.org> 0:5.4.7-2mdk - fix install when "/usr/lib/pkgconfig" != "/usr/lib/pkgconfig" * Mon Aug 15 2005 David Walluck <walluck@mandriva.org> 0:5.4.7-1mdk - 5.4.7 - really install info pages - add additional ChangeLogs to devel package - macros - renamed README-gperf.Mdk to README.gperf - note: docs and examples where never split in 0:5.4.4-1mdk * Thu Mar 17 2005 Lenny Cartier <lenny@mandrakesoft.com> 0:5.4.4-1mdk - from : Eric Leroy <eric_leroy@trimble.com> : - New version (from configure script). - Includes gperf-ace to avoid conflict with gperf rpm (cf README-gperf.Mdk). - Man and info page. - multiarch. - Split docs and examples. * Wed Feb 09 2005 Lenny Cartier <lenny@mandrakesoft.com> 0:5.4-4mdk - from Eric Leroy <eric_leroy@trimble.com> : - Use autoreconf after patching Makefile.am - Use a configure symlink for spec file portablility. - Use --with-gperf=no since gperf is in a separate rpm. - QoS is disabled by default (does not compile). * Thu Jul 22 2004 Michael Scherer <misc@mandrake.org> 0:5.4-3mdk - rebuild for new gcc, remove libtool hack * Sat Feb 21 2004 David Walluck <walluck@linux-mandrake.com> 0:5.4-2mdk - bzip2 source and patch - apparently `make install' doesn't install all of the header files * Sat Jan 31 2004 David Walluck <walluck@linux-mandrake.com> 0:5.4-1mdk - release