Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
desktop-translations
desktop-translations.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File desktop-translations.spec of Package desktop-translations
# # spec file for package desktop-translations # # 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/ # Name: desktop-translations Version: 12.2 Release: 0 Summary: Desktop Files Translations License: BSD-3-Clause Group: System/GUI/Other Source0: desktop-translations.tar.bz2 Source99: PREPARE_PACKAGE Url: http://en.opensuse.org Supplements: bundle-lang-other Supplements: gtk2 Supplements: gtk3 Supplements: kdelibs3 Supplements: libkde4 Supplements: yast2-control-center Provides: locale(af;ar;bg;be;bn;bs;ca;cs;cy;da;de;el;en_GB;en_US;eo;es;et;fi;fr;gl;gu;he;hi;hr;hu;id;it;ja;ka;km;ko;lo;lt;mk;mr;nb;nl;pa;pl;pt;ro;ru;si;sk;sl;sr;sr@Latn;sv;ta;tr;uk;vi;wa;xh;zh_CN;zh_TW;zu) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This package provides the translations for installed desktop files. %prep %setup -q -c %{name} %build %install pushd po for lang in *; do if test "$lang" = "nb_no"; then continue fi if test -f $lang; then rm $lang else mkdir -p %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES for f in $lang/*.po; do msgfmt -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/desktop_translations.mo $f msgunfmt --no-wrap %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/desktop_translations.mo | \ grep -v '^"[A-Z][^ ]*: ' | grep '[^\][\]n"' && exit 1 done fi done popd %find_lang desktop_translations %files -f desktop_translations.lang %defattr(-,root,root) %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor