+Source0: https://gitlab.gnome.org/GNOME/dia/-/archive/%{gitref}/%{name}-%{snap}.tar.bz2
+# Source0-md5: a22cfc481bb22461ca63dc47e1693411
+Source1: http://dia-installer.de/shapes/central_data_processing/central_data_processing.zip
+# Source1-md5: 103865b35609d2a0f8a0e034c49cf130
+Source2: http://dia-installer.de/shapes/chemistry_lab/chemistry_lab.zip
+# Source2-md5: ad752d7dfb733b6a9f8c54e05685223c
+Source3: http://dia-installer.de/shapes/cmos/cmos.zip
+# Source3-md5: 65f319c9c0c15d0691f9e97fd034c005
+Source4: http://dia-installer.de/shapes/digital/digital.zip
+# Source4-md5: 8eef8562b618254fc5ebd4ac3f4f15ed
+Source5: http://dia-installer.de/shapes/edpc/edpc.zip
+# Source5-md5: 6d62a586419b5ed616cc2a67f80a2e3d
+Source6: http://dia-installer.de/shapes/electronic/electronic.zip
+# Source6-md5: ddeca421f725af66be41f14ab170b2b8
+Source7: http://dia-installer.de/shapes/lst/lst.zip
+# Source7-md5: 84d216457305ae53eb1635f6abaa4368
+Source8: http://dia-installer.de/shapes/optics/optics.zip
+# Source8-md5: 6c2bb1ffa6229b832e2d24fb1fd927c9
+Source9: http://dia-installer.de/shapes/Racks/Racks.zip
+# Source9-md5: 5ca48da8899b28ed266e21ba522d1e64
+Source10: http://dia-installer.de/shapes/renewable_energy/renewable_energy.zip
+# Source10-md5: 13e7e934ab87b924101faaf56414ad00
+Source11: http://dia-installer.de/shapes/scenegraph/scenegraph.zip
+# Source11-md5: 2bca8efa9bae10c13968ebacc9f1a00b
+Source12: http://dia-installer.de/shapes/gradient/gradient.zip
+# Source12-md5: 74cf1befc74dd2775780664c3bbf5f6f
+Source13: http://dia-installer.de/shapes/HVAC/HVAC.zip
+# Source13-md5: 8789f851c6bc464977d991de28464076
+Source14: http://dia-installer.de/shapes/Electrical/Electrical.zip
+# Source14-md5: 5c5abbc16025b31a6d317dbd472d8d78
+Source15: http://dia-installer.de/shapes/electric2/electric2.zip
+# Source15-md5: 0853a35f5df120d2eae441de107fd57a
+Source16: http://dia-installer.de/shapes/Circuit2/Circuit2.zip
+# Source16-md5: d3d03e2ec873daa8a368e83823b5c9c1
+Source17: http://dia-installer.de/shapes/CH-1/CH-1.zip
+# Source17-md5: 0e30c10b308c9dbab56ac445067bc983
+Source18: http://dia-installer.de/shapes/building_site/building_site.zip
+# Source18-md5: 5ba58c82686b845c3026bcb770c55850
+Source19: http://dia-installer.de/shapes/AUTOSAR/AUTOSAR.zip
+# Source19-md5: 16593b97d1c76d31891923abd4b4925f
+Source20: http://dia-installer.de/shapes/Automata/Automata.zip
+# Source20-md5: 82f60fe376fcbe238b46d60e2dfdf355
+Source21: http://dia-installer.de/shapes/value_stream_mapping/value_stream_mapping.zip
+# Source21-md5: 98705330f435f06c7a8864b543ef4617
+Patch0: %{name}-wmf-cast.patch
+Patch1: soname.patch
+Patch2: emf-detect.patch
+URL: https://live.gnome.org/Dia
+#Library emf found: NO
+#Library ogdf found: NO
+BuildRequires: cairo-devel >= 1.0.0
+BuildRequires: dblatex
+BuildRequires: docbook-style-xsl
+BuildRequires: gettext-tools
+BuildRequires: graphene-devel
+BuildRequires: gtk+2-devel >= 2:2.6.0
+BuildRequires: intltool >= 0.35.0
+BuildRequires: libEMF-devel
+BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libxml2-devel >= 2.3.9