forked from Neroth/gnome-shell-extension-weather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnome-shell-extension-openweather.spec
189 lines (147 loc) · 7.49 KB
/
gnome-shell-extension-openweather.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
%global git 48ee4af
%global uuid [email protected]
%global github jenslody-gnome-shell-extension-openweather
%global checkout git%{git}
%global checkout_date 20170307
Name: gnome-shell-extension-openweather
Version: 1
Release: 0.28.%{checkout_date}%{checkout}%{?dist}
Summary: Display weather information from many locations in the world
Group: User Interface/Desktops
# The entire source code is GPLv3+ except convenience.js, which is BSD
License: GPLv3+ and BSD
URL: https://github.com/jenslody/gnome-shell-extension-openweather
Source0: https://github.com/jenslody/gnome-shell-extension-openweather/tarball/master/%{github}-%{git}.tar.gz
BuildArch: noarch
# The version of gnome-common in CentOS7 is only 3.7.4
BuildRequires: autoconf, automake, glib2-devel, gnome-common >= 3.7.4, gettext-devel
Requires: gnome-shell >= 3.14.0
%description
gnome-shell-extension-openweather is an extension to display weather information
from http://openweathermap.org/ or http://darksky.net for (almost) all locations
of the world in GNOME Shell.
Be aware, that system-wide installed gnome-shell-extensions are disabled by
default and have to be enable by the user(s), if they get installed the first
time.
You can use gnome-tweak-tool (additional package) or run:
"gnome-shell-extension-tool -e %uuid" (without the
quotes) on a console.
%prep
%setup -q -n %{github}-%{git}
%build
NOCONFIGURE=1 ./autogen.sh
%configure --prefix=%{_prefix} GIT_VERSION=%{checkout}
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%find_lang %{name}
# Fedora uses file-triggers for some stuff (e.g. compile schemas) since fc24.
# Compiling schemas is the only thing done in %%postun and %%posttrans, so
# I decided to make both completely conditional.
%if 0%{?fedora} < 24
%postun
if [ $1 -eq 0 ] ; then
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%posttrans
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%endif
%files -f %{name}.lang
%license COPYING
%doc AUTHORS README.md
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.openweather.gschema.xml
%if 0%{?fedora} < 23
%dir %{_datadir}/gnome-shell/extensions
%endif
%{_datadir}/gnome-shell/extensions/%{uuid}
%changelog
* Tue Mar 07 2017 Jens Lody <[email protected]> - 1-0.28.20170307git48ee4af
- Fix rhbz#1429776 (double initialization of variable).
- fix minor version of gnome-shell needed
* Sat Feb 25 2017 Jens Lody <[email protected]> - 1-0.27.20170225git59aa498
- Disable gnome-shell < 3.14 and support 3.24 .
- Layout fixes (pref-dialog).
- Updated localization.
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 1-0.26.20161004git34d7e39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Oct 03 2016 Jens Lody <[email protected]> - 1-0.25.20161004git34d7e39
- Support gnome-shell 3.22.
- Updated french translation.
* Tue Sep 20 2016 Jens Lody <[email protected]> - 1-0.24.20160920git39821fa
- Switch name and url from forecast.io to Dark Sky, because they changed/unified
their name, url and api.
* Wed Sep 14 2016 Jens Lody <[email protected]> - 1-0.23.20160914git58dd4f4
- Add option to configure the position of the menu-box relative to the
panel-text.
- Update metadata.json to support newest development build of gnome-shell
on rawhide.
- Added/updated language files.
* Thu Aug 25 2016 Jens Lody <[email protected]> - 1-0.22.20160825gitcefbfb0
- Update metadata.json to support newest development build of gnome-shell
on rawhide.
* Sun Aug 21 2016 Jens Lody <[email protected]> - 1-0.21.20160821gita44cb9e
- Fix glibc error-message, when disabling the extension.
- Fix minor issues in preferences-dialog.
- Add/update translations.
* Fri Jul 22 2016 Jens Lody <[email protected]> - 1-0.20.20160722git4c98fe3
- Update po-files via Makefile with gettext instead of using update.js .
- Get rid of (mostly unmaintained) intltools.
- Make gsettings schema translatable
* Wed Jul 06 2016 Jens Lody <[email protected]> - 1-0.19.20160706git2cc5cfe
- Several language files updated.
- Enabled on gnome-shell 3.21.3.
* Fri Mar 25 2016 Jens Lody <[email protected]> - 1-0.18.20160325git8dd1696
- Updated dutch translation.
- Add support for new version of gnome-shell (3.20).
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 1-0.17.20160123git35e912a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sat Jan 23 2016 Jens Lody <[email protected]> - 1-0.16.20160123git35e912a
- Add support for new development version of gnome-shell (3.19.4).
- Updated russian, spanish french and italian translation files.
* Thu Dec 17 2015 Jens Lody <[email protected]> - 1-0.15.20151217git27c779c
- Add support for new development version of gnome-shell (3.19.3).
* Sat Dec 12 2015 Jens Lody <[email protected]> - 1-0.14.20151212gita80c8a3
- Bump release to be higher than the last copr-(test-)build.
* Sat Dec 12 2015 Jens Lody <[email protected]> - 1-0.13.20151212gita80c8a3
- Update polish translation.
- Add hint about enabling system-wide installed shell-extensions.
- Re-add gnome-shell 3.8 and 3.10 compatibilty (epel7).
* Wed Nov 25 2015 Jens Lody <[email protected]> - 1-0.12.20151125gitccaa1eb
- Add support for new development version of gnome-shell (3.19.2).
* Sun Nov 08 2015 Jens Lody <[email protected]> - 1-0.11.20151108git23a83b3
- Add support for new development version of gnome-shell.
* Sun Nov 08 2015 Jens Lody <[email protected]> - 1-0.10.20151108git6368d32
- Fix typo in metadata.json .
* Sun Nov 08 2015 Jens Lody <[email protected]> - 1-0.9.20151108gite4dbfee
- Add default API-key for openweathermap.org. The key is in their FOSS-whitelist
now. Thanks to openweathermap.org .
* Sat Nov 07 2015 Jens Lody <[email protected]> - 1-0.8.20151107gitae12283
- Fixes #1278686, can block gnome-shell temporarily in some cases .
See also: https://github.com/jenslody/gnome-shell-extension-openweather/issues/82 .
* Sat Oct 17 2015 Jens Lody <[email protected]> - 1-0.7.20151017git34aa242
- Bug fix: warn message for empty forecast.io api-key was shown if the key
exists, not the if the key was empty, sorry.
* Fri Oct 16 2015 Jens Lody <[email protected]> - 1-0.6.20151016git13f9abf
- Bug fix: forecast.io no longer accepts non-https requests.
- Updated russioan translation, added indonesian translation.
- Add warn-message if an api-key is empty.
* Sat Oct 10 2015 Jens Lody <[email protected]> - 1-0.5.20151010gitfe00513
- New upstream:
make refresh-intervall configurable,
fix minor issue, when last location is removed,
add new languages for forecast.io.
* Thu Sep 24 2015 Jens Lody <[email protected]> - 1-0.4.20150924gite55253e
- Always depend on gnome-shell (it's needed anyway).
- On Fedora < 23 own the extensions dir explicitely to avoid unowned
directories.
* Thu Sep 24 2015 Jens Lody <[email protected]> - 1-0.3.20150924gite55253e
- Do not require gnome-shell-extensions-common.
- Require gnome-shell instead on Fedora >= 23.
* Thu Sep 24 2015 Jens Lody <[email protected]> - 1-0.2.20150924gite55253e
- Use checkout-date instead of build-date in package-version.
* Thu Aug 20 2015 Jens Lody <[email protected]> - 1-0.1.20150821gitcb1f6f6
- Remove dot before git in Release-tag.
- Use (conditional) file-triggers for schema compiling, introduced in fc24.
* Sat Jul 25 2015 Jens Lody <[email protected]> - 1-0.1.20150725.git377244c
- Initial package for Fedora of the weather-extension fork using
http://openweathermap.org or http://forecast.io.