Blame gnome-device-manager.spec

6944b6d
6944b6d
%define hal_version             0.5.10
6944b6d
%define dbus_version            0.90
6944b6d
%define dbus_glib_version       0.70
6944b6d
%define gtk2_version            2.8
6944b6d
%define libgnome_version        2.14
6944b6d
%define libgnomeui_version      2.14
6944b6d
6944b6d
Summary: Graphical Device Manager Application
6944b6d
Name: gnome-device-manager
6944b6d
Version: 0.2
6944b6d
Release: 1%{?dist}
6944b6d
License: LGPLv2+ and GPLv2+
6944b6d
Group: System Environment/Libraries
6944b6d
URL: http://www.freedesktop.org/Software/hal
6944b6d
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.bz2
6944b6d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
6944b6d
BuildRequires: scrollkeeper
6944b6d
BuildRequires: gnome-doc-utils
6944b6d
BuildRequires: desktop-file-utils
6944b6d
BuildRequires: hal-devel >= %{hal_version}
6944b6d
BuildRequires: gtk2-devel >= %{gtk2_version}
6944b6d
BuildRequires: dbus-devel >= %{dbus_version}
6944b6d
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
6944b6d
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
6944b6d
BuildRequires: libgnome-devel >= %{libgnome_version}
6944b6d
BuildRequires: perl(XML::Parser)
6944b6d
Requires: gnome-device-manager-libs = %{version}-%{release}
6944b6d
Requires(post): scrollkeeper
6944b6d
Requires(postun): scrollkeeper
6944b6d
6944b6d
%description
6944b6d
GNOME Device Manager is an application that provides a view of the
6944b6d
various devices connected to the system. 
6944b6d
6944b6d
%package libs
6944b6d
Summary: Libraries for gnome-device-manager
6944b6d
Group: Development/Libraries
6944b6d
Requires: hal >= %{hal_version}
6944b6d
Requires: gtk2 >= %{gtk2_version}
6944b6d
Requires: dbus >= %{dbus_version}
6944b6d
Requires: dbus-glib >= %{dbus_glib_version}
6944b6d
Requires: libgnomeui >= %{libgnomeui_version}
6944b6d
Requires: libgnome >= %{libgnome_version}
6944b6d
6944b6d
# TODO: we most probably requires icons from a host of various other
6944b6d
# applications. This needs to be fixed upstream so we don't fix it
6944b6d
# right here, right now
6944b6d
6944b6d
%description libs
6944b6d
Libraries for gnome-device-manager.
6944b6d
6944b6d
%package devel
6944b6d
Summary: Development files for gnome-device-manager
6944b6d
Group: Development/Libraries
6944b6d
Requires: hal-devel >= %{hal_version}
6944b6d
Requires: gtk2-devel >= %{gtk2_version}
6944b6d
Requires: dbus-devel >= %{dbus_version}
6944b6d
Requires: dbus-glib-devel >= %{dbus_glib_version}
6944b6d
Requires: libgnomeui-devel >= %{libgnomeui_version}
6944b6d
Requires: libgnome-devel >= %{libgnome_version}
6944b6d
Requires: gnome-device-manager = %{version}-%{release}
6944b6d
Requires: pkgconfig
6944b6d
6944b6d
%description devel
6944b6d
Development files for gnome-device-manager.
6944b6d
6944b6d
%prep
6944b6d
%setup -q
6944b6d
6944b6d
%build
6944b6d
%configure
6944b6d
make %{?_smp_mflags}
6944b6d
6944b6d
%install
6944b6d
rm -rf $RPM_BUILD_ROOT
6944b6d
6944b6d
make install DESTDIR=$RPM_BUILD_ROOT
6944b6d
6944b6d
desktop-file-install --vendor gnome --delete-original                        \
6944b6d
                     --dir $RPM_BUILD_ROOT%{_datadir}/applications           \
6944b6d
                     $RPM_BUILD_ROOT%{_datadir}/gnome-device-manager.desktop
6944b6d
6944b6d
6944b6d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
6944b6d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
6944b6d
6944b6d
%find_lang %name --with-gnome
6944b6d
6944b6d
%post
6944b6d
scrollkeeper-update -q
6944b6d
touch --no-create %{_datadir}/icons/hicolor
6944b6d
if [ -x /usr/bin/gtk-update-icon-cache ]; then
6944b6d
    gtk-update-icon-cache -q %{_datadir}/icons/hicolor
6944b6d
fi
6944b6d
6944b6d
%postun
6944b6d
scrollkeeper-update -q
6944b6d
touch --no-create %{_datadir}/icons/hicolor
6944b6d
if [ -x /usr/bin/gtk-update-icon-cache ]; then
6944b6d
    gtk-update-icon-cache -q %{_datadir}/icons/hicolor
6944b6d
fi
6944b6d
6944b6d
%post -p /sbin/ldconfig libs
6944b6d
6944b6d
%postun -p /sbin/ldconfig libs
6944b6d
6944b6d
%post -p /sbin/ldconfig devel
6944b6d
6944b6d
%postun -p /sbin/ldconfig devel
6944b6d
6944b6d
%clean
6944b6d
rm -rf $RPM_BUILD_ROOT
6944b6d
6944b6d
%files  -f %{name}.lang
6944b6d
%defattr(-,root,root,-)
6944b6d
%doc AUTHORS COPYING NEWS README
6944b6d
6944b6d
%{_bindir}/gnome-device-manager
6944b6d
%{_datadir}/applications/gnome-device-manager.desktop
6944b6d
%{_datadir}/icons/hicolor/*/apps/*.png
6944b6d
6944b6d
%files devel
6944b6d
%defattr(-,root,root,-)
6944b6d
%{_libdir}/pkgconfig/*.pc
6944b6d
%{_libdir}/*.so
6944b6d
%{_includedir}/*
6944b6d
6944b6d
%files libs
6944b6d
%defattr(-,root,root,-)
6944b6d
%{_libdir}/*.so.*
6944b6d
6944b6d
%changelog
6944b6d
* Wed Oct 17 2007 David Zeuthen <davidz@redhat.com> - 0.2-1%{?dist}
6944b6d
- Initial build