File Terminal.spec of Package Terminal
#
# spec file for package Terminal
#
# 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: Terminal
Version: 0.4.8
Release: 1
License: GPLv2+
Summary: Terminal emulator for the Xfce desktop environment
Url: http://goodies.xfce.org/projects/applications/terminal
Group: System/X11/Terminals
Source0: %{name}-%{version}.tar.bz2
Source1: %name-rpmlintrc
# PATCH-FIX-UPSTREAM Terminal-0.4.8-fix-help.patch gber@opensuse.org -- Fix help by making sure there is no trailing '#' in URLs which make exo-helper-1 choke
Patch0: Terminal-0.4.8-fix-help.patch
BuildRequires: intltool
BuildRequires: libpng-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: exo-devel
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(vte)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: xfce4-dev-tools
BuildRequires: startup-notification
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang = %{version}
Recommends: %{name}-doc = %{version}
%description
Terminal is a lightweight and easy to use terminal emulator for the Xfce
desktop environment. Its major features include a simple configuration
interface, the ability to use multiple tabs with terminals within a single
window, the possibility to have a pseudo-transparent terminal background, and a
compact mode where both the menubar and the window decorations are hidden which
helps to save space on the desktop.
%package doc
License: GPLv2+
Group: Documentation/HTML
Summary: Documentation for Terminal
BuildArch: noarch
Requires: %{name} = %{version}
%description doc
This package contains the documentation for Terminal.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
xdt-autogen
%configure --docdir=%{_datadir}/xfce4/Terminal/html
make %{?_smp_mflags} V=1
%install
%makeinstall
%fdupes %{buildroot}/%{_mandir}
%suse_update_desktop_file -i Terminal System TerminalEmulator Utility
rm %{buildroot}%{_datadir}/pixmaps/terminal.xpm
# create terminal -> Terminal symlinks
for manpage in %{buildroot}%{_mandir}/*/man1/Terminal.1* \
%{buildroot}%{_mandir}/man1/Terminal.1*; do
( cd "${manpage%/*}" && \
ln -sf "${manpage##*/}" \
"$(printf "%s\n" "${manpage##*/}" | tr [:upper:] [:lower:])" )
done
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc README ChangeLog COPYING AUTHORS HACKING NEWS THANKS
%{_bindir}/Terminal
%{_bindir}/terminal
%dir %{_datadir}/Terminal
%{_datadir}/Terminal/*ui
%{_datadir}/Terminal/Terminal.glade
%{_datadir}/applications/Terminal.desktop
%dir %{_datadir}/icons/hicolor/*
%{_datadir}/icons/hicolor/*/*/
%dir %{_datadir}/gnome-control-center
%dir %{_datadir}/gnome-control-center/default-apps
%{_datadir}/gnome-control-center/default-apps/Terminal-default-apps.xml
%dir %{_mandir}/ca
%dir %{_mandir}/da
%dir %{_mandir}/el
%dir %{_mandir}/gl
%dir %{_mandir}/id
%dir %{_mandir}/pt
%dir %{_mandir}/ru
%dir %{_mandir}/ug
%dir %{_mandir}/sv
%dir %{_mandir}/zh_CN
%doc %{_mandir}/*/*
%files doc
%defattr(-,root,root)
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/Terminal
%doc %{_datadir}/xfce4/Terminal/html/
%files lang -f %{name}.lang
%changelog