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