From 21b7375f1c6834d344f367095fe6eb3907695caf Mon Sep 17 00:00:00 2001 From: guibuilder_pel7x64builder0 Date: Mon, 8 Jul 2019 23:12:10 +0200 Subject: [PATCH] dia package creation Signed-off-by: guibuilder_pel7x64builder0 --- SPECS/dia.spec | 514 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 514 insertions(+) create mode 100644 SPECS/dia.spec diff --git a/SPECS/dia.spec b/SPECS/dia.spec new file mode 100644 index 0000000..d3fb2ab --- /dev/null +++ b/SPECS/dia.spec @@ -0,0 +1,514 @@ +Name: dia +Version: 0.97.3 +Release: 1%{?dist} +Epoch: 1 +Summary: Diagram drawing program +License: GPLv2+ +URL: https://wiki.gnome.org/Apps/Dia +Source0: http://ftp.gnome.org/pub/gnome/sources/dia/0.97/dia-%{version}.tar.xz + +BuildRequires: pkgconfig(gtk+-2.0) pkgconfig(libxml-2.0) pkgconfig(libart-2.0) +BuildRequires: freetype-devel +BuildRequires: intltool docbook-utils docbook-style-dsssl docbook-style-xsl +BuildRequires: gettext +BuildRequires: desktop-file-utils +BuildRequires: rarian-compat +# autoreconf +BuildRequires: autoconf automake libtool +Requires: hicolor-icon-theme + +%description +The Dia drawing program can be used to draw different types of diagrams, and +includes support for UML static structure diagrams (class diagrams), +entity relationship modeling, and network diagrams. Dia can load and +save diagrams to a custom file format, can load and save in .xml format, +and can export to PostScript(TM). + + +%prep +%setup -q + +sed -i 's|libdia_la_LDFLAGS = -avoid-version|libdia_la_LDFLAGS = -avoid-version $(shell pkg-config --libs gtk+-2.0 libxml-2.0 libart-2.0)|' \ + lib/Makefile.* +chmod -x `find objects/AADL -type f` +iconv -f WINDOWS-1252 -t UTF8 doc/en/usage-layers.xml > usage-layers.xml.UTF-8 +mv usage-layers.xml.UTF-8 doc/en/usage-layers.xml + +# run in single window mode (--integrated) by default (#910275) +sed -i 's|Exec=dia|Exec=dia --integrated|' dia.desktop.in.in + +%build +%configure --enable-db2html --disable-silent-rules +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT +%find_lang %{name} --with-man + +# Since we're not using the cairo stuff, but a stub plugin still +# gets built, Dia complains it doesn't have an init function. So +# kill the plugin +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libcairo* + +# below is the desktop file and icon stuff. +desktop-file-install --delete-original \ + --vendor powerel \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + --remove-category Application \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc + +# Register as an application to be visible in the software center +# +# NOTE: It would be *awesome* if this file was maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < + + + + dia.desktop + CC0-1.0 + Dia is a GTK+ based diagram creation program + +

+ Dia is roughly inspired by the commercial Windows program 'Visio,' though + more geared towards informal diagrams for casual use. + It can be used to draw many different kinds of diagrams. + It currently has special objects to help draw entity relationship diagrams, + UML diagrams, flowcharts, network diagrams, and many other diagrams. + It is also possible to add support for new shapes by writing simple XML files, + using a subset of SVG to draw the shape. +

+

+ It can load and save diagrams to a custom XML format (gzipped by default, + to save space), can export diagrams to a number of formats, including EPS, + SVG, XFIG, WMF and PNG, and can print diagrams (including ones that span + multiple pages). +

