]>
Commit | Line | Data |
---|---|---|
c9828fba PZ |
1 | Summary: libgweather is a library to access weather information from online services for numerous locations |
2 | Name: libgweather | |
3 | Version: 2.21.2 | |
4 | Release: 1 | |
5 | License: GPL v2+ | |
6 | Group: X11/Libraries | |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.21/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 715394c673895b52d1f807f874b66770 | |
9 | URL: http://www.gnome.org/ | |
10 | BuildRequires: GConf2-devel >= 2.8.0 | |
11 | BuildRequires: autoconf >= 2.53 | |
12 | BuildRequires: automake >= 1:1.8 | |
bea62c18 | 13 | BuildRequires: glib2-devel >= 1:2.13.0 |
c9828fba PZ |
14 | BuildRequires: gnome-common >= 2.20.0 |
15 | BuildRequires: gnome-vfs2-devel >= 2.15.4 | |
16 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
17 | BuildRequires: intltool >= 0.36.1 | |
18 | BuildRequires: libtool | |
19 | BuildRequires: pkgconfig | |
20 | # sr@Latn vs. sr@latin | |
21 | Conflicts: glibc-misc < 6:2.7 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | libgweather is a library to access weather information from online | |
26 | services for numerous locations. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for libgweather | |
30 | Group: X11/Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: gtk+2-devel >= 2:2.12.0 | |
7da92f12 | 33 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
34 | |
35 | %description devel | |
36 | Header files for libgweather. | |
37 | ||
38 | %package static | |
39 | Summary: Static libgweather library | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | Static libgweather library. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
50 | %{__intltoolize} | |
51 | %{__libtoolize} | |
52 | %{__aclocal} | |
53 | %{__autoconf} | |
54 | %{__automake} | |
55 | %configure | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ | |
65 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
bea62c18 | 66 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
c9828fba PZ |
67 | %find_lang libgweather |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | /sbin/ldconfig | |
74 | %gconf_schema_install gweather.schemas | |
75 | ||
76 | %preun | |
77 | %gconf_schema_uninstall gweather.schemas | |
78 | ||
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files -f libgweather.lang | |
82 | %defattr(644,root,root,755) | |
83 | %doc ChangeLog README | |
84 | %{_sysconfdir}/gconf/schemas/gweather.schemas | |
85 | %attr(755,root,root) %{_libdir}/libgweather.so.*.*.* | |
86 | %{_datadir}/libgweather | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libgweather.so | |
91 | %{_libdir}/libgweather.la | |
92 | %{_includedir}/libgweather | |
93 | %{_pkgconfigdir}/gweather.pc | |
94 | ||
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libgweather.a |