]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
- updated to 2.30.2
[packages/libgweather.git] / libgweather.spec
CommitLineData
244020ad
JB
1Summary: Library to access weather information from online services for numerous locations
2Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
c9828fba 3Name: libgweather
2238db20 4Version: 2.30.2
a24a2447 5Release: 1
c9828fba
PZ
6License: GPL v2+
7Group: X11/Libraries
a24a2447 8Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.30/%{name}-%{version}.tar.bz2
2238db20 9# Source0-md5: 050f4ed212261c2a147c89012d5daa90
c9828fba 10URL: http://www.gnome.org/
1f4859e3 11BuildRequires: GConf2-devel >= 2.26.0
1b4360b9
MB
12BuildRequires: autoconf >= 2.59
13BuildRequires: automake >= 1:1.9
14BuildRequires: gettext-devel
c9828fba 15BuildRequires: gnome-common >= 2.20.0
1f4859e3
PZ
16BuildRequires: gtk+2-devel >= 2:2.16.0
17BuildRequires: gtk-doc >= 1.9
4cfa076a 18BuildRequires: intltool >= 0.40.3
1f4859e3 19BuildRequires: libsoup-gnome-devel >= 2.26.0
c9828fba 20BuildRequires: libtool
ddb8530d 21BuildRequires: libxml2-devel >= 1:2.6.30
1b4360b9 22BuildRequires: pkgconfig >= 1:0.19
a24a2447
MB
23Requires(post,postun): gnome-icon-theme
24Requires(post,postun): gtk+2
1b4360b9 25Requires(post,preun): GConf2
c9828fba
PZ
26# sr@Latn vs. sr@latin
27Conflicts: glibc-misc < 6:2.7
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31libgweather is a library to access weather information from online
32services for numerous locations.
33
244020ad
JB
34%description -l pl.UTF-8
35libgweather to biblioteka pozwalająca na dostęp do informacji
36pogodowych z serwisów internetowych dla różnych miejsc.
37
c9828fba
PZ
38%package devel
39Summary: Header files for libgweather
244020ad 40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
c9828fba
PZ
41Group: X11/Development/Libraries
42Requires: %{name} = %{version}-%{release}
1f4859e3
PZ
43Requires: GConf2-devel >= 2.26.0
44Requires: gtk+2-devel >= 2:2.16.0
45Requires: libsoup-devel >= 2.26.0
ddb8530d 46Requires: libxml2-devel >= 1:2.6.30
7da92f12 47Obsoletes: gnome-applets-devel <= 2.21.4
c9828fba
PZ
48
49%description devel
50Header files for libgweather.
51
244020ad
JB
52%description devel -l pl.UTF-8
53Pliki nagłówkowe biblioteki libgweather.
54
c9828fba
PZ
55%package static
56Summary: Static libgweather library
244020ad 57Summary(pl.UTF-8): Statyczna biblioteka libgweather
1b4360b9 58Group: X11/Development/Libraries
c9828fba
PZ
59Requires: %{name}-devel = %{version}-%{release}
60
61%description static
62Static libgweather library.
63
244020ad
JB
64%description static -l pl.UTF-8
65Statyczna biblioteka libgweather.
66
1f4859e3
PZ
67%package apidocs
68Summary: libgweather API documentation
69Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
70Group: Documentation
71Requires: gtk-doc-common
72
73%description apidocs
74libgweather API documentation.
75
76%description apidocs -l pl.UTF-8
77Dokumentacja API biblioteki libgweather.
78
c9828fba
PZ
79%prep
80%setup -q
a24a2447
MB
81sed -i s#^en@shaw## po/LINGUAS
82rm po/en@shaw.po
c9828fba
PZ
83
84%build
a9867bbe 85%{__gtkdocize}
c9828fba
PZ
86%{__intltoolize}
87%{__libtoolize}
8726bc62 88%{__aclocal} -I m4
c9828fba 89%{__autoconf}
1b4360b9 90%{__autoheader}
c9828fba 91%{__automake}
2715db3e 92%configure \
1f4859e3
PZ
93 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
94 --enable-gtk-doc \
a24a2447
MB
95 --with-html-dir=%{_gtkdocdir} \
96 --disable-silent-rules
9fae6b8b
SS
97%{__make} -j1 -C data
98%{__make}
c9828fba
PZ
99
100%install
101rm -rf $RPM_BUILD_ROOT
102
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
bea62c18 106rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES
1b4360b9 107
c9828fba
PZ
108%find_lang libgweather
109
4d39f76c
MB
110find $RPM_BUILD_ROOT -name "Locations.*.xml" | sed 's:'"$RPM_BUILD_ROOT"'::
111s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> libgweather.lang
112
c9828fba
PZ
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116%post
117/sbin/ldconfig
a24a2447 118%update_icon_cache gnome
c9828fba
PZ
119%gconf_schema_install gweather.schemas
120
121%preun
122%gconf_schema_uninstall gweather.schemas
123
a24a2447
MB
124%postun
125/sbin/ldconfig
126%update_icon_cache gnome
c9828fba
PZ
127
128%files -f libgweather.lang
129%defattr(644,root,root,755)
130%doc ChangeLog README
c9828fba 131%attr(755,root,root) %{_libdir}/libgweather.so.*.*.*
d8031f1a 132%attr(755,root,root) %ghost %{_libdir}/libgweather.so.1
1b4360b9 133%{_sysconfdir}/gconf/schemas/gweather.schemas
4d39f76c
MB
134%dir %{_datadir}/libgweather
135%{_datadir}/libgweather/Locations.xml
136%{_datadir}/libgweather/locations.dtd
a24a2447
MB
137%{_iconsdir}/gnome/*/status/*.png
138# XXX: gnome-icon-theme doesn't provide this directory
139%{_iconsdir}/gnome/scalable
c9828fba
PZ
140
141%files devel
142%defattr(644,root,root,755)
143%attr(755,root,root) %{_libdir}/libgweather.so
144%{_libdir}/libgweather.la
145%{_includedir}/libgweather
146%{_pkgconfigdir}/gweather.pc
147
148%files static
149%defattr(644,root,root,755)
150%{_libdir}/libgweather.a
1f4859e3
PZ
151
152%files apidocs
153%defattr(644,root,root,755)
154%{_gtkdocdir}/libgweather
This page took 0.522161 seconds and 4 git commands to generate.