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