Projects
Multimedia
synfig
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
synfig.spec
Changed
@@ -12,6 +12,16 @@ %define lib libsynfig %define libname %{lib}%{major} +%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 + Name: synfig Summary: Core package for synfig studio Summary(de): Basispaket für das Synfig Studio @@ -23,42 +33,50 @@ Source0: %{name}-%{version}.tar.xz Patch0: synfig-configure-debug.patch Patch1: synfig-no-buildtime.patch -BuildRequires: libtool -BuildRequires: automake +Patch2: synfig-intltoolize.patch +%if %{with imagemagick} +BuildRequires: ImageMagick-devel +%endif BuildRequires: autoconf -BuildRequires: gettext-devel -BuildRequires: ETL-devel -BuildRequires: fontconfig-devel -BuildRequires: freetype2-devel -BuildRequires: glib2-devel -BuildRequires: libffmpeg-devel >= 0.5 +BuildRequires: automake +BuildRequires: boost-devel >= 1.53.0 +BuildRequires: gcc-c++ +BuildRequires: intltool +%if %{with jpeg} BuildRequires: libjpeg-devel -%if %suse_version > 1120 +%endif +BuildRequires: libmng-devel BuildRequires: libpng12-compat-devel -%else -BuildRequires: libpng-devel +BuildRequires: libtool +BuildRequires: pkgconfig(ETL) >= 0.04.18 +%if %{with magickpp} +BuildRequires: pkgconfig(Magick++) >= 6.4.2 %endif -BuildRequires: libsigc++2-devel -BuildRequires: libstdc++-devel -BuildRequires: libxml++-devel >= 2.6 -BuildRequires: libxml2-devel -BuildRequires: OpenEXR-devel -BuildRequires: xorg-x11-devel +%if %{with openexr} +BuildRequires: pkgconfig(OpenEXR) +%endif +BuildRequires: pkgconfig(cairo) >= 1.12.0 +%if %{with fontconfig} +BuildRequires: pkgconfig(fontconfig) +%endif +%if %{with freetype} +BuildRequires: pkgconfig(freetype2) +%endif +BuildRequires: pkgconfig(giomm-2.4) >= 2.18.2 +BuildRequires: pkgconfig(glibmm-2.4) >= 2.24.2 +%if %{with libavcodec} +BuildRequires: pkgconfig(libavcodec) +BuildRequires: pkgconfig(libavformat) +%endif +%if %{with libswscale} +BuildRequires: pkgconfig(libswscale) +%endif +BuildRequires: pkgconfig(libxml++-2.6) +BuildRequires: pkgconfig(mlt++) +BuildRequires: pkgconfig(pango) +BuildRequires: pkgconfig(pangocairo) +BuildRequires: pkgconfig(sigc++-2.0) BuildRequires: zlib-devel -BuildRequires: gcc-c++ -BuildRequires: libmlt++-devel -BuildRequires: shared-mime-info -BuildRequires: libtiff-devel -BuildRequires: libmng-devel -BuildRequires: ImageMagick -BuildRequires: ImageMagick-devel -#BuildRequires: GraphicsMagick-devel -BuildRequires: libGraphicsMagick++-devel -#BuildRequires: libMagick++-devel -BuildRequires: glibmm2-devel -BuildRequires: cairo-devel -BuildRequires: pango-devel -BuildRequires: boost-devel Requires: %{libname} = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %lang_package @@ -93,36 +111,6 @@ Provides: synfig-devel = %{version}-%{release} Obsoletes: %{libname}-devel < %{version} Provides: %{libname}-devel = %{version}-%{release} -Requires: ETL-devel -Requires: fontconfig-devel -Requires: freetype2-devel -Requires: glib2-devel -Requires: glibc-devel -Requires: libffmpeg-devel >= 0.5 -Requires: libjpeg-devel -%if %suse_version > 1120 -Requires: libpng12-compat-devel -%else -Requires: libpng-devel -%endif -Requires: libsigc++2-devel -Requires: libstdc++-devel -Requires: libxml++-devel >= 2.6 -Requires: libxml2-devel -Requires: OpenEXR-devel -Requires: xorg-x11-devel -Requires: zlib-devel -Requires: gcc-c++ -Requires: shared-mime-info -Requires: libtiff-devel -Requires: libmng-devel -Requires: ImageMagick -Requires: ImageMagick-devel -Requires: glibmm2-devel -#Requires: GraphicsMagick-devel -#Requires: GraphicsMagick -#Requires: libGraphicsMagick++-devel -#Requires: libMagick++-devel %description -n %{lib}-devel Core package for synfig studio @@ -137,24 +125,25 @@ %prep -%setup -n synfig-%{version} +%setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build autoreconf --install --force +intltoolize -f %configure \ - --with-imagemagick \ - --with-magickpp \ - --with-ffmpeg \ - --without-vimage \ + %{?_with_ffmpeg} \ + %{?_with_fontconfig} \ + %{?_with_freetype} \ + %{?_with_jpeg} \ + %{?_with_imagemagick} \ + %{?_with_libavcodec} \ + %{?_with_libswscale} \ + %{?_with_magickpp} \ + %{?_with_openexr} \ --without-libdv \ - --without-libavcodec \ - --with-libswscale \ - --with-freetype \ - --with-fontconfig \ - --with-openexr \ - --with-jpeg \ --disable-static %{__make} %{?jobs:-j%{jobs}} @@ -162,7 +151,7 @@ %{makeinstall} rm -f examples/walk/Makefile* chmod 644 examples/walk/frame_*.jpg -%find_lang %{name} %{?no_lang_C} +%find_lang %{name} %{?no_lang_C} --without-gnome --without-kde %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
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
.