# # gaim_major_ver and gaim_minor_ver should be defined to match the minimum # Gaim API version _required_ to build Gaim Encryption # Due to the way Gaim checks plugin versions, we need to also ensure that # the correct minimum version of Gaim is Require:'d based on what version of # the Gaim headers we actually build with. # %define gaim_major_ver 1 %define gaim_minor_ver 0 %define gaim_next_major_ver %(echo $((%{gaim_major_ver}+1))) %define gaim_build_minor_ver %(pkg-config --modversion gaim | awk -F. '{ print $2 }') Summary: Gaim-Encryption uses NSS to provide transparent RSA encryption as a Gaim plugin Name: gaim-encryption Version: 2.36 Release: 1 License: GPL Group: Applications/Internet Url: http://gaim-enctyption.sourceforge.net/ Source: http://prdownloads.sourceforge.net/gaim-encryption/gaim-encryption-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pkgconfig, libtool, gtk2-devel, gettext, mozilla-nss-devel BuildRequires: gaim-devel >= 1:%{gaim_major_ver}.%{gaim_minor_ver}, gaim-devel < 1:%{gaim_next_major_ver} Requires: gaim >= 1:%{gaim_major_ver}.%{gaim_build_minor_ver}, gaim < 1:%{gaim_next_major_ver} %description Gaim-Encryption uses NSS to provide transparent RSA encryption as a Gaim plugin %prep %setup -q %build %configure CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR="$RPM_BUILD_ROOT" install rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/*.la $RPM_BUILD_ROOT%{_libdir}/gaim/*.a %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-, root, root) %doc CHANGELOG COPYING NOTES README TODO %{_libdir}/gaim/*.so %changelog * Sat Apr 9 2005 Stu Tomlinson - Initial spec file for Gaim Encryption