diff options
author | François Andriot <[email protected]> | 2019-11-03 11:03:22 +0100 |
---|---|---|
committer | François Andriot <[email protected]> | 2019-11-03 11:16:56 +0100 |
commit | cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859 (patch) | |
tree | 51c7e8b06b5c920736585ff8dbead62834875859 /redhat/applications/kdiff3 | |
parent | 411aad4790a5b19fe3f927c4dffd18116fe4db16 (diff) | |
download | tde-packaging-cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859.tar.gz tde-packaging-cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859.zip |
RPM: update spec files for TDE 14.0.7
Diffstat (limited to 'redhat/applications/kdiff3')
-rw-r--r-- | redhat/applications/kdiff3/kdiff3.spec (renamed from redhat/applications/kdiff3/kdiff3-14.0.0.spec) | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/redhat/applications/kdiff3/kdiff3-14.0.0.spec b/redhat/applications/kdiff3/kdiff3.spec index 50a13a04c..aa1a854a7 100644 --- a/redhat/applications/kdiff3/kdiff3-14.0.0.spec +++ b/redhat/applications/kdiff3/kdiff3.spec @@ -18,7 +18,7 @@ # TDE variables %define tde_epoch 2 %if "%{?tde_version}" == "" -%define tde_version 14.0.0 +%define tde_version 14.0.7 %endif %define tde_pkg kdiff3 %define tde_prefix /opt/trinity @@ -60,7 +60,7 @@ BuildRequires: trinity-tdelibs-devel >= %{tde_version} BuildRequires: trinity-tdebase-devel >= %{tde_version} BuildRequires: desktop-file-utils -BuildRequires: autoconf automake libtool m4 +BuildRequires: cmake >= 2.8 BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: libtool @@ -91,52 +91,61 @@ Unicode & UTF-8 support %prep %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} -%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" -%__make -f "admin/Makefile.common" - %build unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" - -%configure \ - --prefix=%{tde_prefix} \ - --exec-prefix=%{tde_prefix} \ - --bindir=%{tde_bindir} \ - --datadir=%{tde_datadir} \ - --includedir=%{tde_tdeincludedir} \ - --libdir=%{tde_libdir} \ - --mandir=%{tde_mandir} \ +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" + +if ! rpm -E %%cmake|grep -q "cd build"; then + %__mkdir_p build + cd build +fi + +%cmake \ + -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ + -DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \ + -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \ + -DCMAKE_SKIP_RPATH=OFF \ + -DCMAKE_INSTALL_RPATH="%{tde_libdir}" \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DWITH_GCC_VISIBILITY=OFF \ + \ + -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \ + -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \ + -DLIB_INSTALL_DIR="%{tde_libdir}" \ + -DPLUGIN_INSTALL_DIR="%{tde_tdelibdir}" \ + \ + -DWITH_ALL_OPTIONS=ON \ + -DWITH_GCC_VISIBILITY=ON \ + \ + -DBUILD_ALL=ON \ + -DBUILD_DOC=ON \ + -DBUILD_TRANSLATIONS=ON \ \ - --disable-dependency-tracking \ - --disable-debug \ - --enable-new-ldflags \ - --enable-final \ - --enable-closure \ - --enable-rpath \ - --disable-gcc-hidden-visibility + .. -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} || %__make %install export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} +%__make install DESTDIR=%{buildroot} -C build # Unwanted files # These are not HTML files but weird files in wrong place ?? %__rm -rf %{?buildroot}%{tde_tdedocdir}/HTML/kdiff3/ %find_lang %{tde_pkg} +%find_lang %{tde_pkg}_plugin %clean %__rm -rf %{buildroot} -%files -f %{tde_pkg}.lang +%files -f %{tde_pkg}.lang -f %{tde_pkg}_plugin.lang %defattr(-,root,root,-) %doc AUTHORS COPYING %{tde_bindir}/kdiff3 @@ -144,10 +153,11 @@ export PATH="%{tde_bindir}:${PATH}" %{tde_datadir}/apps/kdiff3part/ %{tde_datadir}/icons/hicolor/*/apps/kdiff3.png %{tde_datadir}/icons/locolor/*/apps/kdiff3.png +%{tde_docdir}/kdiff3/ %{tde_tdedocdir}/HTML/*/kdiff3/ %{tde_datadir}/services/kdiff3_plugin.desktop %{tde_datadir}/services/kdiff3part.desktop -%{tde_datadir}/applnk/Development/*.desktop +%{tde_tdeappdir}/kdiff3.desktop %{tde_datadir}/applnk/.hidden/kdiff3plugin.desktop %{tde_mandir}/man*/* %{tde_tdelibdir}/libkdiff3part.la |