%define pkg_version 0.63.03
%define pkg_release 1%{?_dist_release}

Summary:	Vector animation rendere
Name:		synfig
Version:	%{pkg_version}
Release:	%{pkg_release}

Source0:	%{name}-%{version}.tar.gz

License:	GPLv2
Group:		Applications/Graphics
URL:		http://www.synfig.org/cms/

BuildRoot:	%{_tmppath}/%{name}-%{version}-root

BuildRequires:	ETL-devel
BuildRequires:	fontconfig-devel
BuildRequires:	freetype2-devel
BuildRequires:	ImageMagick-c++-devel
BuildRequires:	libxml++-devel
BuildRequires:	libjpeg-turbo-devel
BuildRequires:	libmng-devel
BuildRequires:	libpng-devel
BuildRequires:	libtool-ltdl-devel

Vendor: Project Vine
Distribution: Vine Linux
Packager: Takemikaduchi


%description
synfig is a vector based 2D animation package. It is designed to be
capable of producing feature-film quality animation. It eliminates the
need for tweening, preventing the need to hand-draw each frame. synfig
features spatial and temporal resolution independence (sharp and smooth
at any resolution or framerate), high dynamic range images, and a
flexible plugin system.

This package contains the renderer used to convert synfig .sif files to
raster images, videos and other formats. Layer types include geometric,
gradient, filter, distortion, transformation, fractal and others. Output
targets include JPEG, PNG, GIF, BMP, PPM, DV, OpenEXR, ffmpeg (MPEG1),
libavcodec (AVI), imagemagick (MIFF), yuv420p, MNG and others.


%package devel
Summary:        Development files for synfig
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       pkgconfig

%description devel
This package contains the libraries and header files that are needed
for writing applications that are using synfig.


%prep
%setup -q

%build
%configure \
	--disable-static

%{__make} %{?_smp_mflags}

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'

%find_lang %{name}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p/sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/synfig_modules.cfg
%{_bindir}/synfig
%{_libdir}/libsynfig.so.*
%{_libdir}/synfig/modules/*.so

%files devel
%defattr(-,root,root,-)
%{_bindir}/synfig-config
%{_includedir}/synfig-0.0
%{_libdir}/libsynfig.so
%{_libdir}/pkgconfig/synfig.pc


%changelog
* Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.63.03-1
- new upstream release

* Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.63.02-1
- initial build for Vine Linux

