-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompa.spec.in
95 lines (66 loc) · 2.73 KB
/
compa.spec.in
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Name: compa
Version: @VERSION@
Release: 1%{?dist}
Summary: A MATE command output monitor panel applet
Group: Applications/System
License: GPLv3+
URL: https://github.com/monnerat/compa
Source0: compa-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: mate-common
BuildRequires: mate-panel-devel
BuildRequires: dbus-devel
BuildRequires: intltool
# Needed when the tarball is an SCM snapshot.
BuildRequires: autoconf
BuildRequires: automake
%description
This is a Mate Panel Applet that can display the output of any
system command on the panel.
In addition it is able to display the output of a different command in its
tool-tip, and launch a different command when clicked.
Compa text style can be modified using Text Attribute Markup Language.
#-------------------------------------------------------------------------------
%prep
#-------------------------------------------------------------------------------
%setup -q
#-------------------------------------------------------------------------------
%build
#-------------------------------------------------------------------------------
[ -f configure ] || ./autogen.sh
%configure
make %{?_smp_mflags}
#-------------------------------------------------------------------------------
%install
#-------------------------------------------------------------------------------
make DESTDIR="${RPM_BUILD_ROOT}" install
rm -rf "${RPM_BUILD_ROOT}%{_docdir}/"
%find_lang %{name}
#-------------------------------------------------------------------------------
%postun
#-------------------------------------------------------------------------------
if [ "${1}" -eq 0 ]
then /usr/bin/glib-compile-schemas '%{_datadir}/glib-2.0/schemas' &> /dev/null || :
fi
#-------------------------------------------------------------------------------
%posttrans
#-------------------------------------------------------------------------------
/usr/bin/glib-compile-schemas '%{_datadir}/glib-2.0/schemas' &> /dev/null || :
#-------------------------------------------------------------------------------
%files -f %{name}.lang
#-------------------------------------------------------------------------------
%defattr(-, root, root, -)
%doc AUTHORS COPYING README
%{_libexecdir}/mate-panel/*
%{_datadir}/mate-panel/compa
%{_datadir}/pixmaps/*
%{_datadir}/dbus*/services/*
%{_datadir}/mate-panel/applets/*
%{_datadir}/glib*/schemas/*
#-------------------------------------------------------------------------------
%changelog
#-------------------------------------------------------------------------------
* Sat Oct 29 2022 Patrick Monnerat <[email protected]> 0.99.1-1
- New release.
* Thu Jul 16 2015 Patrick Monnerat <[email protected]> 0.99-1
- Initial package.