+
+ https://wiki.gnome.org/Apps/Dia + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/dia/a.png + + dia-list@gnome.org +
+EOF + +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%files -f %{name}.lang +%doc AUTHORS COPYING ChangeLog KNOWN_BUGS NEWS README TODO THANKS +%doc doc/custom-shapes doc/diagram.dtd doc/shape.dtd doc/sheet.dtd samples/ +%{_bindir}/%{name} +%{_libdir}/%{name}/*.so +%{_mandir}/man1/%{name}.1.* +%{_datadir}/%{name} +%{_datadir}/applications/powerel-%{name}.desktop +%dir %{_libdir}/%{name} +%{_datadir}/mime-info/* +%{_datadir}/icons/hicolor/*/apps/* +%{_datadir}/appdata/%{name}.appdata.xml + + +%changelog +* Fri Feb 10 2017 Fedora Release Engineering - 1:0.97.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1:0.97.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jul 08 2015 Jiri Popelka - 1:0.97.3-4 +- no need for autoreconf as configure is now generated by Autoconf 2.69 + +* Wed Jun 17 2015 Fedora Release Engineering - 1:0.97.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Mar 26 2015 Richard Hughes - 1:0.97.3-2 +- Add an AppData file for the software center + +* Mon Sep 08 2014 Jiri Popelka - 1:0.97.3-1 +- 0.97.3 + +* Sat Aug 16 2014 Fedora Release Engineering - 1:0.97.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1:0.97.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Mar 10 2014 Jiri Popelka - 1:0.97.2-11 +- BuildRequires: pkgconfig(foo) instead of foo-devel + +* Tue Feb 11 2014 Jiri Popelka - 1:0.97.2-10 +- make it build with freetype >= 2.5.1 + +* Tue Feb 11 2014 Jiri Popelka - 1:0.97.2-9 +- desktop file runs dia in single window mode (--integrated) (#910275) +- update URL + +* Thu Jan 16 2014 Jaromír Končický - 1:0.97.2-8 +- Serbian translation in latin script moved from sr@Latn to sr@latin (#1053543) + +* Thu Aug 15 2013 Jiri Popelka - 1:0.97.2-7 +- Build without GNOME (2) support (#996759) + +* Sat Aug 03 2013 Fedora Release Engineering - 1:0.97.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu May 02 2013 Jiri Popelka - 1:0.97.2-5 +- GLib drop support for adding interfaces after class_init (Gnome #694025) + +* Mon Mar 25 2013 Jiri Popelka - 1:0.97.2-4 +- Run autoreconf prior to running configure (#925250) + +* Sun Feb 17 2013 Christoph Wickert - 1:0.97.2-3 +- De-vendorize desktop file on F19+ (https://fedorahosted.org/fesco/ticket/1077) + +* Wed Feb 13 2013 Fedora Release Engineering - 1:0.97.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Sep 18 2012 Jiri Popelka - 1:0.97.2-1 +- 0.97.2 +- unregister vdx, xfig import filter during plugin unloading (#854368) +- do not own directories owned by filesystem package (#569446) + +* Fri Jul 27 2012 Fedora Release Engineering - 1:0.97.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Feb 25 2012 Bruno Wolff III - 1:0.97.1-3 +- A couple of the test programs used glib with the more loose API +- Use the newer libpng 1.5 API + +* Fri Jan 13 2012 Fedora Release Engineering - 1:0.97.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Dec 8 2011 Peter Robinson - 1:0.97.1-1 +- 0.97.1 + +* Tue Dec 06 2011 Adam Jackson - 1:0.97-7 +- Rebuild for new libpng + +* Wed Oct 26 2011 Fedora Release Engineering - 1:0.97-6 +- Rebuilt for glibc bug#747377 + +* Tue Feb 08 2011 Fedora Release Engineering - 1:0.97-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 15 2010 Huzaifa Sidhpurwala - 1:0.97-4 +- Add BR rarian-compat to fix FTBS for F13 branch + +* Mon Nov 30 2009 Huzaifa Sidhpurwala - 1:0.97-3 +- Fix crash in bz #541319 + +* Wed Aug 05 2009 Huzaifa Sidhpurwala - 1:0.97-2 +- Disable --with-python + +* Fri Jul 24 2009 Huzaifa Sidhpurwala - 1:0.97-1 +- update to 0.97 +- drop old patches + +* Tue Mar 31 2009 Huzaifa Sidhpurwala - 1:0.96.1-17 +- Resolves: rhbz#486726 +- Version bump + +* Tue Feb 24 2009 Fedora Release Engineering - 1:0.96.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 02 2009 Huzaifa Sidhpurwala 1:0.96.1-13 +- Resolves: rhbz#483312 + +* Fri Jan 30 2009 Hans de Goede 1:0.96.1-12 +- Update description for new trademark guidelines + +* Mon Jan 26 2009 Caolán McNamara 1:0.96.1-11 +- Resolves: rhbz#481551 python modules search path + +* Sat Jan 03 2009 Huzaifa Sidhpurwala 1:0.96.1-10 +- Patch so that plugins dont look for .la files + +* Sun Nov 30 2008 Ignacio Vazquez-Abrams - 1:0.96.1-9 +- Rebuild for Python 2.6 + +* Fri Oct 31 2008 Caolán McNamara 1:0.96.1-8 +- kill the ".la"s + +* Wed Oct 22 2008 Caolán McNamara 1:0.96.1-7 +- Resolves: rhbz#464982 FTBFS, defuzz patches + +* Fri Feb 1 2008 Hans de Goede 1:0.96.1-6 +- Fix svg export (bug 431184) + +* Sun Dec 2 2007 Hans de Goede 1:0.96.1-5 +- Do not put dia in both the Office and the Graphics application menus + (bz 408041) + +* Tue Nov 27 2007 Hans de Goede 1:0.96.1-4 +- Fix help not showing due to an encoding error (bz 401291) + +* Mon Aug 6 2007 Hans de Goede 1:0.96.1-3 +- Update License tag for new Licensing Guidelines compliance + +* Sun Jun 10 2007 Hans de Goede 1:0.96.1-2 +- Remove yelp Requires again (bz 243330) + +* Sat Jun 9 2007 Hans de Goede 1:0.96.1-1 +- New upstream release 0.96.1 +- Add yelp Requires so that the help will always work (bz 243330) + +* Thu Mar 29 2007 Hans de Goede 1:0.96-1 +- New upstream release 0.96 +- Drop upstreamed python-25 and sigpipe patches + +* Tue Feb 20 2007 Hans de Goede 1:0.95-8 +- Upgrade to upstream bugfix release 0.95-1 +- Drop upstreamed ungroup and formatstring patches +- Add a patch for python-2.5 support +- Fix exit due to sigpipe when entering an invalid print command (bz 229101) + +* Mon Aug 28 2006 Hans de Goede 1:0.95-7 +- FE6 Rebuild + +* Sun Aug 13 2006 Hans de Goede 1:0.95-6 +- Fix weaksymbols in libdia.so (BZ 202330) + +* Sat Jun 10 2006 Hans de Goede 1:0.95-5 +- Add BuildRequires: gettext to fix building with new stripped mock config. + +* Tue Jun 6 2006 Hans de Goede 1:0.95-4 +- Add a patch from upstream which fixes a crash when ungrouping + multiple selected groups at once (bz 194149): + http://bugzilla.gnome.org/show_bug.cgi?id=334771 + +* Tue May 23 2006 Hans de Goede 1:0.95-3 +- Fix CVE-2006-2453. + +* Sat May 20 2006 Hans de Goede 1:0.95-2 +- Fix CVE-2006-2480 (bz 192535, 192538). + +* Tue Apr 25 2006 Hans de Goede 1:0.95-1 +- New upstream version 0.95 (final) +- Cleanup spec even more, correctly install the desktop file and icons, + drop unneeded scrollkeeper-update in scripts (bz 189756) + +* Fri Mar 31 2006 Hans de Goede 1:0.95-0.pre7.1 +- Taking over as FE maintainer (bz 185886) +- Cleanup spec to match FE packaging guidelines +- Bump to upstream 0.95-pre7 (bz 184548) +- Enable python plugin + +* Tue Jan 03 2006 Caolan McNamara 1:0.94-19 +- make buildable + +* Tue Jan 03 2006 Caolan McNamara 1:0.94-18 +- rh#176504# add BuildRequires + +* Mon Dec 19 2005 Caolan McNamara 1:0.94-17 +- rh#176003# rejig Pre/Post + +* Thu Oct 20 2005 Caolan McNamara 1:0.94-16 + +* Mon Oct 17 2005 Caolan McNamara +- move to extras + +* Sat Apr 16 2005 Caolan McNamara +- rebuild for new cairo soname + +* Fri Apr 8 2005 Caolan McNamara +- rh#165337# crash on >= 1000% xoom + +* Thu Apr 7 2005 Caolan McNamara +- rh#154087# non existing links + +* Fri Mar 25 2005 Florian La Roche +- add PreReq: for scrollkeeper-update + +* Wed Mar 16 2005 Caolan McNamara +- rh#151207# add Requires + +* Mon Mar 14 2005 Caolan McNamara +- rh#150942# add BuildRequires + +* Wed Mar 9 2005 Caolan McNamara +- rh#150305# add dia-0.94-fallbacktoxpmicons.patch + +* Wed Mar 2 2005 Caolan McNamara +- rebuild with gcc4 +- gnome#169019# gcc4 patch + +* Fri Sep 03 2004 Matthias Clasen +- Fix a problem with the help patch + +* Fri Sep 03 2004 Matthias Clasen +- Update to final 0.94 tarball +- Make the help button work (#131622) + +* Wed Aug 18 2004 Dan Williams +- Update to 0.94-pre6 +- Fix RH #110738 + +* Thu Jul 22 2004 Dan Williams +- Update to 0.94-pre1 +- Add BuildRequires: libpng-devel (RH #125287) + +* Fri Jun 25 2004 Dan Williams +- Update to 0.93 + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Tue Feb 24 2004 Alexander Larsson 1:0.92.2-3 +- fix freetype issue + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Dec 9 2003 Alexander Larsson 1:0.92.2-1 +- update to 0.92.2 + +* Mon Oct 13 2003 Alexander Larsson 1:0.91-2 +- Fix font size (backport from cvs). Fixes bug #106045 +- Fix libxslt issue (bug #106863) + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed May 28 2003 Alexander Larsson 1:0.91-1 +- Update to 0.91 +- Remove printing patch, it doesn't nearly apply yet, and might + not be needed since dia is all utf8:y now. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Fri Jan 10 2003 Alexander Larsson 0.90-9 +- Remove duplicate desktop files + +* Fri Dec 6 2002 Havoc Pennington +- rebuild + +* Tue Sep 03 2002 Akira TAGOH 0.90-8 +- dia-0.90-printing.patch: applied to support CJK printing. (#67733) + +* Thu Aug 29 2002 Owen Taylor +- Fix problems with the manual DTD + +* Wed Aug 28 2002 Owen Taylor +- Pass --enable-db2html to configure so we get docs + +* Fri Aug 23 2002 Alexander Larsson 0.90-6 +- Made desktopfile symlink absolute, fixes #71991 + +* Tue Aug 13 2002 Havoc Pennington +- remove libpng10 patches, now using libpng12, #71416 + +* Mon Jul 29 2002 Havoc Pennington +- put pristine upstream tarball back +- fix up desktop files + +* Tue Jul 23 2002 Karsten Hopp +- fix menu entry (#69564) + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Tue Jun 11 2002 root 0.90-1 +- Updated to 0.90 from upstream. Removed outdated patches, updated png10 patch. + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Jan 30 2002 Bill Nottingham +- rebuild against png10 + +* Thu Jan 24 2002 Havoc Pennington +- rebuild in rawhide + +* Thu Jul 19 2001 Havoc Penningtoon +- Add some more build requires, #44732 + +* Tue Jul 10 2001 Alexander Larsson +- Disable doc generation, since it breaks. + +* Mon Jul 9 2001 Alexander Larsson +- Updated from upstream (0.88.1) +- Removed source1 (ja.po) since it was in upstream +- Disabled patch1 since it breaks 8bit non-multibyte locales. +- Updated patch 3 + +* Fri Jun 15 2001 Havoc Penningtoon +- add some BuildRequires + +* Fri Feb 23 2001 Trond Eivind Glomsrød +- langify +- use %%{_tmppath} + +* Fri Feb 09 2001 Akira TAGOH +- -2 +- Fixed install po. +- Updated Japanese translation. + Note: Please remove Source1: when release the next upstream version. +- Added Japanese patch. +- -3 +- Fixed text render bug. + +* Mon Jan 29 2001 Preston Brown +- upgraded to fix i18n issues (#24875) + +* Fri Aug 11 2000 Jonathan Blandford +- Up Epoch and release + +* Fri Aug 04 2000 Havoc Pennington +- Whatever, 15321 was already fixed (it's under plain Applications), + change the group back + +* Fri Aug 04 2000 Havoc Pennington +- Put it in Applications/Graphics bug 15321 + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Tue Jun 6 2000 Tim Powers +- fixed manpage location +- use %%makinstall + +* Mon May 1 2000 Matt Wilson +- updates to 0.84, added alpha back in + +* Mon Nov 8 1999 Tim Powers +- updated to 0.81 + +* Mon Aug 30 1999 Tim Powers +- changed group + +* Tue Aug 17 1999 Tim Powers +- exludearch alpha dumps core when you do anything + +* Mon Jul 12 1999 Tim Powers +- rebuilt for 6.1 + +* Wed Apr 28 1999 Preston Brown +- initial build for Powertools 6.0