synfig/synfig.spec

134 lines
3.8 KiB
RPMSpec
Raw Normal View History

%define debug_package %{nil}
2015-06-02 01:00:44 +10:00
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
2012-02-01 22:12:04 +04:00
Summary: Vector-based 2D animation renderer
2015-06-02 01:00:44 +10:00
Name: synfig
2016-01-02 18:04:09 +01:00
Version: 1.0.2
2016-11-11 22:17:43 +10:00
Release: 3
2015-06-02 01:00:44 +10:00
License: GPLv3+
2012-02-01 22:12:04 +04:00
Group: Graphics
2015-06-02 01:00:44 +10:00
Url: http://www.synfig.org
2013-06-08 21:36:53 +02:00
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source100: %{name}.rpmlintrc
Patch0: %{name}-1.0.1-cflags.patch
2012-02-01 22:12:04 +04:00
BuildRequires: cvs
2016-01-02 18:04:09 +01:00
BuildRequires: boost-devel >= 1.53.0
2012-02-01 22:12:04 +04:00
BuildRequires: ffmpeg-devel
BuildRequires: gettext-devel
BuildRequires: jpeg-devel
BuildRequires: libltdl-devel
2016-01-02 18:04:09 +01:00
BuildRequires: pkgconfig(ETL) >= 0.4.19
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
2016-01-02 18:04:09 +01:00
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
2015-06-02 01:00:44 +10:00
BuildRequires: pkgconfig(libmng)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libxml++-2.6)
2015-05-15 00:27:55 +04:00
BuildRequires: pkgconfig(mlt++)
BuildRequires: pkgconfig(OpenEXR)
2016-01-02 18:04:09 +01:00
BuildRequires: pkgconfig(cairo) >= 1.12.0
2015-06-02 01:00:44 +10:00
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
2012-02-01 22:12:04 +04:00
Requires: libdv-apps
Requires: imagemagick
2012-11-16 17:07:43 +04:00
Requires: x11-font-cursor-misc
Requires: x11-font-misc
Requires: ffmpeg
2012-02-01 22:12:04 +04:00
%description
2013-06-08 21:36:53 +02:00
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.
2012-02-01 22:12:04 +04:00
2013-06-08 21:36:53 +02:00
%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%config(noreplace) %{_sysconfdir}/%{name}_modules.cfg
%{_bindir}/%{name}
%{_libdir}/%{name}
#-----------------------------------------------------------------------------
2012-02-01 22:12:04 +04:00
%package -n %{libname}
Summary: Shared library for %{name}
Group: System/Libraries
%description -n %{libname}
2013-06-08 21:36:53 +02:00
synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
2012-02-01 22:12:04 +04:00
This package contains the shared library provided by synfig.
2013-06-08 21:36:53 +02:00
%files -n %{libname}
%doc COPYING ChangeLog NEWS
%{_libdir}/lib*.so.%{major}*
#-----------------------------------------------------------------------------
2015-06-02 01:00:44 +10:00
%package -n %{devname}
2012-02-01 22:12:04 +04:00
Summary: Development headers and libraries for %{name}
Group: Development/C++
2014-06-06 19:40:52 +11:00
Provides: %{name}-devel = %{EVRD}
Requires: %{libname} = %{EVRD}
2012-02-01 22:12:04 +04:00
2015-06-02 01:00:44 +10:00
%description -n %{devname}
2013-06-08 21:36:53 +02:00
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.
2015-06-02 01:00:44 +10:00
%files -n %{devname}
2013-06-08 21:36:53 +02:00
%doc COPYING ChangeLog NEWS
%{_bindir}/%{name}-config
%{_includedir}/%{name}-*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
2012-02-01 22:12:04 +04:00
2013-06-08 21:36:53 +02:00
#-----------------------------------------------------------------------------
2012-02-01 22:12:04 +04:00
%prep
%setup -q
2013-06-08 23:39:23 +04:00
%patch0 -p1
2012-02-01 22:12:04 +04:00
2012-02-01 22:12:04 +04:00
%build
export CC=gcc
export CXX=g++
2012-02-01 22:12:04 +04:00
# 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
2012-02-01 22:12:04 +04:00
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
2012-02-01 22:12:04 +04:00
%make
2012-02-01 22:12:04 +04:00
%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
2012-02-01 22:12:04 +04:00
%find_lang %{name}