File librcc0.spec of Package librcc0.import5177

# spec file for package librcc0
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           librcc0
Version:        0.2.9
Release:        6.<RELEASE7>
License:        LGPLv2.1+
Summary:        Russian Charset Conversion Library
Group:          System/Libraries
Source0:        librcc-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM librcc-printf.diff
Patch1:         librcc-printf.diff
# PATCH-FIX-UPSTREAM librcc-0.2.9-suse-lint.diff
# -- remove rpmlint warnings
Patch2:         librcc-0.2.9-suse-lint.diff
# PATCH-FIX-UPSTREAM librcc-0.2.9-czech_config.patch
# -- fix Czech locale code in config file
Patch3:         librcc-0.2.9-czech_config.patch
# PATCH-FIX-UPSTREAM librcc-0.2.9-provide_prototype.patch
# -- fix clean-up in the case of context initialization failure
Patch4:         librcc-0.2.9-provide_prototype.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  aspell-devel librcd-devel libxml2-devel pkg-config
%if 0%{?suse_version} >= 1120
BuildRequires:  enca-devel
Requires:       rcc-runtime
#To get librcc installed if unzip and aspell are installed
Supplements:    packageand(unzip:aspell)

Provides posibility to automaticaly convert considered encodings (a lot of
languages is supported, not only russian one) to/from UTF-8. The library
is part of rusxmms patch.

    Suren A. Chilingaryan <>

%package -n librcc-devel
License:        LGPLv2.1+
Summary:        Development Files for LibRCC
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description -n librcc-devel
Development files for the package LibRCC.

    Suren A. Chilingaryan <>

%package -n rcc-runtime
License:        LGPLv2.1+
Summary:        LibRCC Runtime Environment
Group:          Productivity/Text/Convertors

%description -n rcc-runtime
Runtime environment for the package LibRCC.

    Suren A. Chilingaryan <>

%setup -qn librcc-%{version}

%{configure} \
	--disable-static \
	--disable-bdb \
	--disable-libtranslate \
%{__make} %{?jobs:-j %jobs}

%{__install} -Dm 644 examples/rcc.xml %{buildroot}%{_sysconfdir}/rcc.xml
%{__rm} -f %{buildroot}%{_libdir}/{*.la,rcc/engines/*.la}
%{__rm} -rf %{_builddir}/librcc-%{version}/examples/{.deps,Makefile}

[ %{buildroot} != "/" ] && %{__rm} -rf %{buildroot}

%post -n %{name} -p /sbin/ldconfig

%postun -n %{name} -p /sbin/ldconfig


%files -n librcc-devel
%doc docs examples

%files -n rcc-runtime
%config(noreplace) %{_sysconfdir}/rcc.xml