1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
%define gaim_major_ver %(echo %{gaimver} | sed -e 's/\\([[0-9]]*\\).\\([[0-9]]*\\).\\([[0-9]]*\\)/\\1/' -)
%define gaim_minor_ver %(echo %{gaimver} | sed -e 's/\\([[0-9]]*\\).\\([[0-9]]*\\).\\([[0-9]]*\\)/\\2/' -)
%define gaim_next_major_ver %(echo $((%{gaim_major_ver}+1)))
%define rpmrelease 0
Summary: Festival Plugin for Gaim
Name: @PACKAGE@
Version: @VERSION@
Release: %{gaim_major_ver}.%{gaim_minor_ver}.%{rpmrelease}%{?gaimdist:.%{gaimdist}}
License: GPL
Group: Applications/Internet
Url: http://festival-gaim.sourceforge.net/
Source: festival-gaim-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: gaim >= 1:%{gaim_major_ver}.%{gaim_minor_ver}
Conflicts: gaim > 1:%{gaim_next_major_ver}
Conflicts: gaim < 1:%{gaim_major_ver}.%{gaim_minor_ver}
BuildRequires: pkgconfig, libtool, festival-devel, gaim-devel >= 1:%{gaim_major_ver}.%{gaim_minor_ver}
BuildConflicts: gaim-devel > 1:%{gaim_next_major_ver}, gaim-devel < 1:%{gaim_major_ver}.%{gaim_minor_ver}
%if "%{_vendor}" == "MandrakeSoft"
BuildRequires: libgtk+1.2-devel, libgtk+2.0_0-devel
%else
BuildRequires: gtk+-devel, gtk2-devel
%endif
%description
Gaim Festival is a plugin for Gaim that will read conversations outloud using the Festival Speech Synthesis System.
To rebuild for a specific Gaim version or dist tag:
rpmbuild --rebuild gaim-@PACKAGE@-@VERSION@-%{release}.src.rpm --define 'gaimver %{gaimver}' --define 'gaimdist %{!?gaimdist:fc1}%{?gaimdist:%{gaimdist}}'
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT%{_libdir}/gaim/*.so || :
rm -f $RPM_BUILD_ROOT%{_libdir}/gaim/festival.la $RPM_BUILD_ROOT%{_libdir}/gaim/festival.a
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root)
%doc README ChangeLog
%{_libdir}/gaim/festival.so
%changelog
* Thu Oct 14 2004 Nathan Fredrickson <nathan@silverorange.com>
- Initial spec file based on spec from gxr plugin by Stu Tomlinson <stu@nosnilmot.com>
|