krusader/krusader.spec
Stephan Kulow 1f5ec805eb Accepting request 92959 from KDE:Distro:Factory
- Require kate as this is needed at runtime for the view and edit
  dialog (bnc#712179) (forwarded request 92947 from christiantrippe)

OBS-URL: https://build.opensuse.org/request/show/92959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/krusader?expand=0&rev=36
2011-11-22 16:47:38 +00:00

120 lines
3.2 KiB
RPMSpec

#
# spec file for package krusader
#
# 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/
#
%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))
Name: krusader
Version: 2.0.0
Release: 20
License: GPLv2+
Summary: A File Manager
Url: http://krusader.sourceforge.net/
Group: Productivity/File utilities
Source: %{name}-%{version}.tar.bz2
Source1: krusader_browse_iso.desktop
Patch0: FIXME.diff
Patch1: krusader-gcc44.diff
Patch2: krusader-link-solid.patch
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: libkde4-devel
Requires: kate
Requires: kio_iso = %{version}
Recommends: %{name}-doc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
An advanced twin panel (commander style) file manager for KDE.
%package -n kio_iso
License: GPLv2+
Summary: KIO slave to access ISO images
Group: System/GUI/KDE
Provides: kde4-kio_iso = 1.80.99
Obsoletes: kde4-kio_iso < 1.80.99
%kde4_runtime_requires
%description -n kio_iso
KIO slave to access ISO images like zip- or tar.gz-archives in your
file-browser.
%package doc
License: GPLv2+
Summary: A File Manager
Group: Productivity/File utilities
%description doc
An advanced twin panel (commander style) file manager for KDE.
%prep
%setup -q
%patch0
%patch1
%patch2
mv po/sr\@Latn.po po/sr\@latin.po
for file in doc/en/*.docbook;
do
dos2unix $file
done
%build
export RPM_OPT_FLAGS="%{optflags} -fpermissive"
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%make_install
popd
mkdir -p %{buildroot}%{_kde4_servicesdir}/ServiceMenus/
cp %{SOURCE1} %{buildroot}%{_kde4_servicesdir}/ServiceMenus/
%suse_update_desktop_file krusader_root-mode FileManager Utility
%kde_post_install
%find_lang %{name}
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog TODO SVNNEWS
%{_kde4_applicationsdir}/krusader*.desktop
%{_kde4_appsdir}/krusader
%{_kde4_bindir}/krusader
%{_kde4_iconsdir}/??color/*/apps/krusader*.png
%{_kde4_modules}/kio_krarc.so
%{_kde4_servicesdir}/krarc.protocol
%exclude %{_kde4_htmldir}/en/krusader
%files -n kio_iso
%defattr(-,root,root)
%config %{_kde4_configdir}/kio_isorc
%{_kde4_modules}/kio_iso.so*
%{_kde4_servicesdir}/iso.protocol
%{_kde4_servicesdir}/ServiceMenus/krusader_browse_iso.desktop
%files doc
%defattr(-,root,root)
%doc %lang(en) %{_kde4_htmldir}/en/krusader
%changelog