]> git.pld-linux.org Git - packages/libmateweather.git/blob - libmateweather.spec
up to 1.22.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.22.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Libraries
8 Source0:        http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz
9 # Source0-md5:  ac507fce3609df22950d58510a7af4a7
10 URL:            http://wiki.mate-desktop.org/libmateweather
11 BuildRequires:  autoconf >= 2.59
12 BuildRequires:  automake >= 1:1.9
13 BuildRequires:  gettext-tools
14 BuildRequires:  glib2-devel >= 1:2.50.0
15 BuildRequires:  gtk+3-devel >= 3.22
16 BuildRequires:  gtk-doc >= 1.11
17 BuildRequires:  intltool >= 0.50.1
18 BuildRequires:  libsoup-devel >= 2.34.0
19 BuildRequires:  libtool >= 2:2.2.6
20 BuildRequires:  libxml2-devel >= 1:2.6.0
21 BuildRequires:  mate-common
22 BuildRequires:  pkgconfig >= 1:0.19
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.50.0
30 Requires:       gsettings-desktop-schemas
31 Requires:       gtk+3 >= 3.22
32 Requires:       libsoup >= 2.34.0
33 Requires:       libxml2 >= 1:2.6.0
34 Requires:       mate-icon-theme
35 Requires:       tzdata-zoneinfo >= 2016g
36 Obsoletes:      python-mateweather
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.50.0
54 Requires:       gtk+3-devel >= 3.22
55 Requires:       libsoup-devel >= 2.34.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 %if "%{_rpmversion}" >= "5"
70 BuildArch:      noarch
71 %endif
72
73 %description apidocs
74 libmateweather API documentation.
75
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki libmateweather.
78
79 %prep
80 %setup -q
81
82 %build
83 %{__libtoolize}
84 %{__aclocal} -I m4
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         --with-html-dir=%{_gtkdocdir} \
90         --with-zoneinfo-dir=%{_datadir}/zoneinfo \
91         --disable-silent-rules \
92         --disable-static
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la
102
103 %if %{with python}
104 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
105 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
106 %py_postclean
107 %endif
108
109 # outdated copy of es
110 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
111 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ku_IQ,jv}
112
113 %find_lang %{name}
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post
119 /sbin/ldconfig
120 %update_icon_cache mate
121 %glib_compile_schemas
122
123 %postun
124 /sbin/ldconfig
125 %update_icon_cache mate
126 %glib_compile_schemas
127
128 %files -f %{name}.lang
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog NEWS README
131 %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
133 %{_datadir}/libmateweather
134 %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
135 %{_iconsdir}/mate/*x*/status/weather-*.png
136 %{_iconsdir}/mate/scalable/status/weather-*.svg
137
138 %files devel
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libmateweather.so
141 %{_includedir}/libmateweather
142 %{_pkgconfigdir}/mateweather.pc
143
144 %files apidocs
145 %defattr(644,root,root,755)
146 %{_gtkdocdir}/libmateweather
This page took 0.05876 seconds and 3 git commands to generate.