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