librcc/librcc.spec

110 lines
3.1 KiB
RPMSpec

#
# spec file for package librcc
#
# Copyright (c) 2014 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 major 0
Name: librcc
Version: 0.2.12
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
BuildRequires: aspell-devel
BuildRequires: db-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(enca)
BuildRequires: pkgconfig(libguess)
BuildRequires: pkgconfig(librcd)
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 %{name}%{major}
Summary: Russian Charset Conversion Library
Group: System/Libraries
Requires: rcc-runtime
Supplements: packageand(unzip:aspell)
%description -n %{name}%{major}
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 devel
Summary: Development Files for LibRCC
Group: Development/Libraries/C and C++
Requires: %{name}%{major} = %{version}
%description devel
Development files for the package LibRCC.
%package -n rcc-runtime
Summary: LibRCC Runtime Environment
Group: System/Libraries
%description -n rcc-runtime
Runtime environment for the package LibRCC.
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-force-system-iconv
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}/%{name}-%{version}/examples/{.deps,Makefile,*~}
%post -n %{name}%{major} -p /sbin/ldconfig
%postun -n %{name}%{major} -p /sbin/ldconfig
%files -n %{name}%{major}
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/librcc.so.*
%{_libdir}/librccui.so.*
%files devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README docs examples
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
%files -n rcc-runtime
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/rcc/
%config(noreplace) %{_sysconfdir}/rcc.xml
%changelog