0e1fca0
%if (0%{?fedora} && 0%{?fedora} < 19)  || (0%{?rhel} && 0%{?rhel} < 7)
a57c3d8
%global with_desktop_vendor_tag 1
a57c3d8
%endif
a57c3d8
24ffef4
%global git_snapshot 1
24ffef4
24ffef4
%if 0%{?git_snapshot}
cb52c31
%global git_rev  802919215c95bc2e03f3e16cf9ba39f414350144
cb52c31
%global git_date 20160809
24ffef4
%global git_short %(echo %{git_rev} | cut -c-8)
24ffef4
%global git_version D%{git_date}git%{git_short}
24ffef4
%endif
24ffef4
8314c8b
Name:           lxterminal
45a8e42
Version:        0.2.0
cb52c31
Release:        6%{?git_version:.%{?git_version}}%{?dist}
8314c8b
Summary:        Desktop-independent VTE-based terminal emulator
f7d918a
Summary(de):    Desktop-unabhängiger VTE-basierter Terminal Emulator
8314c8b
8314c8b
Group:          User Interface/Desktops
8314c8b
License:        GPLv2+
8314c8b
URL:            http://lxde.sourceforge.net/
24ffef4
%if 0%{?git_snapshot}
24ffef4
Source0:        %{name}-%{version}-%{?git_version}.tar.bz2
24ffef4
%else
8314c8b
Source0:        http://downloads.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.gz
24ffef4
%endif
24ffef4
# Shell script to create tarball from git scm
24ffef4
Source100:      create-tarball-from-git.sh
8314c8b
24ffef4
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.18.0
24ffef4
BuildRequires:	pkgconfig(glib-2.0) >= 2.6.0
24ffef4
BuildRequires:	pkgconfig(x11)
24ffef4
BuildRequires:	pkgconfig(vte)
24ffef4
24ffef4
BuildRequires:	%{_bindir}/xsltproc
24ffef4
BuildRequires:	docbook-utils
24ffef4
BuildRequires:	docbook-style-xsl
24ffef4
24ffef4
BuildRequires:	desktop-file-utils
24ffef4
BuildRequires:	intltool
24ffef4
BuildRequires:	gettext
24ffef4
24ffef4
%if 0%{?git_snapshot}
24ffef4
BuildRequires:  automake
24ffef4
BuildRequires:  libtool
24ffef4
%endif
8314c8b
8314c8b
%description
8314c8b
LXterminal is a VTE-based terminal emulator with support for multiple tabs. 
8314c8b
It is completely desktop-independent and does not have any unnecessary 
8314c8b
dependencies. In order to reduce memory usage and increase the performance 
8314c8b
all instances of the terminal are sharing a single process.
8314c8b
8314c8b
%description -l de
8314c8b
LXTerminal ist ein VTE-basierter Terminalemulator mit Unterstützung für 
8314c8b
mehrere Reiter. Er ist komplett desktop-unabhängig und hat keine unnötigen 
8314c8b
Abhängigkeiten. Um den Speicherverbrauch zu reduzieren und die Leistung zu
8314c8b
erhöhen teilen sich alle Instanzen des Terminals einen einzigen Prozess.
8314c8b
8314c8b
%prep
24ffef4
%setup -q %{?git_version:-n %{name}-%{version}-%{?git_version}}
fb3562c
8314c8b
%build
24ffef4
%{?git_version:sh autogen.sh}
24ffef4
45a8e42
%configure \
45a8e42
	--enable-man \
45a8e42
	--disable-silent-rules \
45a8e42
	%{nil}
45a8e42
8314c8b
make %{?_smp_mflags}
8314c8b
8314c8b
%install
088d1d5
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
24ffef4
a57c3d8
desktop-file-install \
0e1fca0
%if 0%{?with_desktop_vendor_tag}
a57c3d8
  --vendor fedora \
a57c3d8
%endif
8314c8b
  --delete-original                                        \
8314c8b
  --remove-category=Utility                                \
8314c8b
  --add-category=System                                    \
8314c8b
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications          \
8314c8b
  ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
8314c8b
%find_lang %{name}
8314c8b
45a8e42
%post
45a8e42
touch --no-create %{_datadir}/icons/hicolor/ &>/dev/null || :
45a8e42
45a8e42
%postun
45a8e42
if [ $1 -eq 0 ] ; then
45a8e42
   touch --no-create %{_datadir}/icons/hicolor &>/dev/null
