Files
packages/anda/desktops/elementary/wingpanel-indicator-bluetooth/wingpanel-indicator-bluetooth.spec
T
madomado d3a9865809 chore: sync with Terra 38 (#624)
* chore: sync with Terra 38

* chore(ci): improve autobuild

* fix ci?

Signed-off-by: madomado <wboy111@outlook.com>

* test ci

Signed-off-by: madomado <wboy111@outlook.com>

* Update autobuild.yml

* Update anda.tpl

Signed-off-by: madomado <wboy111@outlook.com>

* dnf moment mock configs

Signed-off-by: madomado <wboy111@outlook.com>

---------

Signed-off-by: madomado <wboy111@outlook.com>
2023-07-02 18:41:56 +08:00

76 lines
1.9 KiB
RPMSpec

%global __provides_exclude_from ^%{_libdir}/wingpanel/.*\\.so$
%global srcname wingpanel-indicator-bluetooth
%global appname io.elementary.wingpanel.bluetooth
Name: wingpanel-indicator-bluetooth
Summary: Bluetooth Indicator for wingpanel
Version: 7.0.1
Release: 1%{?dist}
License: LGPL-2.0-or-later
URL: https://github.com/elementary/%{name}
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildRequires: gettext
BuildRequires: libappstream-glib
BuildRequires: meson
BuildRequires: vala >= 0.22.0
BuildRequires: fdupes
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(granite) >= 6.0.0
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(wingpanel) >= 3.0.0
Requires: bluez
Requires: wingpanel%{?_isa}
Supplements: (wingpanel%{?_isa} and bluez)
%description
A bluetooth indicator for wingpanel.
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%meson
%meson_build
%install
%meson_install
%fdupes %buildroot%_datadir/locale/
%find_lang bluetooth-indicator
# remove the specified stock icon from metainfo (invalid in libappstream-glib)
sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{appname}.metainfo.xml
%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{appname}.metainfo.xml
%files -f bluetooth-indicator.lang
%doc README.md
%license COPYING
%{_libdir}/wingpanel/libbluetooth.so
%_bindir/io.elementary.bluetooth
%{_datadir}/glib-2.0/schemas/io.elementary.desktop.wingpanel.bluetooth.gschema.xml
%{_datadir}/applications/io.elementary.bluetooth.desktop
%{_datadir}/metainfo/%{appname}.metainfo.xml
%_sysconfdir/xdg/autostart/io.elementary.bluetooth-daemon.desktop
%changelog
* Sat Oct 15 2022 windowsboy111 <windowsboy111@fyralabs.com> - 2.1.0-1
- Repackaged for Terra