Группа :: Система/Библиотеки
Пакет: libgweather
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ver_major 2.26
%def_disable static
Name: libgweather
Version: %ver_major.2.1
Release: alt1
Summary: A library for weather information
Group: System/Libraries
License: GPLv3
Url: http://www.gnome.org
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# From configure.in
%define gtk_ver 2.11.0
%define glib_ver 2.13.0
%define gconf_ver 2.8.0
%define intltool_ver 0.40.0
%define soup_ver 2.25.1
Requires: %name-data = %version-%release
BuildPreReq: libGConf-devel >= %gconf_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libsoup-gnome-devel >= %soup_ver
BuildPreReq: intltool >= %intltool_ver
BuildPreReq: xsltproc
BuildPreReq: rpm-build-gnome
BuildRequires: gcc-c++ libxml2-devel perl-XML-Parser xml-utils gzip
%description
libgweather is a library to access weather information from online
services for numerous locations.
%package data
Summary: Locations data for %name
Group: System/Libraries
BuildArch: noarch
%description data
libgweather is a library to access weather information from online
services for numerous locations.
This package contains locations data for %name
%package devel
Summary: Development files for %name
Group: Development/GNOME and GTK+
# libgweather used to be part of gnome-applets, and
# gnome-applets-devel only had the libgweather-devel parts in it
Obsoletes: gnome-applets-gweather-devel < %version
Provides: gnome-applets-gweather-devel = %version
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
BuildArch: noarch
Conflicts: %name-devel < %version-%release
%description devel-doc
The %name-devel-doc package contains documentation for
developing applications that use %name.
%prep
%setup -q
%build
%configure \
%{subst_enable static} \
--enable-locations-compression
%make_build
cd po
make %name.pot
for p in *.po; do
msgmerge -U $p %name.pot
done
make
cd ..
%install
%make_install DESTDIR=%buildroot install
%find_lang %name
# do the %%lang tag for the localized xml files
find %buildroot -name Locations.*.xml.gz | sed 's:'"%buildroot"'::
s:\(.*\)/Locations\.\([^.]*\)\.xml.gz:%lang(\2) \1/Locations.\2.xml.gz:' > %name-data.lang
%post
%gconf2_install gweather
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall gweather
fi
%files -f %name.lang
%_libdir/*.so.*
%gconf_schemasdir/*.schemas
%doc AUTHORS ChangeLog NEWS README
%files data -f %name-data.lang
%dir %_datadir/libgweather
%_datadir/libgweather/Locations.xml.gz
%_datadir/libgweather/locations.dtd
%files devel
%_includedir/%name
%_libdir/*.so
%_pkgconfigdir/*
%files devel-doc
%_datadir/gtk-doc/html/*
%changelog
…
Полный changelog можно просмотреть здесь
%def_disable static
Name: libgweather
Version: %ver_major.2.1
Release: alt1
Summary: A library for weather information
Group: System/Libraries
License: GPLv3
Url: http://www.gnome.org
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# From configure.in
%define gtk_ver 2.11.0
%define glib_ver 2.13.0
%define gconf_ver 2.8.0
%define intltool_ver 0.40.0
%define soup_ver 2.25.1
Requires: %name-data = %version-%release
BuildPreReq: libGConf-devel >= %gconf_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libsoup-gnome-devel >= %soup_ver
BuildPreReq: intltool >= %intltool_ver
BuildPreReq: xsltproc
BuildPreReq: rpm-build-gnome
BuildRequires: gcc-c++ libxml2-devel perl-XML-Parser xml-utils gzip
%description
libgweather is a library to access weather information from online
services for numerous locations.
%package data
Summary: Locations data for %name
Group: System/Libraries
BuildArch: noarch
%description data
libgweather is a library to access weather information from online
services for numerous locations.
This package contains locations data for %name
%package devel
Summary: Development files for %name
Group: Development/GNOME and GTK+
# libgweather used to be part of gnome-applets, and
# gnome-applets-devel only had the libgweather-devel parts in it
Obsoletes: gnome-applets-gweather-devel < %version
Provides: gnome-applets-gweather-devel = %version
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
BuildArch: noarch
Conflicts: %name-devel < %version-%release
%description devel-doc
The %name-devel-doc package contains documentation for
developing applications that use %name.
%prep
%setup -q
%build
%configure \
%{subst_enable static} \
--enable-locations-compression
%make_build
cd po
make %name.pot
for p in *.po; do
msgmerge -U $p %name.pot
done
make
cd ..
%install
%make_install DESTDIR=%buildroot install
%find_lang %name
# do the %%lang tag for the localized xml files
find %buildroot -name Locations.*.xml.gz | sed 's:'"%buildroot"'::
s:\(.*\)/Locations\.\([^.]*\)\.xml.gz:%lang(\2) \1/Locations.\2.xml.gz:' > %name-data.lang
%post
%gconf2_install gweather
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall gweather
fi
%files -f %name.lang
%_libdir/*.so.*
%gconf_schemasdir/*.schemas
%doc AUTHORS ChangeLog NEWS README
%files data -f %name-data.lang
%dir %_datadir/libgweather
%_datadir/libgweather/Locations.xml.gz
%_datadir/libgweather/locations.dtd
%files devel
%_includedir/%name
%_libdir/*.so
%_pkgconfigdir/*
%files devel-doc
%_datadir/gtk-doc/html/*
%changelog
…
Полный changelog можно просмотреть здесь