]> git.pld-linux.org Git - SPECS.git/blob - mozilla-lang-ca.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / mozilla-lang-ca.spec
1 Summary:        Catalan resources for Mozilla
2 Summary(ca.UTF-8):      Recursos catalans per a Mozilla
3 Summary(es.UTF-8):      Recursos catalanes para Mozilla
4 Summary(pl.UTF-8):      Katalońskie pliki językowe dla Mozilli
5 Name:           mozilla-lang-ca
6 Version:        1.7.12
7 %define         mozversion      1.7.13
8 %define         shortversion    1.712
9 # use "a", "b", or undefined
10 #%%define       bver    b
11 # use "Alpha", "Beta" or %{nil}
12 %define fver    %{nil}
13 Release:        %{?bver:0.%{bver}.}2
14 License:        GPL
15 Group:          X11/Applications/Networking
16 Source0:        http://ftp.mozilla.org/pub/mozilla.org/mozilla/l10n/lang/moz%{shortversion}/mozilla-%{version}.ca-AD.langpack.xpi
17 # Source0-md5:  72bb62419f2a7828893ee9a437ef481f
18 Source1:        %{name}-installed-chrome.txt
19 Source2:        softcatala-installed-chrome.txt
20 URL:            http://www.softcatala.org/projectes/mozilla/
21 BuildRequires:  unzip
22 Requires(post,postun):  mozilla >= 5:%{mozversion}%{?bver}
23 Requires(post,postun):  mozilla <= 5:%{mozversion}
24 Requires(post,postun):  textutils
25 Requires:       mozilla >= 5:%{mozversion}%{?bver}
26 Requires:       mozilla <= 5:%{mozversion}
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 # %{_libdir}/mozilla/chrome is symlink pointing to the following
31 %define _chromedir      %{_datadir}/mozilla/chrome
32
33 %description
34 Catalan resources for Mozilla.
35
36 %description -l ca.UTF-8
37 Recursos catalans per a Mozilla.
38
39 %description -l es.UTF-8
40 Recursos catalanes para Mozilla.
41
42 %description -l pl.UTF-8
43 Katalońskie pliki językowe dla Mozilli.
44
45 %package -n mozilla-theme-softcatala
46 Summary:        Softcatala theme
47 Summary(ca.UTF-8):      Tema de Softcatalà
48 Summary(es.UTF-8):      Tema de Softcatala
49 Summary(pl.UTF-8):      Motyw Softcatala
50 Group:          X11/Applications/Networking
51
52 %description -n mozilla-theme-softcatala
53 Classic theme adaptation.
54
55 %description -n mozilla-theme-softcatala -l ca.UTF-8
56 Una adaptació del tema Classic.
57
58 %description -n mozilla-theme-softcatala -l es.UTF-8
59 Una adaptación del tema Classic.
60
61 %description -n mozilla-theme-softcatala -l pl.UTF-8
62 Adaptacia motywu Classic.
63
64 %prep
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_bindir},%{_chromedir},%{_datadir}/mozilla/{searchplugins,defaults/{messenger,profile}}}
69
70 unzip %{SOURCE0} -d $RPM_BUILD_ROOT%{_datadir}
71 mv -f $RPM_BUILD_ROOT%{_datadir}/chrome/* $RPM_BUILD_ROOT%{_chromedir}
72 mv -f $RPM_BUILD_ROOT%{_datadir}/searchplugins/* \
73         $RPM_BUILD_ROOT%{_datadir}/mozilla/searchplugins
74 mv -f $RPM_BUILD_ROOT%{_datadir}/defaults/messenger/* \
75         $RPM_BUILD_ROOT%{_datadir}/mozilla/defaults/messenger
76 mv -f $RPM_BUILD_ROOT%{_datadir}/defaults/profile/* \
77         $RPM_BUILD_ROOT%{_datadir}/mozilla/defaults/profile
78
79 # entries already in mozilla
80 rm -f $RPM_BUILD_ROOT%{_datadir}/mozilla/searchplugins/{Net,bug,dmoz,google.,jee,lxr,moz}*
81
82 install %{SOURCE1} $RPM_BUILD_ROOT%{_chromedir}
83 install %{SOURCE2} $RPM_BUILD_ROOT%{_chromedir}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post
89 umask 022
90 cd %{_chromedir}
91 cat *-installed-chrome.txt >installed-chrome.txt
92
93 %postun
94 umask 022
95 cd %{_chromedir}
96 cat *-installed-chrome.txt >installed-chrome.txt
97
98 %post -n mozilla-theme-softcatala
99 if [ "$1" = 1 ]; then
100         %{_sbindir}/mozilla-chrome+xpcom-generate
101 fi
102
103 %postun -n mozilla-theme-softcatala
104 [ ! -x %{_sbindir}/mozilla-chrome+xpcom-generate ] || %{_sbindir}/mozilla-chrome+xpcom-generate
105
106 %files
107 %defattr(644,root,root,755)
108 %{_chromedir}/ca-AD.jar
109 %{_chromedir}/ca-unix.jar
110 %{_chromedir}/AD.jar
111 %{_chromedir}/%{name}-installed-chrome.txt
112 %{_datadir}/mozilla/searchplugins/*
113 %{_datadir}/mozilla/defaults/messenger/AD
114 %{_datadir}/mozilla/defaults/profile/AD
115
116 %files -n mozilla-theme-softcatala
117 %defattr(644,root,root,755)
118 %{_chromedir}/softcatala.jar
119 %{_chromedir}/softcatala-installed-chrome.txt
This page took 0.88837 seconds and 3 git commands to generate.