rpms/purple-facebookchat/devel purple-facebookchat-MC-build.patch, NONE, 1.1 purple-facebookchat-Makefile, NONE, 1.1 purple-facebookchat.spec, NONE, 1.1
Matej Cepl
mcepl at fedoraproject.org
Thu Sep 25 15:23:48 UTC 2008
Author: mcepl
Update of /cvs/pkgs/rpms/purple-facebookchat/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24877
Added Files:
purple-facebookchat-MC-build.patch
purple-facebookchat-Makefile purple-facebookchat.spec
Log Message:
Initial commit
purple-facebookchat-MC-build.patch:
--- NEW FILE purple-facebookchat-MC-build.patch ---
diff -up pidgin-facebook-1.35/libfacebook.c.RH-build pidgin-facebook-1.35/libfacebook.c
--- pidgin-facebook-1.35/libfacebook.c.RH-build 2008-09-22 21:36:56.000000000 +0200
+++ pidgin-facebook-1.35/libfacebook.c 2008-09-22 21:39:50.000000000 +0200
@@ -2591,7 +2591,7 @@ static PurplePluginProtocolInfo prpl_inf
NULL, /* unregister_user */
NULL, /* send_attention */
NULL, /* attention_types */
- (gpointer)sizeof(PurplePluginProtocolInfo) /* struct_size */
+ sizeof(PurplePluginProtocolInfo) /* struct_size */
};
static PurplePluginInfo info = {
--- NEW FILE purple-facebookchat-Makefile ---
PREFIX=/usr
LIBDIR=$(PREFIX)/lib
ICONDIR=$(PREFIX)/share/pixmaps/pidgin/protocols
PURPLE_CFLAGS := $(shell pkg-config --cflags --libs purple)
PURPLE_CFLAGS += -DPURPLE_PLUGINS -DENABLE_NLS -fPIC -DPIC -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: libfacebook.c
${CC} ${PURPLE_CFLAGS} -I. libfacebook.c -o libfacebook.so
sourcepackage: libfacebook.c Makefile facebook16.png facebook22.png facebook48.png COPYING facebook.nsi
tar --bzip2 -cf pidgin-facebookchat-source.tar.bz2 $^
--- NEW FILE purple-facebookchat.spec ---
Name: purple-facebookchat
Version: 1.35
Release: 4%{?dist}
Summary: Libpurple plug-in supporting facebook IM
Group: Applications/Internet
License: GPLv3+
URL: http://code.google.com/p/facebook-purple/
Source0: http://pidgin-facebookchat.googlecode.com/files/pidgin-facebookchat-source-1.35.tar.bz2
Source3: %{name}-Makefile
Patch0: %{name}-MC-build.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpurple-devel
%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 -c
%patch0 -p1 -b .RH-build
mv Makefile Makefile.orig
install -p %{SOURCE3} Makefile
%build
export CFLAGS="$RPM_OPT_FLAGS"
make LIBDIR=%{_libdir}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/purple-2/libfacebook.so
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/purple-2/*.so
%{_datadir}/pixmaps/pidgin/protocols/*/facebook.png
%changelog
* Wed Sep 24 2008 Matej Cepl <mcepl at redhat.com> 1.35-4
- Makefile is not compressed anymore and it shouldn't create
source tarball anymore in all target.
* Tue Sep 23 2008 Matej Cepl <mcepl at redhat.com> 1.35-3
- Some changes from Dan Horák
* Mon Sep 22 2008 MatÄj Cepl <mcepl at redhat.com> 1.35-1
- Initial build.
More information about the fedora-extras-commits
mailing list