vte291/vte291.spec

134 lines
4.2 KiB
RPMSpec
Raw Normal View History

2022-04-20 11:37:37 +08:00
%global apiver 2.91
%global fribidi_version 1.0.0
%global glib2_version 2.52.0
%global gnutls_version 3.2.7
%global gtk3_version 3.24.22
2023-02-02 14:42:09 +08:00
%global gtk4_version 4.0.1
2022-04-20 11:37:37 +08:00
%global icu_uc_version 4.8
%global libsystemd_version 220
%global pango_version 1.22.0
%global pcre2_version 10.21
2019-11-19 11:58:07 +08:00
Name: vte291
2023-02-02 14:42:09 +08:00
Version: 0.70.2
2020-12-23 11:37:19 +08:00
Release: 1
2019-11-19 11:58:07 +08:00
Summary: Virtual terminal widget
2022-04-20 11:37:37 +08:00
License: LGPLv3+ and MIT
URL: https://wiki.gnome.org/Apps/Terminal/VTE
2023-02-02 14:42:09 +08:00
Source0: https://download.gnome.org/sources/vte/0.70/vte-%{version}.tar.xz
2022-04-20 11:37:37 +08:00
Patch0: vte291-cntnr-precmd-preexec-scroll.patch
2023-02-02 14:42:09 +08:00
BuildRequires: gcc-c++ gettext gi-docgen gobject-introspection-devel gperf meson systemd vala
2022-04-20 11:37:37 +08:00
BuildRequires: pkgconfig(fribidi) >= %{fribidi_version}
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gnutls) >= %{gnutls_version}
BuildRequires: pkgconfig(gobject-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version}
2023-02-02 14:42:09 +08:00
BuildRequires: pkgconfig(gtk4) >= %{gtk4_version}
2022-04-20 11:37:37 +08:00
BuildRequires: pkgconfig(icu-uc) >= %{icu_uc_version}
BuildRequires: pkgconfig(libpcre2-8) >= %{pcre2_version}
BuildRequires: pkgconfig(libsystemd) >= %{libsystemd_version}
BuildRequires: pkgconfig(pango) >= %{pango_version}
BuildRequires: pkgconfig(zlib)
Requires: fribidi >= %{fribidi_version}
Requires: glib2 >= %{glib2_version}
Requires: gnutls%{?_isa} >= %{gnutls_version}
Requires: gtk3%{?_isa} >= %{gtk3_version}
Requires: libicu%{?_isa} >= %{icu_uc_version}
Requires: pango >= %{pango_version}
Requires: pcre2%{?_isa} >= %{pcre2_version}
Requires: systemd-libs >= %{libsystemd_version}
Requires: vte-profile
2019-11-19 11:58:07 +08:00
Conflicts: gnome-terminal < 3.20.1-2 vte3 < 0.36.1-3
Provides: vte-profile = %{version}-%{release}
Obsoletes: vte-profile < %{version}-%{release}
2023-02-02 14:42:09 +08:00
Provides: vte291-gtk4%{?_isa} = %{version}-%{release}
Provides: vte291-gtk4 = %{version}-%{release}
2019-11-19 11:58:07 +08:00
%description
VTE provides a virtual terminal widget for GTK applications.VTE
is mainly used in gnome-terminal, but can also be used to embed a
console/terminal in games, editors, IDEs, etc.
%package devel
Summary: Development files for %{name}
2022-04-20 11:37:37 +08:00
License: GPLv3+ and LGPLv3+
2019-11-19 11:58:07 +08:00
Requires: %{name} = %{version}-%{release}
2023-02-02 14:42:09 +08:00
Provides: vte291-gtk4-devel%{?_isa} = %{version}-%{release}
Provides: vte291-gtk4-devel = %{version}-%{release}
2019-11-19 11:58:07 +08:00
%description devel
The package contains libraries and header files for developing applications that use vte291.
2022-04-20 11:37:37 +08:00
%package_help
2019-11-19 11:58:07 +08:00
%prep
%autosetup -n vte-%{version} -p1
2020-12-23 11:37:19 +08:00
%if 0%{?flatpak}
# Install user units where systemd macros expect them
sed -i -e "/^vte_systemduserunitdir =/s|vte_prefix|'/usr'|" meson.build
%endif
2019-11-19 11:58:07 +08:00
%build
2023-02-02 14:42:09 +08:00
%meson --buildtype=plain -Ddocs=true -Dgtk3=true -Dgtk4=true
2020-12-23 11:37:19 +08:00
%meson_build
2019-11-19 11:58:07 +08:00
%install
2020-12-23 11:37:19 +08:00
%meson_install
2019-11-19 11:58:07 +08:00
2022-04-20 11:37:37 +08:00
%find_lang vte-%{apiver}
%files -f vte-%{apiver}.lang
%license COPYING.LGPL3
%license COPYING.XTERM
%{_libdir}/libvte-%{apiver}.so.0*
2023-02-02 14:42:09 +08:00
%{_libdir}/libvte-%{apiver}-gtk4.so.0*
2019-11-19 11:58:07 +08:00
%{_libdir}/girepository-1.0/
2020-12-23 11:37:19 +08:00
%{_libexecdir}/vte-urlencode-cwd
%{_sysconfdir}/profile.d/vte.csh
2022-04-20 11:37:37 +08:00
%{_sysconfdir}/profile.d/vte.sh
%{_userunitdir}/vte-spawn-.scope.d
2019-11-19 11:58:07 +08:00
%files devel
2023-02-02 14:42:09 +08:00
%license COPYING.GPL3
2022-04-20 11:37:37 +08:00
%{_bindir}/vte-%{apiver}
2023-02-02 14:42:09 +08:00
%{_bindir}/vte-%{apiver}-gtk4
2022-04-20 11:37:37 +08:00
%{_includedir}/vte-%{apiver}/
2023-02-02 14:42:09 +08:00
%{_includedir}/vte-%{apiver}-gtk4/
2022-04-20 11:37:37 +08:00
%{_libdir}/libvte-%{apiver}.so
2023-02-02 14:42:09 +08:00
%{_libdir}/libvte-%{apiver}-gtk4.so
2022-04-20 11:37:37 +08:00
%{_libdir}/pkgconfig/vte-%{apiver}.pc
2023-02-02 14:42:09 +08:00
%{_libdir}/pkgconfig/vte-%{apiver}-gtk4.pc
2019-11-19 11:58:07 +08:00
%{_datadir}/gir-1.0/
2022-04-20 11:37:37 +08:00
%{_datadir}/glade/
2019-11-19 11:58:07 +08:00
%{_datadir}/vala/
2022-04-20 11:37:37 +08:00
%files help
%doc README.md
2023-02-02 14:42:09 +08:00
%doc %{_datadir}/doc/vte-2.91/
%doc %{_datadir}/doc/vte-2.91-gtk4/
2022-04-20 11:37:37 +08:00
2019-11-19 11:58:07 +08:00
%changelog
2023-02-02 14:42:09 +08:00
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.70.2-1
- Upgrade to 0.70.2
2022-04-20 11:37:37 +08:00
* Wed Apr 20 2022 dillon chen <dillon.chen@gmail.com> - 0.68.0-1
- Update to 0.68.0
* Mon May 24 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.62.3-1
- Upgrade to 0.62.3
- Update Version, uncorrect date
2020-12-23 11:37:19 +08:00
* Tue Dec 22 2020 huanghaitao <huanghaitao8@huawei.com> - 0.62.1-1
- Updata to 0.62.1
* Fri Jun 19 2020 wangyue <wangyue92@huawei.com> - 0.54.1-5
- DESC:Make binding tests compile without warning
2019-11-19 11:58:07 +08:00
* Mon Oct 21 2019 Lijin Yang <yanglijin@huawei.com> - 0.54.1-4
- Package init