Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Pantheon:Testing
elementary-appcenter
elementary-appcenter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File elementary-appcenter.spec of Package elementary-appcenter
# # spec file for package elementary-appcenter # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: elementary-appcenter Version: 3.9.1 Release: 0 Summary: Browse and manage apps License: GPL-3.0-only Group: System/GUI/Other URL: https://build.opensuse.org Source: https://github.com/elementary/appcenter/archive/%{version}.tar.gz#/appcenter-%{version}.tar.gz Source99: elementary-appcenter.rpmlintrc Source100: switchdeps.sh Patch0: 000-add-openSUSE-support.patch BuildRequires: fdupes BuildRequires: libxml2-tools BuildRequires: meson >= 0.44.4 BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(appstream) >= 0.12.10 BuildRequires: pkgconfig(appstream-glib) BuildRequires: pkgconfig(flatpak) >= 1.0.3 BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(gio-2.0) >= 2.46 BuildRequires: pkgconfig(granite) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk+-3.0) >= 3.10 BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libhandy-1) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(packagekit-glib2) BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(vapigen) >= 0.28 Requires: PackageKit Recommends: %{name}-lang Recommends: elementary-sideload Recommends: libzypp-plugin-appdata Provides: appcenter = %{version} Obsoletes: appcenter < %{version} %description AppCenter is a native Gtk+ app store built on AppStream and Packagekit. %package -n gnome-shell-search-provider-elementary-appcenter Summary: Browse and manage apps -- Search Provider for GNOME Shell Group: System/GUI/GNOME Requires: %{name} = %{version} Requires: gnome-shell Supplements: (%{name} and gnome-shell) %description -n gnome-shell-search-provider-elementary-appcenter AppCenter is a native Gtk+ app store built on AppStream and Packagekit. This package contains a search provider to enable GNOME Shell to get search results from AppCenter. %lang_package %prep %setup -q -n appcenter-%{version} %autopatch -p1 cp %{SOURCE100} .. sh -x ../switchdeps.sh # Use the system logo sed -i 's/\(distributor\)-logo/\1/' $(grep -rwl distributor-logo) %build %meson \ -Dcurated=false \ -Dpayments=false \ -Dhide_upstream_distro_apps=false %meson_build %install %meson_install %suse_update_desktop_file -r -G AppCenter io.elementary.appcenter GTK System PackageManager %find_lang io.elementary.appcenter %{name}.lang %fdupes %{buildroot}%{_datadir} # Add .desktop file to autostart #mv \ # %{buildroot}%{_datadir}/applications/io.elementary.appcenter-daemon.desktop \ # %{buildroot}%{_sysconfdir}/xdg/autostart/io.elementary.appcenter-daemon.desktop # Add OnlyShowIn key #if ! grep OnlyShowIn.*Pantheon %{buildroot}%{_datadir}/applications/io.elementary.appcenter-daemon.desktop; then # sed -i '$aOnlyShowIn=Pantheon;' %{buildroot}%{_sysconfdir}/xdg/autostart/io.elementary.appcenter-daemon.desktop #else # 'This entry already exists' 2> /dev/null #fi # dirlist HiDPI icons (see: hicolor/index.theme) touch $PWD/dir.lst _dirlist=$PWD/dir.lst pushd %{buildroot} find ./ | while read _list; do echo $_list | grep '[0-9]\@[0-9]' || continue _path=$(echo $_list | sed 's/[^/]//') if ! ls ${_path%/*}; then grep -xqs "\%dir\ ${_path%/*}" $_dirlist || echo "%dir ${_path%/*}" >> $_dirlist fi done popd %post if [ $1 -eq 1 ] ; then mkdir -p %{_localstatedir}/adm/update-messages rm -f %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} << EOF INFO: This is an experimental package. INFO: Use at your own risk! EOF fi %files -f dir.lst %license COPYING %doc README.md %{_bindir}/io.elementary.appcenter %{_datadir}/applications/io.elementary.appcenter*.desktop %{_datadir}/glib-2.0/schemas/io.elementary.appcenter.gschema.xml %{_datadir}/polkit-1/actions/io.elementary.appcenter.policy %{_datadir}/metainfo/io.elementary.appcenter.appdata.xml %{_datadir}/icons/*/*/apps/io.elementary.appcenter*.??g %dir %{_sysconfdir}/io.elementary.appcenter %config %{_sysconfdir}/io.elementary.appcenter/appcenter.hiddenapps #%%{_sysconfdir}/xdg/autostart/io.elementary.appcenter-daemon.desktop %files -n gnome-shell-search-provider-elementary-appcenter %dir %{_datadir}/gnome-shell %dir %{_datadir}/gnome-shell/search-providers %{_datadir}/gnome-shell/search-providers/io.elementary.appcenter.search-provider.ini %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor