packages: libpurple-protocol-facebookchat/Makefile (NEW), libpurple-protoco...
glen
glen at pld-linux.org
Sun Dec 5 14:29:47 CET 2010
Author: glen Date: Sun Dec 5 13:29:47 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new, based on fc package
---- Files affected:
packages/libpurple-protocol-facebookchat:
Makefile (NONE -> 1.1) (NEW), libpurple-protocol-facebookchat.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libpurple-protocol-facebookchat/Makefile
diff -u /dev/null packages/libpurple-protocol-facebookchat/Makefile:1.1
--- /dev/null Sun Dec 5 14:29:47 2010
+++ packages/libpurple-protocol-facebookchat/Makefile Sun Dec 5 14:29:42 2010
@@ -0,0 +1,55 @@
+PREFIX=/usr
+LIBDIR=$(PREFIX)/lib
+ICONDIR=$(PREFIX)/share/pixmaps/pidgin/protocols
+SOURCES = \
+ fb_friendlist.h \
+ fb_friendlist.c \
+ fb_util.h \
+ fb_util.c \
+ fb_conversation.c \
+ fb_conversation.h \
+ libfacebook.h \
+ libfacebook.c \
+ fb_blist.h \
+ fb_blist.c \
+ fb_connection.h \
+ fb_connection.c \
+ fb_info.h \
+ fb_info.c \
+ fb_managefriends.h \
+ fb_managefriends.c \
+ fb_messages.h \
+ fb_messages.c \
+ fb_notifications.h \
+ fb_notifications.c \
+ fb_search.h \
+ fb_search.c
+
+PURPLE_CFLAGS := $(shell pkg-config --cflags --libs purple)
+PURPLE_CFLAGS += -DPURPLE_PLUGINS -DENABLE_NLS -fPIC -DPIC -DNO_ZLIB -shared $(CFLAGS)
+CC=gcc
+
+#Standard stuff here
+.PHONY: all clean install sourcepackage
+
+all: libfacebook.so
+
+install: libfacebook.so
+ mkdir -p $(DESTDIR)$(LIBDIR)/purple-2
+ cp libfacebook.so $(DESTDIR)$(LIBDIR)/purple-2
+ mkdir -p $(DESTDIR)$(ICONDIR)/{16,22,48}
+ cp facebook16.png $(DESTDIR)$(ICONDIR)/16/facebook.png
+ cp facebook22.png $(DESTDIR)$(ICONDIR)/22/facebook.png
+ cp facebook48.png $(DESTDIR)$(ICONDIR)/48/facebook.png
+
+clean:
+ rm -f *.so *~
+
+libfacebook.so: ${SOURCES}
+ ${CC} ${PURPLE_CFLAGS} -I. -I/usr/include/json-glib-1.0 -ljson-glib-1.0 -pipe ${SOURCES} -o libfacebook.so
+
+sourcepackage: *.c *.h Makefile facebook16.png facebook22.png facebook48.png COPYING facebook.nsi
+ tar --bzip2 -cf pidgin-facebookchat-source.tar.bz2 $^
+
+
+
================================================================
Index: packages/libpurple-protocol-facebookchat/libpurple-protocol-facebookchat.spec
diff -u /dev/null packages/libpurple-protocol-facebookchat/libpurple-protocol-facebookchat.spec:1.1
--- /dev/null Sun Dec 5 14:29:47 2010
+++ packages/libpurple-protocol-facebookchat/libpurple-protocol-facebookchat.spec Sun Dec 5 14:29:42 2010
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+Summary: Libpurple plug-in supporting facebook IM
+Name: libpurple-protocol-facebookchat
+Version: 1.67
+Release: 1
+License: GPL v3+
+Group: Applications/Networking
+URL: http://code.google.com/p/pidgin-facebookchat/
+Source0: http://pidgin-facebookchat.googlecode.com/files/pidgin-facebookchat-source-%{version}-1.tar.bz2
+# Source0-md5: ae9d1f59e5185bf27b3ed1c0fee3fdc3
+Source3: Makefile
+BuildRequires: json-glib-devel
+BuildRequires: libpurple-devel >= 2.5.8
+Obsoletes: pidgin-facebookchat < 1.35-3
+Obsoletes: purple-facebookchat
+ExcludeArch: s390x
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a Facebook chat plugin for Pidgin and libpurple messengers. It
+connects to the new Facebook Chat IM service without the need for an
+API key.
+
+Currently the plugin can log into the Facebook servers, grab the buddy
+list, send/receive messages, add/remove friends, receive
+notifications, search for Facebook friends and set your Facebook
+status.
+
+%prep
+%setup -q -n pidgin-facebookchat
+# Upstream Makefile is totally horrible, use our own instead.
+mv Makefile Makefile.orig
+install -p %{SOURCE3} Makefile
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LIBDIR=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ LIBDIR=%{_libdir} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+chmod a+rx $RPM_BUILD_ROOT%{_libdir}/purple-2/libfacebook.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_libdir}/purple-2/*.so
+%{_pixmapsdir}/pidgin/protocols/*/facebook.png
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/12/05 13:29:42 glen
+- new, based on fc package
================================================================
More information about the pld-cvs-commit
mailing list