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