diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3bdf088 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +/results_* +/*.src.rpm + +/wingpanel-applications-menu-2.3.0.tar.gz +/wingpanel-applications-menu-2.4.0.tar.gz +/wingpanel-applications-menu-2.4.1.tar.gz +/wingpanel-applications-menu-2.4.2.tar.gz +/wingpanel-applications-menu-2.4.3.tar.gz +/wingpanel-applications-menu-2.4.4.tar.gz +/wingpanel-applications-menu-2.5.0.tar.gz +/wingpanel-applications-menu-2.6.0.tar.gz +/applications-menu-2.7.0.tar.gz +/applications-menu-2.7.1.tar.gz diff --git a/00-drop-broken-meson-deps.patch b/00-drop-broken-meson-deps.patch new file mode 100644 index 0000000..7fbb6de --- /dev/null +++ b/00-drop-broken-meson-deps.patch @@ -0,0 +1,44 @@ +diff --git a/meson.build b/meson.build +index 927731f..6089994 100644 +--- a/meson.build ++++ b/meson.build +@@ -43,20 +43,12 @@ libsoup_dep = dependency('libsoup-2.4') + appstream_dep = dependency('appstream') + gio_unix_dep = dependency('gio-unix-2.0') + json_glib_dep = dependency('json-glib-1.0') +-zeitgeist_dep = dependency('zeitgeist-2.0') + switchboard_dep = dependency('switchboard-2.0') + libgnome_menu_dep = dependency('libgnome-menu-3.0') + libhandy_dep = dependency('libhandy-0.0') + wingpanel_dep = dependency('wingpanel-2.0', version: '>=2.1.0') + posix_dep = meson.get_compiler('vala').find_library('posix') + +-unity_dep = [] +- +-if get_option('with-unity') +- unity_dep = dependency('unity', version: '>=4.0.0') +- add_project_arguments('--define=HAVE_UNITY', language: 'vala') +-endif +- + plank_dep = dependency('plank', required: false) + if plank_dep.version().version_compare('>=0.10.9') + add_project_arguments('--define=HAS_PLANK', language: 'vala') +diff --git a/meson_options.txt b/meson_options.txt +index f970ad3..9e825c1 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,2 +1 @@ +-option('with-unity', type : 'boolean', value : 'true', description : 'Add Unity launcher support') + option('with-zeitgeist', type : 'boolean', value : 'true', description : 'Add Zeitgeist support') +diff --git a/src/meson.build b/src/meson.build +index 30e194b..09cfd10 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -78,7 +78,6 @@ dependencies = [ + libsoup_dep, + appstream_dep, + plank_dep, +- unity_dep, + wingpanel_dep, + libhandy_dep, + posix_dep, diff --git a/dead.package b/dead.package deleted file mode 100644 index 43a9af6..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -remove package (temporarily) due to unresolved issues with GNOME 43 diff --git a/sources b/sources new file mode 100644 index 0000000..5a93eeb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (applications-menu-2.7.1.tar.gz) = 3ba9b7d6491d0cb50edaa72ea04900deba71c6e1706ff0b81278e4b1462581e6ad379a59e7e0283aab19b71c3587ab872f241aae0505f2b4a857cf6da95a3bdb diff --git a/wingpanel-applications-menu.rpmlintrc b/wingpanel-applications-menu.rpmlintrc new file mode 100644 index 0000000..fbcdc48 --- /dev/null +++ b/wingpanel-applications-menu.rpmlintrc @@ -0,0 +1,3 @@ +# false positives +addFilter("E: invalid-lc-messages-dir /usr/share/locale/bh*") +addFilter("E: invalid-lc-messages-dir /usr/share/locale/mo*") diff --git a/wingpanel-applications-menu.spec b/wingpanel-applications-menu.spec new file mode 100644 index 0000000..36a1217 --- /dev/null +++ b/wingpanel-applications-menu.spec @@ -0,0 +1,134 @@ +%global srcname applications-menu +%global appname io.elementary.wingpanel.applications-menu + +%global __provides_exclude_from ^%{_libdir}/(wingpanel|%{appname})/.*\\.so$ + +Name: wingpanel-applications-menu +Summary: Lightweight and stylish app launcher +Version: 2.7.1 +Release: 2%{?dist} +License: GPLv3+ + +URL: https://github.com/elementary/%{srcname} +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +# - drop unity dependency from meson entirely +# - allow disabling "optional" zeitgeist dependency +# https://github.com/elementary/applications-menu/pull/392 +Patch0: 00-drop-broken-meson-deps.patch + +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: meson +BuildRequires: vala >= 0.32.1 + +BuildRequires: appstream-vala + +BuildRequires: pkgconfig(appstream) >= 0.10.0 +BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(granite) >= 0.5 +BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0 +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(libgnome-menu-3.0) +BuildRequires: pkgconfig(libhandy-0.0) +BuildRequires: pkgconfig(libsoup-2.4) +BuildRequires: pkgconfig(plank) >= 0.10.9 +BuildRequires: pkgconfig(switchboard-2.0) +BuildRequires: pkgconfig(wingpanel-2.0) >= 2.1.0 + +Requires: redhat-menus + +Requires: wingpanel%{?_isa} +Supplements: wingpanel%{?_isa} + +Provides: slingshot-launcher = %{version}-%{release} +Obsoletes: slingshot-launcher < 2.2.0-8 + + +%description +The lightweight and stylish app launcher from elementary. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + + +%build +%meson -Dwith-zeitgeist=false +%meson_build + + +%install +%meson_install + +%find_lang slingshot + + +%check +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml + + +%files -f slingshot.lang +%doc README.md +%license COPYING + +%config(noreplace) %{_sysconfdir}/xdg/menus/pantheon-applications.menu + +%{_libdir}/%{appname}/ +%{_libdir}/wingpanel/libslingshot.so + +%{_datadir}/glib-2.0/schemas/io.elementary.desktop.wingpanel.applications-menu.gschema.xml +%{_datadir}/metainfo/%{appname}.appdata.xml + + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 2.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu May 28 2020 Fabio Valentini - 2.7.1-1 +- Update to version 2.7.1. +- Drop useless unity and zeitgeist dependencies. + +* Sat May 09 2020 Fabio Valentini - 2.7.0-1 +- Update to version 2.7.0. + +* Sat Apr 18 2020 Fabio Valentini - 2.6.0-1 +- Update to version 2.6.0. + +* Fri Jan 31 2020 Fedora Release Engineering - 2.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 25 2019 Fabio Valentini - 2.5.0-1 +- Update to version 2.5.0. +- Switch to meson build system. + +* Fri Aug 23 2019 Fabio Valentini - 2.4.4-1 +- Update to version 2.4.4. + +* Sat Jul 27 2019 Fedora Release Engineering - 2.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 17 2019 Fabio Valentini - 2.4.3-1 +- Update to version 2.4.3. + +* Sun Feb 03 2019 Fedora Release Engineering - 2.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 22 2019 Fabio Valentini - 2.4.2-1 +- Update to version 2.4.2. + +* Sat Dec 08 2018 Fabio Valentini - 2.4.1-1 +- Update to version 2.4.1. +- Drop explicit dependency on zeitgeist. + +* Tue Sep 18 2018 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0. + +* Sat Jul 14 2018 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Fabio Valentini - 2.3.0-1 +- Initial package renamed from slingshot-launcher. +