bc4b112
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
b311159
01425b6
%global SVN 362
da0db5f
b311159
Name:           uniconvertor
da0db5f
Version:        2.0
477e203
Release:        0.8%{?SVN:.svn%{SVN}}%{?dist}
b311159
Summary:        Universal vector graphics translator
b311159
b311159
Group:          Applications/Multimedia
b311159
License:        LGPLv2+ and GPLv2+ and MIT
b311159
URL:            http://sk1project.org/modules.php?name=Products&product=uniconvertor
da0db5f
# Script to reproduce given tarball from source0
da0db5f
Source1:        %{name}.get.tarball.svn
da0db5f
Source0:        %{name}-%{version}svn%{SVN}.tar.xz
b311159
da0db5f
BuildRequires:  python-devel, pycairo-devel, python-pillow-devel, lcms2-devel
01425b6
BuildRequires:  potrace-devel
e275362
# For a public domain sRGB.icm
01425b6
BuildRequires:  argyllcms
b5ded62
Requires:       python-imaging, python-reportlab, python-pillow, pycairo
b311159
b311159
b311159
%description
b311159
UniConvertor is a universal vector graphics translator.
b311159
It uses sK1 engine to convert one format to another.
b311159
b311159
%prep
da0db5f
%setup -q
e275362
cp -a /usr/share/color/argyll/ref/sRGB.icm src/unittests/cms_tests/cms_data/sRGB.icm
b311159
b311159
%build
da0db5f
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/python2.7/Imaging" python setup.py build
b311159
b311159
%install
da0db5f
python setup.py install --skip-build --root %{buildroot}
b311159
Rex Dieter fbf879a
%post
Rex Dieter fbf879a
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
Rex Dieter fbf879a
Rex Dieter fbf879a
%postun
Rex Dieter fbf879a
if [ $1 -eq 0 ] ; then
Rex Dieter fbf879a
update-mime-database %{_datadir}/mime &> /dev/null || :
Rex Dieter fbf879a
fi
Rex Dieter fbf879a
Rex Dieter fbf879a
%posttrans
Rex Dieter fbf879a
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
Rex Dieter fbf879a
b311159
%files
da0db5f
%doc README LICENSE GPLv3.txt
da0db5f
%{_bindir}/%{name}
bc4b112
%{python_sitearch}/*
da0db5f
%{_datarootdir}/mime-info/sk1project.keys
da0db5f
%{_datarootdir}/mime-info/sk1project.mime
da0db5f
%{_datarootdir}/mime/packages/vnd.sk1project.pdxf-graphics.xml
b311159
b311159
%changelog
477e203
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-0.8.svn362
477e203
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
477e203
Rex Dieter fbf879a
* Sat Sep 27 2014 Rex Dieter <rdieter@fedoraproject.org> 2.0-0.7.svn362
Rex Dieter fbf879a
- add (optimized) mime scriptlet
Rex Dieter fbf879a
5b8159a
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-0.6.svn362
5b8159a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5b8159a
9c2fae0
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-0.5.svn362
9c2fae0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9c2fae0
b5ded62
* Fri Mar 21 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0-0.4.svn362
b5ded62
- Add pycairo require (bz#1079342).
b5ded62
01425b6
* Sat Oct 19 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0-0.3.svn362
01425b6
- New build to fix bz#1013652
01425b6
- Add BR potrace-devel
01425b6
e275362
* Tue Sep  3 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-0.2.svn344
e275362
- fix tarball generation script to remove non-free sRGB.icm
e275362
- update to cleaned svn344 tarball
e275362
- use Public Domain sRGB.icm from argyllcms
e275362
da0db5f
* Sat Aug 24 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0-0.1.svn340
da0db5f
- First attempt packaging 2.0 version. Igor Novikov said in mail it is almost ready.
da0db5f
- New build with hope to fix compatability with python-pillow instead of PIL (by author mail)
da0db5f
- Add BR lcms2-devel
da0db5f
- Add script to get tarball from svn.
da0db5f
- Replace $RPM_BUILD_ROOT by %%{buildroot}
da0db5f
- Add BR pycairo-devel, python-pillow-devel
da0db5f
- Add require python-pillow
da0db5f
- Drop 1.x branch patches.
da0db5f
- Spec cleanup.
da0db5f
e1dcd25
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-8
e1dcd25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e1dcd25
4127e1e
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-7
4127e1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4127e1e
d60824b
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-6
d60824b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d60824b
0022e2d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-5
0022e2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0022e2d
37bd74b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-4
37bd74b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
37bd74b
487dcae
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.4-3
487dcae
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
487dcae
bdcfabb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
bdcfabb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bdcfabb
73bf291
* Sun Jun 21 2009 Andy Shevchenko <andy@smile.org.ua> - 1.1.4-1
73bf291
- update to 1.1.4
73bf291
- remove upstreamed patches
73bf291
- adjust Fedora related patches
73bf291
4b1c5d2
* Sat May 02 2009 Andy Shevchenko <andy@smile.org.ua> - 1.1.3-6
4b1c5d2
- Fix WMF saver
4b1c5d2
07858d0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
07858d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
07858d0
ec9a00d
* Wed Feb 11 2009 Andy Shevchenko <andy@smile.org.ua> - 1.1.3-4
ec9a00d
- cover code in __init__.py by function (#484301)
ec9a00d
1f1d2cf
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.3-3
1f1d2cf
- Rebuild for Python 2.6
1f1d2cf
41c320e
* Sun Jul 27 2008 Andy Shevchenko <andy@smile.org.ua> 1.1.3-2
7139da3
- update to 1.1.3
7139da3
- new requirement python-reportlab
7139da3
15cfb87
* Sun May 04 2008 Andy Shevchenko <andy@smile.org.ua> 1.1.2-2
0d6e2bb
- update to 1.1.2
15cfb87
- apply two useful patches from Debian
0d6e2bb
a37136c
* Thu Mar 06 2008 Andy Shevchenko <andy@smile.org.ua> 1.1.1-2
a37136c
- just fix Source0 URL
a37136c
fa6db31
* Wed Feb 13 2008 Andy Shevchenko <andy@smile.org.ua> 1.1.1-1
fa6db31
- update to 1.1.1
fa6db31
8bb5df5
* Sat Jan 12 2008 Andy Shevchenko <andy@smile.org.ua> 1.1.0-1
8bb5df5
- update to 1.1.0
8bb5df5
16b5961
* Thu Nov 29 2007 Andy Shevchenko <andy@smile.org.ua> 1.0.0-5
16b5961
- fix conflict with netatalk: rename uniconv to uniconvertor (#405011)
16b5961
bc4b112
* Thu Nov 22 2007 Andy Shevchenko <andy@smile.org.ua> 1.0.0-4
bc4b112
- use python_sitearch and CFLAGS
bc4b112
b311159
* Thu Nov 22 2007 Andy Shevchenko <andy@smile.org.ua> 1.0.0-3
b311159
- prepare to include to Fedora
b311159
  (https://bugzilla.redhat.com/show_bug.cgi?id=393971)
b311159
b311159
* Tue Nov 20 2007 Andy Shevchenko <andy@smile.org.ua> 1.0.0-2
b311159
- adjust License: tag (thanks Tom 'spot' Callaway)
b311159
b311159
* Thu Nov 15 2007 Andy Shevchenko <andy@smile.org.ua> 1.0.0-1
b311159
- initial build
b311159