synfig/synfig.spec
2016-11-11 23:32:10 +10:00

129 lines
3.5 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: 3
License: GPLv3+
Group: Graphics
Url: http://www.synfig.org
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source100: %{name}.rpmlintrc
Patch0: synfig-1.0.1-cflags.patch
Patch1: synfig-1.0.2-configure.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
%patch1 -p1
%build
export CC=gcc
export CXX=g++
aclocal -I m4
automake --add-missing
autoconf -i --force
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure2_5x \
--disable-static \
--without-magickpp
%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}