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:        2
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
Patch0:         chr_replace.patch
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.


%package -n libcppconsui0
Summary:        Includes console UI library for %{name}
Group:          Development/Languages/C and C++
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

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


%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Languages/C and C++
Requires:       centerim5 = %{version}
Requires:       libcppconsui0 = %{version}

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and
libraries.


%prep
%setup -q
%patch0 -p1


%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}


%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
%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
%dir %{_libdir}/centerim5


%files -n libcppconsui0
%defattr(-,root,root)
%{_libdir}/libcppconsui.so.0
%{_libdir}/libcppconsui.so.0.0.*

%post -n libcppconsui0
ldconfig

%postun -n libcppconsui0
ldconfig


%files devel
%defattr(-,root,root)
%{_libdir}/libcppconsui.so
%{_libdir}/libcppconsui.la
%{_libdir}/centerim5/extaction.so
%{_libdir}/centerim5/extaction.la


%changelog