rpms/eclipse-nls/devel eclipse-nls.spec, 1.2, 1.3 fetch-babel.sh, 1.1, NONE

Sean Flanigan seanf at fedoraproject.org
Thu Apr 23 05:54:02 UTC 2009


Author: seanf

Update of /cvs/pkgs/rpms/eclipse-nls/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26061

Modified Files:
	eclipse-nls.spec 
Removed Files:
	fetch-babel.sh 
Log Message:
- Updated to use Babel's zipped langpacks instead of fetch-babel.sh
- Changed versioning scheme to match changes in upstream versioning
- Updated to latest upstream langpacks for Eclipse 3.5 / Galileo



Index: eclipse-nls.spec
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-nls/devel/eclipse-nls.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- eclipse-nls.spec	24 Feb 2009 13:49:30 -0000	1.2
+++ eclipse-nls.spec	23 Apr 2009 05:53:31 -0000	1.3
@@ -1,4 +1,3 @@
-%define snapshot 20080807snap
 %define eclipse_data %{_datadir}/eclipse
 # Disable repacking of jars, since it takes forever for all the little jars, 
 # and we don't need multilib anyway:
@@ -6,21 +5,14 @@
 
 Name: eclipse-nls 
 Summary: Babel language packs for the Eclipse platform and various plugins
-Group: Development/Languages
+Group: Text Editors/Integrated Development Environments (IDE)
 License: EPL
 URL: http://babel.eclipse.org/
 
-Version: 0.2.0
-Release: 0.6.%{snapshot}%{?dist}
-## The source for this package is taken from the Babel project's update site.
-## Use the following commands to generate the tarball:
-# sudo yum install eclipse-platform curl
-# mkdir temp && cd temp
-# sh ../fetch-babel.sh
-# tar cjf ../org.eclipse.nls-%{snapshot}-fetched-src.tar.bz2 eclipse-nls
-# cd ..
-Source0: org.eclipse.nls-%{snapshot}-fetched-src.tar.bz2
-Source1: fetch-babel.sh
+Version: 3.5.0.v20090417091040
+Release: 1%{?dist}
+## The source for this package is taken from http://download.eclipse.org/technology/babel/babel_language_packs/
+Source0: BabelLanguagePack-%{version}.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:  noarch
 
@@ -30,14 +22,13 @@
 
 %define lang_meta_pkg() \
 %package %1 \
-Summary:    Eclipse/Babel language pack for %2 \
-Group:      Development/Languages \
-# provides %{eclipse_data}/dropins \
+Summary:    Eclipse/Babel language pack for %3 \
+Group:      Text Editors/Integrated Development Environments (IDE) \
 Requires:   eclipse-platform >= 3.4.0-18 \
 Obsoletes:  eclipse-sdk-nls-%1 < 3.2.1-4 \
 \
 %description %1 \
-This language pack for %2 contains user-contributed translations of the \
+This language pack for %3 contains user-contributed translations of the \
 strings in all Eclipse projects. Please see the http://babel.eclipse.org/ \
 Babel project web pages for a full how-to-use explanation of these \
 translations as well as how you can contribute to \
@@ -47,71 +38,89 @@
 \
 %files %1 \
 %defattr(-,root,root,-) \
