~strycore/ubuntu/vivid/gnome-weather/fix-for-1456400

« back to all changes in this revision

Viewing changes to org.gnome.Weather.Application.spec

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-06-14 12:48:12 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140614124812-dpklbhi0nul402ay
Tags: 3.12.1-0ubuntu1
* New upstream release.
  - Updates translations. LP: #1313416
* Add extra build-depends needed for tests, but don't enable tests yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           %{_name}
 
2
Version:        %{_version}
 
3
Release:        1%{?dist}
 
4
Summary:        GNOME Weather
 
5
 
 
6
License:        GPLv2+ and LGPLv2+ and MIT and CC-BY and CC-BY-SA
 
7
URL:            http://wiki.gnome.org/Apps/Weather
 
8
Source0:        %{_distdir}-%{version}.tar.xz
 
9
BuildArch:      x86_64 i686
 
10
 
 
11
%description
 
12
A small application that allows you to monitor the current weather
 
13
conditions for your city, or anywhere in the world and to access
 
14
updated forecasts, up to 7 days, provided by various internet services.
 
15
 
 
16
%prep
 
17
%setup -q -n %{_distdir}-%{version}
 
18
 
 
19
%build
 
20
%configure --disable-static
 
21
make %{?_smp_mflags}
 
22
 
 
23
%install
 
24
make install DESTDIR=$RPM_BUILD_ROOT
 
25
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
26
rm -fR $RPM_BUILD_ROOT/%{_bindir}
 
27
desktop-file-edit $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop \
 
28
    --set-key=X-AppInstall-Package --set-value=%{name}
 
29
 
 
30
%find_lang %{name}
 
31
 
 
32
%check
 
33
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
 
34
 
 
35
%post
 
36
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
37
 
 
38
%postun
 
39
if [ $1 -eq 0 ] ; then
 
40
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
41
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
 
42
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
43
fi
 
44
 
 
45
%posttrans
 
46
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
47
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
48
 
 
49
%files -f %{name}.lang
 
50
%doc NEWS COPYING
 
51
%{_datadir}/appdata/%{name}.appdata.xml
 
52
%{_datadir}/applications/%{name}.desktop
 
53
%{_datadir}/dbus-1/services/%{name}.service
 
54
%{_datadir}/glib-2.0/schemas/%{name}.gschema.xml
 
55
%{_datadir}/gnome-shell/search-providers/%{name}.search-provider.ini
 
56
%{_datadir}/icons/hicolor/*/apps/%{name}.png
 
57
%{_datadir}/%{name}/
 
58
%{_libdir}/%{name}/