-
Notifications
You must be signed in to change notification settings - Fork 1
/
xfce4-statusnotifier-plugin.spec
68 lines (55 loc) · 1.91 KB
/
xfce4-statusnotifier-plugin.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%global _icondir %{_datadir}/icons/hicolor
Name: xfce4-statusnotifier-plugin
Version: 0.1.0
Release: 1%{?dist}
Summary: Panel area status notifier plugin for Xfce4
License: LGPLv3
URL: http://www.xfce.org/
Source0: https://git.xfce.org/panel-plugins/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRequires: xfce4-dev-tools
BuildRequires: libtool
BuildRequires: gtk3-devel
BuildRequires: libxfce4util-devel
BuildRequires: libxfce4ui-devel
BuildRequires: xfce4-panel-devel
BuildRequires: libdbusmenu-gtk3-devel
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
%description
This plugin provides a panel area for status notifier items (application
indicators). Applications may use these items to display their status and
interact with user. This technology is a modern alternative to systray and
has the freedesktop.org specification.
%prep
%setup -q
%build
./autogen.sh --prefix=%{_prefix} --disable-static
%make_build
%install
%make_install
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
if [ ! -d %{buildroot}/%{_libdir} ]; then
mv %{buildroot}/usr/lib %{buildroot}/%{_libdir}
fi
%post
/sbin/ldconfig
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%{_libdir}/xfce4/panel/plugins/libstatusnotifier.*
%license COPYING
%doc AUTHORS NEWS README
%{_datadir}/icons/hicolor/*/apps/xfce4-statusnotifier-plugin.png
%{_datadir}/icons/hicolor/*/apps/xfce4-statusnotifier-plugin.svg
%{_datadir}/xfce4/panel/plugins/statusnotifier.desktop
%changelog
* Tue Jul 25 2017 Zamir SUN <[email protected]> - 0.1.0-1
- Initial xfce4-statusnotifier-plugin