Accepting request 812174 from Publishing

OBS-URL: https://build.opensuse.org/request/show/812174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/equalx?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2020-06-07 19:39:12 +00:00 committed by Git OBS Bridge
commit 44279b4f26
2 changed files with 20 additions and 6 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Jun 6 21:45:17 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Replace inkscape by rsvg-convert: reduces build time
dependencies and works without GUI fixing build failures on
openSUSE >= 1550; BuildRequires: rsvg-convert (rsvg-view for
Leap 15.1).
- Use %license for LICENSE file.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 12 11:35:40 UTC 2018 - badshah400@opensuse.org Tue Jun 12 11:35:40 UTC 2018 - badshah400@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package equalx # spec file for package equalx
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 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: Editor for writing and exporting TeX/LaTeX equations Summary: Editor for writing and exporting TeX/LaTeX equations
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Productivity/Publishing/TeX/Frontends Group: Productivity/Publishing/TeX/Frontends
Url: http://equalx.sourceforge.net/ URL: http://equalx.sourceforge.net/
Source0: http://downloads.sourceforge.net/equalx/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/equalx/%{name}-%{version}.tar.gz
Source1: %{name}.appdata.xml Source1: %{name}.appdata.xml
# PATCH-FIX-OPENSUSE equalx-fix-desktop-file.patch badshah400@gmail.com -- Fix icon tag in desktop file and categories for compatibility with openSUSE defined ones # PATCH-FIX-OPENSUSE equalx-fix-desktop-file.patch badshah400@gmail.com -- Fix icon tag in desktop file and categories for compatibility with openSUSE defined ones
@ -33,8 +33,12 @@ BuildRequires: desktop-file-utils
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: ghostscript BuildRequires: ghostscript
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: inkscape
BuildRequires: pkg-config BuildRequires: pkg-config
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150100
BuildRequires: rsvg-view
%else
BuildRequires: rsvg-convert
%endif
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} > 1320
BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
@ -83,7 +87,7 @@ install -D -p bin/%{name} %{buildroot}%{_bindir}/%{name}
pushd resources/icons/equalx pushd resources/icons/equalx
for i in 256 512; for i in 256 512;
do do
inkscape -w ${i} -C equalx.svg -e equalx-${i}x${i}.png rsvg-convert -w ${i} equalx.svg > equalx-${i}x${i}.png
done done
popd popd
@ -123,7 +127,8 @@ install -Dm0644 %{S:1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc changelog README LICENSE THANKS %doc changelog README THANKS
%license LICENSE
%{_bindir}/%{name} %{_bindir}/%{name}
# OWN THE 512x512 ICON DIR AS HICOLOR THEME DOES NOT PROVIDE IT YET # OWN THE 512x512 ICON DIR AS HICOLOR THEME DOES NOT PROVIDE IT YET
%dir %{_datadir}/icons/hicolor/512x512 %dir %{_datadir}/icons/hicolor/512x512