3 %bcond_with gtk3 # build GTK+3 disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: LXTerminal is the standard terminal emulator of LXDE
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5: fd9140b45c0f28d021253c4aeb8c4aea
18 Patch0: wordseps.patch
19 URL: http://wiki.lxde.org/en/LXTerminal
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: gettext-devel
23 BuildRequires: gtk+2-devel
24 %{?with_gtk2:BuildRequires: gtk+2-devel}
25 %{?with_gtk3:BuildRequires: gtk+3-devel}
26 BuildRequires: intltool
27 BuildRequires: libtool
28 BuildRequires: perl-XML-Parser
29 BuildRequires: pkgconfig
30 %{?with_gtk3:BuildRequires: vte-devel}
31 %{?with_gtk2:BuildRequires: vte0-devel}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 LXTerminal is the standard terminal emulator of LXDE.
41 %{__sed} -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac
50 --disable-silent-rules \
51 %{?with_gtk3:--enable-gtk3}
55 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
61 # unsupported by glibc
62 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/frp
64 mv $RPM_BUILD_ROOT%{_localedir}/tt{_RU,}
69 rm -rf $RPM_BUILD_ROOT
71 %files -f %{name}.lang
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog NEWS README
74 %attr(755,root,root) %{_bindir}/%{name}
75 %{_desktopdir}/%{name}.desktop
76 %{_mandir}/man1/%{name}*
77 %{_pixmapsdir}/%{name}.png