]> git.pld-linux.org Git - packages/libmateweather.git/blob - libmateweather.spec
up to 1.26.0
[packages/libmateweather.git] / libmateweather.spec
1 Summary:        Library to allow MATE Desktop to display weather information
2 Summary(pl.UTF-8):      Biblioteka umożliwiająca wyświetlanie informacji pogodowych w środowisku MATE Desktop
3 Name:           libmateweather
4 Version:        1.26.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Libraries
8 Source0:        https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
9 # Source0-md5:  5071750f05fe60a1ee7691f24216948a
10 URL:            http://wiki.mate-desktop.org/libmateweather
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  automake >= 1:1.9
13 BuildRequires:  gettext-tools >= 0.19.8
14 BuildRequires:  glib2-devel >= 1:2.56.0
15 BuildRequires:  gtk+3-devel >= 3.22
16 BuildRequires:  gtk-doc >= 1.11
17 BuildRequires:  libsoup-devel >= 2.54.0
18 BuildRequires:  libtool >= 2:2.2.6
19 BuildRequires:  libxml2-devel >= 1:2.6.0
20 BuildRequires:  mate-common
21 BuildRequires:  pkgconfig >= 1:0.19
22 BuildRequires:  rpmbuild(macros) >= 1.219
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  tzdata-zoneinfo >= 2016g
25 BuildRequires:  xz
26 Requires(post,postun):  /sbin/ldconfig
27 Requires(post,postun):  gtk-update-icon-cache
28 Requires:       glib2 >= 1:2.56.0
29 Requires:       gsettings-desktop-schemas
30 Requires:       gtk+3 >= 3.22
31 Requires:       libsoup >= 2.54.0
32 Requires:       libxml2 >= 1:2.6.0
33 Requires:       mate-icon-theme
34 Requires:       tzdata-zoneinfo >= 2016g
35 Obsoletes:      python-mateweather
36 Conflicts:      mate-applet-gweather < 1.6.1
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 libmateweather is a library to allow MATE Desktop to display weather
41 information. It's a fork of libgweather.
42
43 %description -l pl.UTF-8
44 libmateweather to biblioteka umożliwiająca wyświetlanie informacji
45 pogodowych w środowisku MATE Desktop. Jest odgałęzieniem libgweather.
46
47 %package devel
48 Summary:        Development files for libmateweather
49 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libmateweather
50 Group:          X11/Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       glib2-devel >= 1:2.56.0
53 Requires:       gtk+3-devel >= 3.22
54 Requires:       libsoup-devel >= 2.54.0
55 Requires:       libxml2-devel >= 1:2.6.0
56
57 %description devel
58 Development files for libmateweather.
59
60 %description devel -l pl.UTF-8
61 Pliki programistyczne biblioteki libmateweather.
62
63 %package apidocs
64 Summary:        libmateweather API documentation
65 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmateweather
66 Group:          Documentation
67 Requires:       gtk-doc-common
68 BuildArch:      noarch
69
70 %description apidocs
71 libmateweather API documentation.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki libmateweather.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__libtoolize}
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --with-html-dir=%{_gtkdocdir} \
87         --with-zoneinfo-dir=%{_datadir}/zoneinfo \
88         --disable-silent-rules \
89         --disable-static
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la
99
100 %if %{with python}
101 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
102 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
103 %py_postclean
104 %endif
105
106 # outdated copy of es
107 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
108 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ}
109
110 %find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 /sbin/ldconfig
117 %update_icon_cache hicolor
118 %glib_compile_schemas
119
120 %postun
121 /sbin/ldconfig
122 %update_icon_cache hicolor
123 %glib_compile_schemas
124
125 %files -f %{name}.lang
126 %defattr(644,root,root,755)
127 %doc AUTHORS ChangeLog NEWS README
128 %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
130 %{_datadir}/libmateweather
131 %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
132 %{_iconsdir}/hicolor/*x*/status/weather-*.png
133 %{_iconsdir}/hicolor/scalable/status/weather-*.svg
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libmateweather.so
138 %{_includedir}/libmateweather
139 %{_pkgconfigdir}/mateweather.pc
140
141 %files apidocs
142 %defattr(644,root,root,755)
143 %{_gtkdocdir}/libmateweather
This page took 0.071669 seconds and 3 git commands to generate.