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