Репозиторий Sisyphus
Последнее обновление: 9 июля 2020 | Пакетов: 17697 | Посещений: 18854154
en ru br
Репозитории ALT

Группа :: Графика
Пакет: pqiv

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: pqiv
Version: 2.8.5
Release: alt3

Summary: Minimalist Image Viewer
License: GPL3+
Group: Graphics

Url: https://github.com/phillipberndt/pqiv
Source: %name.tar
Patch: %name-alt.patch

BuildRequires: libgtk+2-devel libgtk+3-devel gdk-pixbuf-devel glib2-devel libcairo-devel libgio-devel
BuildRequires: libavformat-devel libavcodec-devel libswscale-devel libavutil-devel
BuildRequires: libpoppler-devel libpoppler-glib-devel
BuildRequires: libspectre-devel
BuildRequires: libImageMagick-devel

%description
Originally, PQIV was written as a drop-in replacement for QIV.

This is common package, install either gtk2, gtk3 subpackages (or both).

%package gtk2
Summary: %name build with gtk2
Group: Graphics
Requires: %name = %version
%description gtk2
%name build with gtk2

%package gtk3
Summary: %name build with gtk3
Group: Graphics
Requires: %name = %version
%description gtk3
%name build with gtk3

%package gdkpixbuf
Summary: gdkpixbuf backend for %name
Group: Graphics
Requires: %name = %version
%description gdkpixbuf
Backend for %name

%package libav
Summary: libav backend for %name
Group: Graphics
Requires: %name = %version
%description libav
Backend for %name

%package poppler
Summary: poppler backend for %name
Group: Graphics
Requires: %name = %version
%description poppler
Backend for %name

%package spectre
Summary: spectre backend for %name
Group: Graphics
Requires: %name = %version
%description spectre
Backend for %name

%package wand
Summary: wand backend for %name
Group: Graphics
Requires: %name = %version
%description wand
Backend for %name

%prep
%setup -n %name
%patch -p1
%ifarch x86_64
subst 's|^LIBDIR=\$(PREFIX)/lib$|LIBDIR=%_libdir|' GNUmakefile
%endif

%build
for ver in 3 2;do
./configure \
--gtk-version=$ver \
--prefix=%prefix \
--destdir=%buildroot \
--backends=gdkpixbuf,libav,poppler,spectre,wand \
--backends-build=shared

%make_build
mv %name %{name}-gtk$ver
done
mv %{name}-gtk2 %name

%install
%makeinstall_std
mv %buildroot%_bindir/%name %buildroot%_bindir/%{name}-gtk2
install -p -m 755 %{name}-gtk3 %buildroot%_bindir/%{name}-gtk3

# Make alternatives:

mkdir -p %buildroot%_altdir
cat <<'_EOF'_ > %buildroot%_altdir/%name-gtk2
%_bindir/%name %_bindir/%{name}-gtk2 10
_EOF_

cat <<'_EOF'_ > %buildroot%_altdir/%name-gtk3
%_bindir/%name %_bindir/%{name}-gtk3 20
_EOF_

%files
%_man1dir/%name.1.*
%dir %_libdir/%name
%doc README.markdown

%files gtk2
%_altdir/%name-gtk2
%_bindir/%{name}-gtk2

%files gtk3
%_altdir/%name-gtk3
%_bindir/%{name}-gtk3

%files gdkpixbuf
%_libdir/%name/%name-backend-gdkpixbuf.so

%files libav
%_libdir/%name/%name-backend-libav.so

%files poppler
%_libdir/%name/%name-backend-poppler.so

%files spectre
%_libdir/%name/%name-backend-spectre.so

%files wand
%_libdir/%name/%name-backend-wand.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin