LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File centerim5.spec of Package centerim5 (Project home:tboerger)

#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           centerim5
Version:        5.0.0beta2
Release:        1
License:        GPL-2.0+
Summary:        A multi-protocol Instant messenger for the Console
Url:            http://centerim.org/
Group:          Productivity/Networking/Talk/Clients
Source:         http://www.centerim.org/download/cim5/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.svg
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  libpurple-devel
BuildRequires:  libsigc++2-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A multi-protocol Instant messenger for the Console. Forked from CenterICQ.

%prep
%setup -q

%build
%configure \
    --enable-nls \
    --disable-static \
    --disable-rpath
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}
rm %{buildroot}%{_libdir}/centerim5/extaction.la
rm %{buildroot}%{_libdir}/libcppconsui.la
rm %{buildroot}%{_libdir}/libcppconsui.so
rm %{buildroot}%{_libdir}/libcppconsui.so.0

%post
ldconfig

%postun
ldconfig

%check
make check

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING HACKING NEWS README TODO ChangeLog
%{_bindir}/centerim5
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_libdir}/centerim5
%{_libdir}/libcppconsui.so.0.0.0
%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/centerim5.mo
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/centerim5.mo
%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/centerim5.mo
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/centerim5.mo
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/centerim5.mo
%doc %{_mandir}/man1/*
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps

%changelog