]>
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 |
c4b333e1 | 4 | Version: 2.22.1.2 |
c9828fba PZ |
5 | Release: 1 |
6 | License: GPL v2+ | |
7 | Group: X11/Libraries | |
580b0778 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.22/%{name}-%{version}.tar.bz2 |
c4b333e1 | 9 | # Source0-md5: 6283f775434066e0183ee0c6cb789ac5 |
c9828fba | 10 | URL: http://www.gnome.org/ |
580b0778 | 11 | BuildRequires: GConf2-devel >= 2.22.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 |
580b0778 MB |
16 | BuildRequires: gnome-vfs2-devel >= 2.22.0 |
17 | BuildRequires: gtk+2-devel >= 2:2.12.8 | |
1b4360b9 | 18 | BuildRequires: intltool >= 0.37.0 |
c9828fba | 19 | BuildRequires: libtool |
1b4360b9 MB |
20 | BuildRequires: pkgconfig >= 1:0.19 |
21 | BuildRequires: sed >= 4.0 | |
22 | Requires(post,preun): GConf2 | |
c9828fba PZ |
23 | # sr@Latn vs. sr@latin |
24 | Conflicts: glibc-misc < 6:2.7 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | libgweather is a library to access weather information from online | |
29 | services for numerous locations. | |
30 | ||
244020ad JB |
31 | %description -l pl.UTF-8 |
32 | libgweather to biblioteka pozwalająca na dostęp do informacji | |
33 | pogodowych z serwisów internetowych dla różnych miejsc. | |
34 | ||
c9828fba PZ |
35 | %package devel |
36 | Summary: Header files for libgweather | |
244020ad | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
38 | Group: X11/Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
580b0778 MB |
40 | Requires: gnome-vfs2-devel >= 2.22.0 |
41 | Requires: gtk+2-devel >= 2:2.12.8 | |
7da92f12 | 42 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
43 | |
44 | %description devel | |
45 | Header files for libgweather. | |
46 | ||
244020ad JB |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki libgweather. | |
49 | ||
c9828fba PZ |
50 | %package static |
51 | Summary: Static libgweather library | |
244020ad | 52 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 53 | Group: X11/Development/Libraries |
c9828fba PZ |
54 | Requires: %{name}-devel = %{version}-%{release} |
55 | ||
56 | %description static | |
57 | Static libgweather library. | |
58 | ||
244020ad JB |
59 | %description static -l pl.UTF-8 |
60 | Statyczna biblioteka libgweather. | |
61 | ||
c9828fba PZ |
62 | %prep |
63 | %setup -q | |
64 | ||
1b4360b9 MB |
65 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
66 | mv po/sr@{Latn,latin}.po | |
c4b333e1 | 67 | mv po-locations/sr@{Latn,latin}.po |
1b4360b9 | 68 | |
c9828fba PZ |
69 | %build |
70 | %{__intltoolize} | |
71 | %{__libtoolize} | |
72 | %{__aclocal} | |
73 | %{__autoconf} | |
1b4360b9 | 74 | %{__autoheader} |
c9828fba PZ |
75 | %{__automake} |
76 | %configure | |
c4b333e1 | 77 | %{__make} -j1 |
c9828fba PZ |
78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
bea62c18 | 85 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
1b4360b9 | 86 | |
c9828fba PZ |
87 | %find_lang libgweather |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post | |
93 | /sbin/ldconfig | |
94 | %gconf_schema_install gweather.schemas | |
95 | ||
96 | %preun | |
97 | %gconf_schema_uninstall gweather.schemas | |
98 | ||
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files -f libgweather.lang | |
102 | %defattr(644,root,root,755) | |
103 | %doc ChangeLog README | |
c9828fba | 104 | %attr(755,root,root) %{_libdir}/libgweather.so.*.*.* |
d8031f1a | 105 | %attr(755,root,root) %ghost %{_libdir}/libgweather.so.1 |
1b4360b9 | 106 | %{_sysconfdir}/gconf/schemas/gweather.schemas |
c9828fba PZ |
107 | %{_datadir}/libgweather |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libgweather.so | |
112 | %{_libdir}/libgweather.la | |
113 | %{_includedir}/libgweather | |
114 | %{_pkgconfigdir}/gweather.pc | |
115 | ||
116 | %files static | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libgweather.a |