Репозиторий Sisyphus
Последнее обновление: 14 декабря 2017 | Пакетов: 18212 | Посещений: 10567944
en ru br
Репозитории ALT

Группа :: Сети/WWW
Пакет: palemoon-ru

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define cid            langpack-ru at palemoon.org
%define cid_dir        %palemoon_noarch_extensionsdir/%cid

%define cid_dict       ru at dictionaries.addons.mozilla.org
%define cid_dict_dir   %palemoon_noarch_extensionsdir/%cid_dict

%define min_version 27.3.99
%define max_version 27.6.*

%define bname newmoon
%define sdir searchplugins
%define newmoon_dir %_datadir/%bname-data/browser/
%define search_dir %newmoon_dir%sdir

Name: palemoon-ru

#commit f353aabc21603a0a919202c32010b4b9a9c7bc9c

#Author: JustOff <Off.Just.Off at gmail.com>
#Date:   Sun Nov 5 22:51:34 2017 +0200
#
#    Locales update (27.6.0 RC3)


Version: 27.6.0
Release: alt1

Summary: Russian (RU) Language Pack for Pale Moon
License: MPL/GPL/LGPL

Group: Networking/WWW
Url: http://www.palemoon.org/langpacks.shtml
BuildArch: noarch

Packager: Hihin Ruslan <ruslandh at altlinux.ru>

Source:  ru_palemoon_%version.xpi
Source2: searchplugins.tar

Patch:   %name-27.1.1-search.patch
#Patch2: %name-27.3.0-advanced.patch

Requires: palemoon >= 27.4.0
Requires: hunspell-ru
Obsoletes: palemoon-ru_yo-dictionary palemoon-ru_ie-dictionary
Provides: palemoon-ru_yo-dictionary palemoon-ru_ie-dictionary

BuildRequires(pre): rpm-build-palemoon
# Automatically added by buildreq on Mon Jul 13 2015
BuildRequires: libdb4-devel unzip

%description
The Palemoon Russian translation and dictionary.

%package -n palemoon-searchplugins
Summary: The Palemoon Russian translation and dictionary.
Group:   Networking/WWW
BuildArch: noarch
Conflicts:  palemoon-ru < 27.4.0

%description -n palemoon-searchplugins
The set of search plugins for Palemoon

%description -n palemoon-searchplugins -l ru_RU.UTF8
п²п╟п╠п╬я─ п÷п╬п╦я│п╨п╬п╡я▀я┘ п©п╩п╟пЁп╦п╫п╬п╡ п╢п╩я▐ Palemoon


%prep
%setup -c -n %name-%version/%cid

%patch -p2

#patch2 -p2


tar -xf %SOURCE2



%install
cd ..

mkdir -p -- \
%buildroot/%cid_dir \
%buildroot/%cid_dict_dir/dictionaries

install -d -m 755 %buildroot/%newmoon_dir/

# Install translation

cp -r -- %cid/* %buildroot/%cid_dir


cd -

cp -r -- %sdir  %buildroot/%search_dir/


#sed -r -i \

#    -e 's,<em:maxVersion>4.0</em:maxVersion>,<em:maxVersion>4.*</em:maxVersion>,g' \
#    -e 's,<em:minVersion>4.0</em:minVersion>,<em:minVersion>4.0</em:minVersion>,g' \
#    %buildroot/%cid_dir/install.rdf

# Install dictionary

cat > %buildroot/%cid_dict_dir/install.rdf <<-EOF
<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:em="http://www.mozilla.org/2004/em-rdf#">
 <Description about="urn:mozilla:install-manifest"
              em:id="%cid_dict"
              em:name="Russian (RU) Dictionary"
              em:version="%version"
              em:type="64"
              em:unpack="true"
              em:creator="Mozilla Russia">
   <em:targetApplication>
     <Description>
       <em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
       <em:minVersion>%min_version</em:minVersion>
       <em:maxVersion>%max_version.*</em:maxVersion>
     </Description>
   </em:targetApplication>
 </Description>
</RDF>
EOF
ln -s %_datadir/myspell/ru_RU.aff %buildroot/%cid_dict_dir/dictionaries/ru.aff
ln -s %_datadir/myspell/ru_RU.dic %buildroot/%cid_dict_dir/dictionaries/ru.dic


%files
%cid_dir
%cid_dict_dir

%files -n palemoon-searchplugins
%search_dir


#commit f353aabc21603a0a919202c32010b4b9a9c7bc9c

#Author: JustOff <Off.Just.Off at gmail.com>
#Date:   Sun Nov 5 22:51:34 2017 +0200
#
#    Locales update (27.6.0 RC3)

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin