mirror of
https://abf.rosa.ru/djam/synfig.git
synced 2025-02-24 17:43:01 +00:00
133 lines
3.8 KiB
RPMSpec
133 lines
3.8 KiB
RPMSpec
%define debug_package %{nil}
|
|
|
|
%define major 0
|
|
%define libname %mklibname %{name} %{major}
|
|
%define devname %mklibname %{name} -d
|
|
|
|
Summary: Vector-based 2D animation renderer
|
|
Name: synfig
|
|
Version: 1.0.2
|
|
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}-1.0.1-cflags.patch
|
|
BuildRequires: cvs
|
|
BuildRequires: boost-devel >= 1.53.0
|
|
BuildRequires: ffmpeg-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: jpeg-devel
|
|
BuildRequires: libltdl-devel
|
|
BuildRequires: pkgconfig(ETL) >= 0.4.19
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(giomm-2.4) >= 2.18.2
|
|
BuildRequires: pkgconfig(glibmm-2.4) >= 2.24.2
|
|
BuildRequires: pkgconfig(GraphicsMagick++)
|
|
BuildRequires: pkgconfig(ImageMagick) >= 6.4.2
|
|
BuildRequires: pkgconfig(libmng)
|
|
BuildRequires: pkgconfig(libpng)
|
|
BuildRequires: pkgconfig(libxml++-2.6)
|
|
BuildRequires: pkgconfig(mlt++)
|
|
BuildRequires: pkgconfig(OpenEXR)
|
|
BuildRequires: pkgconfig(cairo) >= 1.12.0
|
|
BuildRequires: pkgconfig(pango)
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
BuildRequires: pkgconfig(sigc++-2.0)
|
|
BuildRequires: automake
|
|
#BuildRequires: automake1.4
|
|
BuildRequires: config(autoconf)
|
|
# Clang knows what the linker is? Sflo.
|
|
BuildRequires: gcc-c++, gcc, gcc-cpp
|
|
|
|
Requires: libdv-apps
|
|
Requires: imagemagick
|
|
Requires: x11-font-cursor-misc
|
|
Requires: x11-font-misc
|
|
Requires: ffmpeg
|
|
|
|
%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++
|
|
Provides: %{name}-devel = %{EVRD}
|
|
Requires: %{libname} = %{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
|
|
|
|
|
|
%build
|
|
export CC=gcc
|
|
export CXX=g++
|
|
# These two fix for the split of libMagick in recent releases - AdamW
|
|
# (gvm) Not found in configure.ac
|
|
#sed -i -e 's|Magick,OptimizeImageTransparency|MagickCore,OptimizeImageTransparency|g' configure.ac
|
|
# (gvm) Already changed in the source file
|
|
#sed -i -e 's|MagickLib::|MagickCore::|g' src/modules/mod_magickpp/trgt_magickpp.cpp
|
|
|
|
aclocal -I m4
|
|
automake --add-missing
|
|
autoconf -i --force
|
|
|
|
# No more useful
|
|
#CXXFLAGS='-I /usr/include/ImageMagick' CFLAGS='-I /usr/include/ImageMagick' CPPFLAGS='-I /usr/include/ImageMagick'
|
|
%configure2_5x --disable-static
|
|
%make
|
|
|
|
|
|
%install
|
|
%makeinstall_std
|
|
|
|
# FIXME zh-Hant is not supported by Rosa language tree:
|
|
# remove offending lang file until we will support it
|
|
# and avoid 2 rpmlint errors
|
|
rm -rf %{buildroot}%{_datadir}/locale/zh-Hant
|
|
|
|
%find_lang %{name}
|