Avoid having runtime dep on gtk-doc and other minor spec file cleanups

This commit is contained in:
Kalev Lember 2012-09-25 20:43:39 +02:00
parent b3ff56a755
commit 8f7c7cdbb8

View File

@ -9,7 +9,6 @@ URL: http://www.gnome.org
#VCS: git:git://git.gnome.org/libgweather
Source0: http://download.gnome.org/sources/libgweather/3.6/%{name}-%{version}.tar.xz
BuildRequires: GConf2-devel >= 2.8.0
BuildRequires: dbus-devel
BuildRequires: gtk3-devel >= 2.90.0
BuildRequires: gtk-doc
@ -36,8 +35,6 @@ Group: Development/Libraries
# gnome-applets-devel only had the libgweather-devel parts in it
Obsoletes: gnome-applets-devel < 1:2.21.4-1
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: gtk-doc
%description devel
The %{name}-devel package contains libraries and header files for
@ -61,8 +58,6 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
/sbin/ldconfig
touch --no-create %{_datadir}/icons/gnome &>/dev/null || :
%preun
%postun
/sbin/ldconfig
if [ $1 -eq 0 ]; then
@ -76,7 +71,6 @@ gtk-update-icon-cache -q %{_datadir}/icons/gnome &>/dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libgweather-3.so.*
%{_libdir}/girepository-1.0/GWeather-3.0.typelib
@ -89,7 +83,6 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
%files devel
%defattr(-,root,root,-)
%{_includedir}/libgweather-3.0
%{_libdir}/libgweather-3.so
%{_libdir}/pkgconfig/gweather-3.0.pc