]>
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/ | |
1b4360b9 MB |
10 | BuildRequires: GConf2-devel >= 2.21.90 |
11 | BuildRequires: autoconf >= 2.59 | |
12 | BuildRequires: automake >= 1:1.9 | |
13 | BuildRequires: gettext-devel | |
c9828fba | 14 | BuildRequires: gnome-common >= 2.20.0 |
1b4360b9 MB |
15 | BuildRequires: gnome-vfs2-devel >= 2.20.0 |
16 | BuildRequires: gtk+2-devel >= 2:2.12.5 | |
17 | BuildRequires: intltool >= 0.37.0 | |
c9828fba | 18 | BuildRequires: libtool |
1b4360b9 MB |
19 | BuildRequires: pkgconfig >= 1:0.19 |
20 | BuildRequires: sed >= 4.0 | |
21 | Requires(post,preun): GConf2 | |
c9828fba PZ |
22 | # sr@Latn vs. sr@latin |
23 | Conflicts: glibc-misc < 6:2.7 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | libgweather is a library to access weather information from online | |
28 | services for numerous locations. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for libgweather | |
32 | Group: X11/Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
1b4360b9 MB |
34 | Requires: gnome-vfs2-devel >= 2.20.0 |
35 | Requires: gtk+2-devel >= 2:2.12.5 | |
7da92f12 | 36 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
37 | |
38 | %description devel | |
39 | Header files for libgweather. | |
40 | ||
41 | %package static | |
42 | Summary: Static libgweather library | |
1b4360b9 | 43 | Group: X11/Development/Libraries |
c9828fba PZ |
44 | Requires: %{name}-devel = %{version}-%{release} |
45 | ||
46 | %description static | |
47 | Static libgweather library. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | ||
1b4360b9 MB |
52 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
53 | mv po/sr@{Latn,latin}.po | |
54 | ||
c9828fba PZ |
55 | %build |
56 | %{__intltoolize} | |
57 | %{__libtoolize} | |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
1b4360b9 | 60 | %{__autoheader} |
c9828fba PZ |
61 | %{__automake} |
62 | %configure | |
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
bea62c18 | 71 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES |
1b4360b9 | 72 | |
c9828fba PZ |
73 | %find_lang libgweather |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post | |
79 | /sbin/ldconfig | |
80 | %gconf_schema_install gweather.schemas | |
81 | ||
82 | %preun | |
83 | %gconf_schema_uninstall gweather.schemas | |
84 | ||
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files -f libgweather.lang | |
88 | %defattr(644,root,root,755) | |
89 | %doc ChangeLog README | |
c9828fba | 90 | %attr(755,root,root) %{_libdir}/libgweather.so.*.*.* |
1b4360b9 MB |
91 | %attr(755,root,root) %ghost %{_libdir}/libgweather.so.0 |
92 | %{_sysconfdir}/gconf/schemas/gweather.schemas | |
c9828fba PZ |
93 | %{_datadir}/libgweather |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libgweather.so | |
98 | %{_libdir}/libgweather.la | |
99 | %{_includedir}/libgweather | |
100 | %{_pkgconfigdir}/gweather.pc | |
101 | ||
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libgweather.a |