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