%global upversion 1.3.1-5-g7d9aad3 Name: purple-telegram Version: %(echo '%{upversion}' | sed 's/-/_/g') Release: 0.0.1%{?dist} Summary: Libpurple protocol plugin for Telegram support Group: Applications/Internet License: GPLv2+ and LGPLv2+ URL: https://github.com/majn/telegram-purple # Source0: https://github.com/majn/telegram-purple/releases/download/v%{version}/telegram-purple_%{version}.orig.tar.gz Source0: telegram-purple_%{upversion}.orig.tar.gz Patch0: tl-parser.patch ExcludeArch: s390x ExcludeArch: ppc64 BuildRequires: gettext # BuildRequires: libgcrypt-devel >= 1.6 BuildRequires: openssl-devel BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(purple) BuildRequires: pkgconfig(libwebp) BuildRequires: libappstream-glib Provides: bundled(tgl) = 2.0.1 #Upstream is not interested in unbundling tgl %description Adds support for Telegram IM to purple-based clients such as Pidgin. %prep %setup -n telegram-purple %patch0 -p1 %build %configure --disable-gcrypt make %{?_smp_mflags} %install %make_install chmod 755 %{buildroot}/%{_libdir}/purple-2/telegram-purple.so %find_lang telegram-purple %check appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/telegram-purple.metainfo.xml %files -f telegram-purple.lang %license COPYING %doc README* CHANGELOG* %{_libdir}/purple-2/telegram-purple.so %dir %{_sysconfdir}/telegram-purple/ %config %{_sysconfdir}/telegram-purple/* #Icons %dir %{_datadir}/pixmaps/pidgin/ %{_datadir}/pixmaps/pidgin/protocols/*/telegram.png #AppStream metadata %{_datadir}/appdata/telegram-purple.metainfo.xml %changelog * Mon Oct 16 2017 Matěj Cepl - 1.3.1_5_g7d9aad3-0.0.1 - Last checkout from upstream. * Thu Aug 03 2017 Fedora Release Engineering - 1.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 28 2017 Sandro Mani - 1.3.1-3 - Rebuild (libwebp) * Wed Jun 28 2017 Jiri Eischmann - 1.3.1-2 - Backporting a patch to build with Werror=format-overflow * Mon Jun 26 2017 Jiri Eischmann - 1.3.1-1 - Update to 1.3.1 * Sat Feb 11 2017 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Sandro Mani - 1.3.0-2 - Rebuild (libwebp) * Tue Aug 9 2016 Jiri Eischmann - 1.3.0-1 - Update to 1.3.0 - Switching from git clone to upstream provided archive - Removing appdata file installation because it's now installed by the build script - Specifying bundled tgl * Tue Mar 15 2016 Jiri Eischmann - 1.2.6-1 - Update to 1.2.6 * Thu Feb 04 2016 Fedora Release Engineering - 1.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 25 2016 Jiri Eischmann - 1.2.5-1 - Update to 1.2.5 - Excluding ppc64 arch for now because it fails to build there * Tue Jan 5 2016 Jiri Eischmann - 1.2.4-1 - Update to 1.2.4 * Tue Dec 29 2015 Kalev Lember - 1.2.2-5 - Rebuilt for libwebp soname bump * Mon Dec 21 2015 Jiri Eischmann 1.2.2-4 - Specifying required version of libgcrypt-devel - Changing summary * Wed Dec 16 2015 Jiri Eischmann 1.2.2-3 - Another fix of ownership of protocol icon directories * Tue Dec 15 2015 Jiri Eischmann 1.2.2-2 - Changed the way metainfo.xml file is installed, added validation for it - Translation files now fully handled by macro - BuildRequires now one per line - Fixed ownership of directories of protocol icons * Sat Dec 12 2015 Jiri Eischmann 1.2.2-1 - Update to 1.2.2 - Improved the spec (adding description, using pkgconfig for buildrequires, adding docs,...) - Added translations - Using libgcrypt instead of openssl * Thu Sep 17 2015 Jiri Eischmann 1.2.1-1 - Initial build