Projects
Kontact:4.13:Development
kde-l10n
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
kde-l10n.spec
Added
@@ -0,0 +1,825 @@ +%define buildall 0 +%if 0%{?fedora} > 21 +%define omit_plasma5_bits 1 +%endif + +# trim changelog included in binary rpms +%global _changelog_trimtime %(date +%s -d "1 year ago") + +Name: kde-l10n +Summary: Internationalization support for KDE Applications +Version: 99.12.3 +Release: 1%{?dist} + +Url: http://www.kde.org +License: LGPLv2 +BuildArch: noarch +# optimize simple noarch pkg, no debuginfo +%define debug_package %{nil} + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif + +Source1: kde-l10n_4.13.1.orig.tar.xz +Source1000: subdirs-kde-l10n + +BuildRequires: cmake +BuildRequires: findutils +BuildRequires: gettext +# kde4 bits +BuildRequires: kdelibs4-devel >= 4.14.4 +# kf5 bits +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: kf5-kdoctools-devel +BuildRequires: kf5-ki18n-devel +# not sure why this is needed -- rex +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qttools-devel + +Requires: kde-filesystem + +# klickety moved kde-i18n -> kde-l10n (#656523) +Conflicts: kde-i18n < 1:3.5.10-13 +# khelpcenter moved to kde-apps-16.04, and so did it's translations +Conflicts: khelpcenter < 1:16.04 + +%if 0%{?fedora} > 22 +%global kdenlive 1 +Conflicts: kdenlive < 15.08 +%endif + +# https://bugzilla.rpmfusion.org/show_bug.cgi?id=4459 +%if 0 +%global kwave 1 +Conflicts: kwave < 16.12 +%endif + +%description +Internationalization support for KDE. + +%package de +Summary: German language support for KDE Applications +Requires: %{name} = %{version}-%{release} +Requires: qt5-qttranslations +Supplements: (%{name} = %{version}-%{release} and langpacks-de) +Provides: %{name}-German = %{version}-%{release} +Obsoletes: %{name}-German < 4.14.3-2 +%description de +%{summary}. + +%prep +%setup -T -q -n %{name}-%{version} -c + +for i in $(cat %{SOURCE1000}) ; do + echo $i | grep -v '^#' && \ + %{__xz} --decompress --stdout %{_sourcedir}/%{name}_4.13.1.orig-$i.tar.xz | %{__tar} -xf - +done + +for i in $(cat %{SOURCE1000}) ; do + if [ -d "%{name}-$i-%{version}" ]; then + pushd %{name}-$i-%{version} + for jj in 4/. 4/${i}/${i}@* ; do + j=$(basename ${jj}) + if [ -d 4/${i}/${j} ] ; then + # skip kdewebdev for now, because we're still shipping kdewebdev 3 due to Quanta + sed -i -e 's/add_subdirectory( *kdewebdev *)/#add_subdirectory(kdewebdev)/g' 4/$i/$j/messages/CMakeLists.txt + if [ -e 4/$i/$j/docs/CMakeLists.txt ] ; then + sed -i -e 's/add_subdirectory( *kdewebdev *)/#add_subdirectory(kdewebdev)/g' 4/$i/$j/docs/CMakeLists.txt + fi + # remove lilo-config, conflicts with 3.5.10 + rm -fv 4/$i/$j/messages/kdeadmin/kcmlilo.po + if [ -e 4/$i/$j/docs/kdeadmin/CMakeLists.txt ] ; then + sed -i -e 's/add_subdirectory( *lilo-config *)/#add_subdirectory(lilo-config)/g' 4/$i/$j/docs/kdeadmin/CMakeLists.txt + fi + # remove bogus duplicated kdepim stuff from kdenetwork + if [ -e 4/$i/$j/docs/kdenetwork/CMakeLists.txt ] ; then + sed -i -e 's/add_subdirectory( *korn *)/#add_subdirectory(korn)/g' -e 's/add_subdirectory( *kmail *)/#add_subdirectory(kmail)/g' -e 's/add_subdirectory( *knode *)/#add_subdirectory(knode)/g' 4/$i/$j/docs/kdenetwork/CMakeLists.txt + fi + # some languages still ship the kpilot stuff + # zap it so the kpilot package can ship all translations itself + rm -fv 4/$i/$j/messages/kdepim/kpilot.po + if [ -e 4/$i/$j/docs/kdepim/CMakeLists.txt ] ; then + sed -i -e 's/add_subdirectory( *kpilot *)/#add_subdirectory(kpilot)/g' 4/$i/$j/docs/kdepim/CMakeLists.txt + fi + # kdegraphics + if [ -e 4/$i/$j/docs/kdegraphics/CMakeLists.txt ] ; then + sed -i -e 's/add_subdirectory( *ksnapshot *)/#add_subdirectory(ksnapshot)/g' 4/$i/$j/docs/kdegraphics/CMakeLists.txt + fi + # omit conflict(s) with plasma-5.6.x + rm -fv 4/$i/$j/messages/kdelibs/kcm_activities.po +%if ! 0%{?kdenlive} + # rpmfusion not updated to kf5 kdenlive yet, omit from here for now + rm -fv 5/$i/$j/messages/kdemultimedia/kdenlive.po + if [ -e 5/$i/$j/docs/kdemultimedia/CMakeLists.txt ] ; then + sed -i -e 's/^add_subdirectory( *kdenlive *)/#add_subdirectory(kdenlive)/g' 5/$i/$j/docs/kdemultimedia/CMakeLists.txt + fi +%endif +%if ! 0%{?kwave} + # rpmfusion not updated to kf5 kwave yet, omit from here for now + rm -fv 5/$i/$j/messages/kdemultimedia/kwave.po + if [ -e 5/$i/$j/docs/kdemultimedia/CMakeLists.txt ] ; then + sed -i -e 's/^add_subdirectory( *kwave *)/#add_subdirectory(kwave)/g' 5/$i/$j/docs/kdemultimedia/CMakeLists.txt + fi +%endif + +%if 0%{?omit_plasma5_bits} + # Remove translations shipped by Plasma 5 and KDE Frameworks 5 + # Each Plasma 5 and KF5 app/library ship their own translations in their tarballs, so they + # often conflict with kde-l10n, since most of the catalogs still have the same name + + # Provided by plasma-workspace and plasma-desktop + sed -i -e 's/add_subdirectory( *kde-workspace *)/#add_subdirectory(kde-workspace)/g' 4/$i/$j/messages/CMakeLists.txt + if [ -e 4/$i/$j/docs/CMakeLists.txt ]; then + sed -i -e 's/add_subdirectory( *kde-workspace *)/#add_subdirectory(kde-workspace)/g' 4/$i/$j/docs/CMakeLists.txt + fi + rm -fv 4/$i/$j/messages/kde-runtime/{attica_kde,knetattach,drkonqi,phonon_kde,soliduiserver}.po + rm -fv 4/$i/$j/messages/kde-runtime/kcm{_device_automounter,_emoticons,_phonon,componentchooser,icons,kded,notify}.po + rm -fv 4/$i/$j/messages/kde-runtime/kio_{applications,remote}.po + rm -fv 4/$i/$j/messages/kdelibs/{kcm_baloofile,plasma_runner_baloosearchrunner}.po + rm -fv 4/$i/$j/messages/applications/useraccount.po + if [ -e 4/$i/$j/docs/kde-runtime/CMakeLists.txt ]; then + sed -i -e 's/add_subdirectory( *fundamentals *)/#add_subdirectory(fundamentals)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + sed -i -e 's/add_subdirectory( *kcontrol *)/#add_subdirectory(kcontrol)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + sed -i -e 's/add_subdirectory( *kdesu *)/#add_subdirectory(kdesu)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + sed -i -e 's/add_subdirectory( *khelpcenter *)/#add_subdirectory(khelpcenter)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + sed -i -e 's/add_subdirectory( *knetattach *)/#add_subdirectory(knetattach)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + sed -i -e 's/add_subdirectory( *onlinehelp *)/#add_subdirectory(onlinehelp)/g' 4/$i/$j/docs/kde-runtime/CMakeLists.txt + fi + # Provided by kdeplasma-addons + sed -i -e 's/add_subdirectory( *kdeplasma-addons *)/#add_subdirectory(kdeplasma-addons)/g' 4/$i/$j/messages/CMakeLists.txt + # Provided by kf5-kfilemetada + rm -fv 4/$i/$j/messages/kdelibs/kfilemetadata.po + # Provided by kf5-baloo + rm -fv 4/$i/$j/messages/kdelibs/kio_{baloosearch,tags,timeline}.po + rm -fv 4/$i/$j/messages/kdelibs/baloo{search,show,_file,_file_extractor}.po + # Provided by kio-extras + rm -fv 4/$i/$j/messages/kde-runtime/kio_{archive,bookmarks,fish,info,man,nfs,recentdocuments,sftp,smb,thumbnail}.po + # Provided by kde-cli-tools + rm -fv 4/$i/$j/messages/kde-runtime/{filetypes,kcmshell,kdesu,kioclient,kmimetypefinder,kstart,ktraderclient}.po + # Provided by khelpcenter + rm -fv 4/$i/$j/messages/kde-runtime/{htmlsearch,kcmhtmlsearch,khelpcenter}.po + # Provided by ktp-desktop-applets + rm -fv 4/$i/$j/messages/kdenetwork/plasma_applet_org.kde.ktp-{contact,presence}.po +%endif + + fi + done + popd + fi +done + + +%build +for i in $(cat %{SOURCE1000}) ; do + if [ -d "%{name}-$i-%{version}" ]; then + pushd %{name}-$i-%{version} + mkdir %{_target_platform} + pushd %{_target_platform} + %{cmake_kde4} .. -DKDE_INSTALL_DATADIR:PATH=%{_kf5_datadir} + make %{?_smp_mflags} + popd + popd + fi +done + + +%install +for i in $(cat %{SOURCE1000}) ; do + if [ -d %{name}-$i-%{version}/%{_target_platform} ]; then + make install/fast DESTDIR=%{buildroot} -C %{name}-$i-%{version}/%{_target_platform} + fi +done + +mkdir -p \ + %{buildroot}%{_kf5_datadir}/step/objinfo/l10n/
View file
subdirs-kde-l10n
Added
@@ -0,0 +1,1 @@ +de
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.