Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:11.4
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) 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/ # # norootforbuild Name: desktop-translations Version: 11.4 Release: 8.<RELEASE4> Summary: Desktop Files Translation updates License: BSD3c(or similar) Group: System/GUI/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: on Source0: desktop-translations.tar.bz2 Source99: PREPARE_PACKAGE BuildArch: noarch Supplements: bundle-lang-other Supplements: kdelibs3 Supplements: libkde4 Supplements: yast2-control-center Supplements: gtk2 Supplements: gtk3 Provides: locale(af;ar;bg;be;bn;bs;ca;cs;cy;da;de;el;en_GB;en_US;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) %description This package provides 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 $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES for f in $lang/*.po; do msgfmt -o $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES/desktop_translations.mo $f msgunfmt --no-wrap $RPM_BUILD_ROOT/usr/share/locale/$lang/LC_MESSAGES/desktop_translations.mo | \ grep -v '^"[A-Z][^ ]*: ' | grep '[^\][\]n"' && exit 1 done fi done popd %find_lang desktop_translations %clean rm -rf $RPM_BUILD_ROOT %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