synfig/synfig.spec

129 lines
3.5 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
2018-12-22 16:02:48 +03:00
Version: 1.2.2
Release: 1
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
2018-12-22 16:02:48 +03:00
Patch0: synfig-1.0.1-buildfix.patch
Patch1: synfig-1.1.10-optflags.patch
BuildRequires: automake
#BuildRequires: automake1.4
BuildRequires: config(autoconf)
2012-02-01 22:12:04 +04:00
BuildRequires: cvs
2018-12-22 17:15:44 +03:00
BuildRequires: intltool
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
BuildRequires: pkgconfig(cairo) >= 1.12.0
BuildRequires: pkgconfig(ETL) >= 0.4.22
BuildRequires: pkgconfig(fftw3)
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)
2015-06-02 01:00:44 +10:00
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(sigc++-2.0)
Requires: ffmpeg
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
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
2016-11-11 23:32:10 +10:00
%patch1 -p1
2012-02-01 22:12:04 +04:00
%build
export CC=gcc
export CXX=g++
autoreconf -vfi
2018-12-22 16:02:48 +03:00
intltoolize --copy --force
# FIXME Enabling magickpp makes the build fail:
# 'GetExceptionInfo' is not a member of 'MagickCore'
%configure2_5x \
--disable-static \
2018-12-22 16:02:48 +03:00
--with-imagemagick
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}