diff options
author | Robert Xu <robxu9@gmail.com> | 2012-02-26 12:50:04 -0500 |
---|---|---|
committer | Robert Xu <robxu9@gmail.com> | 2012-02-26 12:50:04 -0500 |
commit | 481b46fdd0e36396cbbf2308dfce83df10b979df (patch) | |
tree | 16071d4a4e45db15c7080e2c0f8bedee90bc28a9 /opensuse/core/tde-filesystem/macros.tde | |
parent | 5d7b5e6defb05f81691d286d40f67260c4733d00 (diff) | |
download | tde-packaging-481b46fdd0e36396cbbf2308dfce83df10b979df.tar.gz tde-packaging-481b46fdd0e36396cbbf2308dfce83df10b979df.zip |
Push working tdelibs (rpmlint errors don't count)
Diffstat (limited to 'opensuse/core/tde-filesystem/macros.tde')
-rw-r--r-- | opensuse/core/tde-filesystem/macros.tde | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/opensuse/core/tde-filesystem/macros.tde b/opensuse/core/tde-filesystem/macros.tde index 20998b9b9..cfb1219d2 100644 --- a/opensuse/core/tde-filesystem/macros.tde +++ b/opensuse/core/tde-filesystem/macros.tde @@ -40,11 +40,42 @@ %_tde_modules %{_tde_modulesdir} %_tde_servicetypes %{_tde_servicetypesdir} -%_tde_platform_version 3.5.13 +%_tde_platform_version R13.99 -%tde_runtime_requires Requires: tdebase3-runtime >= %_tde_platform_version qt3 >= 3.3.8d +%tde_runtime_requires Requires: tdebase3-runtime >= %_tde_platform_version qt3 >= 3.4.0 %_tde_build_type release + +%cmake_tdeusr(d:) \ + export CFLAGS=$RPM_OPT_FLAGS \ + export CXXFLAGS=$RPM_OPT_FLAGS \ + export LDFLAGS="-Wl,-Bsymbolic-functions $LDFLAGS" \ + _tde_libsuffix=$(echo %_lib | cut -b4-) \ + bdir=. \ + %{-d:dir=%{-d*} \ + mkdir $dir \ + cd $dir \ + bdir=.. } \ + cmake -DCMAKE_SKIP_RPATH=ON \\\ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \\\ + -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\ + -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\ + -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\ + -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir} \\\ + -DLIB_SUFFIX="$_tde_libsuffix" \\\ + -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\ + -DCMAKE_BUILD_TYPE=%{_tde_build_type} \\\ + -DCMAKE_VERBOSE_MAKEFILE=ON \\\ + -DQT_LIBRARY_DIRS=/usr/lib/qt3/%{_lib} \\\ + -DQT_INCLUDE_DIRS=/usr/lib/qt3/include \\\ + -DPKGCONFIG_INSTALL_DIR=%{_libdir}/pkgconfig \\\ + -DMAN_INSTALL_DIR=%{_mandir} \\\ + -DINFO_INSTALL_DIR=%{_infodir} \\\ + $bdir %* \ + if [ "$bdir" == ".." ]; then \ + cd .. \ + fi \ +%{nil} %cmake_tde(d:) \ export CFLAGS=$RPM_OPT_FLAGS \ @@ -128,7 +159,7 @@ if test -f $HOME/.rpmmacros && test -d /usr/src/packages/SRPMS; then \ distribution=`grep ^%distribution $HOME/.rpmmacros | cut '-d ' -f2` \ fi \ - find $RPM_BUILD_ROOT/opt/kde3/share \\\ + find $RPM_BUILD_ROOT/%{_tde_sharedir} \\\ -name '*.desktop' 2> /dev/null | while read file; do \ test -r "$file" || continue \ grep -q "^X-SuSE-translate=" "$file" && continue \ |