]>
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 | |
33 | ||
34 | %description devel | |
35 | Header files for libgweather. | |
36 | ||
37 | %package static | |
38 | Summary: Static libgweather library | |
39 | Group: Development/Libraries | |
40 | Requires: %{name}-devel = %{version}-%{release} | |
41 | ||
42 | %description static | |
43 | Static libgweather library. | |
44 | ||
45 | %prep | |
46 | %setup -q | |
47 | ||
48 | %build | |
49 | %{__intltoolize} | |
50 | %{__libtoolize} | |
51 | %{__aclocal} | |
52 | %{__autoconf} | |
53 | %{__automake} | |
54 | %configure | |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ | |
64 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
bea62c18 | 65 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
c9828fba PZ |
66 | %find_lang libgweather |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post | |
72 | /sbin/ldconfig | |
73 | %gconf_schema_install gweather.schemas | |
74 | ||
75 | %preun | |
76 | %gconf_schema_uninstall gweather.schemas | |
77 | ||
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files -f libgweather.lang | |
81 | %defattr(644,root,root,755) | |
82 | %doc ChangeLog README | |
83 | %{_sysconfdir}/gconf/schemas/gweather.schemas | |
84 | %attr(755,root,root) %{_libdir}/libgweather.so.*.*.* | |
85 | %{_datadir}/libgweather | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libgweather.so | |
90 | %{_libdir}/libgweather.la | |
91 | %{_includedir}/libgweather | |
92 | %{_pkgconfigdir}/gweather.pc | |
93 | ||
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libgweather.a |