]>
Commit | Line | Data |
---|---|---|
244020ad JB |
1 | Summary: Library to access weather information from online services for numerous locations |
2 | Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc | |
c9828fba | 3 | Name: libgweather |
53c207bb | 4 | Version: 3.0.2 |
61ddbffd | 5 | Release: 4 |
c9828fba PZ |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
4d0c23ce | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.0/%{name}-%{version}.tar.bz2 |
53c207bb | 9 | # Source0-md5: f1a96c6f19c9a0bc6b4e12acc9a8a85d |
c9828fba | 10 | URL: http://www.gnome.org/ |
1f4859e3 | 11 | BuildRequires: GConf2-devel >= 2.26.0 |
4d0c23ce | 12 | BuildRequires: autoconf >= 2.62 |
1b4360b9 MB |
13 | BuildRequires: automake >= 1:1.9 |
14 | BuildRequires: gettext-devel | |
4d0c23ce | 15 | BuildRequires: glib2-devel >= 1:2.28.0 |
c9828fba | 16 | BuildRequires: gnome-common >= 2.20.0 |
4d0c23ce ŁK |
17 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
18 | BuildRequires: gtk+3-devel >= 3.0.0 | |
1f4859e3 | 19 | BuildRequires: gtk-doc >= 1.9 |
4cfa076a | 20 | BuildRequires: intltool >= 0.40.3 |
1f4859e3 | 21 | BuildRequires: libsoup-gnome-devel >= 2.26.0 |
c9828fba | 22 | BuildRequires: libtool |
ddb8530d | 23 | BuildRequires: libxml2-devel >= 1:2.6.30 |
1b4360b9 | 24 | BuildRequires: pkgconfig >= 1:0.19 |
a24a2447 | 25 | Requires(post,postun): gnome-icon-theme |
407a5e37 | 26 | Requires(post,postun): gnome-icon-theme-symbolic |
39e3b2f6 | 27 | Requires(post,postun): gtk-update-icon-cache |
1b4360b9 | 28 | Requires(post,preun): GConf2 |
c9828fba PZ |
29 | # sr@Latn vs. sr@latin |
30 | Conflicts: glibc-misc < 6:2.7 | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | libgweather is a library to access weather information from online | |
35 | services for numerous locations. | |
36 | ||
244020ad JB |
37 | %description -l pl.UTF-8 |
38 | libgweather to biblioteka pozwalająca na dostęp do informacji | |
39 | pogodowych z serwisów internetowych dla różnych miejsc. | |
40 | ||
c9828fba PZ |
41 | %package devel |
42 | Summary: Header files for libgweather | |
244020ad | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
44 | Group: X11/Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
1f4859e3 | 46 | Requires: GConf2-devel >= 2.26.0 |
4d0c23ce | 47 | Requires: gtk+3-devel >= 3.0.0 |
1f4859e3 | 48 | Requires: libsoup-devel >= 2.26.0 |
ddb8530d | 49 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 50 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
51 | |
52 | %description devel | |
53 | Header files for libgweather. | |
54 | ||
244020ad JB |
55 | %description devel -l pl.UTF-8 |
56 | Pliki nagłówkowe biblioteki libgweather. | |
57 | ||
c9828fba PZ |
58 | %package static |
59 | Summary: Static libgweather library | |
244020ad | 60 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 61 | Group: X11/Development/Libraries |
c9828fba PZ |
62 | Requires: %{name}-devel = %{version}-%{release} |
63 | ||
64 | %description static | |
65 | Static libgweather library. | |
66 | ||
244020ad JB |
67 | %description static -l pl.UTF-8 |
68 | Statyczna biblioteka libgweather. | |
69 | ||
1f4859e3 PZ |
70 | %package apidocs |
71 | Summary: libgweather API documentation | |
72 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather | |
73 | Group: Documentation | |
74 | Requires: gtk-doc-common | |
75 | ||
76 | %description apidocs | |
77 | libgweather API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API biblioteki libgweather. | |
81 | ||
c9828fba PZ |
82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
a9867bbe | 86 | %{__gtkdocize} |
c9828fba PZ |
87 | %{__intltoolize} |
88 | %{__libtoolize} | |
8726bc62 | 89 | %{__aclocal} -I m4 |
c9828fba | 90 | %{__autoconf} |
1b4360b9 | 91 | %{__autoheader} |
c9828fba | 92 | %{__automake} |
2715db3e | 93 | %configure \ |
1f4859e3 PZ |
94 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
95 | --enable-gtk-doc \ | |
a24a2447 MB |
96 | --with-html-dir=%{_gtkdocdir} \ |
97 | --disable-silent-rules | |
4d0c23ce | 98 | |
9fae6b8b SS |
99 | %{__make} -j1 -C data |
100 | %{__make} | |
c9828fba PZ |
101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
4d0c23ce ŁK |
108 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
1b4360b9 | 110 | |
4d0c23ce | 111 | %find_lang libgweather-3.0 |
c9828fba | 112 | |
4d39f76c | 113 | find $RPM_BUILD_ROOT -name "Locations.*.xml" | sed 's:'"$RPM_BUILD_ROOT"':: |
4d0c23ce | 114 | s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> libgweather-3.0.lang |
4d39f76c | 115 | |
c9828fba PZ |
116 | %clean |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post | |
120 | /sbin/ldconfig | |
a24a2447 | 121 | %update_icon_cache gnome |
c9828fba PZ |
122 | %gconf_schema_install gweather.schemas |
123 | ||
124 | %preun | |
125 | %gconf_schema_uninstall gweather.schemas | |
126 | ||
a24a2447 MB |
127 | %postun |
128 | /sbin/ldconfig | |
129 | %update_icon_cache gnome | |
c9828fba | 130 | |
4d0c23ce | 131 | %files -f libgweather-3.0.lang |
c9828fba PZ |
132 | %defattr(644,root,root,755) |
133 | %doc ChangeLog README | |
4d0c23ce ŁK |
134 | %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.* |
135 | %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.0 | |
1b4360b9 | 136 | %{_sysconfdir}/gconf/schemas/gweather.schemas |
4d39f76c MB |
137 | %dir %{_datadir}/libgweather |
138 | %{_datadir}/libgweather/Locations.xml | |
139 | %{_datadir}/libgweather/locations.dtd | |
407a5e37 JR |
140 | %{_iconsdir}/gnome/*/status/*.png |
141 | %{_iconsdir}/gnome/scalable/status/*.svg | |
4d0c23ce | 142 | %{_libdir}/girepository-1.0/GWeather-3.0.typelib |
c9828fba PZ |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
4d0c23ce ŁK |
146 | %attr(755,root,root) %{_libdir}/libgweather-3.so |
147 | %{_includedir}/libgweather-3.0 | |
148 | %{_pkgconfigdir}/gweather-3.0.pc | |
149 | %{_datadir}/gir-1.0/GWeather-3.0.gir | |
c9828fba PZ |
150 | |
151 | %files static | |
152 | %defattr(644,root,root,755) | |
4d0c23ce | 153 | %{_libdir}/libgweather-3.a |
1f4859e3 PZ |
154 | |
155 | %files apidocs | |
156 | %defattr(644,root,root,755) | |
4d0c23ce | 157 | %{_gtkdocdir}/libgweather-3.0 |