diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b45c766 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/appeditor-1.1.0.tar.gz +/appeditor-1.1.1.tar.gz +/appeditor-1.1.3.tar.gz +/appeditor-aeb0b13e5dfd2dfde951e8f18d9075eee5054f71.tar.gz +/appeditor-8612fc8f8f812bc50002d4086afa304228a72cae.tar.gz +/appeditor-1.1.5.tar.gz diff --git a/135.patch b/135.patch new file mode 100644 index 0000000..4a21e89 --- /dev/null +++ b/135.patch @@ -0,0 +1,48 @@ +From 9160b997e28bb46731220bf966465bc521dc49bf Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 9 Nov 2023 11:14:43 -0500 +Subject: [PATCH 1/2] Fix deprecated top-level developer_name in AppData XML + +Use the name element in a developer block instead, as recommended by appstreamcli 1.0.0. +--- + data/com.github.donadigo.appeditor.appdata.xml.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/data/com.github.donadigo.appeditor.appdata.xml.in b/data/com.github.donadigo.appeditor.appdata.xml.in +index 94e6c5c..567e86a 100644 +--- a/data/com.github.donadigo.appeditor.appdata.xml.in ++++ b/data/com.github.donadigo.appeditor.appdata.xml.in +@@ -20,7 +20,9 @@ + + com.github.donadigo.appeditor + +- Adam Bieńkowski ++ ++ Adam Bieńkowski ++ + https://github.com/donadigo/appeditor + https://github.com/donadigo/appeditor/issues + https://github.com/donadigo/appeditor + +From 0b90d07e39f0e8dccad175dd31d929f5f56b2db1 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Fri, 8 Mar 2024 08:44:48 -0500 +Subject: [PATCH 2/2] Add developer ID com.donadigo in AppData + +--- + data/com.github.donadigo.appeditor.appdata.xml.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/com.github.donadigo.appeditor.appdata.xml.in b/data/com.github.donadigo.appeditor.appdata.xml.in +index 567e86a..52a3cb1 100644 +--- a/data/com.github.donadigo.appeditor.appdata.xml.in ++++ b/data/com.github.donadigo.appeditor.appdata.xml.in +@@ -20,7 +20,7 @@ + + com.github.donadigo.appeditor + +- ++ + Adam Bieńkowski + + https://github.com/donadigo/appeditor diff --git a/136.patch b/136.patch new file mode 100644 index 0000000..78b2254 --- /dev/null +++ b/136.patch @@ -0,0 +1,148 @@ +From 7e36d18893d678a6852fa63e7dfd20e6e012d780 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 9 Nov 2023 11:26:26 -0500 +Subject: [PATCH] Ensure all text files have terminal newlines + +While some tools support text files without these, proper POSIX text +files should have them. +--- + .travis.yml | 2 +- + data/application.css | 2 +- + data/com.github.donadigo.appeditor.appdata.xml.in | 2 +- + data/com.github.donadigo.appeditor.contract | 2 +- + data/com.github.donadigo.appeditor.gresource.xml | 2 +- + data/com.github.donadigo.appeditor.gschema.xml | 2 +- + meson/post_install.py | 2 +- + meson_options.txt | 2 +- + po/meson.build | 2 +- + src/AppDirectoryScanner.vala | 2 +- + src/IconChooserDialog.vala | 2 +- + src/IconListBox.vala | 2 +- + 12 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/.travis.yml b/.travis.yml +index db1c04a..0151138 100644 +--- a/.travis.yml ++++ b/.travis.yml +@@ -21,4 +21,4 @@ install: + - npm i -g @elementaryos/houston + + script: +- - houston ci +\ No newline at end of file ++ - houston ci +diff --git a/data/application.css b/data/application.css +index 348573a..0d96a53 100644 +--- a/data/application.css ++++ b/data/application.css +@@ -52,4 +52,4 @@ window { + + entry { + border-bottom-color: rgba(0, 0, 0, 0.2); +-} +\ No newline at end of file ++} +diff --git a/data/com.github.donadigo.appeditor.appdata.xml.in b/data/com.github.donadigo.appeditor.appdata.xml.in +index 94e6c5c..64d9703 100644 +--- a/data/com.github.donadigo.appeditor.appdata.xml.in ++++ b/data/com.github.donadigo.appeditor.appdata.xml.in +@@ -195,4 +195,4 @@ + #0A332D + 5 + +- +\ No newline at end of file ++ +diff --git a/data/com.github.donadigo.appeditor.contract b/data/com.github.donadigo.appeditor.contract +index fab6d62..6a0180d 100644 +--- a/data/com.github.donadigo.appeditor.contract ++++ b/data/com.github.donadigo.appeditor.contract +@@ -3,4 +3,4 @@ Name=Create a Menu Entry + Description=Create a new menu entry for executing this file + Icon=com.github.donadigo.appeditor + MimeType=application/x-executable;text/x-python;application/x-shellscript +-Exec=com.github.donadigo.appeditor -c %f +\ No newline at end of file ++Exec=com.github.donadigo.appeditor -c %f +diff --git a/data/com.github.donadigo.appeditor.gresource.xml b/data/com.github.donadigo.appeditor.gresource.xml +index 68c0271..814b522 100644 +--- a/data/com.github.donadigo.appeditor.gresource.xml ++++ b/data/com.github.donadigo.appeditor.gresource.xml +@@ -3,4 +3,4 @@ + + application.css + +- +\ No newline at end of file ++ +diff --git a/data/com.github.donadigo.appeditor.gschema.xml b/data/com.github.donadigo.appeditor.gschema.xml +index 4fab585..6896576 100644 +--- a/data/com.github.donadigo.appeditor.gschema.xml ++++ b/data/com.github.donadigo.appeditor.gschema.xml +@@ -22,4 +22,4 @@ + Whether entries with NoDisplay set to true should show + + +- +\ No newline at end of file ++ +diff --git a/meson/post_install.py b/meson/post_install.py +index 9eaefa9..76ed255 100644 +--- a/meson/post_install.py ++++ b/meson/post_install.py +@@ -7,4 +7,4 @@ + + if not os.environ.get('DESTDIR'): + print('Compiling gsettings schemas...') +- subprocess.call(['glib-compile-schemas', schemadir]) +\ No newline at end of file ++ subprocess.call(['glib-compile-schemas', schemadir]) +diff --git a/meson_options.txt b/meson_options.txt +index de6c8e3..7dce56d 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1 +1 @@ +-option('flatpak', type : 'boolean', value : 'false', description : 'Disables some defunct features when building with Flatpak') +\ No newline at end of file ++option('flatpak', type : 'boolean', value : 'false', description : 'Disables some defunct features when building with Flatpak') +diff --git a/po/meson.build b/po/meson.build +index 5eab52e..e9b77d7 100644 +--- a/po/meson.build ++++ b/po/meson.build +@@ -1 +1 @@ +-i18n.gettext(meson.project_name(), preset: 'glib') +\ No newline at end of file ++i18n.gettext(meson.project_name(), preset: 'glib') +diff --git a/src/AppDirectoryScanner.vala b/src/AppDirectoryScanner.vala +index 9b0d69e..fad3d7f 100644 +--- a/src/AppDirectoryScanner.vala ++++ b/src/AppDirectoryScanner.vala +@@ -56,4 +56,4 @@ public class AppEditor.AppDirectoryScanner : Object { + + return apps_dir; + } +-} +\ No newline at end of file ++} +diff --git a/src/IconChooserDialog.vala b/src/IconChooserDialog.vala +index 2ce0faf..abf24c9 100644 +--- a/src/IconChooserDialog.vala ++++ b/src/IconChooserDialog.vala +@@ -90,4 +90,4 @@ public class AppEditor.IconChooserDialog : Gtk.Dialog { + icon_list_box.search (search_entry.text); + icon_list_box.invalidate_filter (); + } +-} +\ No newline at end of file ++} +diff --git a/src/IconListBox.vala b/src/IconListBox.vala +index dcbade6..77e6dea 100644 +--- a/src/IconListBox.vala ++++ b/src/IconListBox.vala +@@ -161,4 +161,4 @@ public class AppEditor.IconListBox : Gtk.ListBox { + private static bool query_matches_name (string query, string icon_name) { + return query.down () in icon_name.down (); + } +-} +\ No newline at end of file ++} diff --git a/138.patch b/138.patch new file mode 100644 index 0000000..340fc1b --- /dev/null +++ b/138.patch @@ -0,0 +1,48 @@ +From caa2c26a3de12b78f2b2f1d7fe82585ae2ba2ed3 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 9 Nov 2023 11:34:00 -0500 +Subject: [PATCH] Remove executable bit from files that are not script-like + +--- + meson.build | 0 + src/AppItem.vala | 0 + src/AppSourceList.vala | 0 + src/Application.vala | 0 + src/CategoryItem.vala | 0 + src/Constants.vala | 0 + src/DesktopAppManager.vala | 0 + src/MainWindow.vala | 0 + 8 files changed, 0 insertions(+), 0 deletions(-) + mode change 100755 => 100644 meson.build + mode change 100755 => 100644 src/AppItem.vala + mode change 100755 => 100644 src/AppSourceList.vala + mode change 100755 => 100644 src/Application.vala + mode change 100755 => 100644 src/CategoryItem.vala + mode change 100755 => 100644 src/Constants.vala + mode change 100755 => 100644 src/DesktopAppManager.vala + mode change 100755 => 100644 src/MainWindow.vala + +diff --git a/meson.build b/meson.build +old mode 100755 +new mode 100644 +diff --git a/src/AppItem.vala b/src/AppItem.vala +old mode 100755 +new mode 100644 +diff --git a/src/AppSourceList.vala b/src/AppSourceList.vala +old mode 100755 +new mode 100644 +diff --git a/src/Application.vala b/src/Application.vala +old mode 100755 +new mode 100644 +diff --git a/src/CategoryItem.vala b/src/CategoryItem.vala +old mode 100755 +new mode 100644 +diff --git a/src/Constants.vala b/src/Constants.vala +old mode 100755 +new mode 100644 +diff --git a/src/DesktopAppManager.vala b/src/DesktopAppManager.vala +old mode 100755 +new mode 100644 +diff --git a/src/MainWindow.vala b/src/MainWindow.vala +old mode 100755 +new mode 100644 diff --git a/139.patch b/139.patch new file mode 100644 index 0000000..91f5e28 --- /dev/null +++ b/139.patch @@ -0,0 +1,22 @@ +From 4ce39aaa7bef42289ed3d2799b60a551da55a865 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 9 Nov 2023 11:37:45 -0500 +Subject: [PATCH] Fix flickering titlebar (fix #103) + +https://github.com/donadigo/appeditor/issues/103#issuecomment-756924055 +--- + data/application.css | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/data/application.css b/data/application.css +index 348573a..4723c80 100644 +--- a/data/application.css ++++ b/data/application.css +@@ -36,7 +36,6 @@ window { + + .titlebar:backdrop { + border: none; +- background-image: none; + background-color: @bg_color; + box-shadow: + inset 1px 0 0 0 alpha (@bg_highlight_color, 0.2), diff --git a/README.md b/README.md new file mode 100644 index 0000000..3fe1ab6 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# appeditor + +The appeditor package \ No newline at end of file diff --git a/appeditor.rpmlintrc b/appeditor.rpmlintrc new file mode 100644 index 0000000..dd9b2f1 --- /dev/null +++ b/appeditor.rpmlintrc @@ -0,0 +1,3 @@ +# A man page for a GUI executable without interesting command-line options is +# not very useful. +addFilter(r" no-manual-page-for-binary ") diff --git a/appeditor.spec b/appeditor.spec new file mode 100644 index 0000000..ba62705 --- /dev/null +++ b/appeditor.spec @@ -0,0 +1,227 @@ +%global app_id com.github.donadigo.appeditor + +Name: appeditor +Summary: Edit application menu +Version: 1.1.5 +Release: %autorelease +# The entire source is GPL-3.0-only, except: +# - data/com.github.donadigo.appeditor.appdata.xml.in is CC0-1.0, which is +# allowed for content only +License: GPL-3.0-only AND CC0-1.0 + +URL: https://github.com/donadigo/appeditor +Source: %{url}/archive/%{version}/appeditor-%{version}.tar.gz + +# Fix flickering titlebar (fix #103) +# https://github.com/donadigo/appeditor/issues/103#issuecomment-756924055 +# https://github.com/donadigo/appeditor/pull/139 +Patch: %{url}/pull/139.patch +# Fix deprecated top-level developer_name in AppData XML +# https://github.com/donadigo/appeditor/pull/135 +Patch: %{url}/pull/135.patch +# Ensure all text files have terminal newlines +# https://github.com/donadigo/appeditor/pull/136 +Patch: %{url}/pull/136.patch +# Remove executable bit from files that are not script-like +# https://github.com/donadigo/appeditor/pull/138 +Patch: %{url}/pull/138.patch + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: desktop-file-utils +BuildRequires: gettext + +# Still required by guidelines for now +# (https://pagure.io/packaging-committee/issue/1053): +BuildRequires: libappstream-glib +# Matches what gnome-software and others use: +BuildRequires: appstream + +BuildRequires: meson +BuildRequires: vala +BuildRequires: gcc + +BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(granite) >= 5.4.0 +BuildRequires: pkgconfig(gtk+-3.0) + +Requires: contractor +Requires: hicolor-icon-theme + +Summary(ca): Modifiqueu el menú d’aplicacions +Summary(de): Keine Anwendungen gefunden +Summary(es): Editar el menú de aplicaciones +Summary(fr): Modifier le menu des applications +Summary(it): Modifica Menù Applicazione +Summary(ja): アプリケーションメニューを編集します +Summary(lt): Programų nerasta +Summary(nl_NL): Toepassingenmenu bewerken +Summary(pt): Editar menu da aplicações +Summary(pt_BR): Editar menu da aplicações +Summary(ru): Изменяйте меню приложений +Summary(sv): Redigera programmenyn +Summary(tr): Uygulama menülerini düzenle + +%description +Edit application entries shown in application menu and their properties. + +Features include: + + • Hide and show applications from the application menu + • Create new application entries + • Change application’s display name, icon and more + +%description -l ca +Modifiqueu les entrades mostrades al menú d’aplicacions i les seves propietats. + +Funcionalitats distintives: + + • Amagueu i mostreu entrades al menú d’aplicacions + • Creeu-ne de noves + • Canvieu el nom visible, la icona i molt més per cada aplicació + +# %%description -l de +# (only partially translated upstream) + +%description -l es +Edite las entradas del menú de aplicaciones y sus propiedades. + +Algunas de las funcionalidades son: + + • Ocultar y mostrar entradas del menú de aplicaciones + • Crear entradas de aplicación nuevas + • Cambiar el nombre mostrado de una aplicación, su icono y más + +%description -l fr +Modifiez les raccourcis et leurs propriétés dans le menu des applications. + +Fonctionnalités incluses: + + • Masquer et afficher les applications du menu des applications + • Créer de nouveaux raccourcis d’application + • Changer le nom d’une application, son icône, etc + +%description -l it +Modifica le voci dell’applicazione visualizzate nel menu le relative proprietà. + +Funzionalità incluse: + + • Mostra e nascondi le applicazioni nel Menù Applicazioni + • Crea nuova voce applicazione + • Cambia il nome visualizzato dell’applicazione, la sua icona ed altro + +%description -l ja +アプリケーションメニューに表示されるアプリケーションのエントリーとプロパティ +を編集します。 + +含まれる機能: + + • アプリケーションをアプリケーションメニューから隠したり表示したりします + • 新しいアプリケーションのエントリーを作成します + • アプリケーションの表示名やアイコンなどを変更します + +# %%description -l lt +# (only partially translated upstream) + +%description -l nl_NL +Bewerk menu-items uit het toepassingenmenu, inclusief hun eigenschappen. + +Het bevat de volgende mogelijkheden: + + • Toon en verberg items uit het toepassingenmenu + • Maak nieuwe menu-items + • Pas de weergavenaam, het pictogram en meer aan + +%description -l pt +Editar entradas de aplicações mostradas no menu das aplicações e as suas +propriedades. + +Características incluídas: + + • Esconde e mostra aplicações do menu de aplicações + • Criar novas entradas de aplicações + • Alterar o nome de exibição da aplicação, ícone e mais + +%description -l pt_BR +Editar entradas de aplicações mostradas no menu das aplicações e as suas +propriedades. + +Características incluídas: + + • Esconde e mostra aplicações do menu de aplicações + • Criar novas entradas de aplicações + • Alterar o nome de exibição da aplicação, ícone e mais + +%description -l ru +Редактирование описания и свойств программ в меню приложений. + +Доступные возможности: + + • Скрытие и отображение программ в меню приложений + • Создание новых записей о приложениях + • Изменение отображаемого имени приложение, значка и многого другого + +%description -l sv +Redigera programposterna som visas i menyn, och dess egenskaper. + +Funktioner: + + • Dölj och visa program i programmenyn. + • Skapa nya programposter. + • Ändra programmens visningsnamn, ikon och mer. + +%description -l tr +Uygulama menüsünde gösterilen uygulama girişlerini ve özelliklerini düzenleyin. + +Özellikler şunlardır: + + • Uygulama menüsünden uygulamaları gizleme ve gösterme + • Yeni uygulama girişleri oluşturma + • Uygulamanın görünen adını, simgesini ve daha fazlasını değiştirin + + +%prep +%autosetup -n appeditor-%{version} -p1 +rm -rv external + + +%build +%meson +%meson_build + + +%install +%meson_install + +%find_lang %{app_id} + + +%check +desktop-file-validate \ + %{buildroot}/%{_datadir}/applications/%{app_id}.desktop + +# Still required by guidelines for now +# (https://pagure.io/packaging-committee/issue/1053): +appstream-util validate-relax --nonet \ + %{buildroot}/%{_metainfodir}/%{app_id}.appdata.xml +# Matches what gnome-software and others use: +appstreamcli validate --no-net --explain \ + %{buildroot}/%{_metainfodir}/%{app_id}.appdata.xml + + +%files -f %{app_id}.lang +%doc README.md +%license LICENSE + +%{_bindir}/%{app_id} + +%{_datadir}/applications/%{app_id}.desktop +%{_datadir}/contractor/%{app_id}.contract +%{_datadir}/glib-2.0/schemas/%{app_id}.gschema.xml +%{_datadir}/icons/hicolor/*/apps/%{app_id}.svg +%{_metainfodir}/%{app_id}.appdata.xml + + +%changelog +%autochangelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..36de8db --- /dev/null +++ b/changelog @@ -0,0 +1,41 @@ +* Tue Jul 20 2021 Benjamin A. Beasley - 1.1.1-9 +- Fix flickering titlebar (https://github.com/donadigo/appeditor/issues/103) + +* Fri Jul 09 2021 Benjamin A. Beasley - 1.1.1-8 +- Switch License field to “effective license” of GPLv3 + +* Mon Mar 08 2021 Benjamin A. Beasley - 1.1.1-7 +- Localize summary and description where translations are available upstream + +* Fri Feb 19 2021 Fabio Valentini - 1.1.1-6 +- Rebuilt for granite 6 soname bump. + +* Tue Feb 09 2021 Benjamin A. Beasley - 1.1.1-5 +- Correct License from “LGPLv2+” to “GPLv3 and LGPLv2+ and CC0” + +* Tue Feb 09 2021 Benjamin A. Beasley - 1.1.1-4 +- Package LICENSE file + +* Tue Jan 26 2021 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Apr 17 2020 Fabio Valentini - 1.1.1-1 +- Update to version 1.1.1. + +* Tue Jan 28 2020 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Nov 02 2019 Fabio Valentini - 1.1.0-4 +- Include a simple patch to fix compilation with newer vala versions. + +* Wed Jul 24 2019 Fedora Release Engineering - 1.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Sep 01 2018 Fabio Valentini - 1.1.0-1 +- Initial package for fedora. diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..4da1774 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (appeditor-1.1.5.tar.gz) = c7e4e90cc1e5716ce2e7f358d12ba9b38556d69d0531e2ef847a663bcb6fa0a50f77e8a15e808743730fcd4485fb7be0d2f830b56ce3e1204ca9df7ef5e940f1