880ef35c26f44e52df91701162c764e98ddb3c06
[packages/gnome-terminal.git] / gnome-terminal.spec
1 #
2 # Conditional build:
3 %bcond_without  nautilus        # Nautilus extension
4 %bcond_without  transparency
5
6 Summary:        GNOME Terminal
7 Summary(pl.UTF-8):      Terminal dla GNOME
8 Name:           gnome-terminal
9 Version:        3.20.2
10 Release:        1
11 License:        GPL v3+
12 Group:          X11/Applications
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-terminal/3.20/%{name}-%{version}.tar.xz
14 # Source0-md5:  8a450458cb833741cf52267d4a208f9a
15 Patch0:         %{name}-desktop.patch
16 Patch1:         bug-730632.patch
17 Patch2:         wordseps.patch
18 Patch3:         %{name}-transparency.patch
19 URL:            http://www.gnome.org/
20 BuildRequires:  GConf2-devel >= 2.32.0
21 BuildRequires:  autoconf >= 2.53
22 BuildRequires:  automake >= 1:1.9
23 BuildRequires:  dconf-devel >= 0.14
24 BuildRequires:  docbook-dtd412-xml
25 BuildRequires:  gettext-tools
26 BuildRequires:  glib2-devel >= 1:2.40.0
27 BuildRequires:  gnome-common
28 BuildRequires:  gnome-shell-devel >= 3.12.0
29 BuildRequires:  gsettings-desktop-schemas-devel >= 0.1.0
30 BuildRequires:  gtk+3-devel >= 3.10.0
31 BuildRequires:  intltool >= 0.50.0
32 BuildRequires:  libtool
33 BuildRequires:  libuuid-devel
34 BuildRequires:  libxml2-progs
35 %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0}
36 BuildRequires:  pkgconfig >= 1:0.12.0
37 BuildRequires:  rpmbuild(find_lang) >= 1.23
38 BuildRequires:  rpmbuild(macros) >= 1.197
39 BuildRequires:  tar >= 1:1.22
40 BuildRequires:  vte-devel >= 0.42.1
41 BuildRequires:  xz
42 BuildRequires:  yelp-tools
43 Requires(post,postun):  glib2 >= 1:2.40.0
44 Requires:       dconf >= 0.14
45 Requires:       glib2 >= 1:2.40.0
46 Requires:       gsettings-desktop-schemas >= 0.1.0
47 Requires:       gtk+3 >= 3.10.0
48 Requires:       terminfo
49 Requires:       vte >= 0.42.1
50 # sr@Latn vs. sr@latin
51 Conflicts:      glibc-misc < 6:2.7
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 This is a terminal thing that isn't finished at all.
56
57 %description -l pl.UTF-8
58 To jest terminal, na razie całkowicie nie dokończony.
59
60 %package -n nautilus-extension-terminal
61 Summary:        GNOME Terminal extension for Nautilus
62 Summary(pl.UTF-8):      Rozszerzenie GNOME Terminal dla Nautilusa
63 Group:          X11/Applications
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       nautilus >= 3.0.0
66 Obsoletes:      nautilus-open-terminal < 0.20-2
67
68 %description -n nautilus-extension-terminal
69 This package provides a Nautilus extension that adds the 'Open in
70 Terminal' option to the right-click context menu in Nautilus.
71
72 %description -n nautilus-extension-terminal -l pl.UTF-8
73 Ten pakiet dostarcza rozszerzenie Nautilusa dodające opcję "Otwórz w
74 terminalu" do menu kontekstowego uaktywnianego prawym klawiszem myszy
75 w Nautilusie.
76
77 %prep
78 %setup -q
79 #%patch0 -p1
80 #%patch1 -p1
81 #%patch2 -p1
82 %{?with_transparency:%patch3 -p1}
83
84 %build
85 %{__intltoolize}
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --disable-silent-rules \
93         --disable-static \
94         %{?with_nautilus:--with-nautilus-extension}
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT \
103         localedir=%{_localedir}
104
105 %if %{with nautilus}
106 %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.la
107 %endif
108
109 %find_lang %{name} --with-gnome --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post
115 %glib_compile_schemas
116
117 %postun
118 if [ "$1" = "0" ]; then
119     %glib_compile_schemas
120 fi
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS
125 %attr(755,root,root) %{_bindir}/gnome-terminal
126 %attr(755,root,root) %{_libdir}/gnome-terminal-migration
127 %attr(755,root,root) %{_libdir}/gnome-terminal-server
128 %{_datadir}/appdata/org.gnome.Terminal.Nautilus.appdata.xml
129 %{_datadir}/appdata/org.gnome.Terminal.appdata.xml
130 %{_datadir}/dbus-1/services/org.gnome.Terminal.service
131 %{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml
132 %{_datadir}/gnome-shell/search-providers/gnome-terminal-search-provider.ini
133 %{_desktopdir}/org.gnome.Terminal.desktop
134 %{systemduserunitdir}/gnome-terminal-server.service
135
136 %if %{with nautilus}
137 %files -n nautilus-extension-terminal
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so
140 %endif
This page took 0.320934 seconds and 2 git commands to generate.