Sisyphus repository
Last update: 19 october 2019 | SRPMs: 17506 | Visits: 15301840
en ru br
ALT Linux repos
S:69.0-alt2
5.0: 3.0-alt2
4.1: 3.0-alt0.M41.1
4.0: 2.0-alt2
3.0: 1.0.7-alt1
+updates:1.0.8-alt1

Group :: Networking/WWW
RPM: firefox-uk

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define rname uk

%define cid langpack-uk at firefox.mozilla.org
%define ciddir %firefox_noarch_extensionsdir/%cid

%define cid1 uk-ua at dictionaries.addons.mozilla.org
%define cid1dir %firefox_noarch_extensionsdir/%cid1

Name: %firefox_name-%rname
Version: 3.0
Release: alt0.M41.1
Summary: Ukrainian (UA) Language Pack for Firefox

License: GPL
Group: Networking/WWW
URL: http://www.mozilla.org.ua
Packager: Alexey Gladkov <legion at altlinux.ru>

Source0: uk-%version.xpi
Source1: uk-dictionary.xpi

BuildRequires(pre): rpm-build-firefox
BuildRequires: unzip

%description
The Mozilla Firefox Ukrainian translation.

%prep
%setup -c -n %name-%version/%cid
%setup -c -n %name-%version/%cid1 -T -a1

%install
cd ..

%__mkdir_p %buildroot/%ciddir
%__cp -r %cid/* %buildroot/%ciddir

%__mkdir_p %buildroot/%cid1dir
%__cp -r %cid1/* %buildroot/%cid1dir

sed -r -i \
   -e 's,<em:maxVersion>3.0</em:maxVersion>,<em:maxVersion>3.*</em:maxVersion>,g' \
   -e 's,<em:minVersion>3.0</em:minVersion>,<em:minVersion>3.0</em:minVersion>,g' \
   %buildroot/%ciddir/install.rdf

sed -r -i \
   -e 's,<em:maxVersion>3.0b1</em:maxVersion>,<em:maxVersion>3.*</em:maxVersion>,g' \
   -e 's,<em:minVersion>2.0</em:minVersion>,<em:minVersion>3.0</em:minVersion>,g' \
   %buildroot/%cid1dir/install.rdf


%postun
%firefox_uninstall_extension %cid
%firefox_uninstall_extension %cid1
if [ "$1" = 0 ]; then
 [ ! -d "%ciddir" ]  || rm -rf "%ciddir"
 [ ! -d "%cid1dir" ] || rm -rf "%cid1dir"
fi

%files
%ciddir
%cid1dir

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin