mirror of
https://abf.rosa.ru/djam/synfig.git
synced 2025-02-24 17:43:01 +00:00
112 lines
3.2 KiB
RPMSpec
112 lines
3.2 KiB
RPMSpec
%define major 0
|
|
%define libname %mklibname %{name} %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
Summary: Vector-based 2D animation renderer
|
|
Name: synfig
|
|
Version: 0.64.1
|
|
Release: 2
|
|
License: GPLv3+
|
|
Group: Graphics
|
|
Url: http://www.synfig.org
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Source100: %{name}.rpmlintrc
|
|
Patch0: %{name}-0.63.05-cflags.patch
|
|
Patch1: synfig-0.64.0-libpng1.6.patch
|
|
BuildRequires: cvs
|
|
BuildRequires: boost-devel
|
|
BuildRequires: ffmpeg-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: jpeg-devel
|
|
BuildRequires: libltdl-devel
|
|
BuildRequires: mng-devel
|
|
BuildRequires: pkgconfig(cairo)
|
|
BuildRequires: pkgconfig(ETL) >= 0.4.17
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(ImageMagick)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(libxml++-2.6)
|
|
BuildRequires: pkgconfig(OpenEXR)
|
|
BuildRequires: pkgconfig(pango)
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
BuildRequires: pkgconfig(sigc++-2.0)
|
|
Requires: ffmpeg
|
|
Requires: libdv-apps
|
|
Requires: imagemagick
|
|
Requires: x11-font-cursor-misc
|
|
Requires: x11-font-misc
|
|
|
|
%description
|
|
synfig is a vector based 2D animation renderer. It is designed to be capable
|
|
of producing feature-film quality animation.
|
|
This package contains the command-line renderer. For the GUI animation editor,
|
|
please install synfigstudio.
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
%config(noreplace) %{_sysconfdir}/%{name}_modules.cfg
|
|
%{_bindir}/%{name}
|
|
%{_libdir}/%{name}
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: Shared library for %{name}
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
synfig is a vector based 2D animation renderer. It is designed to be capable
|
|
of producing feature-film quality animation.
|
|
This package contains the shared library provided by synfig.
|
|
|
|
%files -n %{libname}
|
|
%doc COPYING ChangeLog NEWS
|
|
%{_libdir}/lib*.so.%{major}*
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Development headers and libraries for %{name}
|
|
Group: Development/C++
|
|
Requires: %{libname} = %{EVRD}
|
|
Provides: %{name}-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
synfig is a vector based 2D animation renderer. It is designed to be capable
|
|
of producing feature-film quality animation.
|
|
This package contains the development files for the shared library provided
|
|
by synfig.
|
|
|
|
%files -n %{devname}
|
|
%doc COPYING ChangeLog NEWS
|
|
%{_bindir}/%{name}-config
|
|
%{_includedir}/%{name}-*
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p0
|
|
|
|
%build
|
|
# These two fix for the split of libMagick in recent releases - AdamW
|
|
sed -i -e 's|Magick,OptimizeImageTransparency|MagickCore,OptimizeImageTransparency|g' configure.ac
|
|
sed -i -e 's|MagickLib::|MagickCore::|g' src/modules/mod_magickpp/trgt_magickpp.cpp
|
|
|
|
autoreconf -fi
|
|
CXXFLAGS='-I /usr/include/ImageMagick' CFLAGS='-I /usr/include/ImageMagick' CPPFLAGS='-I /usr/include/ImageMagick'
|
|
%configure2_5x \
|
|
--disable-static \
|
|
--with-imagemagick
|
|
%make
|
|
|
|
|
|
%install
|
|
%makeinstall_std
|
|
|
|
%find_lang %{name}
|
|
|