]> git.pld-linux.org Git - packages/libmateweather.git/blob - libmateweather.spec
up to 1.24.1
[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.24.1
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Libraries
8 Source0:        http://pub.mate-desktop.org/releases/1.24/%{name}-%{version}.tar.xz
9 # Source0-md5:  51189066046d43d9ba1ee09be339248a
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.50.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.50.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.50.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 %if "%{_rpmversion}" >= "5"
69 BuildArch:      noarch
70 %endif
71
72 %description apidocs
73 libmateweather API documentation.
74
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libmateweather.
77
78 %prep
79 %setup -q
80
81 %build
82 %{__libtoolize}
83 %{__aclocal} -I m4
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         --with-html-dir=%{_gtkdocdir} \
89         --with-zoneinfo-dir=%{_datadir}/zoneinfo \
90         --disable-silent-rules \
91         --disable-static
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la
101
102 %if %{with python}
103 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
104 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
105 %py_postclean
106 %endif
107
108 # outdated copy of es
109 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
110 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ}
111
112 %find_lang %{name}
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post
118 /sbin/ldconfig
119 %update_icon_cache mate
120 %glib_compile_schemas
121
122 %postun
123 /sbin/ldconfig
124 %update_icon_cache mate
125 %glib_compile_schemas
126
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog NEWS README
130 %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
132 %{_datadir}/libmateweather
133 %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
134 %{_iconsdir}/mate/*x*/status/weather-*.png
135 %{_iconsdir}/mate/scalable/status/weather-*.svg
136
137 %files devel
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libmateweather.so
140 %{_includedir}/libmateweather
141 %{_pkgconfigdir}/mateweather.pc
142
143 %files apidocs
144 %defattr(644,root,root,755)
145 %{_gtkdocdir}/libmateweather
This page took 0.123849 seconds and 3 git commands to generate.