%define desktop_file 1 %define desktop_file_utils_version 0.2.90 Summary: An X Window System tool for drawing basic vector graphics. Name: xfig Version: 3.2.5c Release: 2%{?_dist_release} License: MIT Group: Applications/Graphics URL: http://www.xfig.org/ Source0: http://www.xfig.org/xfigdist/xfig.%{version}.full.tar.gz Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.sh Source4: Fig.ad.ja Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-Imakefile.patch Patch3: xfig-3.2.5-urwfonts.patch Patch4: 31_spelling.patch Patch5: 33_pdfimport_mediabox.patch # xfig_man.html is not in 3.2.5c tarball from some reason, # but makefile still tries to install it Patch6: 38_formatstring.patch Patch7: 39_add_xfig_man_html.patch Patch8: 40_fix_dash_list_for_different_styles.patch Patch9: xfig-3.2.5-rhbz1046102.patch # patches for libXaw3dxft from http://sourceforge.net/projects/sf-xpaint/files/xaw3dxft-progs/ # modified by deleting debian-related patch Patch100: xfig-xft.patch.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: desktop-file-utils BuildRequires: freetype2-devel BuildRequires: imake BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel BuildRequires: libXaw3dXft-devel BuildRequires: libXmu-devel BuildRequires: libXpm-devel BuildRequires: libXt-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: zlib-devel Requires: hicolor-icon-theme Requires: transfig >= 3.2.5 Requires: urw-fonts Requires: xdg-utils Vendor: Project Vine Distribution: Vine Linux %description Xfig is an X Window System tool for creating basic vector graphics, including bezier curves, lines, rulers and more. The resulting graphics can be saved, printed on PostScript printers or converted to a variety of other formats (e.g., X11 bitmaps, Encapsulated PostScript, LaTeX). %prep %setup -q -n xfig.%{version} -a 1 %patch0 -p1 -b .redhat %patch1 -p1 -b .Imakefile %patch3 -p1 -b .urw %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch100 -p1 -b .xft # above patch is not enough sed -i -e 's|X11/Xaw3d/|X11/Xaw3dxft/|g' w_listwidget.c sed -i -e 's|X11/Xaw3d/|X11/Xaw3dxft/|g' SmeCascade.h iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp chmod -x `find -type f` %build xmkmf make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ INCLUDES=`pkg-config --cflags freetype2` \ CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" %install rm -rf $RPM_BUILD_ROOT make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ INSTALL="install -p" install.all install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \ %{buildroot}%{_docdir}/%{name}-%{version} # remove the map generation scripts, these are for xfig developers only rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble # remove app-defaults symlink which gets installed rm $RPM_BUILD_ROOT%{_prefix}/lib*/X11/app-defaults install -D -p -m 644 %{name}16x16.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm install -D -p -m 644 %{name}32x32.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm install -D -p -m 644 %{name}64x64.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} %clean rm -rf $RPM_BUILD_ROOT %post update-desktop-database &> /dev/null || : 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 update-desktop-database &> /dev/null || : 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 %defattr(-,root,root) %doc %{_docdir}/%{name}-%{version} %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/*/* %{_datadir}/X11/app-defaults/* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/??x??/apps/%{name}.xpm %changelog * Sun Jan 11 2015 Ryoichi INAGAKI 3.2.5c-2 - added Patch100 * Sat Oct 11 2014 Ryoichi INAGAKI 3.2.5c-1 - updated to 3.2.5c - updated Source1 - added Patch 4-9 from Fedora and dropt Patch7, 9, 10 and 19 - build with libXaw3dXft * Thu Sep 03 2009 Daisuke SUZUKI 3.2.5-1 - new usptream release - build with modular X - import patched from fedora package. - drop jp patch * Sat Jul 29 2006 Ryoichi INAGAKI 3.2.4-2vl5 - rebuilt with Xaw3d-1.5-17vl3 * Fri Sep 10 2004 Ryoichi INAGAKI 3.2.4-2vl4 - Requires transfig >= 3.2.4, ghostscript - build with -march=i386 - changed Group - fixed .desktop file * Wed Sep 8 2004 Ryoichi INAGAKI 3.2.4-2vl3 - rebuild with gcc-3.3.2 - added BuildPrereq: Xaw3d-devel * Sun Aug 31 2003 Ryoichi INAGAKI 3.2.4-2vl2 - based on Rawhide 3.2.4-2 * Tue May 6 2003 Than Ngo 3.2.4-1 - 3.2.4 * Wed Jul 24 2002 Than Ngo 3.2.3d-8 - desktop file issue (bug #69543) * Tue Jun 25 2002 Than Ngo 3.2.3d-7 - add patch file using mkstemp (bug #67351) * Tue Jul 03 2001 Than Ngo - fix export to eps when i18n set (bug #45114) - update Source3 - previous Patch0 moved to Patch10 - rebuild with new toolchains * Sun Aug 20 2000 Jun Nishii - 3.2.3c-0vl1 - use brp * Mon Jan 24 2000 Atsushi Saito - update to 3.2.3a * Tue Dec 21 1999 Atsushi Saito - update to 3.2.3-beta-1 - i18n * Thu Sep 23 1999 Preston Brown - add icon - don't compile with optimization on alpha * Mon Aug 30 1999 Preston Brown - converted to use a .desktop file * Fri Mar 26 1999 Michael Maher - added files that were missing. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) - varargs fix * Thu Feb 18 1999 Jeff Johnson - correct DESTDIRR typo (#962) * Wed Dec 30 1998 Cristian Gafton - build for glibc 2.1 * Tue Jul 7 1998 Jeff Johnson - updated to 3.2.2. * Wed Jun 10 1998 Prospector System - translations modified for de * Fri May 08 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 11 1998 Cristian Gafton - updated for manhattan - buildroot * Thu Oct 23 1997 Marc Ewing - new version - messed with config for 5.0 - updated Requires and Copyright - added wmconfig * Mon Jul 21 1997 Erik Troan - built against glibc