]> git.pld-linux.org Git - packages/lxterminal.git/blob - lxterminal.spec
ae23ec513ebaf26ce8210cd5da96b2edce27d637
[packages/lxterminal.git] / lxterminal.spec
1 #
2 # Conditional build:
3 %bcond_with             gtk3            # build GTK+3 disables GTK+2
4 %bcond_without          gtk2    # build with GTK+2
5
6 %if %{with gtk3}
7 %undefine       with_gtk2
8 %endif
9
10 Summary:        LXTerminal is the standard terminal emulator of LXDE
11 Name:           lxterminal
12 Version:        0.1.11
13 Release:        5
14 License:        GPL v2
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)
33
34 %description
35 LXTerminal is the standard terminal emulator of LXDE.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 %build
42 %{__libtoolize}
43 %{__aclocal}
44 %{__autoheader}
45 %{__autoconf}
46 %{__intltoolize}
47 %configure \
48         --disable-silent-rules \
49         %{?with_gtk3:--enable-gtk3}
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 # duplicate of ur
58 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
59 # unsupported by glibc
60 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/frp
61
62 mv $RPM_BUILD_ROOT%{_localedir}/tt{_RU,}
63
64 %find_lang %{name}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files -f %{name}.lang
70 %defattr(644,root,root,755)
71 %doc AUTHORS ChangeLog NEWS README
72 %attr(755,root,root) %{_bindir}/%{name}
73 %{_desktopdir}/%{name}.desktop
74 %{_mandir}/man1/%{name}*
75 %{_pixmapsdir}/%{name}.png
76 %{_datadir}/%{name}
This page took 0.095966 seconds and 2 git commands to generate.