diff options
author | François Andriot <albator78@libertysurf.fr> | 2019-11-03 11:03:22 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2019-11-03 11:16:56 +0100 |
commit | cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859 (patch) | |
tree | 51c7e8b06b5c920736585ff8dbead62834875859 /redhat/libraries/libkexiv2 | |
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/libraries/libkexiv2')
-rw-r--r-- | redhat/libraries/libkexiv2/libkexiv2.spec (renamed from redhat/libraries/libkexiv2/libkexiv2-14.0.0.spec) | 61 |
1 files changed, 28 insertions, 33 deletions
diff --git a/redhat/libraries/libkexiv2/libkexiv2-14.0.0.spec b/redhat/libraries/libkexiv2/libkexiv2.spec index 26a35fb11..ce0ecd529 100644 --- a/redhat/libraries/libkexiv2/libkexiv2-14.0.0.spec +++ b/redhat/libraries/libkexiv2/libkexiv2.spec @@ -22,7 +22,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 libkexiv2 %define tde_prefix /opt/trinity @@ -67,18 +67,10 @@ Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz BuildRequires: trinity-tdelibs-devel >= %{tde_version} BuildRequires: desktop-file-utils +BuildRequires: cmake >= 2.8 BuildRequires: gettext BuildRequires: gcc-c++ -# AUTOTOOLS -BuildRequires: automake autoconf libtool -%if 0%{?mgaversion} || 0%{?mdkversion} -BuildRequires: %{_lib}ltdl-devel -%endif -%if 0%{?fedora} || 0%{?rhel} >= 5 || 0%{?suse_version} >= 1220 -BuildRequires: libtool-ltdl-devel -%endif - # EXIV2 %if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}exiv2-devel @@ -145,41 +137,44 @@ Libkexif is a wrapper around Exiv2 library to manipulate pictures metadata. %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} \ - --libdir=%{tde_libdir} \ - --includedir=%{tde_tdeincludedir} \ +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_VERBOSE_MAKEFILE=ON \ + -DWITH_GCC_VISIBILITY=OFF \ \ - --disable-dependency-tracking \ - --disable-debug \ - --enable-new-ldflags \ - --enable-final \ - --enable-closure \ - --enable-rpath \ - --disable-gcc-hidden-visibility + -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \ + -DINCLUDE_INSTALL_DIR="%{tde_tdeincludedir}" \ + -DLIB_INSTALL_DIR="%{tde_libdir}" \ + \ + -DWITH_ALL_OPTIONS=ON \ + -DWITH_GCC_VISIBILITY=ON \ + \ + -DBUILD_ALL=ON \ + -DBUILD_DOC=ON \ + -DBUILD_TRANSLATIONS=ON \ + \ + .. -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} || %__make %install export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} - -# RHEL4: pkgconfig files do not support 'URL' keyword . -%if 0%{?rhel} == 4 -%__sed -i %{?buildroot}%{tde_libdir}/pkgconfig/*.pc -e "s/^URL: /#URL: /" -%endif +%__make install DESTDIR=%{buildroot} -C build %clean |