summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kaffeine
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2021-04-29 12:01:01 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2021-04-29 12:01:01 +0200
commit7fbd0551c30531827b57050f2ea9b094b7f15df6 (patch)
tree5d18139b1237ea61f0f2eb0fddfd248fa05bf1bf /redhat/applications/kaffeine
parent32216f735362249e8947456bf98fc3ebef2330e6 (diff)
downloadtde-packaging-7fbd0551c30531827b57050f2ea9b094b7f15df6.tar.gz
tde-packaging-7fbd0551c30531827b57050f2ea9b094b7f15df6.zip
RPM: update spec files for R14.0.10
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/applications/kaffeine')
-rw-r--r--redhat/applications/kaffeine/kaffeine.spec52
1 files changed, 24 insertions, 28 deletions
diff --git a/redhat/applications/kaffeine/kaffeine.spec b/redhat/applications/kaffeine/kaffeine.spec
index 1ca4e10a3..0363c97d2 100644
--- a/redhat/applications/kaffeine/kaffeine.spec
+++ b/redhat/applications/kaffeine/kaffeine.spec
@@ -64,7 +64,7 @@ BuildRequires: desktop-file-utils
BuildRequires: gettext
-BuildRequires: autoconf automake libtool m4
+BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@@ -215,6 +215,7 @@ Konqueror plugin, OSD and much more.
%{tde_datadir}/mimelnk/*/*.desktop
%{tde_datadir}/service*/*.desktop
%{tde_tdedocdir}/HTML/en/kaffeine/
+%{tde_mandir}/man1/kaffeine.1*
##########
@@ -260,39 +261,34 @@ Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
-%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
-%__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/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} \
- --libdir=%{tde_libdir} \
- --datadir=%{tde_datadir} \
- --includedir=%{tde_tdeincludedir} \
- --mandir=%{tde_mandir} \
+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}" \
+ -DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
+ -DCMAKE_SKIP_RPATH=OFF \
+ -DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
+ -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} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
\
- --with-xinerama \
- --with-gstreamer \
- --with-lame \
-%if 0%{?rhel} > 0 && 0%{?rhel} <= 5
- --without-dvb \
-%endif
-
+ -DWITH_ALL_OPTIONS=ON \
+ %{?!with_lame:-DWITH_LAME=OFF} \
+ -DBUILD_ALL=ON \
+ ..
%__make %{?_smp_mflags}
@@ -300,7 +296,7 @@ export PATH="%{tde_bindir}:${PATH}"
%install
export PATH="%{tde_bindir}:${PATH}"
%__rm -rf $RPM_BUILD_ROOT
-%__make install DESTDIR=$RPM_BUILD_ROOT
+%__make install DESTDIR=%{buildroot} -C build
## File lists
# locale's