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.xz
17 # Source0-md5: 91febe1ec15297844333cb70f237b4b7
18 Patch0: wordseps.patch
19 URL: http://wiki.lxde.org/en/LXTerminal
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: gettext-tools
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
51 --disable-silent-rules \
52 %{?with_gtk3:--enable-gtk3}
56 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
62 # unsupported by glibc
63 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/frp
65 mv $RPM_BUILD_ROOT%{_localedir}/tt{_RU,}
70 rm -rf $RPM_BUILD_ROOT
72 %files -f %{name}.lang
73 %defattr(644,root,root,755)
74 %doc AUTHORS ChangeLog NEWS
75 %attr(755,root,root) %{_bindir}/%{name}
76 %{_desktopdir}/%{name}.desktop
77 %{_mandir}/man1/%{name}*
78 %{_iconsdir}/hicolor/128x128/apps/%{name}.png