]> git.pld-linux.org Git - packages/libgweather.git/blob - libgweather.spec
- todo?
[packages/libgweather.git] / libgweather.spec
1 # TODO
2 # - this package is huge (80MB for library!), package locations by l10n <> iso639-1 map like
3 #   kde4-kdebase-runtime has done it partially
4 Summary:        Library to access weather information from online services for numerous locations
5 Summary(pl.UTF-8):      Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
6 Name:           libgweather
7 Version:        2.26.0
8 Release:        2
9 License:        GPL v2+
10 Group:          X11/Libraries
11 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.26/%{name}-%{version}.tar.bz2
12 # Source0-md5:  b96016d7b35c66cf251189e9851ee252
13 Source1:        l10n-iso639-1
14 URL:            http://www.gnome.org/
15 BuildRequires:  GConf2-devel >= 2.26.0
16 BuildRequires:  autoconf >= 2.59
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  gettext-devel
19 BuildRequires:  gnome-common >= 2.20.0
20 BuildRequires:  gtk+2-devel >= 2:2.16.0
21 BuildRequires:  gtk-doc >= 1.9
22 BuildRequires:  intltool >= 0.40.0
23 BuildRequires:  libsoup-gnome-devel >= 2.26.0
24 BuildRequires:  libtool
25 BuildRequires:  libxml2-devel >= 1:2.6.30
26 BuildRequires:  pkgconfig >= 1:0.19
27 Requires(post,preun):   GConf2
28 # sr@Latn vs. sr@latin
29 Conflicts:      glibc-misc < 6:2.7
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 libgweather is a library to access weather information from online
34 services for numerous locations.
35
36 %description -l pl.UTF-8
37 libgweather to biblioteka pozwalająca na dostęp do informacji
38 pogodowych z serwisów internetowych dla różnych miejsc.
39
40 %package devel
41 Summary:        Header files for libgweather
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgweather
43 Group:          X11/Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       GConf2-devel >= 2.26.0
46 Requires:       gtk+2-devel >= 2:2.16.0
47 Requires:       libsoup-devel >= 2.26.0
48 Requires:       libxml2-devel >= 1:2.6.30
49 Obsoletes:      gnome-applets-devel <= 2.21.4
50
51 %description devel
52 Header files for libgweather.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki libgweather.
56
57 %package static
58 Summary:        Static libgweather library
59 Summary(pl.UTF-8):      Statyczna biblioteka libgweather
60 Group:          X11/Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static libgweather library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libgweather.
68
69 %package apidocs
70 Summary:        libgweather API documentation
71 Summary(pl.UTF-8):      Dokumentacja API biblioteki libgweather
72 Group:          Documentation
73 Requires:       gtk-doc-common
74
75 %description apidocs
76 libgweather API documentation.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki libgweather.
80
81 %prep
82 %setup -q
83
84 %build
85 %{__gtkdocize}
86 %{__intltoolize}
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --with-zoneinfo-dir=%{_datadir}/zoneinfo \
94         --enable-gtk-doc \
95         --with-html-dir=%{_gtkdocdir}
96 %{__make} -j1 -C data
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES
106
107 %find_lang libgweather
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post
113 /sbin/ldconfig
114 %gconf_schema_install gweather.schemas
115
116 %preun
117 %gconf_schema_uninstall gweather.schemas
118
119 %postun -p /sbin/ldconfig
120
121 %files -f libgweather.lang
122 %defattr(644,root,root,755)
123 %doc ChangeLog README
124 %attr(755,root,root) %{_libdir}/libgweather.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libgweather.so.1
126 %{_sysconfdir}/gconf/schemas/gweather.schemas
127 %{_datadir}/libgweather
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libgweather.so
132 %{_libdir}/libgweather.la
133 %{_includedir}/libgweather
134 %{_pkgconfigdir}/gweather.pc
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/libgweather.a
139
140 %files apidocs
141 %defattr(644,root,root,755)
142 %{_gtkdocdir}/libgweather
This page took 0.072052 seconds and 3 git commands to generate.