|
发表于 2004-5-29 07:55:50
|
显示全部楼层
1,安装audiofile-devel libao-devel
2,在没有开启gaim的情况下,修改/root/.gaim/prefx.xml
<pref name='ipfile' type='string' value='QQWry.dat' />
3,没碰到,RPM系统想稳定,一般大家最好自己获得src.rpm,然后针对自己的系统打包,或者至少是同一个发行版本,同一个版本号的使用者发布的版本,不要乱--nodeps --force非常错误的安装方式,不推荐大家使用这两个参数,可能导致其它包出问题,
[quote]%define name gaim
%define version 0.77
%define rel 1
%define prefix /usr
%define sysconfdir /etc
Summary: A Gtk+ based multiprotocol instant messaging client
Name: %{name}
Version: %{version}
Release: %{rel}
License: GPL
Group: Applications/Internet
URL: http://gaim.sourceforge.net/
Source0: %{name}-%{version}.tar.bz2
Source1: QQWry-20040330.dat
Source2: qqsmileys.tar.bz2
Patch0: gaim-cvs-0218-msn_displayer_face.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: gtk2 >= 2.0.0, audiofile, libao
BuildRequires: libao-devel, gtk2-devel, libtool, audiofile-devel, pkgconfig
%description
Gaim allows you to talk to anyone using a variety of messaging
protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!,
MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr. These
protocols are implemented using a modular, easy to use design.
To use a protocol, just add an account using the account editor.
Gaim supports many common features of other clients, as well as many
unique features, such as perl scripting, TCL scripting and C plugins.
Gaim is NOT affiliated with or endorsed by America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., or ICQ Inc.
#%description devel
#The gaim-devel package contains the header files, developer
#documentation, and libraries required for development of gaim scripts
#and plugins.
%package OpenQ
Summary: Openq-0.3.0.p2
Group: Applications/Internet
License: GPL
Group: Applications/Internet
URL: http://openq.linuxsir.net
Requires: gaim
%description OpenQ
This project is to build a Linux/Unix port of the most popular Internet messgaing tool in China - oicq(QQ).
QQ (Original Oicq) is the most favorate ICQ tool in China.So Linux users can also enjoy the QQ\\\\\\\'s great function
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .msn
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--with-perl-lib=$RPM_BUILD_ROOT%{_prefix}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
datadir=$RPM_BUILD_ROOT%{_datadir} includedir=$RPM_BUILD_ROOT%{_includedir} \
libdir=$RPM_BUILD_ROOT%{_libdir} mandir=$RPM_BUILD_ROOT%{_mandir} \
sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
install
#install IP date
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/gaim/QQWry.dat
install -d $RPM_BUILD_ROOT%{_datadir}/applnk/Vendor_menus/Applications/Internet
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/applnk/Vendor_menus/Applications/Internet
install -d $RPM_BUILD_ROOT%{_datadir}/applnk/Internet
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/applnk/Internet
install -d $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet
#install qqsmileys
install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/gaim/
( cd $RPM_BUILD_ROOT%{_datadir}/pixmaps/gaim/
tar Ixf %{SOURCE2}
chmod -Rf a+rX,g-w,o-w .
)
rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/*/*/perllocal.pod
%clean
#rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT
%doc README ChangeLog
%doc %{_mandir}/man1/*
#%doc %{_mandir}/man3/*
%dir %{_libdir}/gaim
%attr(755, root, root) %{_libdir}/gaim/autorecon.*
%attr(755, root, root) %{_libdir}/gaim/docklet.*
%attr(755, root, root) %{_libdir}/gaim/gaim-remote.*
%attr(755, root, root) %{_libdir}/gaim/gestures.*
%attr(755, root, root) %{_libdir}/gaim/history.*
%attr(755, root, root) %{_libdir}/gaim/iconaway.*
%attr(755, root, root) %{_libdir}/gaim/idle.*
%attr(755, root, root) %{_libdir}/gaim/libgg.*
%attr(755, root, root) %{_libdir}/gaim/libirc.*
%attr(755, root, root) %{_libdir}/gaim/libjabber.*
%attr(755, root, root) %{_libdir}/gaim/libmsn.*
%attr(755, root, root) %{_libdir}/gaim/libnapster.*
%attr(755, root, root) %{_libdir}/gaim/liboscar.*
#%attr(755, root, root) %{_libdir}/gaim/libtoc.*
%attr(755, root, root) %{_libdir}/gaim/libyahoo.*
%attr(755, root, root) %{_libdir}/gaim/libzephyr.*
%attr(755, root, root) %{_libdir}/gaim/notify.*
%attr(755, root, root) %{_libdir}/gaim/perl.*
%attr(755, root, root) %{_libdir}/gaim/relnot.*
%attr(755, root, root) %{_libdir}/gaim/spellchk.*
%attr(755, root, root) %{_libdir}/gaim/ssl-gnutls.*
%attr(755, root, root) %{_libdir}/gaim/ssl.*
%attr(755, root, root) %{_libdir}/gaim/ssl-nss.*
%attr(755, root, root) %{_libdir}/gaim/statenotify.*
%attr(755, root, root) %{_libdir}/gaim/tcl.*
%attr(755, root, root) %{_libdir}/gaim/ticker.*
%attr(755, root, root) %{_libdir}/gaim/timestamp.*
%attr(755, root, root) %{_libdir}/libgaim-remote.*
#%attr(755, root, root) %{_libdir}/perl5
#%attr(755, root, root) %{prefix}/lib/perl5/*/*-linux*/*
%{_bindir}/*
%{_datadir}/locale/*/*/*
%{_datadir}/pixmaps/*
%dir %{_datadir}/sounds/gaim
%{_datadir}/sounds/gaim/*
#%{_datadir}/applications/*
%{_datadir}/applnk/Internet/gaim.desktop
%{_datadir}/applnk/Vendor_menus/Applications/Internet/gaim.desktop
%{_datadir}/gnome/apps/Internet/gaim.desktop
#%files devel
#%doc plugins/HOWTO
#%doc HACKING PROGRAMMING_NOTES
#%attr(755, root, root) %{_libdir}/libgaim-remote.la
#%dir %{_includedir}/gaim-remote
#%{_includedir}/gaim-remote/*.h
%files OpenQ
%attr(755,root,root) %{_libdir}/%{name}/libqq.*
%attr(755, root, root) %{_libdir}/gaim/QQWry.dat
%changelog
* Thu May 06 2004 dato <datocp@hotmail.com>
- rebulid for turbolinux
* Thu Jan 15 2004 Ethan Blanton <eblanton@cs.ohiou.edu>
- Removed the manual strip command, as it seems to be unwarranted if
the necessary programs are properly installed. (For me, this was
elfutils.)
* Sun Jul 20 2003 Bjoern Voigt <bjoern@cs.tu-berlin.de>
- Added pkgconfig build dependency.
- if "%{_vendor}" != "MandrakeSoft" now also works with rpm 3.x.
- Added Gaim-specific directories to list of Gaim's files.
* Wed Jul 16 2003 Ethan Blanton <eblanton@cs.ohiou.edu>
- Complete spec file rewrite to take advantage of "new" RPM features
and make things prettier.
- Use system-supplied %%{_prefix}, %%{_datadir}, etc. rather than
attempt to define our own.
[/quote] |
|