You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

Name: purple-hangouts
Version: 20201110
Release: 1%{?dist}
Epoch: 1
Summary: Hangouts plugin for libpurple
License: GPLv3+
URL: https://github.com/EionRobb/purple-hangouts
BuildRequires: pkgconfig(libprotobuf-c)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(purple)
BuildRequires: pkgconfig(zlib)
BuildRequires: gcc
%description
Adds support for Hangouts to Pidgin, Adium, Finch and other libpurple
based messengers.
%package -n pidgin-hangouts
Summary: Adds pixmaps, icons and smileys for Hangouts protocol
BuildArch: noarch
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: pidgin
%description -n pidgin-hangouts
Adds pixmaps, icons and smileys for Hangouts protocol implemented by
hangouts-purple.
%prep
%autosetup -T -c -n EionRobb-purple-hangouts
git clone https://github.com/EionRobb/purple-hangouts .
# fix W: wrong-file-end-of-line-encoding
sed -i -e "s,\r,," README.md
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%make_build
%install
%make_install
chmod 755 %{buildroot}%{_libdir}/purple-2/libhangouts.so
%files
%{_libdir}/purple-2/libhangouts.so
%license gpl3.txt
%doc README.md
%files -n pidgin-hangouts
%{_datadir}/pixmaps/pidgin/protocols/*/hangouts.png