diff --git a/lazarus-2.0.6--illegal-qualifier.patch b/lazarus-2.0.6--illegal-qualifier.patch deleted file mode 100644 index 026e1a6..0000000 --- a/lazarus-2.0.6--illegal-qualifier.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- lazarus-2.0.6/lazarus/ide/frames/compiler_compilation_options.pas 2019-03-07 00:02:00.000000000 +0100 -+++ lazarus-2.0.6--patched/lazarus/ide/frames/compiler_compilation_options.pas 2020-02-08 12:26:26.678811589 +0100 -@@ -389,12 +389,10 @@ - Options.CreateMakefileOnBuild := chkCreateMakefile.Checked; - - // execute before - Options.ExecuteBefore.Command := ExecuteBeforeCommandComboBox.Text; -- with InputHistories.HistoryLists.GetList('BuildExecBefore',true,rltCaseSensitive) do begin -- Assign(ExecuteBeforeCommandComboBox.Items); -- Push(Options.ExecuteBefore.Command); -- end; -+ InputHistories.HistoryLists.GetList('BuildExecBefore',true,rltCaseSensitive).Assign(ExecuteBeforeCommandComboBox.Items); -+ InputHistories.HistoryLists.GetList('BuildExecBefore',true,rltCaseSensitive).Push(Options.ExecuteBefore.Command); - - WriteSettingsParsers(Options.ExecuteBefore,ExecBeforeParsersCheckListBox); - - if Options.ExecuteBefore is TProjectCompilationToolOptions then -@@ -415,12 +413,11 @@ - TPkgCompilerOptions(Options).SkipCompiler := chkCompilerCompile.Checked; - - // execute after - Options.ExecuteAfter.Command := ExecuteAfterCommandComboBox.Text; -- with InputHistories.HistoryLists.GetList('BuildExecAfter',true,rltCaseSensitive) do begin -- Assign(ExecuteAfterCommandComboBox.Items); -- Push(Options.ExecuteAfter.Command); -- end; -+ InputHistories.HistoryLists.GetList('BuildExecAfter',true,rltCaseSensitive).Assign(ExecuteAfterCommandComboBox.Items); -+ InputHistories.HistoryLists.GetList('BuildExecAfter',true,rltCaseSensitive).Push(Options.ExecuteAfter.Command); -+ - WriteSettingsParsers(Options.ExecuteAfter,ExecAfterParsersCheckListBox); - if Options.ExecuteAfter is TProjectCompilationToolOptions then - Options.ExecuteAfter.CompileReasons := - MakeCompileReasons(chkExecAfterCompile, chkExecAfterBuild, chkExecAfterRun); diff --git a/lazarus.appdata.xml b/lazarus.appdata.xml new file mode 100644 index 0000000..6af1525 --- /dev/null +++ b/lazarus.appdata.xml @@ -0,0 +1,39 @@ + + + +lazarus.desktop + CC-BY-SA-3.0 + GPL-2.0-or-later and LGPL-2.1-or-later and MPL-1.1 + Lazarus + RAD IDE for Free Pascal + +

+ Lazarus is a Delphi-compatible cross-platform IDE for Rapid Application Development. + It has variety of components ready for use and a graphical form designer to easily create complex graphical user interfaces. + With Lazarus you can create file browsers, image viewers, database applications, graphics editing software, + games, 3D software, medical analysis software or any other type of software. +

+

+ Lazarus is developed to be totally and completely API independent. Once you write your code, you just link it against the API widget set of your choice. + If you want to use GTK+, great! If you want it to be Gnome compliant, great! As long as the interface code for the widget set you want to use is available, you can link to it. +

+
+ + + https://suve.fedorapeople.org/lazarus-dark-0.png + + + https://suve.fedorapeople.org/lazarus-light-0.png + + + https://suve.fedorapeople.org/lazarus-dark-1.png + + + https://suve.fedorapeople.org/lazarus-light-1.png + + + https://lazarus-ide.org + https://bugs.freepascal.org + https://wiki.lazarus.freepascal.org/Lazarus_Faq + fedora@svgames.pl +
diff --git a/lazarus.spec b/lazarus.spec index d80b7d0..482c02d 100644 --- a/lazarus.spec +++ b/lazarus.spec @@ -2,7 +2,7 @@ Name: lazarus Summary: Lazarus Component Library and IDE for Freepascal Version: 2.0.10 -Release: 4%{?dist} +Release: 5%{?dist} # The qt5pas version is taken from lcl/interfaces/qt5/cbindings/Qt5Pas.pro %global qt5pas_version 2.6 @@ -13,6 +13,8 @@ License: GPLv2+ and MPLv1.1 and LGPLv2+ with exceptions URL: http://www.lazarus-ide.org/ Source0: https://downloads.sourceforge.net/project/%{name}/Lazarus%20Zip%20_%20GZip/Lazarus%20%{version}/%{name}-%{version}-2.tar.gz +Source100: lazarus.appdata.xml + Patch0: Makefile_patch.diff Patch1: lazarus-2.0.6--disable-PascalScript-on-ppc64le.patch @@ -22,10 +24,11 @@ BuildRequires: fpc, fpc-src BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: gtk2-devel +BuildRequires: libappstream-glib +BuildRequires: make BuildRequires: perl-generators BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtx11extras-devel -BuildRequires: make Requires: binutils Requires: fpc%{?_isa} @@ -107,6 +110,11 @@ sed 's#__LAZARUSDIR__#%{_libdir}/%{name}#;s#__FPCSRCDIR__#%{_datadir}/fpcsrc#' \ chmod 755 %{buildroot}%{_libdir}/%{name}/components/lazreport/tools/localize.sh +install -m 755 -d %{buildroot}%{_metainfodir} +install -m 644 %{SOURCE100} %{buildroot}%{_metainfodir}/%{name}.appdata.xml + +# -- Install Qt5Pas + pushd lazarus/lcl/interfaces/qt5/cbindings/ %make_install INSTALL_ROOT=%{buildroot} popd @@ -122,6 +130,10 @@ done rm -rf %{buildroot}%{_libdir}/%{name}/lcl/interfaces/qt5/cbindings/tmp/ +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml + + %files %{_libdir}/%{name} %{_bindir}/%{name}-ide @@ -134,6 +146,7 @@ rm -rf %{buildroot}%{_libdir}/%{name}/lcl/interfaces/qt5/cbindings/tmp/ %{_datadir}/applications/*%{name}.desktop %{_datadir}/mime/packages/lazarus.xml %{_datadir}/icons/hicolor/48x48/mimetypes/* +%{_metainfodir}/%{name}.appdata.xml %license lazarus/COPYING* %doc lazarus/README.txt %dir %{_sysconfdir}/lazarus @@ -150,6 +163,9 @@ rm -rf %{buildroot}%{_libdir}/%{name}/lcl/interfaces/qt5/cbindings/tmp/ %changelog +* Sat Jan 16 2021 Artur Frenszek-Iwicki - 2.0.10-5 +- Add an appdata file + * Mon Aug 24 2020 Artur Iwicki - 2.0.10-4 - Make the package explicitly require "make"