LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File krusader.spec of Package krusader (Project openSUSE:11.4)

#
# spec file for package krusader (Version 2.0.0)
#
# Copyright (c) 2010 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/
#

# norootforbuild

%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))

Name:           krusader
Version:        2.0.0
Release:        14
License:        GPLv2+
Group:          Productivity/File utilities
Url:            http://krusader.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Source1:        krusader_browse_iso.desktop
Patch:          FIXME.diff
Patch1:         krusader-gcc44.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  dos2unix fdupes libkde4-devel update-desktop-files
Requires:       kio_iso = %{version}
Recommends:     %{name}-doc
Summary:        A File Manager
%kde4_runtime_requires

%description
An advanced twin panel (commander style) file manager for KDE.



Authors:
--------
    Shie Erlich <krusader@users.sourceforge.net>
    Rafi Yanai  <krusader@users.sourceforge.net>

%package -n kio_iso
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KIO slave to access ISO images
Provides:       kde4-kio_iso = 1.80.99
Obsoletes:      kde4-kio_iso <= 1.80.99

%description -n kio_iso
KIO slave to access ISO images like zip- or tar.gz-archives in your
file-browser.



Authors:
--------
    Szombathelyi Gygy <gyurco@users.sourceforge.net>

%package doc
License:        GPLv2+
Group:          Productivity/File utilities
Summary:        A File Manager

%description doc
An advanced twin panel (commander style) file manager for KDE.



Authors:
--------
    Shie Erlich <krusader@users.sourceforge.net>
    Rafi Yanai  <krusader@users.sourceforge.net>

%prep
%setup -q
%patch
%patch1
mv po/sr\@Latn.po po/sr\@latin.po
for file in doc/en/*.docbook;
do
	dos2unix $file
done

%build
%cmake_kde4 -d build
%make_jobs

%install
pushd build
%makeinstall
popd
%suse_update_desktop_file krusader_root-mode FileManager Utility
%kde_post_install
%find_lang %{name}
mkdir -p %{buildroot}%{_kde_share_dir}/services/ServiceMenus/
cp %{SOURCE1} %{buildroot}%{_kde_share_dir}/services/ServiceMenus/
%fdupes %{buildroot}

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog INSTALL TODO SVNNEWS
%{_bindir}/krusader
%exclude %{_datadir}/doc/kde/HTML/en/krusader
%{_kde_share_dir}/apps/krusader
%{_kde_share_dir}/services/krarc.protocol
%{_kde4_modules}/kio_krarc.so
%{_datadir}/applications/kde4/krusader*.desktop
%{_datadir}/icons/??color/*/apps/krusader*.png

%files -n kio_iso
%defattr(-,root,root)
%config %{_datadir}/kde4/config/kio_isorc
%{_kde4_modules}/kio_iso.so*
%{_kde_share_dir}/services/iso.protocol
%{_kde_share_dir}/services/ServiceMenus/krusader_browse_iso.desktop

%files doc
%defattr(-,root,root)
%doc %lang(en) %{_datadir}/doc/kde/HTML/en/krusader

%changelog