Accepting request 1091257 from Publishing

- Modernise spec file 

- Remove unused rpmlintrc filter

OBS-URL: https://build.opensuse.org/request/show/1091257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlstarlet?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2023-06-08 19:41:54 +00:00 committed by Git OBS Bridge
commit c586ab71a5
3 changed files with 22 additions and 19 deletions

View File

@ -1,7 +1,2 @@
##
#
addFilter("files-duplicate .*/xmlstarlet/ChangeLog .*/xmlstarlet/NEWS")
# The package is pretty small, it doesn't pay off to split documentation # The package is pretty small, it doesn't pay off to split documentation
addFilter("package-with-huge-docs") addFilter("package-with-huge-docs")

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 7 11:12:36 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Modernise spec file
-------------------------------------------------------------------
Wed Jun 7 09:01:17 UTC 2023 - Ana Guerrero <ana.guerrero@suse.com>
- Remove unused rpmlintrc filter
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 3 19:09:24 UTC 2016 - mpluskal@suse.com Tue May 3 19:09:24 UTC 2016 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package xmlstarlet # spec file for package xmlstarlet
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2023 SUSE LLC
# #
# 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -22,7 +22,7 @@ Release: 0
Summary: Command Line Tool to Process XML Documents Summary: Command Line Tool to Process XML Documents
License: MIT License: MIT
Group: Productivity/Publishing/XML Group: Productivity/Publishing/XML
Url: http://sourceforge.net/projects/xmlstar/ URL: https://sourceforge.net/projects/xmlstar/
Source: http://prdownloads.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz Source: http://prdownloads.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz
Source1: %{name}-rpmlintrc Source1: %{name}-rpmlintrc
Patch2: %{name}-xml_depyx.c.diff Patch2: %{name}-xml_depyx.c.diff
@ -30,7 +30,6 @@ BuildRequires: libxml2-devel >= 2.6.27
BuildRequires: libxslt-devel >= 1.1.9 BuildRequires: libxslt-devel >= 1.1.9
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: sgml-skel BuildRequires: sgml-skel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
XMLStarlet (xml) is a command line XML toolkit which can be used to XMLStarlet (xml) is a command line XML toolkit which can be used to
@ -39,21 +38,20 @@ set of shell commands in similar way it is done for plain text files using
'grep', 'sed', 'awk', 'tr', 'diff', or 'patch'. 'grep', 'sed', 'awk', 'tr', 'diff', or 'patch'.
%prep %prep
%setup -q %autosetup -p0
%patch2
%build %build
export CFLAGS="%{optflags} -W -Wall" export CFLAGS="%{optflags} -W -Wall"
%configure \ %configure \
--disable-static-libs \ --disable-static-libs \
--disable-silent-rules --disable-silent-rules
make %{?_smp_mflags} %make_build
%check %check
make %{?_smp_mflags} tests %make_build tests
%install %install
make %{?_smp_mflags} DESTDIR=%{buildroot} install %make_install
install -d _docs install -d _docs
mv "%{buildroot}%{_datadir}/doc"/* _docs/ mv "%{buildroot}%{_datadir}/doc"/* _docs/
@ -66,12 +64,12 @@ cd %{buildroot}%{_mandir}/man1/
ln -s %{name}.1%{ext_man} xml.1%{ext_man} ln -s %{name}.1%{ext_man} xml.1%{ext_man}
%files %files
%defattr(-, root, root) %license Copyright
%doc AUTHORS ChangeLog NEWS README Copyright TODO %doc AUTHORS ChangeLog NEWS README TODO
%doc _docs/* %doc _docs/*
%{_bindir}/xml %{_bindir}/xml
%{_bindir}/%{name} %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man} %{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/xml.1%{ext_man} %{_mandir}/man1/xml.1%{?ext_man}
%changelog %changelog