]> git.pld-linux.org Git - packages/libgweather.git/blobdiff - libgweather.spec
- updated to 3.8.0
[packages/libgweather.git] / libgweather.spec
index dd256fa6a5fe00f10f970101017e461bb38787a4..0021728ce86ad43da7b3ca7916d078ca78f96cdb 100644 (file)
@@ -1,25 +1,32 @@
 Summary:       Library to access weather information from online services for numerous locations
 Summary(pl.UTF-8):     Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
 Name:          libgweather
-Version:       2.22.0
+Version:       3.8.0
 Release:       1
 License:       GPL v2+
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/libgweather/2.22/%{name}-%{version}.tar.bz2
-# Source0-md5: f25d3dada7416bf2d5edb5c7fd7ffce0
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.8/%{name}-%{version}.tar.xz
+# Source0-md5: 06610b910fd9d841b81041c2f457df7b
 URL:           http://www.gnome.org/
-BuildRequires: GConf2-devel >= 2.22.0
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.9
+BuildRequires: autoconf >= 2.64
+BuildRequires: automake >= 1:1.11
 BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.35.1
 BuildRequires: gnome-common >= 2.20.0
-BuildRequires: gnome-vfs2-devel >= 2.22.0
-BuildRequires: gtk+2-devel >= 2:2.12.8
-BuildRequires: intltool >= 0.37.0
-BuildRequires: libtool
+BuildRequires: gobject-introspection-devel >= 0.10.0
+BuildRequires: gtk+3-devel >= 3.0.0
+BuildRequires: gtk-doc >= 1.11
+BuildRequires: intltool >= 0.50.0
+BuildRequires: libsoup-gnome-devel >= 2.34.0
+BuildRequires: libtool >= 2:2.2.6
+BuildRequires: libxml2-devel >= 1:2.6.30
 BuildRequires: pkgconfig >= 1:0.19
-BuildRequires: sed >= 4.0
-Requires(post,preun):  GConf2
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires(post,postun): gnome-icon-theme
+Requires(post,postun): gnome-icon-theme-symbolic
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): glib2 >= 1:2.35.1
 # sr@Latn vs. sr@latin
 Conflicts:     glibc-misc < 6:2.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,8 +44,9 @@ Summary:      Header files for libgweather
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libgweather
 Group:         X11/Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      gnome-vfs2-devel >= 2.22.0
-Requires:      gtk+2-devel >= 2:2.12.8
+Requires:      gtk+3-devel >= 3.0.0
+Requires:      libsoup-devel >= 2.34.0
+Requires:      libxml2-devel >= 1:2.6.30
 Obsoletes:     gnome-applets-devel <= 2.21.4
 
 %description devel
@@ -59,20 +67,37 @@ Static libgweather library.
 %description static -l pl.UTF-8
 Statyczna biblioteka libgweather.
 
+%package apidocs
+Summary:       libgweather API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki libgweather
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+libgweather API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libgweather.
+
 %prep
 %setup -q
 
-sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
-mv po/sr@{Latn,latin}.po
-
 %build
+%{__gtkdocize}
 %{__intltoolize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --with-zoneinfo-dir=%{_datadir}/zoneinfo \
+       --enable-gtk-doc \
+       --with-html-dir=%{_gtkdocdir} \
+       --disable-silent-rules \
+       --enable-static
+
+%{__make} -j1 -C data
 %{__make}
 
 %install
@@ -81,37 +106,52 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/es_ES
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%find_lang libgweather-3.0
 
-%find_lang libgweather
+find $RPM_BUILD_ROOT -name "Locations.*.xml" | sed 's:'"$RPM_BUILD_ROOT"'::
+s:\(.*\)/Locations\.\([^.]*\)\.xml:%lang(\2) \1/Locations.\2.xml:' >> libgweather-3.0.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-%gconf_schema_install gweather.schemas
+%glib_compile_schemas
+%update_icon_cache gnome
 
-%preun
-%gconf_schema_uninstall gweather.schemas
-
-%postun        -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+%glib_compile_schemas
+%update_icon_cache gnome
 
-%files -f libgweather.lang
+%files -f libgweather-3.0.lang
 %defattr(644,root,root,755)
 %doc ChangeLog README
-%attr(755,root,root) %{_libdir}/libgweather.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgweather.so.0
-%{_sysconfdir}/gconf/schemas/gweather.schemas
-%{_datadir}/libgweather
+%attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.3
+%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
+%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
+%dir %{_datadir}/libgweather
+%{_datadir}/libgweather/Locations.xml
+%{_datadir}/libgweather/locations.dtd
+%{_iconsdir}/gnome/*/status/*.png
+%{_iconsdir}/gnome/scalable/status/*.svg
+%{_libdir}/girepository-1.0/GWeather-3.0.typelib
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgweather.so
-%{_libdir}/libgweather.la
-%{_includedir}/libgweather
-%{_pkgconfigdir}/gweather.pc
+%attr(755,root,root) %{_libdir}/libgweather-3.so
+%{_includedir}/libgweather-3.0
+%{_pkgconfigdir}/gweather-3.0.pc
+%{_datadir}/gir-1.0/GWeather-3.0.gir
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libgweather.a
+%{_libdir}/libgweather-3.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libgweather-3.0
This page took 0.199901 seconds and 4 git commands to generate.