Hello community, here is the log from the commit of package qterm for openSUSE:Factory checked in at 2015-09-08 17:39:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qterm (Old) and /work/SRC/openSUSE:Factory/.qterm.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qterm" Changes: -------- --- /work/SRC/openSUSE:Factory/qterm/qterm.changes 2012-12-21 10:33:46.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.qterm.new/qterm.changes 2015-09-08 17:44:44.000000000 +0200 @@ -1,0 +2,9 @@ +Fri Sep 4 08:23:17 UTC 2015 - mplus...@suse.com + +- Use url for source +- Use cmake macros +- Use macros for updating desktop file and icon cache +- Use fdupes to replace duplicate files with symlinks +- Clenaup spec file with spec-cleaner + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qterm.spec ++++++ --- /var/tmp/diff_new_pack.nQ7g0u/_old 2015-09-08 17:44:47.000000000 +0200 +++ /var/tmp/diff_new_pack.nQ7g0u/_new 2015-09-08 17:44:47.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package qterm # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,19 @@ Name: qterm +Version: 0.5.12 +Release: 0 +Summary: QTerm is BBS client +License: GPL-2.0+ +Group: System/X11/Terminals +Url: http://qterm.sourceforge.net/ +Source0: http://prdownloads.sourceforge.net/qterm/%{name}-%{version}.tar.bz2 +Source1: qterm.desktop +Patch1: qterm-0.5.12-gcc-4.7.patch +Patch2: qterm-0.5.12-cmake-2.6.patch BuildRequires: cmake +BuildRequires: fdupes +BuildRequires: hicolor-icon-theme BuildRequires: libjpeg-devel BuildRequires: libqt4-devel >= 4.5.0 BuildRequires: libqt4-devel-doc @@ -25,60 +37,47 @@ BuildRequires: python-devel BuildRequires: qt4-qtscript BuildRequires: update-desktop-files -Summary: QTerm is BBS client -License: GPL-2.0+ -Group: System/X11/Terminals -Version: 0.5.12 -Release: 0 -Url: http://qterm.sourceforge.net/ -Source0: %{name}-%{version}.tar.bz2 -Patch1: qterm-0.5.12-gcc-4.7.patch -Patch2: qterm-0.5.12-cmake-2.6.patch -Source1: qterm.desktop +Requires: hicolor-icon-theme +Requires(post): update-desktop-files +Requires(postun): update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description QTerm is a full featured BBS client written in Qt. - - -Authors: --------- - kingson <xiaokiangw...@yahoo.com.cn> - fiasco <yinsho...@peoplemail.com.cn> - hooey <hepho...@hotmail.com> - %prep -%setup -q -n %{name}-%{version} -%patch1 -p0 +%setup -q +%patch1 %patch2 -p1 %build # This package failed when testing with -Wl,-as-needed being default. # So we disable it here, if you want to retest, just delete this comment and the line below. export SUSE_ASNEEDED=0 -mkdir build -pushd build -cmake .. -DCMAKE_INSTALL_PREFIX=/usr -make -popd +%cmake +make %{?_smp_mflags} %install # This package failed when testing with -Wl,-as-needed being default. # So we disable it here, if you want to retest, just delete this comment and the line below. export SUSE_ASNEEDED=0 -pushd build -%makeinstall -popd -mkdir -p $RPM_BUILD_ROOT/usr/share/applications/ -install -m 0644 $RPM_SOURCE_DIR/qterm.desktop $RPM_BUILD_ROOT/usr/share/applications/ +%cmake_install +install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/ +%fdupes -s %{buildroot} + +%post +%desktop_database_post +%icon_theme_cache_post + +%postun +%desktop_database_postun +%icon_theme_cache_postun %files %defattr(-,root,root) -/usr/share/qterm -/usr/share/applications/* -/usr/share/icons/hicolor/ -/usr/share/icons/hicolor/*/apps/*.png +%{_datadir}/qterm +%{_datadir}/applications/* +%{_datadir}/icons/hicolor/*/apps/*.png %{_bindir}/* %changelog