%define name rpm-manbo-setup %define version 2 %define release %manbo_mkrel 13 # for bootstrapping purpose: %if "%{?manbo_mkrel:has_manbo}" == "" %define manbo_mkrel(c:) %{1} %endif Summary: The Manbo rpm configuration and scripts Name: %{name} Version: %{version} Release: %{release} Source0: rpmrc Source1: rpmpopt Source2: rpmb_deprecated Source3: manbo.macros Source4: manbo-build.macros Source5: fix-libtool-ltmain-from-overlinking Source6: force-as-needed-for-shared-lib-in-libtool Source7: drop-ld-no-undefined-for-shared-lib-modules-in-libtool Source8: fix-dlsearch-path-in-libtool-for-multilib License: GPL Group: System/Configuration/Packaging BuildRoot: %{_tmppath}/%{name}-buildroot BuildArch: noarch %description The Manbo rpm configuration and scripts. %package build Group: System/Configuration/Packaging Summary: The Manbo rpm configuration and scripts to build rpms Requires: %name = %version-%release %description build The Manbo rpm configuration and scripts dedicated to build rpms. %install rm -rf %buildroot install -d %buildroot/usr/lib/rpm/manbo install -m 644 %SOURCE0 %SOURCE1 %buildroot/usr/lib/rpm/manbo install %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %buildroot/usr/lib/rpm/manbo install %SOURCE2 %buildroot/usr/lib/rpm install -D -m 644 %SOURCE3 %buildroot/etc/rpm/macros.d/10manbo.macros install -D -m 644 %SOURCE4 %buildroot/etc/rpm/macros.d/10manbo-build.macros %clean rm -rf %buildroot %files %defattr(-,root,root) %dir %{_sysconfdir}/rpm/macros.d %{_sysconfdir}/rpm/macros.d/10manbo.macros %dir %_prefix/lib/rpm/manbo %_prefix/lib/rpm/manbo/rpmpopt %_prefix/lib/rpm/manbo/rpmrc %_prefix/lib/rpm/rpmb_deprecated %files build %{_sysconfdir}/rpm/macros.d/10manbo-build.macros %_prefix/lib/rpm/manbo/fix-libtool-ltmain-from-overlinking %_prefix/lib/rpm/manbo/force-as-needed-for-shared-lib-in-libtool %_prefix/lib/rpm/manbo/drop-ld-no-undefined-for-shared-lib-modules-in-libtool %_prefix/lib/rpm/manbo/fix-dlsearch-path-in-libtool-for-multilib %changelog * Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 2-13mnb2 + Revision: 265652 - rebuild early 2009.0 package (before pixel changes) * Tue Jun 10 2008 Pixel <pixel@mandriva.com> 2-12mnb2 + Revision: 217356 - when modifying libtool, use plain echo instead of $echo since some old libtool use $ECHO instead * Mon Jun 09 2008 Pixel <pixel@mandriva.com> 2-11mnb2 + Revision: 217017 - create %%ldflags out of %%setup_compile_flags (as suggested by Anssi on cooker ml) * Fri Jun 06 2008 Pixel <pixel@mandriva.com> 2-10mnb2 + Revision: 216518 - create %%setup_compile_flags to be used in %%cmake * Wed Jun 04 2008 Anssi Hannula <anssi@mandriva.org> 2-9mnb2 + Revision: 214913 - add fix-dlsearch-path-in-libtool-for-multilib and run it before configure; it will modify libtool run-time library search path definition in configure script for lib64 compliance if configure was generated with a libtool version that had "/usr/lib /lib" hardcoded; this will prevent libtool from adding invalid rpath when linking against libraries in standard lib64 library directories * Mon Jun 02 2008 Pixel <pixel@mandriva.com> 2-8mnb2 + Revision: 214232 - revert to upstream default %%_localstatedir (/var instead of /var/lib) (#22312) * Mon May 26 2008 Pixel <pixel@mandriva.com> 2-7mnb2 + Revision: 211347 - create %%before_configure when %%configure nor %%configure2_5x can be used (it also factorizes duplication between %%configure and %%configure2_5x) * Fri May 23 2008 Pixel <pixel@mandriva.com> 2-6mnb2 + Revision: 210340 - when forcing ld option "--no-undefined", modify ltmain.sh to discard --no-undefined when building share library modules (ie plugins) * Wed May 21 2008 Pixel <pixel@mandriva.com> 2-5mnb2 + Revision: 209770 - have ld option "--as-needed" and --no-undefined" by default (to workaround, define %%_disable_ld_as_needed or %%_disable_ld_no_undefined) * Wed May 21 2008 Pixel <pixel@mandriva.com> 2-4mnb2 + Revision: 209757 - when using as-needed, add to existing LDFLAGS * Tue May 20 2008 Pixel <pixel@mandriva.com> 2-3mnb2 + Revision: 209464 - setting %%_enable_as_needed adds --as-needed and --no-undefined to ld calls (added through LDFLAGS with -Wl when calling %%configure) - it also forces --as-needed in libtool for shared libraries (to workaround a libtool bug, cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) * Wed May 07 2008 Pixel <pixel@mandriva.com> 2-2mnb2 + Revision: 202856 - call fix-libtool-ltmain-from-overlinking in %%configure and %%configure2_5x to prevent libtool overlinking (cf http://wiki.mandriva.com/en/Overlinking) - manbo_release is now 2 * Fri Mar 28 2008 Pixel <pixel@mandriva.com> 0.6-1mnb1 + Revision: 190833 - remove duplicated space in %%optflags (otherwise gdb build breaks) * Fri Feb 22 2008 Pixel <pixel@mandriva.com> 0.5-1mnb1 + Revision: 173824 - replace %%mkrel with %%manbo_mkrel for Manbo Core 1 * Fri Feb 15 2008 Pixel <pixel@mandriva.com> 0.5-1mdv2008.1 + Revision: 169009 - 0.5: move enough macros here from rpm-mandriva-setup to correctly define macros %%configure, %%optflags and %%_install_info * Fri Feb 15 2008 Pixel <pixel@mandriva.com> 0.4-1mdv2008.1 + Revision: 168823 - move macros needed for Manbo packages here out of rpm-mandriva-setup * Fri Feb 15 2008 Pixel <pixel@mandriva.com> 0.3-1mdv2008.1 + Revision: 168743 - rpmb_deprecated must be executable * Thu Feb 14 2008 Pixel <pixel@mandriva.com> 0.2-1mdv2008.1 + Revision: 167745 - rpmb_deprecated must be in /usr/lib/rpm * Thu Feb 14 2008 Pixel <pixel@mandriva.com> 0.1-1mdv2008.1 + Revision: 167720 - initial package (with files moved from rpm-mandriva-setup) - Created package structure for rpm-manbo-setup.