Репозитории ALT
S: | 4.2.5-alt2_26 |
5.1: | 4.1.45-alt1 |
4.1: | 4.1.45-alt1 |
4.0: | 4.1.44-alt1 |
3.0: | 4.1.43-alt2 |
Группа :: Графика
Пакет: tgif
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Graphics
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install gcc-c++ libICE-devel libSM-devel libX11-devel libXext-devel libXt-devel
# END SourceDeps(oneline)
Summary(ru_RU.KOI8-R): Tgif - пакет 2-мерной графики
%define fedora 37
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: tgif
Version: 4.2.5
Release: alt2_26
Summary: 2-D drawing tool
License: QPL
URL: http://bourbon.usc.edu/tgif/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-QPL-%{version}.tar.gz
# http://tyche.pu-toyama.ac.jp/~a-urasim/tgif/
Patch10: tgif-textcursor-a-urasim.patch
# Check below later
Patch101: tgif-QPL-4.1.45-size-debug.patch
Patch102: tgif-QPL-4.2.5-format-security.patch
Patch103: tgif-c99.patch
BuildRequires: gcc
BuildRequires: xorg-cf-files gccmakedep imake
BuildRequires: desktop-file-utils
BuildRequires: gettext gettext-tools
BuildRequires: libXmu-devel
BuildRequires: libidn-devel
BuildRequires: zlib-devel
Requires: ghostscript-utils ghostscript
Requires: netpbm
Requires: fonts-bitmap-75dpi
Requires: fonts-bitmap-75dpi
Source44: import.info
%description
Tgif - Xlib based interactive 2-D drawing facility under
X11. Supports hierarchical construction of drawings and
easy navigation between sets of drawings. It's also a
hyper-graphics (or hyper-structured-graphics) browser on
the World-Wide-Web.
%description -l ru_RU.KOI8-R
Tgif является пакетом для двумерной графики. Он поддерживает создание иерархических
изображений и легкую навигацию между наборами изображений. Он также является
броузером гиперграфики для WWW.
%prep
%setup -q -n %{name}-QPL-%{version}
# Upstream says the below is wrong, for now dropping
#%%patch10 -p0 -b textcursor
# Check later
#%%patch101 -p1 -b .size
%patch102 -p1 -b .format
%patch103 -p1
/usr/bin/perl -pi \
-e 's,JISX-0208-1983-0,EUC-JP,g' \
po/ja/ja.po
# use scalable bitmap font
sed \
-e s,alias\-mincho,misc\-mincho,g \
-e s,alias\-gothic,jis\-fixed,g \
-i po/ja/Tgif.ad
# Fix desktop file
sed -i.icon -e 's|Icon=tgif|Icon=tgificon|' \
po/ja/tgif.desktop
# Fix installation path for icon files
sed -i.path \
-e '/InstallNonExec.*hicolor/s|\$(TGIFDIR)|\$(DATADIR)/icons/|' \
-e '/MakeDirectories.*hicolor/s|\$(TGIFDIR)|\$(DATADIR)/icons/|' \
Imakefile
%build
cp -pf Tgif.tmpl-linux Tgif.tmpl
sed -i.mode -e 's|0664|0644|' Tgif.tmpl
xmkmf
sed -i.mode -e 's|0444|0644|' Makefile
DEFOPTS='-DOVERTHESPOT -DUSE_XT_INITIALIZE -D_ENABLE_NLS -DPRINT_CMD=\"lpr\" -DA4PAPER'
make %{?_smp_mflags} \
CC="gcc %{optflags}" \
MOREDEFINES="$DEFOPTS" \
TGIFDIR=%{_datadir}/tgif/ \
LOCAL_LIBRARIES="-lXmu -lXt -lX11" \
tgif
pushd po
xmkmf
sed -i.mode -e 's|0444|0644|' Makefile
make \
Makefile \
Makefiles \
depend \
all
popd
%install
rm -rf $RPM_BUILD_ROOT/
make \
DESTDIR=$RPM_BUILD_ROOT/ \
BINDIR=/usr/libexec/ \
TGIFDIR=%{_datadir}/tgif/ \
INSTALLFLAGS="-cp" \
DATADIR=%{_datadir} \
install \
install.man
# wrap tgif
mkdir -p $RPM_BUILD_ROOT%{_bindir}/
install -cpm 0755 po/ja/tgif-wrapper.sh \
$RPM_BUILD_ROOT%{_bindir}/%{name}
rm -f $RPM_BUILD_ROOT%{_datadir}/tgif/*.obj
install -cpm 0644 *.obj \
$RPM_BUILD_ROOT%{_datadir}/tgif/
# Japanese specific
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/ja/app-defaults/
install -cpm 0644 \
po/ja/Tgif.ad \
$RPM_BUILD_ROOT%{_sysconfdir}/X11/ja/app-defaults/Tgif
pushd po
make \
DESTDIR=$RPM_BUILD_ROOT/ \
INSTALLFLAGS="-cp" \
install
popd
# desktop file & icon
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
desktop-file-install \
--remove-category 'Application' \
--remove-category 'X-Fedora' \
%if 0%{?fedora} < 19
--vendor 'fedora' \
%endif
--dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
po/ja/tgif.desktop
%{find_lang} tgif
%files -f %{name}.lang
%doc AUTHORS
%doc ChangeLog
%doc Copyright
%doc HISTORY
%doc LICENSE.QPL
%doc README*
%doc VMS_MAKE_TGIF.COM
%doc example.tex
%doc po/ja/README.jp
%{_bindir}/%{name}
/usr/libexec/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/
# Currently no package owns the following directories
%dir %{_sysconfdir}/X11/ja/
%dir %{_sysconfdir}/X11/ja/app-defaults/
%{_sysconfdir}/X11/ja/app-defaults/Tgif
%{_datadir}/icons/hicolor/*/apps/%{name}icon.png
%{_datadir}/applications/*%{name}.desktop
%changelog
…
Полный changelog можно просмотреть здесь
# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/desktop-file-install gcc-c++ libICE-devel libSM-devel libX11-devel libXext-devel libXt-devel
# END SourceDeps(oneline)
Summary(ru_RU.KOI8-R): Tgif - пакет 2-мерной графики
%define fedora 37
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: tgif
Version: 4.2.5
Release: alt2_26
Summary: 2-D drawing tool
License: QPL
URL: http://bourbon.usc.edu/tgif/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-QPL-%{version}.tar.gz
# http://tyche.pu-toyama.ac.jp/~a-urasim/tgif/
Patch10: tgif-textcursor-a-urasim.patch
# Check below later
Patch101: tgif-QPL-4.1.45-size-debug.patch
Patch102: tgif-QPL-4.2.5-format-security.patch
Patch103: tgif-c99.patch
BuildRequires: gcc
BuildRequires: xorg-cf-files gccmakedep imake
BuildRequires: desktop-file-utils
BuildRequires: gettext gettext-tools
BuildRequires: libXmu-devel
BuildRequires: libidn-devel
BuildRequires: zlib-devel
Requires: ghostscript-utils ghostscript
Requires: netpbm
Requires: fonts-bitmap-75dpi
Requires: fonts-bitmap-75dpi
Source44: import.info
%description
Tgif - Xlib based interactive 2-D drawing facility under
X11. Supports hierarchical construction of drawings and
easy navigation between sets of drawings. It's also a
hyper-graphics (or hyper-structured-graphics) browser on
the World-Wide-Web.
%description -l ru_RU.KOI8-R
Tgif является пакетом для двумерной графики. Он поддерживает создание иерархических
изображений и легкую навигацию между наборами изображений. Он также является
броузером гиперграфики для WWW.
%prep
%setup -q -n %{name}-QPL-%{version}
# Upstream says the below is wrong, for now dropping
#%%patch10 -p0 -b textcursor
# Check later
#%%patch101 -p1 -b .size
%patch102 -p1 -b .format
%patch103 -p1
/usr/bin/perl -pi \
-e 's,JISX-0208-1983-0,EUC-JP,g' \
po/ja/ja.po
# use scalable bitmap font
sed \
-e s,alias\-mincho,misc\-mincho,g \
-e s,alias\-gothic,jis\-fixed,g \
-i po/ja/Tgif.ad
# Fix desktop file
sed -i.icon -e 's|Icon=tgif|Icon=tgificon|' \
po/ja/tgif.desktop
# Fix installation path for icon files
sed -i.path \
-e '/InstallNonExec.*hicolor/s|\$(TGIFDIR)|\$(DATADIR)/icons/|' \
-e '/MakeDirectories.*hicolor/s|\$(TGIFDIR)|\$(DATADIR)/icons/|' \
Imakefile
%build
cp -pf Tgif.tmpl-linux Tgif.tmpl
sed -i.mode -e 's|0664|0644|' Tgif.tmpl
xmkmf
sed -i.mode -e 's|0444|0644|' Makefile
DEFOPTS='-DOVERTHESPOT -DUSE_XT_INITIALIZE -D_ENABLE_NLS -DPRINT_CMD=\"lpr\" -DA4PAPER'
make %{?_smp_mflags} \
CC="gcc %{optflags}" \
MOREDEFINES="$DEFOPTS" \
TGIFDIR=%{_datadir}/tgif/ \
LOCAL_LIBRARIES="-lXmu -lXt -lX11" \
tgif
pushd po
xmkmf
sed -i.mode -e 's|0444|0644|' Makefile
make \
Makefile \
Makefiles \
depend \
all
popd
%install
rm -rf $RPM_BUILD_ROOT/
make \
DESTDIR=$RPM_BUILD_ROOT/ \
BINDIR=/usr/libexec/ \
TGIFDIR=%{_datadir}/tgif/ \
INSTALLFLAGS="-cp" \
DATADIR=%{_datadir} \
install \
install.man
# wrap tgif
mkdir -p $RPM_BUILD_ROOT%{_bindir}/
install -cpm 0755 po/ja/tgif-wrapper.sh \
$RPM_BUILD_ROOT%{_bindir}/%{name}
rm -f $RPM_BUILD_ROOT%{_datadir}/tgif/*.obj
install -cpm 0644 *.obj \
$RPM_BUILD_ROOT%{_datadir}/tgif/
# Japanese specific
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/ja/app-defaults/
install -cpm 0644 \
po/ja/Tgif.ad \
$RPM_BUILD_ROOT%{_sysconfdir}/X11/ja/app-defaults/Tgif
pushd po
make \
DESTDIR=$RPM_BUILD_ROOT/ \
INSTALLFLAGS="-cp" \
install
popd
# desktop file & icon
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
desktop-file-install \
--remove-category 'Application' \
--remove-category 'X-Fedora' \
%if 0%{?fedora} < 19
--vendor 'fedora' \
%endif
--dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
po/ja/tgif.desktop
%{find_lang} tgif
%files -f %{name}.lang
%doc AUTHORS
%doc ChangeLog
%doc Copyright
%doc HISTORY
%doc LICENSE.QPL
%doc README*
%doc VMS_MAKE_TGIF.COM
%doc example.tex
%doc po/ja/README.jp
%{_bindir}/%{name}
/usr/libexec/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/
# Currently no package owns the following directories
%dir %{_sysconfdir}/X11/ja/
%dir %{_sysconfdir}/X11/ja/app-defaults/
%{_sysconfdir}/X11/ja/app-defaults/Tgif
%{_datadir}/icons/hicolor/*/apps/%{name}icon.png
%{_datadir}/applications/*%{name}.desktop
%changelog
…
Полный changelog можно просмотреть здесь