Projects
Multimedia
synfig
synfig.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File synfig.spec of Package synfig (Revision 22)
Currently displaying revision
22
,
Show latest
# # spec file for package synfig # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname libsynfig %define sover 0 %bcond_without ffmpeg %bcond_without fontconfig %bcond_without freetype %bcond_without imagemagick %bcond_without jpeg %bcond_with libavcodec %bcond_with libswscale %bcond_without magickpp %bcond_without openexr %bcond_without libdv Name: synfig Version: 1.2.0 Release: 0 Summary: Vector based 2D animation render License: GPL-3.0+ Group: Productivity/Graphics/Other Url: http://synfig.org Source0: https://sourceforge.net/projects/synfig/files/releases/%{version}/source/%{name}-%{version}.tar.gz # PATCH-FIX-OPENSUSE debug.patch avvissu@yandex.by -- Specify the `-g' option when building Patch0: synfig-1.0.2_debug.patch Patch1: synfig.gcc7.patch Patch2: synfig.magick7.patch Patch3: synfig.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libboost_chrono-devel BuildRequires: libboost_filesystem-devel BuildRequires: libboost_system-devel BuildRequires: libboost_program_options-devel BuildRequires: gcc-c++ BuildRequires: intltool BuildRequires: libmng-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(ETL) BuildRequires: pkgconfig(cairo) >= 1.12.0 BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(giomm-2.4) >= 2.18.2 BuildRequires: pkgconfig(glibmm-2.4) >= 2.24.2 BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libxml++-2.6) BuildRequires: pkgconfig(mlt++-7) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(pangocairo) BuildRequires: pkgconfig(sigc++-2.0) BuildRequires: pkgconfig(zlib) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with imagemagick} BuildRequires: pkgconfig(ImageMagick) %endif %if %{with jpeg} BuildRequires: libjpeg-devel %endif %if %{with magickpp} BuildRequires: pkgconfig(Magick++) >= 6.4.2 %endif %if %{with openexr} BuildRequires: pkgconfig(OpenEXR) %endif %if %{with fontconfig} BuildRequires: pkgconfig(fontconfig) %endif %if %{with freetype} BuildRequires: pkgconfig(freetype2) %endif %if %{with libavcodec} BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavformat) %endif %if %{with libswscale} BuildRequires: pkgconfig(libswscale) %endif %if %{with libdv} BuildRequires: pkgconfig(libdv) %endif %description %{summary}. This package contains the command line renderer used to convert synfig .sif files to raster images, videos and other formats. Layer types include geometric, gradient, filter, distortion, transformation, fractal and others. %package -n %{soname}%{sover} Summary: Shared library part of %{name} Group: System/Libraries Requires: %{name}-modules >= %{version} %description -n %{soname}%{sover} Vector based 2D animation render. This package contains the shared library. %package modules Summary: Shared library part of %{name} Group: System/Libraries Requires: %{name} = %{version} %description modules Vector based 2D animation render. This package contains modules for %{name}. %package devel Summary: Header files and static library for the %{name} library Group: Development/Libraries/C and C++ Requires: %{soname}%{sover} = %{version} Provides: %{soname}-devel = %{version} Obsoletes: %{soname}-devel < %{version} %description devel Vector based 2D animation render. This package contains the pkgconfig, header files and libraries needed to develop application that use %{name}. %package doc Summary: Documentation for %{name} Group: Documentation/Other BuildArch: noarch %description doc Vector based 2D animation render. This package provides documentation and several examples for %{name}. %lang_package %prep %autosetup -p1 %build # Don't compile in DATE and TIME BUILDDATE=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%b %d %Y') BUILDTIME=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%H:%M') sed -e "s/__DATE__/\"$BUILDDATE\"/" \ -e "s/__TIME__/\"$BUILDTIME\"/" \ -i $(grep -rl '__DATE__\|__TIME__') autoreconf -fiv CFLAGS='%optflags -Wno-deprecated-declarations' CXXFLAGS='%optflags -Wno-deprecated-declarations -Wno-deprecated-copy -std=gnu++11' %configure \ %{!?with_ffmpeg:--without-ffmpeg} \ %{!?with_fontconfig:--without-fontconfig} \ %{!?with_freetype:--without-freetype} \ %{!?with_jpeg:--without-jpeg} \ %{!?with_imagemagick:--without-imagemagick} \ %{?with_libavcodec:--with-libavcodec} \ %{!?with_libswscale:--without-libswscale} \ %{!?with_magickpp:--without-magickpp} \ %{!?with_openexr:--without-openexr} \ %{!?with_libdv:--without-libdv} \ --sysconfdir=%{_sysconfdir}/%{name} make %{?_smp_mflags} %install %make_install %find_lang %{name} %{?no_lang_C} --without-gnome --without-kde find {doc,examples} -type f ! -iname \make* -exec \ install -Dm0644 \{\} %{buildroot}%{_docdir}/%{name}/\{\} \; find %{buildroot} -type f -name \*.la -exec rm -f \{\} \; %post -n %{soname}%{sover} -p /sbin/ldconfig %postun -n %{soname}%{sover} -p /sbin/ldconfig %files %defattr(-,root,root) %doc COPYING NEWS README TODO %{_bindir}/%{name} %dir %{_sysconfdir}/%{name} %config %{_sysconfdir}/%{name}/%{name}*.cfg %exclude %{_docdir}/%{name}/doc %exclude %{_docdir}/%{name}/examples %files -n %{soname}%{sover} %defattr(-,root,root) %{_libdir}/%{soname}.so.* %files modules %defattr(-,root,root) %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/modules %{_libdir}/%{name}/modules/*.so %files devel %defattr(-,root,root) %{_bindir}/%{name}-config %{_includedir}/%{name}*/ %{_libdir}/%{soname}.so %{_libdir}/pkgconfig/%{name}.pc %files doc %defattr(-,root,root) %{_docdir}/%{name}/doc/ %{_docdir}/%{name}/examples/ %files lang -f %{name}.lang %defattr(-,root,root) %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.