%%global commit0 b1440a0610cabe9271ebc9f9649d3af534443e5d #%%global gittag0 GIT-TAG %%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %define realname funyahoo-plusplus Name: purple-funyahoo-plusplus Version: 0.1 Release: 6%{?dist}.wolfy #Release: 7.20160914gitb%shortcommit0%{?dist}.wolfy Summary: A replacement Yahoo prpl (protocol plugin) for Pidgin/libpurple Group: Applications/Internet License: GPLv3 URL: https://github.com/EionRobb/funyahoo-plusplus #git commit 48430a30045612d2b85d4045bff4aded9f69adcb , Fri Aug 19 09:58:29 2016 +1200 #git commit 980327cbe5021fad24c190d07c89a6fb425b7fcb , Wed Aug 24 18:12:47 2016 +1200 #commit ee886aca0690a24401e037851c28a6e042b072e2 , Fri Sep 2 12:22:42 2016 -030 #commit 29874d9b6ffd37d655c5f4790102bef7879d10a9 Mon Sep 12 00:08:30 2016 -0300 #commit b1440a0610cabe9271ebc9f9649d3af534443e5d Tue Sep 13 21:05:27 2016 -0300 #Source0: https://github.com/EionRobb/funyahoo-plusplus/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz Source0: https://github.com/EionRobb/%{realname}/archive/%{realname}-master.zip BuildRequires: json-glib-devel libpurple-devel Requires: libpurple >= 2.10.11 %description A replacement Yahoo prpl (protocol plugin) for Pidgin/libpurple compatible with the new protocol enforced by Yahoo since Sept 2016 %prep #%%autosetup -n %{name}-%{commit0} %setup -n funyahoo-plusplus-master -q %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_libdir}/purple-2/ mv libyahoo-plusplus.so $RPM_BUILD_ROOT/%{_libdir}/purple-2/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.md %license LICENSE %{_libdir}/purple-2/libyahoo-plusplus.so %changelog #* Fri Sep 16 2016 Manuel "lonely wolf" Wolfshant - 0.1-7.20160914gitb1440a0.wolfy * Fri Sep 16 2016 Manuel "lonely wolf" Wolfshant - 0.1-6 - More bug fixing, commit 701a697f25ea1277b3b9dd96480d5518fa3de1bb * Mon Sep 12 2016 Manuel "lonely wolf" Wolfshant - 0.1-5 - More bug fixing, yet another alpha version * Fri Sep 02 2016 Manuel "lonely wolf" Wolfshant - 0.1-4 New upstream version. more bug fixing * Wed Aug 31 2016 Manuel Wolfshant - 0.1-3 Add "Requires:" for the newer libpurple * Fri Aug 19 2016 Manuel Wolfshant - 0.1-2 New upstream, fixes a couple of bugs, including a memleak * Fri Aug 19 2016 Manuel Wolfshant - 0.1-1 Initial package