File centerim.spec of Package centerim
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: centerim
Version: 4.22.10
Release: 1
License: GPLv2+
Summary: A multi-protocol Instant messenger for the Console
Url: http://centerim.org/
Group: Productivity/Networking/Talk/Clients
Source: http://www.centerim.org/download/releases/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.svg
Patch0: %{name}-4.22.6-disable-actions.patch
Patch1: centerim-fix-compiler-warnings.patch
BuildRequires: gcc-c++
BuildRequires: gpgme-devel
BuildRequires: libbz2-devel
BuildRequires: libcurl-devel
BuildRequires: libgpg-error
BuildRequires: libjpeg-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A multi-protocol Instant messenger for the Console. Forked from CenterICQ.
%prep
%setup -q
%patch0
%patch1 -p1
%build
%configure \
--enable-nls \
--enable-icq \
--enable-yahoo \
--enable-aim \
--enable-irc \
--enable-jabber \
--enable-gg \
--enable-msn \
--enable-rss \
--enable-lj \
--disable-static \
--disable-rpath \
--enable-locales-fix
make %{?_smp_mflags}
%install
%make_install
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%suse_update_desktop_file %{name}
%find_lang %{name}
%check
make check
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog FAQ NEWS POLICY README THANKS TODO
%{_bindir}/centerim
%{_bindir}/cimconv
%{_bindir}/CenterIMLog2HTML.py
%{_bindir}/cimextracthistory.pl
%{_bindir}/cimformathistory
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%doc %{_mandir}/man1/*
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%changelog