Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > b4f6b3d172a60cb180f7d7193d26e243 > files > 2

sk1-0.9.0-0.511.1mdv2009.0.src.rpm

%define oname	sK1

%define rel	1
%define svn	511
%if %svn
%define release		%mkrel 0.%svn.%rel
%define distname	%name-%svn.tar.lzma
%define dirname		%oname
%else
%define release		%mkrel %rel
%define distname	%oname-%version.tar.gz
%define dirname		%oname-%version
%endif

Name:		sk1
Summary:	Advanced vector graphics editor
Version:	0.9.0
Release:	%release
Source0:	http://sk1project.org/downloads/%{oname}/%{distname}
Group:		Graphics
BuildRequires:	X11-devel
BuildRequires:	tcl
BuildRequires:	tcl-devel
BuildRequires:	tk
BuildRequires:	tk-devel
BuildRequires:	python-devel
BuildRequires:	freetype2-devel
BuildRequires:	cairo-devel
BuildRequires:	libxext-devel
License:	GPLv2+ and LGPLv2+
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
Requires:	tkinter
Requires:	python-imaging
Requires:	python-lcms
Requires:	zenity
Provides:	sketch
Provides:	skencil
Obsoletes:	skencil < 0.6.19
URL:		http://sk1project.org/

%description
sK1 is an open source vector graphics editor similar to CorelDRAW,
Adobe Illustrator, or Freehand. sK1 is mainly oriented for PostScript
processing. It features CMYK colorspace support, CMYK support in
Postscript, a Cairo-based engine, color managment, universal CDR
importer (7-X3 versions), and a modern Ttk based (former Tile widgets)
user interface.

%prep
%setup -q -n %{dirname}

%build
%{__python} ./setup.py build

%install
rm -fr %{buildroot}
%{__python} setup.py install --root=%{buildroot} --compile --optimize=2

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64}/apps
for i in 16 32 48 64; do \
install -m 0644 src/share/icons/CrystalSVG/icon_sk1_$i.png %{buildroot}%{_iconsdir}/hicolor/$i\x$i/apps/%{name}.png; \
done

# menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=sK1
Comment=Vector drawing tool
Exec=%{_bindir}/%{name} %f
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
MimeType=image/x-sk
Categories=Graphics;VectorGraphics;
EOF

%if %mdkversion < 200900
%post
%update_icon_cache hicolor
%update_menus
%update_desktop_database
%endif
%if %mdkversion < 200900
%postun
%clean_icon_cache hicolor
%clean_menus
%clean_desktop_database
%endif

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%{py_platsitedir}/%{name}
%{_bindir}/%{name}
%{py_platsitedir}/%{oname}-%{version}-py%{pyver}.egg-info
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop


%changelog
* Fri Sep 12 2008 Adam Williamson <awilliamson@mandriva.com> 0.9.0-0.511.1mdv2009.0
+ Revision: 284341
- drop font_sys.patch: merged upstream
- new snapshot 511

* Sat Aug 16 2008 Adam Williamson <awilliamson@mandriva.com> 0.9.0-0.496.1mdv2009.0
+ Revision: 272510
- new snapshot 496
- add font_sys.patch (fixes a bug that breaks text entry)

* Tue Jun 24 2008 Adam Williamson <awilliamson@mandriva.com> 0.9.0-0.440.1mdv2009.0
+ Revision: 228770
- drop modules_typo.patch (merged upstream)
- new snapshot 440

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Thu May 29 2008 Adam Williamson <awilliamson@mandriva.com> 0.9.0-0.424.1mdv2009.0
+ Revision: 213121
- add modules_typo.patch: upstream nerfed up the fix for the last bug, fixing their fix...
- drop modules.patch (merged upstream)
- new snapshot 424

* Wed May 28 2008 Adam Williamson <awilliamson@mandriva.com> 0.9.0-0.422.1mdv2009.0
+ Revision: 212159
- import sk1