Пакет lxde-lxterminal: Specfile

%define upstreamname lxterminal
%define gtkver 3
Name: lxde-lxterminal
Version: 0.4.0
Release: alt1

Summary: Desktop-independent VTE-based terminal emulator for LXDE
License: GPLv2+
Group: Graphical desktop/Other
Url: https://github.com/lxde/lxterminal.git

Packager: LXDE Development Team <lxde at packages.altlinux.org>

Source: %name-%version.tar
Patch: lxterminal-0-1-11-f10-true.patch

BuildRequires: libgtk+%gtkver-devel docbook-dtds docbook-style-xsl xsltproc intltool desktop-file-utils pkgconfig(glib-2.0) pkgconfig(x11) ImageMagick-tools
BuildRequires: libpcre2-devel
%if %gtkver==3
BuildRequires: libvte3-devel
%else
BuildRequires: libvte-devel
%endif

%description
%summary  without any unnecessary dependency (All instances share the same
process to reduce memory usage)

%prep
%setup -n %name-%version
%patch -p2

%build
%autoreconf
%configure \
    --enable-man \
%if %gtkver==3
    --enable-gtk3
%endif

%make_build

%install
%makeinstall_std
%find_lang %upstreamname
desktop-file-install --dir %buildroot%_desktopdir \
    --remove-category=Utility \
    --add-category=System \
    %buildroot%_desktopdir/lxterminal.desktop

for x in 16 32 48; do
    mkdir -p %buildroot%_iconsdir/hicolor/$x'x'$x/apps
    convert %buildroot%_iconsdir/hicolor/128x128/apps/%upstreamname.png -resize $x'x'$x \
            %buildroot%_iconsdir/hicolor/$x'x'$x/apps/%upstreamname.png
done

%files -f %upstreamname.lang
%doc ChangeLog INSTALL README.md
%_bindir/*
%_desktopdir/*.desktop
%_datadir/%upstreamname
%_man1dir/*
%_iconsdir/hicolor/*/apps/%upstreamname.png

%changelog
* Sun Jun 13 2021 Anton Midyukov <antohami@altlinux.org> 0.4.0-alt1
- new version 0.4.0
- update URL tag

* Thu Mar 21 2019 Anton Midyukov <antohami@altlinux.org> 0.3.2-alt1
- new version 0.3.2

* Thu Sep 20 2018 Anton Midyukov <antohami@altlinux.org> 0.3.1-alt4.20180916
- new snapshot

* Tue May 01 2018 Anton Midyukov <antohami@altlinux.org> 0.3.1-alt3
- rebuilt with gtk3, vte3

* Thu Mar 22 2018 Anton Midyukov <antohami@altlinux.org> 0.3.1-alt2
- Fix buildrequires

* Sat Nov 18 2017 Anton Midyukov <antohami@altlinux.org> 0.3.1-alt1
- New version 0.3.1

* Wed Jan 11 2017 Anton Midyukov <antohami@altlinux.org> 0.3.0-alt1
- New version 0.3.0

* Tue May 17 2016 Anton Midyukov <antohami@altlinux.org> 0.2.0-alt1.20160221.1
- New snapshot.

* Tue Jun 12 2012 Radik Usupov <radik@altlinux.org> 0.1.11-alt3
- new upstreame snapshot

* Thu Sep 22 2011 Radik Usupov <radik@altlinux.org> 0.1.11-alt2
- F10 included to default

* Tue Aug 30 2011 Radik Usupov <radik@altlinux.org> 0.1.11-alt1
- 0.1.9
- moved files to folder

* Tue May 24 2011 Repocop Q. A. Robot <repocop@altlinux.org> 0.1.9-alt1.qa1
- NMU (by repocop). See http://www.altlinux.org/Tools/Repocop
- applied repocop fixes:
  * freedesktop-desktop-file-proposed-patch for lxde-lxterminal

* Sat Oct 16 2010 Radik Usupov <radik@altlinux.org> 0.1.9-alt1
- 0.1.9

* Sun Aug 08 2010 Radik Usupov <radik@altlinux.org> 0.1.8-alt1
- 0.1.8
- change packager

* Fri May 28 2010 Radik Usupov <radik@altlinux.org> 0.1.7-alt4
- buildrequires are corrected
- added autoreconf -fisv parameters
- added --enable-man fot %configure parameters
- closed #23524

* Tue May 25 2010 Radik Usupov <radik@altlinux.org> 0.1.7-alt2
- update upstream

* Wed Mar 03 2010 Radik Usupov <radik@altlinux.org> 0.1.7-alt1
- 0.7.1

* Sat Jan 30 2010 Radik Usupov <radik@altlinux.org> 0.1.6-alt1
- new packager
- new version
- new buildrequires

* Fri Jan 09 2009 Eugene Ostapets <eostapets@altlinux.ru> 0.1.4-alt1
- new version
- remove obsoletes %%update_menu macros

* Fri Jul 18 2008 Eugene Ostapets <eostapets@altlinux.ru> 0.1.3-alt1
- First version of RPM package for Sisyphus.