File thunar-vfs.spec of Package thunar-vfs

#
# spec file for package thunar-vfs
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           thunar-vfs
Version:        1.2.0
Release:        1
License:        LGPLv2+
Summary:        Thunar 1.0 VFS Compatibility Library
Url:            http://thunar.xfce.org/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
Source100:      %{name}-rpmlintrc
Patch0:         thunar-vfs-1.1.1-do-not-hardcode-docdir.patch
BuildRequires:  freetype2-devel
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(hal-storage)
BuildRequires:  fam-devel
BuildRequires:  xfce4-dev-tools
BuildRequires:  gtk-doc
Recommends:     %{name}-lang = %{version}
Requires:       libthunar-vfs-1-2 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides a compatibility library and helpers for applications
which still make use of the VFS implementation shipped with Thunar 1.0.

This package provides helpers and documentation for thunar-vfs.

%package -n libthunar-vfs-1-2
License:        LGPLv2+
Summary:        Thunar 1.0 VFS Compatibility Library
Group:          System/Libraries

%description -n libthunar-vfs-1-2
This package provides a compatibility library and helpers for applications
which still make use of the VFS implementation shipped with Thunar 1.0.

%package devel
License:        LGPLv2+
Summary:        Development Files for thunar-vfs
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This package provides a compatibility library and helpers for applications
which still make use of the VFS implementation shipped with Thunar 1.0.

This package provides development files for developing applications based on
thunar-vfs.


%lang_package
%prep
%setup -q
%patch0 -p1

%build
xdt-autogen
%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags} V=1

%install
%make_install
install -D -p -m 644 ChangeLog README COPYING docs/README.volumes \
    %{buildroot}%{_defaultdocdir}/%{name}
rm %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang thunar-vfs

%clean
rm -rf %{buildroot}

%post -n libthunar-vfs-1-2 -p /sbin/ldconfig

%postun -n libthunar-vfs-1-2 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%dir %{_libdir}/thunar-vfs-1
%{_libdir}/thunar-vfs-1/thunar-vfs-font-thumbnailer-1
%{_libdir}/thunar-vfs-1/thunar-vfs-mime-cleaner-1
%{_libdir}/thunar-vfs-1/thunar-vfs-pixbuf-thumbnailer-1
%{_libdir}/thunar-vfs-1/thunar-vfs-update-thumbnailers-cache-1
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/thunar-vfs-font-thumbnailer-1.desktop

%files -n libthunar-vfs-1-2
%defattr(-,root,root)
%{_libdir}/libthunar-vfs-1.so.2
%{_libdir}/libthunar-vfs-1.so.2.3.1

%files lang -f thunar-vfs.lang

%files devel
%defattr(-,root,root)
%{_includedir}/thunar-vfs-1
%{_libdir}/libthunar-vfs-1.so
%{_libdir}/pkgconfig/thunar-vfs-1.pc
%doc %{_datadir}/gtk-doc/html/thunar-vfs

%changelog
openSUSE Build Service is sponsored by