forked from awslabs/pidgin-chime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pidgin-chime.spec.in
139 lines (115 loc) · 3.84 KB
/
pidgin-chime.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
%global gitsnapshot @ISSNAP@
%if 0%{?gitsnapshot}
%global snapcommit @SNAPCOMMIT@
%global snapcount @SNAPCOUNT@
%global shortcommit %(c=%{snapcommit}; echo ${c:0:7})
%global snapver .git.%{snapcount}.%{shortcommit}
%endif
%global tagver @VERSION@
%global pidginver 2.13.0
%if 0%{?rhel} == 7
# Building 2.14.0 with the V/V bits on EPEL7 is non-trivial. IM only for now.
%global pidginver 2.10.11
%endif
%bcond_without evolution # with
Name: pidgin-chime
Summary: Pidgin/libpurple protocol plugin for Amazon Chime
Version: %{tagver}%{?snapver}
Release: 0%{?dist}
License: LGPLv2
URL: https://github.com/awslabs/%{name}
%if 0%{?gitsnapshot}
Source0: https://github.com/awslabs/%{name}/archive/%{snapcommit}/%{name}-%{shortcommit}.tar.gz
%else
Source0: ftp://ftp.infradead.org/pub/%{name}/%{name}-%{version}.tar.gz
%endif
BuildRequires: pkgconfig(pidgin) >= %{pidginver}
BuildRequires: pkgconfig(purple) >= %{pidginver}
BuildRequires: pkgconfig(gnutls) >= 3.2.0
BuildRequires: pkgconfig(farstream-0.2)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-rtp-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(libprotobuf-c)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libsoup-2.4) >= 2.50
BuildRequires: ImageMagick
%if %{with evolution}
BuildRequires: pkgconfig(evolution-calendar-3.0)
BuildRequires: pkgconfig(evolution-shell-3.0)
BuildRequires: pkgconfig(evolution-data-server-1.2)
BuildRequires: pkgconfig(libebook-1.2)
BuildRequires: pkgconfig(libecal-1.2)
%endif # with evolution
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: libtool
BuildRequires: autoconf
BuildRequires: automake
Requires: purple-chime%{?_isa} = %{version}-%{release}
Requires: evolution-chime
Requires: pidgin >= %{pidginver}
%description
A plugin for the Pidgin multi-protocol instant messenger, to support Amazon
Chime.
This package provides the icon set for Pidgin, and a UI plugin to indicate
seen messages.
%package -n purple-chime
Summary: Libpurple protocol plugin for Amazon Chime
%description -n purple-chime
A plugin for the Pidgin multi-protocol instant messenger, to support Amazon
Chime.
This package provides the Amazon Chime protocol support for the libpurple
messaging library, which is used by Pidgin and other tools.
%if %{with evolution}
%package -n evolution-chime
Summary: Evolution plugin for Amazon Chime
Requires: pidgin-chime = %{version}-%{release}
%description -n evolution-chime
A plugin for Evolution that allows you to create meetings in Amazon Chime.
%endif # with evolution
%prep
%if 0%{?gitsnapshot}
%setup -q -n %{name}-%{snapcommit}
NOCONFIGURE=x ./autogen.sh
%else
%setup -q
if [ ! -x configure ]; then
NOCONFIGURE=x ./autogen.sh
fi
%endif
%build
%configure \
%if %{without evolution}
--without-evolution \
%endif # without evolution
--with-certsdir=%{_sysconfdir}/pki/purple-chime/cacerts;
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
%check
make %{?_smp_mflags} check
%files
%{_datadir}/pixmaps/pidgin/protocols/*/chime*
%{_libdir}/pidgin/chimeseen.so
%files -n purple-chime -f %{name}.lang
%{_libdir}/purple-2/libchimeprpl.so
%{_libdir}/farstream-0.2/libapp-transmitter.so
%{_libdir}/gstreamer-1.0/libgstchime.so
%dir %{_sysconfdir}/pki/purple-chime
%dir %{_sysconfdir}/pki/purple-chime/cacerts
%{_sysconfdir}/pki/purple-chime/cacerts/*.pem
%license LICENSE
%doc README TODO
%if %{with evolution}
%files -n evolution-chime
%{_libdir}/evolution/modules/module-event-from-template.so
%endif # with evolution
%changelog
* Fri May 4 2018 David Woodhouse <[email protected]> - %{version}-%{release}
- Initial packaging.