- Modernise spec file

OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlstarlet?expand=0&rev=34
This commit is contained in:
Martin Pluskal 2023-06-07 11:13:42 +00:00 committed by Git OBS Bridge
parent 72de0c85ad
commit e4927487d8
2 changed files with 14 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@ -22,7 +22,7 @@ Release: 0
Summary: Command Line Tool to Process XML Documents
License: MIT
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
Source1: %{name}-rpmlintrc
Patch2: %{name}-xml_depyx.c.diff
@ -30,7 +30,6 @@ BuildRequires: libxml2-devel >= 2.6.27
BuildRequires: libxslt-devel >= 1.1.9
BuildRequires: pkgconfig
BuildRequires: sgml-skel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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'.
%prep
%setup -q
%patch2
%autosetup -p0
%build
export CFLAGS="%{optflags} -W -Wall"
%configure \
--disable-static-libs \
--disable-silent-rules
make %{?_smp_mflags}
%make_build
%check
make %{?_smp_mflags} tests
%make_build tests
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%make_install
install -d _docs
mv "%{buildroot}%{_datadir}/doc"/* _docs/
@ -66,12 +64,12 @@ cd %{buildroot}%{_mandir}/man1/
ln -s %{name}.1%{ext_man} xml.1%{ext_man}
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO
%license Copyright
%doc AUTHORS ChangeLog NEWS README TODO
%doc _docs/*
%{_bindir}/xml
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}
%{_mandir}/man1/xml.1%{ext_man}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/xml.1%{?ext_man}
%changelog