Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37726171
en ru br
Репозитории ALT
4.1: 0.6.17-alt2
4.0: 0.6.17-alt1.M40.1
3.0: 0.6.16-alt0.1
www.altlinux.org/Changes

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

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

Name: skencil
Version: 0.6.17
Release: alt2

Summary: Drawing tool

License: GPL
Group: Graphics
Url: http://www.nongnu.org/skencil/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://download.sourceforge.net/sketch/%name-%version.tar.bz2
Source1: %name.desktop
Patch1: sketch-0.6.15-tk-include-path.patch.bz2
Patch2: sketch-0.6.16pre2-lib64.patch.bz2
Patch3: skencil-0.6.17-multilib.patch

# manually removed: eric

# Automatically added by buildreq on Thu Feb 21 2008
BuildRequires: libtcl libtk python-devel python-module-imaging-devel python-modules-compiler tk-devel

%add_python_req_skip Graphics Lib Script Sketch X _sketch config connector pax skexceptions streamfilter undo

Provides: sketch = %version
Obsoletes: sketch

%description
Drawing tool written in Python, using Bezier curves. Need to install tkinter.

%prep
%setup -q
%patch3 -p1
mv Pax/README Pax/README.pax
mv Pax/COPYING Pax/COPYING.pax
mv Filter/COPYING Filter/COPYING.filter
mv Filter/README Filter/README.filter
mv Tools/README Tools/README.tools
mv Tools/COPYING Tools/COPYING.tools
find -name 'Makefile.pre.in' -print0 | xargs -r0 -- sed -i 's/LIBP=/LIBP?=/'

%build
export LIBP=%python_libdir
%__python setup.py configure --with-nls \
--python-setup=%python_libdir/config/Setup --tk-flags="-ltcl -ltk" LIBDIR=%_libdir
%__python setup.py build

%install
strip -S Pax/*.so
strip -S Filter/*.so
strip -S Sketch/Modules/*.so
%__python setup.py install --prefix=%buildroot%prefix --lib-dir=%buildroot%_libdir/%name-%version
install -m 755 Tools/mkfontdb.py %buildroot%_bindir
#mv %buildroot%_libdir/%name %buildroot%_libdir/%name

#install menu

mkdir -p %buildroot%_desktopdir/
install -m 644 %SOURCE1 %buildroot%_desktopdir/

#fix installation on x86_64

#%ifarch x86_64
#mkdir -p %buildroot%_libdir
#mv %buildroot/usr/lib/skencil-%version %buildroot%_libdir/
#%endif
%find_lang %name

%post
%update_menus

%postun
%clean_menus

%files -f %name.lang
%_libdir/%name-%version/
%_bindir/*
%_desktopdir/*
%doc Examples Doc
%doc README INSTALL BUGS CREDITS TODO PROJECTS FAQ NEWS COPYING
%doc Pax/README.pax Pax/COPYING.pax Pax/COPYING.xext
%doc Filter/README.filter Filter/COPYING.filter
%doc Tools/README.tools Tools/COPYING.tools
#%doc Misc

%changelog

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

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