]>
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 |
4cfa076a | 4 | Version: 2.28.0 |
6a53eac9 | 5 | Release: 3 |
c9828fba PZ |
6 | License: GPL v2+ |
7 | Group: X11/Libraries | |
4cfa076a MB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.28/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 9f4457144d32d4004e0e045240ab51dc | |
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 |
1b4360b9 | 23 | Requires(post,preun): GConf2 |
c9828fba PZ |
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 | ||
244020ad JB |
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 | ||
c9828fba PZ |
36 | %package devel |
37 | Summary: Header files for libgweather | |
244020ad | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
39 | Group: X11/Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
1f4859e3 PZ |
41 | Requires: GConf2-devel >= 2.26.0 |
42 | Requires: gtk+2-devel >= 2:2.16.0 | |
43 | Requires: libsoup-devel >= 2.26.0 | |
ddb8530d | 44 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 45 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
46 | |
47 | %description devel | |
48 | Header files for libgweather. | |
49 | ||
244020ad JB |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki libgweather. | |
52 | ||
c9828fba PZ |
53 | %package static |
54 | Summary: Static libgweather library | |
244020ad | 55 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 56 | Group: X11/Development/Libraries |
c9828fba PZ |
57 | Requires: %{name}-devel = %{version}-%{release} |
58 | ||
59 | %description static | |
60 | Static libgweather library. | |
61 | ||
244020ad JB |
62 | %description static -l pl.UTF-8 |
63 | Statyczna biblioteka libgweather. | |
64 | ||
1f4859e3 PZ |
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 | ||
c9828fba PZ |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
a9867bbe | 81 | %{__gtkdocize} |
c9828fba PZ |
82 | %{__intltoolize} |
83 | %{__libtoolize} | |
8726bc62 | 84 | %{__aclocal} -I m4 |
c9828fba | 85 | %{__autoconf} |
1b4360b9 | 86 | %{__autoheader} |
c9828fba | 87 | %{__automake} |
2715db3e | 88 | %configure \ |
1f4859e3 PZ |
89 | --with-zoneinfo-dir=%{_datadir}/zoneinfo \ |
90 | --enable-gtk-doc \ | |
91 | --with-html-dir=%{_gtkdocdir} | |
9fae6b8b SS |
92 | %{__make} -j1 -C data |
93 | %{__make} | |
c9828fba PZ |
94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
bea62c18 | 101 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
1b4360b9 | 102 | |
c9828fba PZ |
103 | %find_lang libgweather |
104 | ||
4d39f76c MB |
105 | find $RPM_BUILD_ROOT -name "Locations.*.xml" | sed 's:'"$RPM_BUILD_ROOT"':: |
106 | s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> libgweather.lang | |
107 | ||
c9828fba PZ |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
112 | /sbin/ldconfig | |
113 | %gconf_schema_install gweather.schemas | |
114 | ||
115 | %preun | |
116 | %gconf_schema_uninstall gweather.schemas | |
117 | ||
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files -f libgweather.lang | |
121 | %defattr(644,root,root,755) | |
122 | %doc ChangeLog README | |
c9828fba | 123 | %attr(755,root,root) %{_libdir}/libgweather.so.*.*.* |
d8031f1a | 124 | %attr(755,root,root) %ghost %{_libdir}/libgweather.so.1 |
1b4360b9 | 125 | %{_sysconfdir}/gconf/schemas/gweather.schemas |
4d39f76c MB |
126 | %dir %{_datadir}/libgweather |
127 | %{_datadir}/libgweather/Locations.xml | |
128 | %{_datadir}/libgweather/locations.dtd | |
c9828fba PZ |
129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libgweather.so | |
133 | %{_libdir}/libgweather.la | |
134 | %{_includedir}/libgweather | |
135 | %{_pkgconfigdir}/gweather.pc | |
136 | ||
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libgweather.a | |
1f4859e3 PZ |
140 | |
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %{_gtkdocdir}/libgweather |