From 6141ba59d4df83beac1842d5f0f845ce75524f00ff956adbedfd4577da129b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 25 Jan 2014 20:55:31 +0000 Subject: [PATCH] - Cleanup with spec-cleaner and noarch the documentation. OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libvisio?expand=0&rev=17 --- libvisio.changes | 5 +++++ libvisio.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/libvisio.changes b/libvisio.changes index 5977f73..c253a3f 100644 --- a/libvisio.changes +++ b/libvisio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 25 20:55:30 UTC 2014 - tchvatal@suse.com + +- Cleanup with spec-cleaner and noarch the documentation. + ------------------------------------------------------------------- Sat Jan 18 14:14:24 UTC 2014 - crrodriguez@opensuse.org diff --git a/libvisio.spec b/libvisio.spec index ead1b7e..b4d34d0 100644 --- a/libvisio.spec +++ b/libvisio.spec @@ -1,7 +1,7 @@ # # spec file for package libvisio # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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,6 @@ %define libname libvisio-0_0-0 - Name: libvisio Version: 0.0.30 Release: 0 @@ -70,6 +69,9 @@ This package contains the libvisio development files. %package devel-doc Summary: Documentation for the libvisio API Group: Documentation/HTML +%if 0%{?suse_version} > 1200 +BuildArch: noarch +%endif %description devel-doc This package contains documentation for the libvisio API. @@ -87,7 +89,7 @@ This package contains tools to work with documents in MS Visio file-format. %patch1 -p1 -b .wpx_seek_end %build -export CXXFLAGS="%optflags -fvisibility-inlines-hidden" +export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden" %configure \ --disable-werror \ --disable-static \ @@ -95,9 +97,9 @@ export CXXFLAGS="%optflags -fvisibility-inlines-hidden" make %{?_smp_mflags} V=1 %install -make DESTDIR=%{buildroot} install +make DESTDIR=%{buildroot} install %{?_smp_mflags} -rm %{buildroot}%{_libdir}/*.la +find %{buildroot} -type f -name "*.la" -delete -print cp -p AUTHORS COPYING.* ChangeLog %{buildroot}%{_docdir}/%{name}-devel/