-%{eclipse_data}/dropins/babel-%1
-
-# Note that no licence %%doc files are listed under %%files.  Upstream does 
-# not provide a single distribution archive for eclipse-nls, but rather an 
-# update site which serves up 400 plugin jars for each language.  These 
-# jars are collected into a tarball by fetch-babel.sh.  Each jar does 
-# include HTML files with licence information, and these jars are placed 
-# in the dropins/babel-* directory above.
-
-%lang_meta_pkg cs Czech
-%lang_meta_pkg hu Hungarian
-%lang_meta_pkg pl Polish
-%lang_meta_pkg ru Russian
-%lang_meta_pkg ar Arabic
+%dir %{eclipse_data}/dropins/babel \
+%dir %{eclipse_data}/dropins/babel/eclipse \
+%dir %{eclipse_data}/dropins/babel/eclipse/features \
+%{eclipse_data}/dropins/babel/eclipse/features/org.eclipse.babel.nls_*_%{2}_%{version} \
+%dir %{eclipse_data}/dropins/babel/eclipse/plugins \
+%{eclipse_data}/dropins/babel/eclipse/plugins/*.nl_%{2}_%{version}.jar
+# %{eclipse_data}/dropins/babel-%1
+
+
+# Note that no licence %%doc files are listed under %%files.  Upstream 
+# does not provide a single distribution archive for eclipse-nls, but 
+# rather a collection of 700 zips, one per module/language combination, 
+# containing multiple plugin jars.  Each jar does include HTML files 
+# with licence information, and these jars are placed in the 
+# dropins/babel-* directory above.
+
+%lang_meta_pkg ar ar Arabic
+%lang_meta_pkg bg bg Bulgarian
+%lang_meta_pkg zh zh "Chinese (Simplified)"
+%lang_meta_pkg zh_TW zh_TW "Chinese (Traditional)"
+%lang_meta_pkg cs cs Czech
+%lang_meta_pkg da da Danish
+%lang_meta_pkg nl nl Dutch
+%lang_meta_pkg en_AU en_AU "English (Australian)"
+%lang_meta_pkg fi fi Finnish
+%lang_meta_pkg fr fr French
+%lang_meta_pkg de de German
+%lang_meta_pkg el el Greek
 # NB 'he' is 'iw' as far as Java is concerned.  fetch-babel.sh knows about it
-%lang_meta_pkg he Hebrew
-%lang_meta_pkg da Danish
-%lang_meta_pkg de German
-%lang_meta_pkg el Greek
-%lang_meta_pkg es Spanish
-%lang_meta_pkg fi Finnish
-%lang_meta_pkg fr French
-%lang_meta_pkg it Italian
-%lang_meta_pkg ja Japanese
-%lang_meta_pkg ko Korean
-%lang_meta_pkg nl Dutch
-%lang_meta_pkg no Norwegian
-%lang_meta_pkg pt Portuguese
-%lang_meta_pkg pt_BR Portuguese (Brazilian)
-%lang_meta_pkg sv Swedish
-%lang_meta_pkg tr Turkish
-%lang_meta_pkg zh Chinese (Simplified)
-%lang_meta_pkg zh_TW Chinese (Traditional)
-##########################################
-# Currently less than 10% coverage
-%lang_meta_pkg uk Ukrainian
-%lang_meta_pkg ro Romanian
-%lang_meta_pkg bg Bulgarian
-##########################################
-##########################################
-# Currently 0% coverage
-#Hindi
-#Klingon
-#Spanish-Catalonian
-#English
-##########################################
+# similarly, yi -> ji, id -> in
+%lang_meta_pkg he iw Hebrew
+%lang_meta_pkg hi hi Hindi
+%lang_meta_pkg hu hu Hungarian
+%lang_meta_pkg it it Italian
+%lang_meta_pkg ja ja Japanese
+# tl should be Tagalog.  Klingon has < 1% coverage at present in Babel.  Tagalog is unsupported.
+#% lang_meta_pkg tlh tl Klingon
+%lang_meta_pkg ko ko Korean
+%lang_meta_pkg mn mn Mongolian
+%lang_meta_pkg no no Norwegian
+%lang_meta_pkg pl pl Polish
+%lang_meta_pkg pt pt Portuguese
+%lang_meta_pkg pt_BR pt_BR "Portuguese (Brazilian)"
+%lang_meta_pkg ro ro Romanian
+%lang_meta_pkg ru ru Russian
+%lang_meta_pkg es es Spanish
+%lang_meta_pkg sv sv Swedish
+%lang_meta_pkg tr tr Turkish
+%lang_meta_pkg uk uk Ukrainian
+%lang_meta_pkg en_AA en_AA "Pseudo Translations"
 
 %prep
+# extract langpack zips from tarball
 %setup -q -n %{name}
+# remove unsupported langpacks (currently Klingon)
+unsupported="tl"
+for locale in $unsupported; do
+   rm Babel*-${locale}_%{version}.zip
+done
+# extract remaining zips - to eclipse/{features,plugins}
+for f in Babel*.zip; do
+   unzip -qq $f
+   rm $f
+done
 
 %build
-# nothing to do
+# nothing to build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-for loc in ?? ??_??; do
-   mkdir -p $RPM_BUILD_ROOT%{eclipse_data}/dropins/babel-${loc}/eclipse
-   cp -R ${loc}/features ${loc}/plugins $RPM_BUILD_ROOT%{eclipse_data}/dropins/babel-${loc}/eclipse
-done
+mkdir -p $RPM_BUILD_ROOT%{eclipse_data}/dropins/babel/
+cp -a eclipse $RPM_BUILD_ROOT%{eclipse_data}/dropins/babel/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Thu Apr 23 2009 Sean Flanigan <sflaniga at redhat.com> - 3.5.0.v20090417091040-1
+- Updated to use Babel's zipped langpacks instead of fetch-babel.sh
+- Changed versioning scheme to match changes in upstream versioning
+- Updated to latest upstream langpacks for Eclipse 3.5 / Galileo
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.0-0.6.20080807snap
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 


--- fetch-babel.sh DELETED ---




More information about the fedora-extras-commits mailing list