SHA256
1
0
forked from pool/lokalize
lokalize/lokalize.spec

78 lines
2.1 KiB
RPMSpec

#
# spec file for package lokalize (Version 4.7.80_20111122)
#
# 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 http://bugs.opensuse.org/
#
Name: lokalize
BuildRequires: libkde4-devel
BuildRequires: hunspell-devel
License: GPL-2.0+
Group: System/GUI/KDE
Summary: KDE Translation Editor
Url: http://www.kde.org/
Version: 4.10.95
Release: 1
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Requires strigila_po.so (bnc#410716)
Requires: kdesdk4
Requires: libqt4_sql_backend python-kde4
Provides: kde4-lokalize = 4.3.0
Obsoletes: kde4-lokalize < 4.3.0
%kde4_runtime_requires
%description
This package contains lokalize, an editor for translations
%prep
%setup -q -n %{name}-%{version}
%build
%ifarch ppc64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS"
#make_jobs
make
%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file -r lokalize Development Translation
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_bindir}/lokalize
%{_kde4_applicationsdir}/lokalize.desktop
%{_kde4_htmldir}/en/lokalize/
%{_kde4_iconsdir}/hicolor/*/apps/lokalize.*
%{_kde4_appsdir}/lokalize/
%{_kde4_configkcfgdir}/lokalize.kcfg
%changelog