Hello community, here is the log from the commit of package weechat for openSUSE:Factory checked in at 2014-11-24 11:13:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/weechat (Old) and /work/SRC/openSUSE:Factory/.weechat.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "weechat" Changes: -------- --- /work/SRC/openSUSE:Factory/weechat/weechat.changes 2014-10-18 09:09:17.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.weechat.new/weechat.changes 2014-11-24 11:13:42.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Nov 20 14:46:54 UTC 2014 - tchvatal@suse.com + +- Remove sle11 support as now I don't need it anymore +- Use %cmake macro properly +- Document that there are tests that need extra pkg +- Split documentation into -doc subpackage + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ weechat.spec ++++++ --- /var/tmp/diff_new_pack.ALgzDK/_old 2014-11-24 11:13:42.000000000 +0100 +++ /var/tmp/diff_new_pack.ALgzDK/_new 2014-11-24 11:13:43.000000000 +0100 @@ -27,8 +27,11 @@ Source1: weechat.desktop # PATCH-FIX-UPSTREAM weechat-capath.patch https://savannah.nongnu.org/patch/index.php?8153 lnussel@suse.de -- use system's default certificate store Patch0: weechat-capath.patch +BuildRequires: asciidoc BuildRequires: cmake BuildRequires: curl-devel +BuildRequires: docbook5-xsl-stylesheets +BuildRequires: enchant-devel BuildRequires: gcc-c++ BuildRequires: grep BuildRequires: guile-devel @@ -37,30 +40,20 @@ BuildRequires: libgnutls-devel BuildRequires: libgpg-error-devel BuildRequires: libtool +BuildRequires: libxslt-tools +BuildRequires: lua51-devel BuildRequires: lzo-devel BuildRequires: ncurses-devel BuildRequires: perl BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: ruby-devel +BuildRequires: source-highlight BuildRequires: tcl-devel BuildRequires: update-desktop-files Requires: hicolor-icon-theme +Suggests: %{name}-doc BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1220 -BuildRequires: enchant-devel -%endif -%if 0%{?suse_version} > 1220 -BuildRequires: lua51-devel -%else -BuildRequires: lua-devel -%endif -%if 0%{?suse_version} > 1220 -BuildRequires: asciidoc -BuildRequires: docbook5-xsl-stylesheets -BuildRequires: libxslt-tools -BuildRequires: source-highlight -%endif %description WeeChat (Wee Enhanced Environment for Chat) is a fast and light cross-platform @@ -70,29 +63,34 @@ %lang_package +%package doc +Summary: Documentation for %{name} +Group: Documentation/HTML +Requires: %{name} = %{version} + +%description doc +Various documentation files for %{name}. + %package devel Summary: Development Environment for %{name} Plugins Group: Development/Libraries/C and C++ -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description devel Development environment for authoring %{name} plugins. -%if 0%{?suse_version} > 1220 - %package guile Summary: Guile Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description guile Support for %{name} scripts written in the Guile language. -%endif %package lua Summary: Lua Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description lua Support for %{name} scripts written in the Lua language. @@ -100,7 +98,7 @@ %package perl Summary: Perl Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %{?libperl_requires} %description perl @@ -109,7 +107,7 @@ %package python Summary: Python Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description python Support for %{name} scripts written in the Python language. @@ -117,7 +115,7 @@ %package tcl Summary: Tcl Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description tcl Support for %{name} scripts written in the Tcl language. @@ -125,21 +123,18 @@ %package ruby Summary: Ruby Scripting Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description ruby Support for %{name} scripts written in the Ruby language. -%if 0%{?suse_version} > 1220 - %package aspell Summary: Aspell Spell-Checking Support for %{name} Group: Productivity/Networking/IRC -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} %description aspell Spell-checking support for %{name}, using the aspell library. -%endif %prep %setup -q @@ -152,41 +147,31 @@ %build export CFLAGS="%{optflags}" -mkdir build -pushd build -cmake \ - -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ +# Tests require cpputest package +# no-undefined for perl seem not to work as desired +%cmake \ + -DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed \ -DLIBDIR="%{_libdir}" \ -DPYTHON_LIBRARY="%{_libdir}/libpython%{py_ver}.so" \ -DENABLE_ENCHANT=ON \ -DENABLE_DOC=ON \ - -DENABLE_MAN=ON \ - .. -make %{?_smp_flags} VERBOSE=1 -popd #build + -DENABLE_MAN=ON +make %{?_smp_mflags} %install -pushd build -make DESTDIR=%{buildroot} install %{?_smp_mflags} -popd #build +%cmake_install # due to an unknown race condition cmake does not always create a compatibility # symlink ln -sf %{_bindir}/weechat %{buildroot}%{_bindir}/weechat-curses install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" -%if 0%{?suse_version} %suse_update_desktop_file -r "%{name}" Network IRCClient -%endif -%if 0%{?suse_version} > 1220 mv "%{buildroot}%{_datadir}/doc/weechat" html -%endif %find_lang "%{name}" --with-man -%if 0%{?suse_version} > 1220 - %post %desktop_database_post %icon_theme_cache_post @@ -194,15 +179,15 @@ %postun %desktop_database_postun %icon_theme_cache_postun -%endif + +%files doc +%defattr(-,root,root) +%doc html/ %files %defattr(-,root,root) %doc AUTHORS.asciidoc ChangeLog.asciidoc Contributing.asciidoc COPYING %doc README.asciidoc ReleaseNotes.asciidoc -%if 0%{?suse_version} > 1220 -%doc html/ -%endif %{_bindir}/weechat-curses %{_bindir}/weechat %dir %{_libdir}/weechat @@ -217,9 +202,7 @@ %{_libdir}/weechat/plugins/script.so %{_libdir}/weechat/plugins/trigger.so %{_libdir}/weechat/plugins/xfer.so -%if 0%{?suse_version} > 1220 %{_mandir}/man1/weechat.1* -%endif %{_datadir}/applications/weechat.desktop %{_datadir}/icons/hicolor/*/apps/weechat.png @@ -231,12 +214,9 @@ %{_includedir}/weechat %{_libdir}/pkgconfig/weechat.pc -%if 0%{?suse_version} > 1220 - %files guile %defattr(-,root,root) %{_libdir}/weechat/plugins/guile.so -%endif %files lua %defattr(-,root,root) @@ -258,11 +238,8 @@ %defattr(-,root,root) %{_libdir}/weechat/plugins/ruby.so -%if 0%{?suse_version} > 1220 - %files aspell %defattr(-,root,root) %{_libdir}/weechat/plugins/aspell.so -%endif %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org