45a8e42
   gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
45a8e42
fi
45a8e42
af1f9a2
%posttrans
45a8e42
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8314c8b
8314c8b
8314c8b
%files -f %{name}.lang
24ffef4
%doc	AUTHORS
24ffef4
%license	COPYING
24ffef4
%doc	README
8314c8b
%{_bindir}/%{name}
8314c8b
%{_datadir}/%{name}/
a57c3d8
%{_datadir}/applications/*%{name}.desktop
45a8e42
%{_datadir}/icons/hicolor/*/apps/%{name}.png
8314c8b
%{_mandir}/man1/%{name}*.1.gz
8314c8b
8314c8b
8314c8b
%changelog
cb52c31
* Wed Aug 10 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.0-6.D20160809git80291921
cb52c31
- Update to the latest git
cb52c31
  - https://github.com/lxde/lxterminal/pull/21
cb52c31
  - https://github.com/lxde/lxterminal/issues/20
cb52c31
1d4846b
* Thu Aug  4 2016 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.0-5.D20160607gitd4014424
1d4846b
- Try the latest git
1d4846b
6639430
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4.D20151126gitbe658ad3
6639430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6639430
24ffef4
* Sun Nov 29 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.0-3.D20151126gitbe658ad3
24ffef4
- Try the latest git
24ffef4
af1f9a2
* Thu Jul 23 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.0-2
af1f9a2
- Fix scriptlet
af1f9a2
45a8e42
* Thu Jun 18 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.2.0-1
45a8e42
- 0.2.0
45a8e42
9a746c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-11
9a746c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9a746c9
c132727
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-10
c132727
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c132727
046fb09
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-9
046fb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
046fb09
3359d1d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-8
3359d1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3359d1d
0e1fca0
* Wed Jun 26 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.1.11-7
0e1fca0
- Really drop desktop vendor tag.
0e1fca0
a57c3d8
* Fri Apr 26 2013 Jon Ciesla <limburgher@gmail.com> - 0.1.11-6
a57c3d8
- Drop desktop vendor tag.
a57c3d8
96f0915
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-5
96f0915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
96f0915
ae6fc38
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-4
ae6fc38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae6fc38
6a8caa1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.11-3
6a8caa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6a8caa1
007b62c
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.1.11-2
007b62c
- Rebuild for new libpng
007b62c
b79f61e
* Tue Aug 30 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.11-1
b79f61e
- Update to 0.1.11
16fd779
- Remove upstreamed vte patch
b79f61e
4586121
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-2
4586121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4586121
fb3562c
* Wed Sep 01 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.9-1
fb3562c
- Update to 0.1.9
8a12fc9
- Add patch for vte >= 0.20.0
fb3562c
f7d918a
* Mon Jul 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.8-1
f7d918a
- Update to 0.1.8
f7d918a
- Drop all previous patches, they are part of 0.1.8
f7d918a
- Update German translation
f7d918a
992f98c
* Thu May 27 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.7-2
992f98c
- Major code rework from git (fixes #571591 and 596358)
992f98c
064d81a
* Wed Mar 03 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.7-1
064d81a
- Update to 0.1.7
064d81a
6e17f1c
* Wed Feb 17 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.6-3
6e17f1c
- Add patch to fix DSO linking (#564717)
6e17f1c
59d3b5e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
59d3b5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
59d3b5e
e9895f0
* Sat Jul 11 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.6-1
e9895f0
- Update to 0.1.6
e9895f0
- Remove missing-icons.patch, changes got upstreamed
e9895f0
40fdff6
* Tue Jun 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.5-2
40fdff6
- Rebuilt for libvte SONAME bump
d0b63de
40fdff6
* Wed May 20 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.5-1
fad0e1e
- Update to 0.1.5
fad0e1e
- Fix icon for Info menu entry
fad0e1e
b71ebab
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
b71ebab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b71ebab
40fdff6
* Fri Dec 26 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.4-1
fad0e1e
- Update to 0.1.4
e7d715e
40fdff6
* Sat Jun 28 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.3-1
8314c8b
- Update to 0.1.3
8314c8b
- Add the new manpage
8314c8b
40fdff6
* Fri Jun 20 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.2-1
8314c8b
- Initial Fedora package