Packaging cleanups and py3 fixes

This commit is contained in:
Peter Robinson 2020-01-29 15:06:41 +00:00
parent 99b56fca58
commit 41749cbce7
1 changed files with 7 additions and 47 deletions

View File

@ -6,7 +6,7 @@
Summary: Word processing program
Name: abiword
Version: %{majorversion}.%{minorversion}.%{microversion}
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
License: GPLv2+
URL: http://www.abisource.com/
@ -16,6 +16,7 @@ Source1: http://abisource.com/downloads/abiword/%{version}/source/abiword-docs-3
Source11: abiword.mime
Source12: abiword.keys
Source13: abiword.xml
Patch0: abiword-2.6.0-windowshelppaths.patch
Patch1: abiword-2.8.3-desktop.patch
Patch2: abiword-2.6.0-boolean.patch
@ -68,6 +69,7 @@ BuildRequires: wv-devel
BuildRequires: zlib-devel
Requires: libabiword = %{epoch}:%{version}-%{release}
Requires: python3-gobject-base
%description
AbiWord is a cross-platform Open Source word processor. It is full-featured,
@ -129,51 +131,6 @@ ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/abiword ./make-html.sh
cd $RPM_BUILD_DIR/abiword-%{version}
%{make_install}
# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<!--
BugReportURL: http://bugzilla.abisource.com/show_bug.cgi?id=13672
SentUpstream: 2014-09-17
-->
<application>
<id type="desktop">abiword.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<description>
<p>
AbiWord is a free word processing program similar to Microsoft® Word.
It is suitable for a wide variety of word processing tasks.
</p>
<p>
AbiWord allows you to collaborate with multiple people on one document at the
same time.
It is tightly integrated with the AbiCollab.net web service, which lets you
store documents online, allows easy document sharing with your friends, and
performs format conversions on the fly.
</p>
<!-- FIXME: Probably needs another paragraph -->
</description>
<url type="homepage">http://www.abisource.com/</url>
<screenshots>
<!-- FIXME: Needs an official up to date screenshot -->
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/a.png</screenshot>
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/b.png</screenshot>
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/c.png</screenshot>
</screenshots>
<!-- FIXME: change this to an upstream email address for spec updates
<updatecontact>someone_who_cares@upstream_project.org</updatecontact>
-->
</application>
EOF
# install the documentation
cd abiword-docs-3.0.1
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help
@ -222,9 +179,12 @@ find %{buildroot} -name '*.a' -delete
%{_datadir}/gir-1.0/Abi-3.0.gir
%files -n python3-abiword
%{python3_sitearch}/*
%pycached %{python3_sitearch}/gi/overrides/Abi.py
%changelog
* Wed Jan 29 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1:3.0.4-3
- Packaging cleanups and fixes
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild