b540f1a698
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librcc?expand=0&rev=3
120 lines
3.6 KiB
RPMSpec
120 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package librcc
|
|
#
|
|
# Copyright (c) 2012 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define lname librcc0
|
|
Name: librcc
|
|
Version: 0.2.9
|
|
Release: 0
|
|
Summary: Russian Charset Conversion Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Url: http://rusxmms.sourceforge.net
|
|
Source0: http://dside.dyndns.org/files/rusxmms/%{name}-%{version}.tar.bz2
|
|
Source1: baselibs.conf
|
|
# PATCH-FIX-UPSTREAM librcc-printf.diff csa@dside.dyndns.org
|
|
Patch1: librcc-printf.diff
|
|
# PATCH-FIX-UPSTREAM librcc-0.2.9-suse-lint.diff csa@dside.dyndns.org -- remove rpmlint warnings
|
|
Patch2: librcc-0.2.9-suse-lint.diff
|
|
# PATCH-FIX-UPSTREAM librcc-0.2.9-czech_config.patch lazy.kent.suse@gmail.com -- 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 csa@dside.dyndns.org -- fix clean-up in the case of context initialization failure
|
|
Patch4: librcc-0.2.9-provide_prototype.patch
|
|
BuildRequires: aspell-devel
|
|
BuildRequires: enca-devel
|
|
BuildRequires: librcd-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: rcc-runtime
|
|
Supplements: packageand(unzip:aspell)
|
|
|
|
%description
|
|
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.
|
|
|
|
%package -n %lname
|
|
Summary: Russian Charset Conversion Library
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
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.
|
|
|
|
%package -n librcc-devel
|
|
Summary: Development Files for LibRCC
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{lname} = %{version}
|
|
|
|
%description -n librcc-devel
|
|
Development files for the package LibRCC.
|
|
|
|
%package -n rcc-runtime
|
|
Summary: LibRCC Runtime Environment
|
|
Group: Productivity/Text/Convertors
|
|
|
|
%description -n rcc-runtime
|
|
Runtime environment for the package LibRCC.
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{version}
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure \
|
|
--disable-static \
|
|
--disable-bdb \
|
|
--disable-libtranslate \
|
|
--disable-gtk2
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
install -Dm 0644 examples/rcc.xml %{buildroot}%{_sysconfdir}/rcc.xml
|
|
rm -f %{buildroot}%{_libdir}/{*.la,rcc/engines/*.la}
|
|
rm -rf %{_builddir}/librcc-%{version}/examples/{.deps,Makefile}
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/librcc.so.*
|
|
%{_libdir}/librccui.so.*
|
|
|
|
%files -n librcc-devel
|
|
%defattr(-,root,root,-)
|
|
%doc docs examples
|
|
%{_includedir}/*
|
|
%{_libdir}/lib*.so
|
|
|
|
%files -n rcc-runtime
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
%{_libdir}/rcc
|
|
%config(noreplace) %{_sysconfdir}/rcc.xml
|
|
|
|
%changelog
|