From 605906070db5fcd7514307b45ee9d118f0024388 Mon Sep 17 00:00:00 2001 From: pnemade Date: Wed, 25 Jul 2007 02:57:42 +0000 Subject: [PATCH] remove m17n-contrib and rebuild m17n-db --- m17n-db.spec | 729 +++++++-------------------------------------------- sources | 1 - 2 files changed, 102 insertions(+), 628 deletions(-) diff --git a/m17n-db.spec b/m17n-db.spec index 60f43de..4db3b76 100644 --- a/m17n-db.spec +++ b/m17n-db.spec @@ -1,22 +1,20 @@ -%define m17n_contrib_version 1.1.2 -Name: m17n-db -Summary: Multilingualization datafiles for m17n-lib -Version: 1.4.0 -Release: 1%{?dist} -Group: System Environment/Libraries -License: LGPL -URL: http://www.m17n.org/m17n-lib/index.html -Source0: %{name}-%{version}.tar.gz -Source1: m17n-contrib-%{m17n_contrib_version}.tar.gz -Source2: hi-typewriter.mim -BuildArch: noarch -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Patch1: number_pad_itrans-222634.patch -Patch2: si-wijesekera-keymap-rename_key-summary.patch -Patch4: bn-itrans-t-182227.patch -Patch5: kn-itrans-ZWNJ-221965.patch -Patch6: kn-itrans_key-summary_228806.patch +Name: m17n-db +Summary: Multilingualization datafiles for m17n-lib +Version: 1.4.0 +Release: 2.1%{?dist} +Group: System Environment/Libraries +License: LGPL +URL: http://www.m17n.org/m17n-lib/index.html +Source0: %{name}-%{version}.tar.gz +Source1: hi-typewriter.mim +BuildArch: noarch +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch1: number_pad_itrans-222634.patch +Patch2: si-wijesekera-keymap-rename_key-summary.patch +Patch4: bn-itrans-t-182227.patch +Patch5: kn-itrans-ZWNJ-221965.patch +Patch6: kn-itrans_key-summary_228806.patch %description This package contains multilingualization (m17n) datafiles for m17n-lib @@ -25,16 +23,16 @@ for many languages. %package datafiles -Summary: Multilingualization datafiles for m17n-lib -Group: System Environment/Libraries +Summary: Multilingualization datafiles for m17n-lib +Group: System Environment/Libraries %description datafiles m17n-db datafiles not needed for using the input maps. %package devel -Summary: Development files for m17n-db -Group: Development/Libraries +Summary: Development files for m17n-db +Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig @@ -43,351 +41,96 @@ m17n-db development files %package common-cjk -Summary: m17n-db common files for CJK input -Group: System Environment/Libraries +Summary: This package contains m17n-db common files for CJK input +Group: System Environment/Libraries %description common-cjk m17n-db common files for Chinese, Japanese and Korean input maps. - -%package amharic -Summary: m17n-db input table for Amharic -Group: System Environment/Libraries - -%description amharic -m17n-db Amharic input table. - - -%package arabic -Summary: m17n-db input table for Arabic -Group: System Environment/Libraries - -%description arabic -m17n-db Arabic input table. - - -%package armenian -Summary: m17n-db input table for Armenian -Group: System Environment/Libraries - -%description armenian -m17n-db Armenian input table. - - -%package assamese -Summary: m17n-db input table for Assamese -Group: System Environment/Libraries - -%description assamese -m17n-db Assamese input table. - - -%package bengali -Summary: m17n-db input table for Bengali -Group: System Environment/Libraries - -%description bengali -m17n-db Bengali input table. - %package chinese -Summary: m17n-db input table for Chinese -Group: System Environment/Libraries -Requires: %{name}-common-cjk -Obsoletes: %{name}-bopomofo < 1.3.3-13.fc6 +Summary: This package contains m17n-db input table for Chinese +Group: System Environment/Libraries +Requires: %{name}-common-cjk +Obsoletes: %{name}-bopomofo < 1.3.3-13.fc6 %description chinese m17n-db Chinese input map. -%package croatian -Summary: m17n-db input table for Croatian -Group: System Environment/Libraries - -%description croatian -m17n-db Croatian input table. - - -%package dhivehi -Summary: m17n-db input table for Dhivehi -Group: System Environment/Libraries - -%description dhivehi -m17n-db Dhivehi input table. - - -%package farsi -Summary: m17n-db input table for Farsi -Group: System Environment/Libraries - -%description farsi -m17n-db Farsi input table. - -%package french -Summary: m17n-db input table for French -Group: System Environment/Libraries - -%description french -m17n-db French input table. - %package generic -Summary: Generic m17n-db input tables -Group: System Environment/Libraries +Summary: GenericThis package contains m17n-db input tables +Group: System Environment/Libraries %description generic -Generic m17n-db input table. - - -%package georgian -Summary: m17n-db input table for Georgian -Group: System Environment/Libraries - -%description georgian -m17n-db Georgian input map. - +GenericThis package contains m17n-db input table. %package greek -Summary: m17n-db input table for Greek -Group: System Environment/Libraries +Summary: This package contains m17n-db input table for Greek +Group: System Environment/Libraries %description greek m17n-db Greek input table. -%package gujarati -Summary: m17n-db input table for Gujarati -Group: System Environment/Libraries - -%description gujarati -m17n-db Gujarati input table. - - -%package hebrew -Summary: m17n-db input table for Hebrew -Group: System Environment/Libraries - -%description hebrew -m17n-db Hebrew input table. - - -%package hindi -Summary: m17n-db input table for Hindi -Group: System Environment/Libraries - -%description hindi -m17n-db Hindi input table. - - -%package japanese -Summary: m17n-db input table for Japanese -Group: System Environment/Libraries - -%description japanese -m17n-db Japanese input map. - - -%package kazakh -Summary: m17n-db input table for Kazakh -Group: System Environment/Libraries - -%description kazakh -m17n-db Kazakh input map. - - -%package khmer -Summary: m17n-db input table for Khmer -Group: System Environment/Libraries - -%description khmer -m17n-db Khmer input map. - - -%package kannada -Summary: m17n-db input table for Kannada -Group: System Environment/Libraries - -%description kannada -m17n-db Kannada input map. - - -%package korean -Summary: m17n-db input table for Korean -Group: System Environment/Libraries -Requires: %{name}-common-cjk - -%description korean -m17n-db Korean input map. - - -%package latin -Summary: m17n-db input table for Latin -Group: System Environment/Libraries - -%description latin -m17n-db Latin input map. - - -%package lao -Summary: m17n-db input table for Lao -Group: System Environment/Libraries - -%description lao -m17n-db Lao input map. - - -%package malayalam -Summary: m17n-db input table for Malayalam -Group: System Environment/Libraries - -%description malayalam -m17n-db Malayalam input map. - - -%package marathi -Summary: m17n-db input table for Marathi -Group: System Environment/Libraries - -%description marathi -m17n-db Marathi input map. - - -%package myanmar -Summary: m17n-db input table for Myanmar -Group: System Environment/Libraries - -%description myanmar -m17n-db Myanmar input map. - - -%package nepali -Summary: m17n-db input tables for Nepali -Group: System Environment/Libraries - -%description nepali -m17n-db Nepali input maps. - - -%package oriya -Summary: m17n-db input table for Oriya -Group: System Environment/Libraries - -%description oriya -m17n-db Oriya input map. - - -%package punjabi -Summary: m17n-db input table for Punjabi -Group: System Environment/Libraries - -%description punjabi -m17n-db Punjabi input map. - - -%package russian -Summary: m17n-db input table for Russian -Group: System Environment/Libraries - -%description russian -m17n-db Russian input map. - - -%package serbian -Summary: m17n-db input table for Serbian -Group: System Environment/Libraries - -%description serbian -m17n-db Serbian input map. - - -%package sinhala -Summary: m17n-db input table for Sinhala -Group: System Environment/Libraries - -%description sinhala -m17n-db Sinhala input map. - - -%package slovak -Summary: m17n-db input table for Slovak -Group: System Environment/Libraries - -%description slovak -m17n-db Slovak input map. - - -%package swedish -Summary: m17n-db input table for Swedish -Group: System Environment/Libraries - -%description swedish -m17n-db Swedish input map. - - -%package syriac -Summary: m17n-db input table for Syriac -Group: System Environment/Libraries - -%description syriac -m17n-db Syriac input map. - - -%package tamil -Summary: m17n-db input table for Tamil -Group: System Environment/Libraries - -%description tamil -m17n-db Tamil input map. - - -%package telugu -Summary: m17n-db input table for Telugu -Group: System Environment/Libraries - -%description telugu -m17n-db Telugu input map. - - -%package thai -Summary: m17n-db input table for Thai -Group: System Environment/Libraries - -%description thai -m17n-db Thai input map. - - -%package tibetan -Summary: m17n-db input table for Tibetan -Group: System Environment/Libraries - -%description tibetan -m17n-db Tibetan input table. - - -%package urdu -Summary: m17n-db input table for Urdu -Group: System Environment/Libraries - -%description urdu -m17n-db Urdu input map. - - -%package uyghur -Summary: m17n-db input table for Uyghur -Group: System Environment/Libraries - -%description uyghur -m17n-db Uyghur input map. - - -%package vietnamese -Summary: m17n-db input table for Vietnamese -Group: System Environment/Libraries - -%description vietnamese -m17n-db Vietnamese input map. +%define mk_pkg() \ +%package %1\ +Summary: This package contains m17n-db input map for %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/")\ +Group: System Environment/Libraries\ +\ +%description %1\ +This package provides m17n-db input maps for %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/").\ +\ +%files %1\ +%defattr(-,root,root)\ +%dir %{_datadir}/m17n\ +%{_datadir}/m17n/%2-*.mim\ +%if %3\ +%dir %{_datadir}/m17n/icons\ +%{_datadir}/m17n/icons/%2-*.png\ +%else\ +%{nil}\ +%endif + +%mk_pkg amharic am 1 +%mk_pkg arabic ar 1 +%mk_pkg armenian hy 1 +%mk_pkg assamese as 1 +%mk_pkg bengali bn 1 +%mk_pkg croatian hr 1 +%mk_pkg dhivehi dv 1 +%mk_pkg farsi fa 1 +%mk_pkg french fr 0 +%mk_pkg gregorian ka 1 +%mk_pkg gujarati gu 1 +%mk_pkg hebrew he 1 +%mk_pkg hindi hi 1 +%mk_pkg japanese ja 1 +%mk_pkg kannada kn 1 +%mk_pkg kazakh kk 1 +%mk_pkg khmer km 1 +%mk_pkg korean ko 1 +%mk_pkg lao lo 1 +%mk_pkg latin latn 1 +%mk_pkg malayalam ml 1 +%mk_pkg myanmar my 1 +%mk_pkg oriya or 1 +%mk_pkg punjabi pa 1 +%mk_pkg russian ru 1 +%mk_pkg serbian sr 1 +%mk_pkg sinhala si 1 +%mk_pkg slovak sk 1 +%mk_pkg swedish sv 1 +%mk_pkg syriac syrc 1 +%mk_pkg tamil ta 1 +%mk_pkg telugu te 1 +%mk_pkg thai th 1 +%mk_pkg tibetan bo 1 +%mk_pkg uyghur ug 0 +%mk_pkg vietnamese vi 1 %prep -%setup -q -a1 +%setup -q cd MIM %patch1 -p1 -b .1 %patch2 -p0 -b .2 @@ -407,10 +150,6 @@ make rm -rf $RPM_BUILD_ROOT %makeinstall -# add new Indic maps -cp -p m17n-contrib-%{m17n_contrib_version}/im/*.mim $RPM_BUILD_ROOT%{_datadir}/m17n -cp -p m17n-contrib-%{m17n_contrib_version}/im/*.png $RPM_BUILD_ROOT%{_datadir}/m17n/icons - # don't need ispell or anthy rm $RPM_BUILD_ROOT%{_datadir}/m17n/{ispell.mim,icons/en-ispell.png} rm $RPM_BUILD_ROOT%{_datadir}/m17n/{ja-anthy.mim,icons/ja-anthy.png} @@ -423,6 +162,7 @@ rm $RPM_BUILD_ROOT%{_datadir}/m17n/si-wijesekera.mim # drop pkgconfig file for now mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig/ mv $RPM_BUILD_ROOT{%{_libdir},%{_datadir}}/pkgconfig/m17n-db.pc +install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/m17n/ # For installing the translation files %find_lang %name @@ -464,310 +204,45 @@ rm -rf $RPM_BUILD_ROOT #%{_datadir}/m17n/variable.mim %{_datadir}/m17n/global.mim - -%files amharic -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/am-*.mim -%{_datadir}/m17n/icons/am-*.png - - -%files arabic -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ar-*.mim -%{_datadir}/m17n/icons/ar-*.png - - -%files armenian -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/hy-*.mim -%{_datadir}/m17n/icons/hy-*.png - - -%files assamese -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/as-*.mim -%{_datadir}/m17n/icons/as-*.png - - -%files bengali -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/bn-*.mim -%{_datadir}/m17n/icons/bn-*.png - - %files chinese %defattr(-,root,root) %dir %{_datadir}/m17n +%dir %{_datadir}/m17n/icons %{_datadir}/m17n/zh-*.mim %{_datadir}/m17n/icons/zh-*.png #%{_datadir}/m17n/bopo-*.mim %{_datadir}/m17n/icons/bopo-*.png - -%files croatian -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/hr-*.mim -%{_datadir}/m17n/icons/hr-*.png - - -%files dhivehi -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/dv-*.mim -%{_datadir}/m17n/icons/dv-*.png - - -%files french -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/fr-*.mim - - -%files farsi -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/fa-*.mim -%{_datadir}/m17n/icons/fa-*.png - %files generic %defattr(-,root,root) %dir %{_datadir}/m17n +%dir %{_datadir}/m17n/icons %{_datadir}/m17n/rfc1345.mim %{_datadir}/m17n/icons/rfc1345.png %{_datadir}/m17n/unicode.mim %{_datadir}/m17n/icons/unicode.png - -%files georgian -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ka-*.mim -%{_datadir}/m17n/icons/ka-*.png - - %files greek %defattr(-,root,root) %dir %{_datadir}/m17n +%dir %{_datadir}/m17n/icons %{_datadir}/m17n/el-*.mim %{_datadir}/m17n/grc-*.mim %{_datadir}/m17n/icons/el-*.png -%files gujarati -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/gu-*.mim -%{_datadir}/m17n/icons/gu-*.png - - -%files hebrew -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/he-*.mim -%{_datadir}/m17n/icons/he-*.png - - -%files hindi -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/hi-*.mim -%{_datadir}/m17n/icons/hi-*.png - - -%files japanese -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ja-*.mim -%{_datadir}/m17n/icons/ja-*.png - - -%files kazakh -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/kk-*.mim -%{_datadir}/m17n/icons/kk-*.png - - -%files khmer -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/km-*.mim -%{_datadir}/m17n/icons/km-*.png - - -%files kannada -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/kn-*.mim -%{_datadir}/m17n/icons/kn-*.png - - -%files korean -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ko-*.mim -%{_datadir}/m17n/icons/ko-*.png - - -%files lao -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/lo-*.mim -%{_datadir}/m17n/icons/lo-*.png - - -%files latin -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/latn-*.mim -%{_datadir}/m17n/icons/latn-*.png - - -%files malayalam -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ml-*.mim -%{_datadir}/m17n/icons/ml-*.png - - -%files marathi -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/mr-*.mim -%{_datadir}/m17n/icons/mr-*.png - - -%files myanmar -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/my-*.mim -%{_datadir}/m17n/icons/my-*.png - - -%files nepali -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ne-*.mim -%{_datadir}/m17n/icons/ne-*.png - - -%files oriya -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/or-*.mim -%{_datadir}/m17n/icons/or-*.png - - -%files punjabi -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/pa-*.mim -%{_datadir}/m17n/icons/pa-*.png - - -%files russian -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ru-*.mim -%{_datadir}/m17n/icons/ru-*.png - - -%files serbian -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/sr-*.mim -%{_datadir}/m17n/icons/sr-*.png - - -%files sinhala -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/si-*.mim -%{_datadir}/m17n/icons/si-*.png - - -%files slovak -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/sk-*.mim -%{_datadir}/m17n/icons/sk-*.png - - -%files swedish -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/sv-*.mim -%{_datadir}/m17n/icons/sv-*.png - - -%files syriac -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/syrc-*.mim -%{_datadir}/m17n/icons/syrc-*.png - - -%files tamil -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ta-*.mim -%{_datadir}/m17n/icons/ta-*.png - - -%files telugu -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/te-*.mim -%{_datadir}/m17n/icons/te-*.png - - -%files thai -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/th-*.mim -%{_datadir}/m17n/tai-*.mim -%{_datadir}/m17n/icons/th-*.png - - -%files tibetan -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/bo-*.mim -%{_datadir}/m17n/icons/bo-*.png - - -%files urdu -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ur-*.mim -%{_datadir}/m17n/icons/ur-*.png - - -%files uyghur -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/ug-*.mim - - -%files vietnamese -%defattr(-,root,root) -%dir %{_datadir}/m17n -%{_datadir}/m17n/vi-*.mim -%{_datadir}/m17n/icons/vi-*.png - - %changelog +* Tue Jul 24 2007 Parag Nemade +- Fix directory ownership issue + +* Mon Jul 23 2007 Parag Nemade - 1.4.0-2 +- SPEC clean up. Remove m17n-contrib + * Thu Jul 19 2007 Parag Nemade - 1.4.0-1 - Updated to new upstream release 1.4.0 * Wed Jul 18 2007 Jens Petersen -- install .pc file under %{_datadir}/pkgconfig +- install .pc file under %%{_datadir}/pkgconfig and include it in a new devel subpackage * Mon Jun 18 2007 Jens Petersen - 1.3.4-10 @@ -959,10 +434,10 @@ rm -rf $RPM_BUILD_ROOT * Wed May 17 2006 Mayank Jain - Added following keymaps - - as-inscript.mim - - as-phonetic.mim - - mr-inscript.mim - - ta-tamil99.mim + - as-inscript.mim + - as-phonetic.mim + - mr-inscript.mim + - ta-tamil99.mim * Wed Mar 22 2006 Jens Petersen - fix language names in Indic .mim file headers (Naoto Takahashi) diff --git a/sources b/sources index fdc527d..9e95835 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ aa4598e8b551ca36c595b69b20bdb0bc m17n-db-1.4.0.tar.gz -44bd9de12d10544f02006339578b0268 m17n-contrib-1.1.2.tar.gz