Accepting request 581147 from GNOME:Next

spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/581147
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-doc-utils?expand=0&rev=82
This commit is contained in:
Dominique Leuenberger 2018-03-05 13:51:23 +00:00 committed by Git OBS Bridge
parent c99a4200bd
commit ba39e84929
2 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:28:06 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 17 14:00:44 UTC 2013 - fcrozat@suse.com Tue Sep 17 14:00:44 UTC 2013 - fcrozat@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gnome-doc-utils # spec file for package gnome-doc-utils
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,9 +20,9 @@ Name: gnome-doc-utils
Version: 0.20.10 Version: 0.20.10
Release: 0 Release: 0
Summary: A Collection of Documentation Utilities for GNOME Summary: A Collection of Documentation Utilities for GNOME
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Url: http://www.gnome.org URL: http://www.gnome.org
Source: http://download.gnome.org/sources/gnome-doc-utils/0.20/%{name}-%{version}.tar.xz Source: http://download.gnome.org/sources/gnome-doc-utils/0.20/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gnome-doc-utils-fig-path.patch bgo#682776 dimstar@opensuse.org -- Fix linking of figs in subfolders. # PATCH-FIX-UPSTREAM gnome-doc-utils-fig-path.patch bgo#682776 dimstar@opensuse.org -- Fix linking of figs in subfolders.
Patch0: gnome-doc-utils-fig-path.patch Patch0: gnome-doc-utils-fig-path.patch
@ -33,11 +33,10 @@ BuildRequires: libxml2-python
# needed for xmllint # needed for xmllint
BuildRequires: libxml2-tools BuildRequires: libxml2-tools
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: pkg-config BuildRequires: pkgconfig
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
Requires: libxslt Requires: libxslt
Recommends: %{name}-lang Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%description %description
@ -49,7 +48,7 @@ Yelp.
%package -n xml2po %package -n xml2po
Summary: Tool to extract translatable content from XML documents Summary: Tool to extract translatable content from XML documents
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Requires: libxml2-python Requires: libxml2-python
@ -60,7 +59,7 @@ POT files.
%package devel %package devel
Summary: A Collection of Documentation Utilities for GNOME Summary: A Collection of Documentation Utilities for GNOME
License: GPL-2.0+ and LGPL-2.1+ License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Requires: %{name} = %{version} Requires: %{name} = %{version}
# For the validation with xsltproc to use a local DTD # For the validation with xsltproc to use a local DTD
@ -76,7 +75,7 @@ Yelp.
%package -n xml2po-devel %package -n xml2po-devel
Summary: Tool to extract translatable content from XML documents Summary: Tool to extract translatable content from XML documents
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Requires: xml2po = %{version} Requires: xml2po = %{version}
@ -86,6 +85,7 @@ content from free-form XML documents and outputs gettext compatible
POT files. POT files.
%lang_package %lang_package
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -94,24 +94,21 @@ translation-update-upstream
%build %build
%configure\ %configure\
--disable-scrollkeeper --disable-scrollkeeper
make %{?jobs:-j%jobs} pkgconfigdir=%{_datadir}/pkgconfig make %{?_smp_mflags} pkgconfigdir=%{_datadir}/pkgconfig
%install %install
%makeinstall pkgconfigdir=%{_datadir}/pkgconfig %make_install pkgconfigdir=%{_datadir}/pkgconfig
%if 0%{?suse_version} <= 1120 %if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* rm %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif %endif
%find_lang %{name} %{?no_lang_C} %find_lang %{name} %{?no_lang_C}
%find_lang gnome-doc-make %{?no_lang_C} %{name}.lang %find_lang gnome-doc-make %{?no_lang_C} %{name}.lang
%find_lang gnome-doc-xslt %{?no_lang_C} %{name}.lang %find_lang gnome-doc-xslt %{?no_lang_C} %{name}.lang
%fdupes %{buildroot} %fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %license COPYING
%doc AUTHORS COPYING ChangeLog NEWS README %doc AUTHORS ChangeLog NEWS README
%dir %{_datadir}/gnome/ %dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/ %dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/gnome-doc-make/ %dir %{_datadir}/gnome/help/gnome-doc-make/
@ -126,14 +123,13 @@ rm -rf %{buildroot}
%{_datadir}/xml/mallard %{_datadir}/xml/mallard
%files -n xml2po %files -n xml2po
%defattr (-, root, root) %license xml2po/COPYING
%doc xml2po/AUTHORS xml2po/ChangeLog xml2po/COPYING xml2po/NEWS xml2po/README %doc xml2po/AUTHORS xml2po/ChangeLog xml2po/NEWS xml2po/README
%{_bindir}/xml2po %{_bindir}/xml2po
%{python_sitelib}/xml2po %{python_sitelib}/xml2po
%{_mandir}/man?/xml2po.* %{_mandir}/man?/xml2po*%{ext_man}
%files devel %files devel
%defattr (-, root, root)
%{_bindir}/gnome-doc-prepare %{_bindir}/gnome-doc-prepare
%dir %{_datadir}/aclocal %dir %{_datadir}/aclocal
%{_datadir}/aclocal/gnome-doc-utils.m4 %{_datadir}/aclocal/gnome-doc-utils.m4
@ -143,7 +139,6 @@ rm -rf %{buildroot}
%{_datadir}/gnome-doc-utils/template*.* %{_datadir}/gnome-doc-utils/template*.*
%files -n xml2po-devel %files -n xml2po-devel
%defattr (-, root, root)
%{_datadir}/pkgconfig/xml2po.pc %{_datadir}/pkgconfig/xml2po.pc
%files lang -f %{name}.lang %files lang -f %{name}.lang