From deaf0af570611ab6d91b096237d463fe8eff72fc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 12 Aug 2012 18:06:54 +0200 Subject: [PATCH 01/61] Re-organize / consolidate patches - Add a bunch of patches (minor bug-fixes) from the Debian package - Add better icons from the Debian package --- .gitignore | 1 + 03_usr_share.patch | 35 ++ 12_network_images.patch | 361 ++++++++++++++++++ 13_remove_extra_libs.patch | 21 + 31_spelling.patch | 23 ++ 32_papersize_b1.patch | 22 ++ 33_pdfimport_mediabox.patch | 33 ++ ...r-overflow.patch => 35_CVE-2010-4262.patch | 14 +- 36_libpng15.dpatch => 36_libpng15.patch | 20 +- ...-reading.patch => 37_fix-eps-reading.patch | 12 +- 38_formatstring.patch | 14 + sources | 1 + ...dularX.patch => xfig-3.2.5-Imakefile.patch | 20 +- xfig-3.2.5-debian.patch | 48 --- xfig-3.2.5-fhs.patch | 12 - xfig-3.2.5a-default-apps.patch | 13 +- xfig.3.2.5-Xaw3d.patch | 12 - xfig.png | Bin 650 -> 0 bytes xfig.spec | 126 +++--- 19 files changed, 630 insertions(+), 158 deletions(-) create mode 100644 03_usr_share.patch create mode 100644 12_network_images.patch create mode 100644 13_remove_extra_libs.patch create mode 100644 31_spelling.patch create mode 100644 32_papersize_b1.patch create mode 100644 33_pdfimport_mediabox.patch rename xfig-3.2.5b-fix-fig-buffer-overflow.patch => 35_CVE-2010-4262.patch (57%) rename 36_libpng15.dpatch => 36_libpng15.patch (80%) rename xfig-3.2.5b-fix-eps-reading.patch => 37_fix-eps-reading.patch (86%) create mode 100644 38_formatstring.patch rename xfig.3.2.5-modularX.patch => xfig-3.2.5-Imakefile.patch (66%) delete mode 100644 xfig-3.2.5-debian.patch delete mode 100644 xfig-3.2.5-fhs.patch delete mode 100644 xfig.3.2.5-Xaw3d.patch delete mode 100644 xfig.png diff --git a/.gitignore b/.gitignore index b652b45..64810f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ xfig.3.2.5b.full.tar.gz +/xfig-icons.tar.gz diff --git a/03_usr_share.patch b/03_usr_share.patch new file mode 100644 index 0000000..0f09372 --- /dev/null +++ b/03_usr_share.patch @@ -0,0 +1,35 @@ +From: Roland Rosenfeld +Subject: Change documentation, that image libraries are in + +--- a/Doc/xfig.man ++++ b/Doc/xfig.man +@@ -1475,8 +1475,11 @@ + See the + .IR Imakefile . + .TP +-/usr/lib/X11/xfig +-This directory contains the html documentation, the above mentioned ++/usr/share/doc/xfig ++This directory contains the documentation. ++.TP ++/usr/share/xfig ++This directory contains the above mentioned + CompKeyDB file, and a directory of libraries containing Fig objects + such as electrical symbols, logic symbols, etc. + .TP +--- a/Doc/xfig_man.html ++++ b/Doc/xfig_man.html +@@ -2539,8 +2539,11 @@ + See the + Imakefile. + +-
/usr/lib/X11/xfig
+-This directory contains the html documentation, the above mentioned ++
/usr/share/doc/xfig
++This directory contains the documentation. ++ ++
/usr/share/xfig
++This directory contains the above mentioned + CompKeyDB file, and a directory of libraries containing Fig objects + such as electrical symbols, logic symbols, etc. +
Fig.ad and Fig-color.ad diff --git a/12_network_images.patch b/12_network_images.patch new file mode 100644 index 0000000..0f63ac1 --- /dev/null +++ b/12_network_images.patch @@ -0,0 +1,361 @@ +From: Roland Rosenfeld +Subject: Some network icons colored and/or combined by Roland Rosenfeld. + +--- /dev/null ++++ b/Libraries/Networks/Devices/firewall-pair.fig +@@ -0,0 +1,75 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Inches ++A4 ++100.00 ++Single ++-2 ++# A pair of firewalls ++# Combined by Roland Rosenfeld ++1200 2 ++0 32 #aeaaae ++# A pair of firewalls ++6 3375 2175 4050 3075 ++6 3600 2250 4050 3075 ++# Firewall ++# (from TomiOllila ) ++6 3600 2250 4050 3075 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3825 3075 3825 2475 ++2 1 0 1 0 20 2 0 20 0.000 0 0 -1 0 0 5 ++ 3675 2475 3675 3075 3825 3075 3975 2925 3975 2400 ++2 1 0 1 0 32 1 0 20 0.000 0 0 -1 0 0 7 ++ 3600 2400 3600 2475 3900 2475 4050 2325 4050 2250 3750 2250 ++ 3600 2400 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 ++ 3900 2475 3900 2400 3600 2400 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3900 2400 4050 2250 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 ++ 3675 2625 3825 2625 3975 2475 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 ++ 3675 2775 3825 2775 3975 2625 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 ++ 3675 2925 3825 2925 3975 2775 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3900 3000 3900 2850 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3900 2700 3900 2550 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3750 2475 3750 2625 ++2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 ++ 3750 2775 3750 2925 ++-6 ++-6 ++6 3375 2175 3825 3000 ++6 3450 2175 3825 3000 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3600 3000 3600 2400 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3675 2325 3825 2175 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 ++ 3450 2550 3600 2550 3750 2400 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 ++ 3450 2700 3600 2700 3750 2550 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 ++ 3450 2850 3600 2850 3750 2700 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3675 2925 3675 2775 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3675 2625 3675 2475 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3525 2400 3525 2550 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 ++ 3525 2700 3525 2850 ++-6 ++2 1 0 1 0 20 22 0 20 0.000 0 0 -1 0 0 5 ++ 3450 2400 3450 3000 3600 3000 3750 2850 3750 2325 ++2 1 0 1 0 32 21 0 20 0.000 0 0 -1 0 0 7 ++ 3375 2325 3375 2400 3675 2400 3825 2250 3825 2175 3525 2175 ++ 3375 2325 ++2 1 0 1 0 7 20 0 -1 0.000 0 0 -1 0 0 3 ++ 3675 2400 3675 2325 3375 2325 ++-6 ++-6 +--- /dev/null ++++ b/Libraries/Networks/Devices/internet.fig +@@ -0,0 +1,39 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Inches ++A4 ++100.00 ++Single ++-2 ++# Internet cloud ++# By Roland Rosenfeld ++1200 2 ++# An Internet cloud ++6 4275 5700 7200 7650 ++2 1 0 0 7 7 970 0 20 4.000 0 0 0 0 0 65 ++ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888 ++ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244 ++ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825 ++ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915 ++ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825 ++ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244 ++ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888 ++ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265 ++ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557 ++ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594 ++ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111 ++2 1 0 2 1 0 969 0 -1 0.000 0 0 0 0 0 65 ++ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888 ++ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244 ++ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825 ++ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915 ++ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825 ++ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244 ++ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888 ++ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265 ++ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557 ++ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594 ++ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111 ++4 0 0 100 0 18 33 0.0000 4 405 2040 4744 6853 Internet\001 ++-6 +--- /dev/null ++++ b/Libraries/Networks/Routers/router-pair.fig +@@ -0,0 +1,78 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Inches ++A4 ++100.00 ++Single ++-2 ++# A pair of routers ++# Colored and combined by Roland Rosenfeld ++1200 2 ++# A pair of routers ++6 3150 3300 4275 3975 ++6 3346 3450 4269 3975 ++6 3844 3615 4173 3718 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3879 3701 3854 3647 3976 3624 3955 3642 4159 3676 4111 3713 ++ 3908 3676 3879 3701 ++-6 ++6 3617 3636 3803 3759 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3764 3731 3638 3754 3634 3694 3671 3703 3738 3646 3800 3657 ++ 3727 3719 3764 3731 ++-6 ++6 3803 3470 3988 3594 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8 ++ 3837 3518 3982 3481 3983 3541 3947 3535 3876 3591 3809 3581 ++ 3882 3526 3837 3518 ++-6 ++1 2 0 1 0 15 51 0 20 0.000 1 0.0000 3807 3619 457 169 3349 3619 4264 3619 ++1 2 0 1 0 15 53 0 20 0.000 1 0.0000 3803 3806 457 169 3346 3806 4261 3806 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3705 3557 3738 3608 3609 3637 3638 3615 3439 3581 3488 3545 ++ 3681 3576 3705 3557 ++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 ++ 3350 3613 3347 3812 ++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 ++ 4263 3626 4263 3815 ++2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5 ++ 3349 3626 4269 3626 4269 3800 3349 3800 3349 3626 ++-6 ++6 3150 3300 4125 3825 ++6 3600 3450 3975 3600 ++# polyline ++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 ++ 3683 3551 3658 3497 3780 3474 3759 3492 3963 3526 3915 3563 ++ 3712 3526 3683 3551 ++-6 ++6 3600 3300 3825 3450 ++# polyline ++2 1 0 1 0 7 60 0 20 0.000 0 0 7 0 0 8 ++ 3641 3368 3786 3331 3787 3391 3751 3385 3680 3441 3613 3431 ++ 3686 3376 3641 3368 ++-6 ++6 3375 3450 3675 3675 ++# polyline ++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 ++ 3568 3581 3442 3604 3438 3544 3475 3553 3542 3496 3604 3507 ++ 3531 3569 3568 3581 ++-6 ++1 2 0 1 0 15 61 0 20 0.000 1 0.0000 3611 3469 457 169 3153 3469 4068 3469 ++1 2 0 1 0 15 63 0 20 0.000 1 0.0000 3607 3656 457 169 3150 3656 4065 3656 ++2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2 ++ 4067 3476 4067 3665 ++# polyline ++2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 ++ 3509 3407 3542 3458 3413 3487 3442 3465 3243 3431 3292 3395 ++ 3485 3426 3509 3407 ++2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2 ++ 3154 3463 3151 3662 ++2 2 0 0 0 15 62 -1 20 0.000 0 0 -1 0 0 5 ++ 3153 3476 4073 3476 4073 3650 3153 3650 3153 3476 ++-6 ++-6 +--- /dev/null ++++ b/Libraries/Networks/Routers/router4.fig +@@ -0,0 +1,44 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Metric ++A4 ++100.00 ++Single ++-2 ++# Router ++# Colored by Roland Rosenfeld ++1200 2 ++# Router ++6 3870 4455 5940 5625 ++6 4995 4815 5715 5040 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 5072 5002 5018 4886 5284 4834 5238 4873 5683 4948 5578 5030 ++ 5136 4948 5072 5002 ++-6 ++6 4500 4860 4905 5130 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 4822 5067 4545 5117 4537 4989 4618 5007 4766 4883 4900 4905 ++ 4741 5041 4822 5067 ++-6 ++6 4905 4500 5310 4770 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8 ++ 4981 4603 5296 4523 5300 4653 5222 4640 5066 4762 4919 4741 ++ 5079 4622 4981 4603 ++-6 ++1 2 0 1 0 15 51 0 20 0.000 1 0.0000 4914 4824 999 369 3915 4824 5913 4824 ++1 2 0 1 0 15 53 0 20 0.000 1 0.0000 4908 5231 999 369 3909 5231 5907 5231 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 4693 4690 4766 4800 4483 4863 4545 4814 4111 4740 4219 4661 ++ 4640 4731 4693 4690 ++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 ++ 3917 4811 3910 5244 ++2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 ++ 5910 4838 5910 5251 ++2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5 ++ 3915 4838 5924 4838 5924 5218 3915 5218 3915 4838 ++-6 +--- /dev/null ++++ b/Libraries/Networks/Switches/switch-pair.fig +@@ -0,0 +1,66 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Inches ++A4 ++100.00 ++Single ++-2 ++# A pair of switches ++# Colored and combined by Roland Rosenfeld ++1200 2 ++# A pair of switches ++6 2550 2625 4725 3750 ++6 2625 2850 4725 3750 ++6 3000 2850 4425 3300 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126 ++ 3214 3184 3608 3184 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182 ++ 4040 3124 3646 3124 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954 ++ 3371 3012 3765 3012 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017 ++ 4216 2959 3822 2959 ++-6 ++2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4 ++ 4125 3300 4725 2850 4725 3300 4125 3750 ++2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5 ++ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300 ++2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5 ++ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300 ++-6 ++6 2550 2625 4650 3525 ++6 2925 2625 4350 3075 ++# polyline ++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 ++ 3528 2955 3506 2985 3119 2985 3086 3015 2953 2970 3193 2901 ++ 3139 2959 3533 2959 ++# polyline ++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 ++ 3576 2903 3598 2873 3985 2873 4018 2843 4151 2888 3911 2957 ++ 3965 2899 3571 2899 ++# polyline ++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 ++ 3685 2783 3663 2813 3276 2813 3243 2843 3110 2798 3350 2729 ++ 3296 2787 3690 2787 ++# polyline ++2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 ++ 3752 2738 3774 2708 4161 2708 4194 2678 4327 2723 4087 2792 ++ 4141 2734 3747 2734 ++-6 ++2 1 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 4 ++ 4050 3075 4650 2625 4650 3075 4050 3525 ++2 2 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 5 ++ 2550 3075 4050 3075 4050 3525 2550 3525 2550 3075 ++2 3 0 1 0 15 62 -1 20 0.000 0 0 -1 0 0 5 ++ 2550 3075 3150 2625 4650 2625 4050 3075 2550 3075 ++-6 ++-6 +--- /dev/null ++++ b/Libraries/Networks/Switches/switch2.fig +@@ -0,0 +1,38 @@ ++#FIG 3.2 Produced by xfig version 3.2.5-alpha5 ++Portrait ++Center ++Inches ++A4 ++100.00 ++Single ++-2 ++# Switch ++# colored by Roland Rosenfeld ++1200 2 ++# Switch ++6 2625 2850 4725 3750 ++6 3000 2850 4425 3300 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126 ++ 3214 3184 3608 3184 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182 ++ 4040 3124 3646 3124 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954 ++ 3371 3012 3765 3012 ++# polyline ++2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 ++ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017 ++ 4216 2959 3822 2959 ++-6 ++2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4 ++ 4125 3300 4725 2850 4725 3300 4125 3750 ++2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5 ++ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300 ++2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5 ++ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300 ++-6 diff --git a/13_remove_extra_libs.patch b/13_remove_extra_libs.patch new file mode 100644 index 0000000..6db176f --- /dev/null +++ b/13_remove_extra_libs.patch @@ -0,0 +1,21 @@ +From: Roland Rosenfeld +Subject: Remove unnecessary dependencies on libz, libXmu, libSM, libICE, libXext + +--- a/Imakefile ++++ b/Imakefile +@@ -227,7 +227,14 @@ + XCOMM #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB) + #ifdef XawClientLibs + # undef XawClientLibs +-# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XTOOLONLYLIIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) ++# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XTOOLONLYLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) ++#endif ++ ++XCOMM Shorten unnecessary dependencies: ++XCOMM #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB) ++#ifdef XawClientLibs ++# undef XawClientLibs ++# define XawClientLibs $(XAWLIB) $(XTOOLONLYLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) + #endif + + XCOMM ***************************************************** diff --git a/31_spelling.patch b/31_spelling.patch new file mode 100644 index 0000000..e92e64c --- /dev/null +++ b/31_spelling.patch @@ -0,0 +1,23 @@ +From: Roland Rosenfeld +Subject: Fix spelling errors in binary. + +--- a/f_load.c ++++ b/f_load.c +@@ -373,5 +373,5 @@ + /* Format error; relevant error message is already delivered */ + ; + else +- file_msg("File \"%s\" is not accessable; %s.", file, strerror(err)); ++ file_msg("File \"%s\" is not accessible; %s.", file, strerror(err)); + } +--- a/f_readgif.c ++++ b/f_readgif.c +@@ -137,7 +137,7 @@ + + if (c == '!') { /* Extension */ + if (! ReadOK(file,&c,1)) +- file_msg("GIF read error on extention function code"); ++ file_msg("GIF read error on extension function code"); + (void) DoGIFextension(file, c); + continue; + } diff --git a/32_papersize_b1.patch b/32_papersize_b1.patch new file mode 100644 index 0000000..5a33604 --- /dev/null +++ b/32_papersize_b1.patch @@ -0,0 +1,22 @@ +From: Roland Rosenfeld +Subject: xfig -papersize b1 now really uses B1 instead of B10; Closes: #535181 +Bug-Debian: http://bugs.debian.org/535181 + +--- a/resources.c ++++ b/resources.c +@@ -228,7 +228,6 @@ + {"A2 ", "ISO A2 ( 420mm x 594mm)", 19843, 28063}, + {"A1 ", "ISO A1 ( 594mm x 841mm)", 28063, 39732}, + {"A0 ", "ISO A0 ( 841mm x 1189mm)", 39732, 56173}, +- {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117}, + {"B9 ", "JIS B9 ( 45mm x 64mm)", 2117, 3017}, + {"B8 ", "JIS B8 ( 64mm x 91mm)", 3017, 4300}, + {"B7 ", "JIS B7 ( 91mm x 128mm)", 4300, 6050}, +@@ -239,6 +238,7 @@ + {"B2 ", "JIS B2 ( 515mm x 728mm)", 24333, 34400}, + {"B1 ", "JIS B1 ( 728mm x 1030mm)", 34400, 48666}, + {"B0 ", "JIS B0 (1030mm x 1456mm)", 48666, 68783}, ++ {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117}, + }; + + char *multiple_pages[] = { diff --git a/33_pdfimport_mediabox.patch b/33_pdfimport_mediabox.patch new file mode 100644 index 0000000..a12ee33 --- /dev/null +++ b/33_pdfimport_mediabox.patch @@ -0,0 +1,33 @@ +From: jsoula@univ-lille2.fr +Subject: Fix reading "/MediaBox" when importing PDF (Closes: #530898). +Bug-Debian: http://bugs.debian.org/530898 + +--- a/f_readeps.c ++++ b/f_readeps.c +@@ -77,11 +77,13 @@ + + /* look for /MediaBox for pdf file */ + if (pdf_flag) { +- if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */ ++ char *s; ++ for(s=buf; (s=strchr(s,'/')); s++) { ++ if (!strncmp(s, "/MediaBox", 8)) { /* look for the MediaBox spec */ + char *c; + +- c = strchr(buf, '[') + 1; +- if (c && sscanf(c, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { ++ c = strchr(s, '['); ++ if (c && sscanf(c+1, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { + llx = lly = 0; + urx = paper_sizes[0].width * 72 / PIX_PER_INCH; + ury = paper_sizes[0].height * 72 / PIX_PER_INCH; +@@ -89,7 +91,9 @@ + appres.INCHES ? "Letter" : "A4"); + app_flush(); + } ++ break; + } ++ } + /* look for bounding box */ + } else if (!nested && !strncmp(buf, "%%BoundingBox:", 14)) { + if (!strstr(buf, "(atend)")) { /* make sure doesn't say (atend) */ diff --git a/xfig-3.2.5b-fix-fig-buffer-overflow.patch b/35_CVE-2010-4262.patch similarity index 57% rename from xfig-3.2.5b-fix-fig-buffer-overflow.patch rename to 35_CVE-2010-4262.patch index 77b7224..244a911 100644 --- a/xfig-3.2.5b-fix-fig-buffer-overflow.patch +++ b/35_CVE-2010-4262.patch @@ -1,6 +1,12 @@ ---- w_msgpanel.c -+++ w_msgpanel.c 2010-12-03 14:21:07.931926127 +0000 -@@ -60,7 +60,7 @@ DeclareStaticArgs(12); +From: Dr. Werner Fink +Subject: Fix stack-based buffer overflow by processing certain FIG images. + Closes: 606257: CVE-2010-4262: Buffer overflow +Bug: https://bugzilla.redhat.com/show_bug.cgi?id=659676 +Bug-Debian: http://bugs.debian.org/606257 + +--- a/w_msgpanel.c ++++ b/w_msgpanel.c +@@ -60,7 +60,7 @@ /* for the popup message (file_msg) window */ static int file_msg_length=0; @@ -9,7 +15,7 @@ static Widget file_msg_panel, file_msg_win, file_msg_dismiss; -@@ -582,8 +582,8 @@ file_msg(char *format,...) +@@ -582,8 +582,8 @@ } va_start(ap, format); diff --git a/36_libpng15.dpatch b/36_libpng15.patch similarity index 80% rename from 36_libpng15.dpatch rename to 36_libpng15.patch index fbeba17..86bd50c 100644 --- a/36_libpng15.dpatch +++ b/36_libpng15.patch @@ -1,13 +1,8 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 36_libpng15.dpatch by Nobuhiro Iwamatsu -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Some changes to cooperate with libpng 1.5. +From: Nobuhiro Iwamatsu +Subject: Some changes to cooperate with libpng 1.5. -@DPATCH@ -diff -urNad '--exclude=CVS' '--exclude=.svn' xfig~/f_readpng.c xfig/f_readpng.c ---- xfig~/f_readpng.c -+++ xfig/f_readpng.c +--- a/f_readpng.c ++++ b/f_readpng.c @@ -43,7 +43,7 @@ char *ptr; int num_palette; @@ -42,7 +37,7 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' xfig~/f_readpng.c xfig/f_readpng.c + } - if (info_ptr->valid & PNG_INFO_bKGD) -+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD) && ++ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD) && + png_get_bKGD(png_ptr, info_ptr, &image_background)) /* set the background to the one supplied */ - png_set_background(png_ptr, &info_ptr->background, @@ -62,9 +57,8 @@ diff -urNad '--exclude=CVS' '--exclude=.svn' xfig~/f_readpng.c xfig/f_readpng.c } } if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { -diff -urNad '--exclude=CVS' '--exclude=.svn' xfig~/f_wrpng.c xfig/f_wrpng.c ---- xfig~/f_wrpng.c -+++ xfig/f_wrpng.c +--- a/f_wrpng.c ++++ b/f_wrpng.c @@ -20,6 +20,7 @@ #include "w_msgpanel.h" #include "w_setup.h" diff --git a/xfig-3.2.5b-fix-eps-reading.patch b/37_fix-eps-reading.patch similarity index 86% rename from xfig-3.2.5b-fix-eps-reading.patch rename to 37_fix-eps-reading.patch index 7601d20..657cd1e 100644 --- a/xfig-3.2.5b-fix-eps-reading.patch +++ b/37_fix-eps-reading.patch @@ -1,7 +1,9 @@ -diff -ur xfig.3.2.5b/f_readeps.c xfig.3.2.5b.new/f_readeps.c ---- xfig.3.2.5b/f_readeps.c 2009-03-30 17:52:18.000000000 +0200 -+++ xfig.3.2.5b.new/f_readeps.c 2010-11-25 16:53:54.328247928 +0100 -@@ -252,12 +252,13 @@ +From: Hans de Goede +Subject: Fix importing of eps files. + +--- a/f_readeps.c ++++ b/f_readeps.c +@@ -256,12 +256,13 @@ { char buf[300]; FILE *tmpfp, *pixfile, *gsfile; @@ -17,7 +19,7 @@ diff -ur xfig.3.2.5b/f_readeps.c xfig.3.2.5b.new/f_readeps.c wid = urx - llx; ht = ury - lly; -@@ -307,19 +308,14 @@ +@@ -311,19 +312,14 @@ /* for color, use pcx */ driver = "pcx256"; } diff --git a/38_formatstring.patch b/38_formatstring.patch new file mode 100644 index 0000000..985caa3 --- /dev/null +++ b/38_formatstring.patch @@ -0,0 +1,14 @@ +From: Roland Rosenfeld +Subject: Fix format string error with hardening. + +--- a/w_msgpanel.c ++++ b/w_msgpanel.c +@@ -588,7 +588,7 @@ + + strcat(tmpstr,"\n"); + if (update_figs) { +- fprintf(stderr,tmpstr); ++ fprintf(stderr, "%s", tmpstr); + } else { + /* append this message to the file message widget string */ + block.firstPos = 0; diff --git a/sources b/sources index 9b95348..74035c1 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 499b0ce103a6b353453bf7e327f9a3b9 xfig.3.2.5b.full.tar.gz +f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz diff --git a/xfig.3.2.5-modularX.patch b/xfig-3.2.5-Imakefile.patch similarity index 66% rename from xfig.3.2.5-modularX.patch rename to xfig-3.2.5-Imakefile.patch index f5fb91f..90f91c3 100644 --- a/xfig.3.2.5-modularX.patch +++ b/xfig-3.2.5-Imakefile.patch @@ -1,7 +1,7 @@ -diff -up xfig.3.2.5a/Imakefile~ xfig.3.2.5a/Imakefile ---- xfig.3.2.5a/Imakefile~ 2009-03-27 15:31:02.000000000 +0100 -+++ xfig.3.2.5a/Imakefile 2009-03-27 15:35:44.000000000 +0100 -@@ -45,7 +45,7 @@ XCOMM Don't set the DESTDIR variable unl +diff -up xfig.3.2.5b/Imakefile.fed xfig.3.2.5b/Imakefile +--- xfig.3.2.5b/Imakefile.fed 2012-08-12 16:54:00.102765148 +0200 ++++ xfig.3.2.5b/Imakefile 2012-08-12 16:57:32.883846828 +0200 +@@ -45,12 +45,12 @@ XCOMM Don't set the DESTDIR variable unl XCOMM different tree than the "correct" tree that your X system expects. The usual XCOMM purpose of DESTDIR is to test an install process by installing in a benign area. @@ -10,7 +10,13 @@ diff -up xfig.3.2.5a/Imakefile~ xfig.3.2.5a/Imakefile XCOMM Comment out the following definition for XAW3D if you don't to want to use XCOMM the 3d Athena Widget Set -@@ -169,14 +169,14 @@ XCOMM be sure to comment out the second + +-#define XAW3D ++XCOMM #define XAW3D + + #ifdef XAW3D + XAWLIB = -lXaw3d +@@ -169,15 +169,14 @@ XCOMM be sure to comment out the second XCOMM XFIGLIBDIR = $(LIBDIR) XCOMM use this if you want the multi-key data base file in the standard X11 tree @@ -18,7 +24,9 @@ diff -up xfig.3.2.5a/Imakefile~ xfig.3.2.5a/Imakefile +XFIGLIBDIR = /usr/share/xfig XCOMM XFIGDOCDIR tells where the html and pdf documentation should go - XFIGDOCDIR = $(DOCDIR)/xfig +-XCOMM XFIGDOCDIR = $(DOCDIR)/xfig +-XFIGDOCDIR = /usr/local/xfig/doc ++XFIGDOCDIR = /usr/share/doc/xfig XCOMM MANDIR tells where the standard man pages should go (no need to change it XCOMM if you want the man pages installed in the standard place on your system diff --git a/xfig-3.2.5-debian.patch b/xfig-3.2.5-debian.patch deleted file mode 100644 index 13c1cf0..0000000 --- a/xfig-3.2.5-debian.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff -urN xfig.3.2.5.orig/Doc/xfig.man xfig.3.2.5/Doc/xfig.man ---- xfig.3.2.5.orig/Doc/xfig.man 2004-04-14 19:26:07.000000000 +0200 -+++ xfig.3.2.5/Doc/xfig.man 2009-03-15 16:44:48.000000000 +0100 -@@ -1474,8 +1475,11 @@ - See the - .IR Imakefile . - .TP --/usr/lib/X11/xfig --This directory contains the html documentation, the above mentioned -+/usr/share/doc/xfig-3.2.5 -+This directory contains the documentation. -+.TP -+/usr/share/xfig -+This directory contains the above mentioned - CompKeyDB file, and a directory of libraries containing Fig objects - such as electrical symbols, logic symbols, etc. - .TP -diff -urN xfig.3.2.5.orig/Doc/xfig_man.html xfig.3.2.5/Doc/xfig_man.html ---- xfig.3.2.5.orig/Doc/xfig_man.html 2004-04-14 19:35:44.000000000 +0200 -+++ xfig.3.2.5/Doc/xfig_man.html 2009-03-15 16:44:48.000000000 +0100 -@@ -2504,8 +2504,11 @@ - See the - Imakefile. - --
/usr/lib/X11/xfig
--This directory contains the html documentation, the above mentioned -+
/usr/share/doc/xfig-3.2.5
-+This directory contains the documentation. -+ -+
/usr/share/xfig
-+This directory contains the above mentioned - CompKeyDB file, and a directory of libraries containing Fig objects - such as electrical symbols, logic symbols, etc. -
Fig.ad and Fig-color.ad -diff -urN xfig.3.2.5.orig/Fig.ad xfig.3.2.5/Fig.ad ---- xfig.3.2.5.orig/Fig.ad 2009-03-15 16:31:31.000000000 +0100 -+++ xfig.3.2.5/Fig.ad 2009-03-15 16:44:48.000000000 +0100 -@@ -5,6 +5,10 @@ - - ! some sample settings you may want to change - -+! If the following resource is set to false, xfig will use metric units -+! by default. -+Fig.inches: true -+ - ! The following fixes a problem that some window managers have - ! with xfig continually resizing itself - diff --git a/xfig-3.2.5-fhs.patch b/xfig-3.2.5-fhs.patch deleted file mode 100644 index a17d908..0000000 --- a/xfig-3.2.5-fhs.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- xfig.3.2.5/Imakefile.fhs 2006-10-11 01:19:22.000000000 +0200 -+++ xfig.3.2.5/Imakefile 2007-04-16 14:04:45.000000000 +0200 -@@ -169,8 +169,7 @@ - XFIGLIBDIR = $(LIBDIR)/xfig - - XCOMM XFIGDOCDIR tells where the html and pdf documentation should go --XCOMM XFIGDOCDIR = $(DOCDIR)/xfig --XFIGDOCDIR = /usr/local/xfig/doc -+XFIGDOCDIR = $(DOCDIR)/xfig - - XCOMM MANDIR tells where the standard man pages should go (no need to change it - XCOMM if you want the man pages installed in the standard place on your system diff --git a/xfig-3.2.5a-default-apps.patch b/xfig-3.2.5a-default-apps.patch index 29f42d4..9930866 100644 --- a/xfig-3.2.5a-default-apps.patch +++ b/xfig-3.2.5a-default-apps.patch @@ -1,7 +1,18 @@ diff -up xfig.3.2.5a/Fig.ad~ xfig.3.2.5a/Fig.ad --- xfig.3.2.5a/Fig.ad~ 2007-04-14 04:17:24.000000000 +0200 +++ xfig.3.2.5a/Fig.ad 2009-03-27 15:15:27.000000000 +0100 -@@ -23,18 +23,16 @@ Fig*AllowShellResize: false +@@ -5,6 +5,10 @@ + + ! some sample settings you may want to change + ++! If the following resource is set to false, xfig will use metric units ++! by default. ++Fig.inches: false ++ + ! The following fixes a problem that some window managers have + ! with xfig continually resizing itself + +@@ -23,18 +27,16 @@ ! Browser - put your favorite browser here. ! This is for viewing the xfig html reference. diff --git a/xfig.3.2.5-Xaw3d.patch b/xfig.3.2.5-Xaw3d.patch deleted file mode 100644 index c5d54c3..0000000 --- a/xfig.3.2.5-Xaw3d.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up xfig.3.2.5a/Imakefile.Xaw3d xfig.3.2.5a/Imakefile ---- xfig.3.2.5a/Imakefile.Xaw3d 2009-03-27 16:32:20.000000000 +0100 -+++ xfig.3.2.5a/Imakefile 2009-03-27 16:33:20.000000000 +0100 -@@ -50,7 +50,7 @@ XAPPLOADDIR = /usr/share/X11/app-default - XCOMM Comment out the following definition for XAW3D if you don't to want to use - XCOMM the 3d Athena Widget Set - --#define XAW3D -+XCOMM #define XAW3D - - #ifdef XAW3D - XAWLIB = -lXaw3d diff --git a/xfig.png b/xfig.png deleted file mode 100644 index c0d68e93d480e0b507d5a63ca6be3dc4e78a04fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 650 zcmV;50(Jd~P)`RB8~gaCM7<{IsQBJaUS0f)%};5OKS z1jc@u50i9&(3!O-1rR&L7js2rG{06^ui1`alZQ$~Th=FdKG(Yp4<}~~0TZ(j(XI%? zDDg-$ zb~U3?_S>Y(ZA`fwXjwmri)1xeA+|J~Q!8UpKrhJFe@}8+SONLj8`Ut?(5ipyigZB= zs9T?kP>}JJB3dit6-P3a7cK1Dv7Ei@AHdH3sM=eWJQRAbzr`?QYWpzGo`@#z)6>lu z0ipZbQ=~RrSN$(gsFmgw0w(YCr6<~|OECuQf{6&W-g_OoX|sp|uvY+EW}kyr-+{O$ zl*&{#P_6zS-v^duIg@x?E!l7LNA69CLq2XJQ9ci}`wYQ926V__++64k0000(bVXQn zQ*UN;cVTj606-`sDM@W%XJt)cXK7<=AT%yAE;k@KIWI6bFEBA6V{&P8ba_B+d2@7W zV=iTLE@X9ZZ*FuhV{dJ10szAR001gbairN0A*%4Ha9aiIW%TAH)1q2 kFg9diF)?E@Vr64AIWl24H%pwG=>Px#07*qoM6N<$f}e&DasU7T diff --git a/xfig.spec b/xfig.spec index 691792c..99d5bde 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,26 +3,30 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 32.b%{?dist} +Release: 33.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ Source0: http://downloads.sourceforge.net/mcj/xfig.%{version}b.full.tar.gz -Source1: xfig.png +Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.sh Patch0: xfig-3.2.5a-default-apps.patch -Patch1: xfig-3.2.5-fhs.patch -Patch7: xfig.3.2.5-modularX.patch -Patch9: xfig.3.2.5-Xaw3d.patch -Patch10: xfig-3.2.5-enable-Xaw3d.patch -Patch13: xfig-3.2.5-urwfonts.patch -Patch19: xfig-3.2.5-debian.patch -Patch20: xfig-3.2.5b-fix-eps-reading.patch -Patch21: xfig-3.2.5b-fix-fig-buffer-overflow.patch -Patch22: 36_libpng15.dpatch -Patch23: 30_figparserstack.patch +Patch1: xfig-3.2.5-Imakefile.patch +Patch2: xfig-3.2.5-enable-Xaw3d.patch +Patch3: xfig-3.2.5-urwfonts.patch +Patch4: 03_usr_share.patch +Patch5: 12_network_images.patch +Patch6: 13_remove_extra_libs.patch +Patch7: 30_figparserstack.patch +Patch8: 31_spelling.patch +Patch9: 32_papersize_b1.patch +Patch10: 33_pdfimport_mediabox.patch +Patch11: 35_CVE-2010-4262.patch +Patch12: 36_libpng15.patch +Patch13: 37_fix-eps-reading.patch +Patch14: 38_formatstring.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -86,18 +90,23 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %prep -%setup -q -n xfig.%{version}b -%patch0 -p1 -b .redhat -%patch1 -p1 -b .fhs -%patch7 -p1 -b .modularX -%patch9 -p1 -b .Xaw3d -%patch10 -p1 -b .no-Xaw3d -%patch13 -p1 -b .urw -%patch19 -p1 -%patch20 -p1 -%patch21 -%patch22 -p1 -b .libpng -%patch23 -p1 +%setup -q -n xfig.%{version}b -a 1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 -b .no-Xaw3d +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 + 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` @@ -108,8 +117,7 @@ chmod -x `find -type f` xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig"/"xfig-Xaw3d"/' main.c -make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ - CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" +make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" mv xfig xfig-Xaw3d make distclean @@ -118,51 +126,50 @@ mv Imakefile.no-Xaw3d Imakefile xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig-Xaw3d"/"xfig-plain"/' main.c -make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ - CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" +make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" %install -make DESTDIR=%{buildroot} XFIGDOCDIR=%{_docdir}/%{name}-%{version} \ - INSTALL="install -p" install.all +make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install.all install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \ - %{buildroot}%{_docdir}/%{name}-%{version} - -# install the Xaw3d version and the wrapper for the .desktop file -mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-plain -install -p -m 755 %{SOURCE3} %{buildroot}%{_bindir}/%{name} -install -m 755 %{name}-Xaw3d %{buildroot}%{_bindir} + $RPM_BUILD_ROOT%{_docdir}/%{name} # remove the map generation scripts, these are for xfig developers only -rm %{buildroot}%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble - -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps \ - %{buildroot}%{_datadir}/applications - -install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps - -desktop-file-install --vendor fedora \ - --dir %{buildroot}%{_datadir}/applications \ - %{SOURCE2} - +rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble # remove app-defaults symlink which gets installed -rm %{buildroot}%{_prefix}/lib*/X11/app-defaults +rm $RPM_BUILD_ROOT%{_prefix}/lib*/X11/app-defaults + +# install the Xaw3d version and the wrapper for the .desktop file +mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-plain +install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name} +install -m 755 %{name}-Xaw3d $RPM_BUILD_ROOT%{_bindir} + +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 --vendor fedora \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} %post common 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 +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun common 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 || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi +%posttrans common +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files %{_bindir}/%{name}-Xaw3d @@ -171,16 +178,21 @@ fi %{_bindir}/%{name}-plain %files common -%doc %{_docdir}/%{name}-%{version} +%doc %{_docdir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/*/* %{app_defaults_dir}/* %{_datadir}/applications/fedora-%{name}.desktop -%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +%{_datadir}/icons/hicolor/??x??/apps/%{name}.xpm %changelog +* Sun Aug 12 2012 Hans de Goede - 3.2.5-33.b +- Re-organize / consolidate patches +- Add a bunch of patches (minor bug-fixes) from the Debian package +- Add better icons from the Debian package + * Sun Aug 12 2012 Hans de Goede - 3.2.5-32.b - Fix a stack overflow when importing 1.3 files (CVE-2009-4227) (rhbz#543905) From 4c7430f7ee133d23506bdaaf5c3cdd8eb5102d5b Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 21 Dec 2012 20:41:06 +0100 Subject: [PATCH 02/61] rebuild against new libjpeg Signed-off-by: Adam Tkac --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 99d5bde..3c03733 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 33.b%{?dist} +Release: 34.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -188,6 +188,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Dec 21 2012 Adam Tkac - 3.2.5-34.b +- rebuild against new libjpeg + * Sun Aug 12 2012 Hans de Goede - 3.2.5-33.b - Re-organize / consolidate patches - Add a bunch of patches (minor bug-fixes) from the Debian package From e3e828540b6adcb5d40cf50533f07620f3c97d8c Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 21 Jan 2013 18:00:34 +0100 Subject: [PATCH 03/61] Rebuild due to "jpeg8-ABI" feature drop Signed-off-by: Adam Tkac --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 3c03733..c7fde9d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 34.b%{?dist} +Release: 35.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -188,6 +188,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Jan 21 2013 Adam Tkac - 3.2.5-35.b +- rebuild due to "jpeg8-ABI" feature drop + * Fri Dec 21 2012 Adam Tkac - 3.2.5-34.b - rebuild against new libjpeg From 73933debc4a59a878d7ae76a4dd7a537c5133620 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Sun, 10 Feb 2013 09:51:00 +0530 Subject: [PATCH 04/61] Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 --- xfig.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xfig.spec b/xfig.spec index c7fde9d..a25e43f 100644 --- a/xfig.spec +++ b/xfig.spec @@ -1,9 +1,9 @@ -%define app_defaults_dir %{_datadir}/X11/app-defaults +%global app_defaults_dir %{_datadir}/X11/app-defaults Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 35.b%{?dist} +Release: 36.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -152,7 +152,7 @@ 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 --vendor fedora \ +desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} @@ -183,11 +183,14 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/%{name} %{_mandir}/*/* %{app_defaults_dir}/* -%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/??x??/apps/%{name}.xpm %changelog +* Sun Feb 10 2013 Parag Nemade - 3.2.5-36.b +- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 + * Mon Jan 21 2013 Adam Tkac - 3.2.5-35.b - rebuild due to "jpeg8-ABI" feature drop From 77598e1ea7354b460b49d46fc7257d2fbfa14b63 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 03:12:21 -0500 Subject: [PATCH 05/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index a25e43f..5275d82 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 36.b%{?dist} +Release: 37.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -188,6 +188,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Aug 04 2013 Fedora Release Engineering - 3.2.5-37.b +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Sun Feb 10 2013 Parag Nemade - 3.2.5-36.b - Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 From 0dee41b56424f903d39d68f860684ad19712ff85 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Fri, 3 Jan 2014 09:58:37 +0100 Subject: [PATCH 06/61] Fix crash when creating lines with linestyle 3 - Resolves: rhbz#1023744 (Thanks to Maurizio Paolini and David Kaufmann) --- 40_fix_dash_list_for_different_styles.patch | 34 +++++++++++++++++++++ xfig.spec | 8 ++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 40_fix_dash_list_for_different_styles.patch diff --git a/40_fix_dash_list_for_different_styles.patch b/40_fix_dash_list_for_different_styles.patch new file mode 100644 index 0000000..7c5aaa9 --- /dev/null +++ b/40_fix_dash_list_for_different_styles.patch @@ -0,0 +1,34 @@ +--- xfig.3.2.5c/w_drawprim.c 2012-10-17 00:14:09.000000000 +0200 ++++ xfig.3.2.5c/w_drawprim.c 2013-11-29 02:45:36.950448714 +0100 +@@ -1292,14 +1292,23 @@ void set_fill_gc(int fill_style, int op, + } + + +-static unsigned char dash_list[16][2] = {{255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}, +- {255, 255}, {255, 255}}; ++static unsigned char dash_list[16][8] = { ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}, ++ {255, 255, 255, 255, 255, 255, 255, 255}}; + + static int join_styles[3] = { JoinMiter, JoinRound, JoinBevel }; + static int cap_styles[3] = { CapButt, CapRound, CapProjecting }; diff --git a/xfig.spec b/xfig.spec index 5275d82..e492de1 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 37.b%{?dist} +Release: 38.b%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -27,6 +27,7 @@ Patch11: 35_CVE-2010-4262.patch Patch12: 36_libpng15.patch Patch13: 37_fix-eps-reading.patch Patch14: 38_formatstring.patch +Patch15: 40_fix_dash_list_for_different_styles.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -106,6 +107,7 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %patch12 -p1 %patch13 -p1 %patch14 -p1 +%patch15 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp @@ -188,6 +190,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 03 2014 Michal Srb - 3.2.5-38.b +- Fix crash when creating lines with linestyle 3 +- Resolves: rhbz#1023744 (Thanks to Maurizio Paolini and David Kaufmann) + * Sun Aug 04 2013 Fedora Release Engineering - 3.2.5-37.b - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 9e9c7e0b3c950ba4723d28dcb44b1d9e8f4288f1 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 6 Jan 2014 12:55:20 +0100 Subject: [PATCH 07/61] Version bump to 3.2.5-39c Patch provided by David Kaufmann, thanks! --- 03_usr_share.patch | 35 - 12_network_images.patch | 361 -- 13_remove_extra_libs.patch | 21 - 30_figparserstack.patch | 56 - 31_spelling.patch | 11 - 32_papersize_b1.patch | 22 - 35_CVE-2010-4262.patch | 28 - 36_libpng15.patch | 78 - 37_fix-eps-reading.patch | 48 - 38_formatstring.patch | 14 - 39_add_xfig_man_html.patch | 2936 +++++++++++++++++ sources | 2 +- xfig-3.2.5-Imakefile.patch | 8 +- ...3d.patch => xfig-3.2.5-disable-Xaw3d.patch | 14 +- xfig.spec | 45 +- 15 files changed, 2962 insertions(+), 717 deletions(-) delete mode 100644 03_usr_share.patch delete mode 100644 12_network_images.patch delete mode 100644 13_remove_extra_libs.patch delete mode 100644 30_figparserstack.patch delete mode 100644 32_papersize_b1.patch delete mode 100644 35_CVE-2010-4262.patch delete mode 100644 36_libpng15.patch delete mode 100644 37_fix-eps-reading.patch delete mode 100644 38_formatstring.patch create mode 100644 39_add_xfig_man_html.patch rename xfig-3.2.5-enable-Xaw3d.patch => xfig-3.2.5-disable-Xaw3d.patch (62%) diff --git a/03_usr_share.patch b/03_usr_share.patch deleted file mode 100644 index 0f09372..0000000 --- a/03_usr_share.patch +++ /dev/null @@ -1,35 +0,0 @@ -From: Roland Rosenfeld -Subject: Change documentation, that image libraries are in - ---- a/Doc/xfig.man -+++ b/Doc/xfig.man -@@ -1475,8 +1475,11 @@ - See the - .IR Imakefile . - .TP --/usr/lib/X11/xfig --This directory contains the html documentation, the above mentioned -+/usr/share/doc/xfig -+This directory contains the documentation. -+.TP -+/usr/share/xfig -+This directory contains the above mentioned - CompKeyDB file, and a directory of libraries containing Fig objects - such as electrical symbols, logic symbols, etc. - .TP ---- a/Doc/xfig_man.html -+++ b/Doc/xfig_man.html -@@ -2539,8 +2539,11 @@ - See the - Imakefile. - --
/usr/lib/X11/xfig
--This directory contains the html documentation, the above mentioned -+
/usr/share/doc/xfig
-+This directory contains the documentation. -+ -+
/usr/share/xfig
-+This directory contains the above mentioned - CompKeyDB file, and a directory of libraries containing Fig objects - such as electrical symbols, logic symbols, etc. -
Fig.ad and Fig-color.ad diff --git a/12_network_images.patch b/12_network_images.patch deleted file mode 100644 index 0f63ac1..0000000 --- a/12_network_images.patch +++ /dev/null @@ -1,361 +0,0 @@ -From: Roland Rosenfeld -Subject: Some network icons colored and/or combined by Roland Rosenfeld. - ---- /dev/null -+++ b/Libraries/Networks/Devices/firewall-pair.fig -@@ -0,0 +1,75 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Inches -+A4 -+100.00 -+Single -+-2 -+# A pair of firewalls -+# Combined by Roland Rosenfeld -+1200 2 -+0 32 #aeaaae -+# A pair of firewalls -+6 3375 2175 4050 3075 -+6 3600 2250 4050 3075 -+# Firewall -+# (from TomiOllila ) -+6 3600 2250 4050 3075 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3825 3075 3825 2475 -+2 1 0 1 0 20 2 0 20 0.000 0 0 -1 0 0 5 -+ 3675 2475 3675 3075 3825 3075 3975 2925 3975 2400 -+2 1 0 1 0 32 1 0 20 0.000 0 0 -1 0 0 7 -+ 3600 2400 3600 2475 3900 2475 4050 2325 4050 2250 3750 2250 -+ 3600 2400 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 -+ 3900 2475 3900 2400 3600 2400 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3900 2400 4050 2250 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 -+ 3675 2625 3825 2625 3975 2475 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 -+ 3675 2775 3825 2775 3975 2625 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 3 -+ 3675 2925 3825 2925 3975 2775 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3900 3000 3900 2850 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3900 2700 3900 2550 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3750 2475 3750 2625 -+2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 -+ 3750 2775 3750 2925 -+-6 -+-6 -+6 3375 2175 3825 3000 -+6 3450 2175 3825 3000 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3600 3000 3600 2400 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3675 2325 3825 2175 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 -+ 3450 2550 3600 2550 3750 2400 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 -+ 3450 2700 3600 2700 3750 2550 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 3 -+ 3450 2850 3600 2850 3750 2700 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3675 2925 3675 2775 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3675 2625 3675 2475 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3525 2400 3525 2550 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 7 0 0 2 -+ 3525 2700 3525 2850 -+-6 -+2 1 0 1 0 20 22 0 20 0.000 0 0 -1 0 0 5 -+ 3450 2400 3450 3000 3600 3000 3750 2850 3750 2325 -+2 1 0 1 0 32 21 0 20 0.000 0 0 -1 0 0 7 -+ 3375 2325 3375 2400 3675 2400 3825 2250 3825 2175 3525 2175 -+ 3375 2325 -+2 1 0 1 0 7 20 0 -1 0.000 0 0 -1 0 0 3 -+ 3675 2400 3675 2325 3375 2325 -+-6 -+-6 ---- /dev/null -+++ b/Libraries/Networks/Devices/internet.fig -@@ -0,0 +1,39 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Inches -+A4 -+100.00 -+Single -+-2 -+# Internet cloud -+# By Roland Rosenfeld -+1200 2 -+# An Internet cloud -+6 4275 5700 7200 7650 -+2 1 0 0 7 7 970 0 20 4.000 0 0 0 0 0 65 -+ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888 -+ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244 -+ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825 -+ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915 -+ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825 -+ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244 -+ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888 -+ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265 -+ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557 -+ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594 -+ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111 -+2 1 0 2 1 0 969 0 -1 0.000 0 0 0 0 0 65 -+ 4719 7111 4633 7121 4548 7105 4469 7057 4394 6983 4346 6888 -+ 4309 6776 4298 6654 4309 6526 4346 6415 4394 6325 4469 6244 -+ 4548 6197 4633 6181 4719 6197 4798 6048 4893 5915 4994 5825 -+ 5122 5746 5244 5719 5377 5719 5505 5746 5627 5825 5733 5915 -+ 5850 5825 5961 5746 6094 5719 6222 5719 6355 5746 6472 5825 -+ 6583 5915 6668 6048 6748 6197 6833 6181 6918 6197 7003 6244 -+ 7072 6325 7130 6415 7157 6526 7168 6654 7157 6776 7130 6888 -+ 7072 6983 7003 7057 6918 7105 6833 7121 6748 7111 6668 7265 -+ 6583 7387 6472 7488 6355 7557 6222 7594 6094 7594 5961 7557 -+ 5850 7488 5733 7387 5627 7488 5505 7557 5377 7594 5244 7594 -+ 5122 7557 4994 7488 4893 7387 4798 7265 4719 7111 -+4 0 0 100 0 18 33 0.0000 4 405 2040 4744 6853 Internet\001 -+-6 ---- /dev/null -+++ b/Libraries/Networks/Routers/router-pair.fig -@@ -0,0 +1,78 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Inches -+A4 -+100.00 -+Single -+-2 -+# A pair of routers -+# Colored and combined by Roland Rosenfeld -+1200 2 -+# A pair of routers -+6 3150 3300 4275 3975 -+6 3346 3450 4269 3975 -+6 3844 3615 4173 3718 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3879 3701 3854 3647 3976 3624 3955 3642 4159 3676 4111 3713 -+ 3908 3676 3879 3701 -+-6 -+6 3617 3636 3803 3759 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3764 3731 3638 3754 3634 3694 3671 3703 3738 3646 3800 3657 -+ 3727 3719 3764 3731 -+-6 -+6 3803 3470 3988 3594 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8 -+ 3837 3518 3982 3481 3983 3541 3947 3535 3876 3591 3809 3581 -+ 3882 3526 3837 3518 -+-6 -+1 2 0 1 0 15 51 0 20 0.000 1 0.0000 3807 3619 457 169 3349 3619 4264 3619 -+1 2 0 1 0 15 53 0 20 0.000 1 0.0000 3803 3806 457 169 3346 3806 4261 3806 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3705 3557 3738 3608 3609 3637 3638 3615 3439 3581 3488 3545 -+ 3681 3576 3705 3557 -+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 -+ 3350 3613 3347 3812 -+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 -+ 4263 3626 4263 3815 -+2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5 -+ 3349 3626 4269 3626 4269 3800 3349 3800 3349 3626 -+-6 -+6 3150 3300 4125 3825 -+6 3600 3450 3975 3600 -+# polyline -+2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 -+ 3683 3551 3658 3497 3780 3474 3759 3492 3963 3526 3915 3563 -+ 3712 3526 3683 3551 -+-6 -+6 3600 3300 3825 3450 -+# polyline -+2 1 0 1 0 7 60 0 20 0.000 0 0 7 0 0 8 -+ 3641 3368 3786 3331 3787 3391 3751 3385 3680 3441 3613 3431 -+ 3686 3376 3641 3368 -+-6 -+6 3375 3450 3675 3675 -+# polyline -+2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 -+ 3568 3581 3442 3604 3438 3544 3475 3553 3542 3496 3604 3507 -+ 3531 3569 3568 3581 -+-6 -+1 2 0 1 0 15 61 0 20 0.000 1 0.0000 3611 3469 457 169 3153 3469 4068 3469 -+1 2 0 1 0 15 63 0 20 0.000 1 0.0000 3607 3656 457 169 3150 3656 4065 3656 -+2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2 -+ 4067 3476 4067 3665 -+# polyline -+2 1 0 1 0 7 60 0 20 0.000 0 0 0 0 0 8 -+ 3509 3407 3542 3458 3413 3487 3442 3465 3243 3431 3292 3395 -+ 3485 3426 3509 3407 -+2 1 0 1 0 7 60 -1 -1 0.000 0 0 -1 0 0 2 -+ 3154 3463 3151 3662 -+2 2 0 0 0 15 62 -1 20 0.000 0 0 -1 0 0 5 -+ 3153 3476 4073 3476 4073 3650 3153 3650 3153 3476 -+-6 -+-6 ---- /dev/null -+++ b/Libraries/Networks/Routers/router4.fig -@@ -0,0 +1,44 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Metric -+A4 -+100.00 -+Single -+-2 -+# Router -+# Colored by Roland Rosenfeld -+1200 2 -+# Router -+6 3870 4455 5940 5625 -+6 4995 4815 5715 5040 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 5072 5002 5018 4886 5284 4834 5238 4873 5683 4948 5578 5030 -+ 5136 4948 5072 5002 -+-6 -+6 4500 4860 4905 5130 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 4822 5067 4545 5117 4537 4989 4618 5007 4766 4883 4900 4905 -+ 4741 5041 4822 5067 -+-6 -+6 4905 4500 5310 4770 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 7 0 0 8 -+ 4981 4603 5296 4523 5300 4653 5222 4640 5066 4762 4919 4741 -+ 5079 4622 4981 4603 -+-6 -+1 2 0 1 0 15 51 0 20 0.000 1 0.0000 4914 4824 999 369 3915 4824 5913 4824 -+1 2 0 1 0 15 53 0 20 0.000 1 0.0000 4908 5231 999 369 3909 5231 5907 5231 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 4693 4690 4766 4800 4483 4863 4545 4814 4111 4740 4219 4661 -+ 4640 4731 4693 4690 -+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 -+ 3917 4811 3910 5244 -+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 -+ 5910 4838 5910 5251 -+2 2 0 0 0 15 52 -1 20 0.000 0 0 -1 0 0 5 -+ 3915 4838 5924 4838 5924 5218 3915 5218 3915 4838 -+-6 ---- /dev/null -+++ b/Libraries/Networks/Switches/switch-pair.fig -@@ -0,0 +1,66 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Inches -+A4 -+100.00 -+Single -+-2 -+# A pair of switches -+# Colored and combined by Roland Rosenfeld -+1200 2 -+# A pair of switches -+6 2550 2625 4725 3750 -+6 2625 2850 4725 3750 -+6 3000 2850 4425 3300 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126 -+ 3214 3184 3608 3184 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182 -+ 4040 3124 3646 3124 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954 -+ 3371 3012 3765 3012 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017 -+ 4216 2959 3822 2959 -+-6 -+2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4 -+ 4125 3300 4725 2850 4725 3300 4125 3750 -+2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5 -+ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300 -+2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5 -+ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300 -+-6 -+6 2550 2625 4650 3525 -+6 2925 2625 4350 3075 -+# polyline -+2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 -+ 3528 2955 3506 2985 3119 2985 3086 3015 2953 2970 3193 2901 -+ 3139 2959 3533 2959 -+# polyline -+2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 -+ 3576 2903 3598 2873 3985 2873 4018 2843 4151 2888 3911 2957 -+ 3965 2899 3571 2899 -+# polyline -+2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 -+ 3685 2783 3663 2813 3276 2813 3243 2843 3110 2798 3350 2729 -+ 3296 2787 3690 2787 -+# polyline -+2 1 0 1 0 7 61 0 20 0.000 0 0 0 0 0 8 -+ 3752 2738 3774 2708 4161 2708 4194 2678 4327 2723 4087 2792 -+ 4141 2734 3747 2734 -+-6 -+2 1 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 4 -+ 4050 3075 4650 2625 4650 3075 4050 3525 -+2 2 0 1 0 15 62 0 20 0.000 0 0 -1 0 0 5 -+ 2550 3075 4050 3075 4050 3525 2550 3525 2550 3075 -+2 3 0 1 0 15 62 -1 20 0.000 0 0 -1 0 0 5 -+ 2550 3075 3150 2625 4650 2625 4050 3075 2550 3075 -+-6 -+-6 ---- /dev/null -+++ b/Libraries/Networks/Switches/switch2.fig -@@ -0,0 +1,38 @@ -+#FIG 3.2 Produced by xfig version 3.2.5-alpha5 -+Portrait -+Center -+Inches -+A4 -+100.00 -+Single -+-2 -+# Switch -+# colored by Roland Rosenfeld -+1200 2 -+# Switch -+6 2625 2850 4725 3750 -+6 3000 2850 4425 3300 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3603 3180 3581 3210 3194 3210 3161 3240 3028 3195 3268 3126 -+ 3214 3184 3608 3184 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3651 3128 3673 3098 4060 3098 4093 3068 4226 3113 3986 3182 -+ 4040 3124 3646 3124 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3760 3008 3738 3038 3351 3038 3318 3068 3185 3023 3425 2954 -+ 3371 3012 3765 3012 -+# polyline -+2 1 0 1 0 7 50 0 20 0.000 0 0 0 0 0 8 -+ 3827 2963 3849 2933 4236 2933 4269 2903 4402 2948 4162 3017 -+ 4216 2959 3822 2959 -+-6 -+2 1 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 4 -+ 4125 3300 4725 2850 4725 3300 4125 3750 -+2 2 0 1 0 15 51 0 20 0.000 0 0 -1 0 0 5 -+ 2625 3300 4125 3300 4125 3750 2625 3750 2625 3300 -+2 3 0 1 0 15 51 -1 20 0.000 0 0 -1 0 0 5 -+ 2625 3300 3225 2850 4725 2850 4125 3300 2625 3300 -+-6 diff --git a/13_remove_extra_libs.patch b/13_remove_extra_libs.patch deleted file mode 100644 index 6db176f..0000000 --- a/13_remove_extra_libs.patch +++ /dev/null @@ -1,21 +0,0 @@ -From: Roland Rosenfeld -Subject: Remove unnecessary dependencies on libz, libXmu, libSM, libICE, libXext - ---- a/Imakefile -+++ b/Imakefile -@@ -227,7 +227,14 @@ - XCOMM #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB) - #ifdef XawClientLibs - # undef XawClientLibs --# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XTOOLONLYLIIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) -+# define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XTOOLONLYLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) -+#endif -+ -+XCOMM Shorten unnecessary dependencies: -+XCOMM #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB) -+#ifdef XawClientLibs -+# undef XawClientLibs -+# define XawClientLibs $(XAWLIB) $(XTOOLONLYLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XONLYLIB) - #endif - - XCOMM ***************************************************** diff --git a/30_figparserstack.patch b/30_figparserstack.patch deleted file mode 100644 index 70d3912..0000000 --- a/30_figparserstack.patch +++ /dev/null @@ -1,56 +0,0 @@ -From: Hans de Goede -Subject: Fix Stack-based buffer overflow by loading malformed .FIG files -Bug: https://bugzilla.redhat.com/show_bug.cgi?id=543905 -Bug-Debian: http://bugs.debian.org/559274 - ---- a/f_readold.c -+++ b/f_readold.c -@@ -471,7 +471,7 @@ - F_text *t; - int n; - int dum; -- char buf[128]; -+ char buf[512]; - PR_SIZE tx_dim; - - if ((t = create_text()) == NULL) -@@ -485,22 +485,34 @@ - t->pen_style = -1; - t->angle = 0.0; - t->next = NULL; -+ if (!fgets(buf, sizeof(buf), fp)) { -+ file_msg("Incomplete text data"); -+ free((char *) t); -+ return (NULL); -+ } -+ -+ /* Note using strlen(buf) here will waste a few bytes, as the -+ various text attributes are counted into this length too. */ -+ if ((t->cstring = new_string(strlen(buf))) == NULL) -+ return (NULL); -+ - /* ascent and length will be recalculated later */ -- n = fscanf(fp, " %d %d %d %d %d %d %d %[^\n]", -+ n = sscanf(buf, " %d %d %d %d %d %d %d %[^\n]", - &t->font, &dum, &dum, &t->ascent, &t->length, -- &t->base_x, &t->base_y, buf); -+ &t->base_x, &t->base_y, t->cstring); - if (n != 8) { - file_msg("Incomplete text data"); -+ free(t->cstring); - free((char *) t); - return (NULL); - } -- if ((t->cstring = new_string(strlen(buf))) == NULL) { -+ -+ if (!strlen(t->cstring)) { -+ free(t->cstring); - free((char *) t); - file_msg("Empty text string at line %d.", line_no); - return (NULL); - } -- /* put string in structure */ -- strcpy(t->cstring, buf); - - /* get the font struct */ - t->zoom = zoomscale; diff --git a/31_spelling.patch b/31_spelling.patch index e92e64c..fd35db5 100644 --- a/31_spelling.patch +++ b/31_spelling.patch @@ -10,14 +10,3 @@ Subject: Fix spelling errors in binary. - file_msg("File \"%s\" is not accessable; %s.", file, strerror(err)); + file_msg("File \"%s\" is not accessible; %s.", file, strerror(err)); } ---- a/f_readgif.c -+++ b/f_readgif.c -@@ -137,7 +137,7 @@ - - if (c == '!') { /* Extension */ - if (! ReadOK(file,&c,1)) -- file_msg("GIF read error on extention function code"); -+ file_msg("GIF read error on extension function code"); - (void) DoGIFextension(file, c); - continue; - } diff --git a/32_papersize_b1.patch b/32_papersize_b1.patch deleted file mode 100644 index 5a33604..0000000 --- a/32_papersize_b1.patch +++ /dev/null @@ -1,22 +0,0 @@ -From: Roland Rosenfeld -Subject: xfig -papersize b1 now really uses B1 instead of B10; Closes: #535181 -Bug-Debian: http://bugs.debian.org/535181 - ---- a/resources.c -+++ b/resources.c -@@ -228,7 +228,6 @@ - {"A2 ", "ISO A2 ( 420mm x 594mm)", 19843, 28063}, - {"A1 ", "ISO A1 ( 594mm x 841mm)", 28063, 39732}, - {"A0 ", "ISO A0 ( 841mm x 1189mm)", 39732, 56173}, -- {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117}, - {"B9 ", "JIS B9 ( 45mm x 64mm)", 2117, 3017}, - {"B8 ", "JIS B8 ( 64mm x 91mm)", 3017, 4300}, - {"B7 ", "JIS B7 ( 91mm x 128mm)", 4300, 6050}, -@@ -239,6 +238,7 @@ - {"B2 ", "JIS B2 ( 515mm x 728mm)", 24333, 34400}, - {"B1 ", "JIS B1 ( 728mm x 1030mm)", 34400, 48666}, - {"B0 ", "JIS B0 (1030mm x 1456mm)", 48666, 68783}, -+ {"B10 ", "JIS B10 ( 32mm x 45mm)", 1516, 2117}, - }; - - char *multiple_pages[] = { diff --git a/35_CVE-2010-4262.patch b/35_CVE-2010-4262.patch deleted file mode 100644 index 244a911..0000000 --- a/35_CVE-2010-4262.patch +++ /dev/null @@ -1,28 +0,0 @@ -From: Dr. Werner Fink -Subject: Fix stack-based buffer overflow by processing certain FIG images. - Closes: 606257: CVE-2010-4262: Buffer overflow -Bug: https://bugzilla.redhat.com/show_bug.cgi?id=659676 -Bug-Debian: http://bugs.debian.org/606257 - ---- a/w_msgpanel.c -+++ b/w_msgpanel.c -@@ -60,7 +60,7 @@ - /* for the popup message (file_msg) window */ - - static int file_msg_length=0; --static char tmpstr[300]; -+static char tmpstr[512]; - static Widget file_msg_panel, - file_msg_win, file_msg_dismiss; - -@@ -582,8 +582,8 @@ - } - - va_start(ap, format); -- /* format the string */ -- vsprintf(tmpstr, format, ap); -+ /* format the string (but leave room for \n and \0) */ -+ vsnprintf(tmpstr, sizeof(tmpstr)-2, format, ap); - va_end(ap); - - strcat(tmpstr,"\n"); diff --git a/36_libpng15.patch b/36_libpng15.patch deleted file mode 100644 index 86bd50c..0000000 --- a/36_libpng15.patch +++ /dev/null @@ -1,78 +0,0 @@ -From: Nobuhiro Iwamatsu -Subject: Some changes to cooperate with libpng 1.5. - ---- a/f_readpng.c -+++ b/f_readpng.c -@@ -43,7 +43,7 @@ - char *ptr; - int num_palette; - png_colorp palette; -- png_color_16 background; -+ png_color_16 background, *image_background; - - /* make scale factor smaller for metric */ - float scale = (appres.INCHES ? -@@ -73,7 +73,7 @@ - } - - /* set long jump recovery here */ -- if (setjmp(png_ptr->jmpbuf)) { -+ if (setjmp(png_jmpbuf((png_ptr)))) { - /* if we get here there was a problem reading the file */ - png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); - close_picfile(file,filetype); -@@ -90,14 +90,18 @@ - png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, - &interlace_type, &compression_type, &filter_type); - -- if (info_ptr->valid & PNG_INFO_gAMA) -- png_set_gamma(png_ptr, 2.2, info_ptr->gamma); -- else -+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_gAMA)) { -+ double gamma; -+ png_get_gAMA(png_ptr, info_ptr, &gamma); -+ png_set_gamma(png_ptr, 2.2, gamma); -+ } else { - png_set_gamma(png_ptr, 2.2, 0.45); -+ } - -- if (info_ptr->valid & PNG_INFO_bKGD) -+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD) && -+ png_get_bKGD(png_ptr, info_ptr, &image_background)) - /* set the background to the one supplied */ -- png_set_background(png_ptr, &info_ptr->background, -+ png_set_background(png_ptr, image_background, - PNG_BACKGROUND_GAMMA_FILE, 1, 1.0); - else { - /* blend the canvas background using the alpha channel */ -@@ -136,7 +140,11 @@ - - if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) { - png_get_hIST(png_ptr, info_ptr, &histogram); -+#ifdef PNG_READ_QUANTIZE_SUPPORTED -+ png_set_quantize(png_ptr, palette, num_palette, 256, histogram, 0); -+#else - png_set_dither(png_ptr, palette, num_palette, 256, histogram, 0); -+#endif - } - } - if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { ---- a/f_wrpng.c -+++ b/f_wrpng.c -@@ -20,6 +20,7 @@ - #include "w_msgpanel.h" - #include "w_setup.h" - #include -+#include - - /* - * Write PNG file from rgb data -@@ -59,7 +60,7 @@ - } - - /* set long jump recovery here */ -- if (setjmp(png_ptr->jmpbuf)) { -+ if (setjmp(png_jmpbuf((png_ptr)))) { - /* if we get here there was a problem reading the file */ - png_destroy_write_struct(&png_ptr, &info_ptr); - return False; diff --git a/37_fix-eps-reading.patch b/37_fix-eps-reading.patch deleted file mode 100644 index 657cd1e..0000000 --- a/37_fix-eps-reading.patch +++ /dev/null @@ -1,48 +0,0 @@ -From: Hans de Goede -Subject: Fix importing of eps files. - ---- a/f_readeps.c -+++ b/f_readeps.c -@@ -256,12 +256,13 @@ - { - char buf[300]; - FILE *tmpfp, *pixfile, *gsfile; -- char *psnam, *driver; -+ char *driver; - int status, wid, ht, nbitmap, fd; - char tmpfile[PATH_MAX], - pixnam[PATH_MAX], - errnam[PATH_MAX], -- gscom[2 * PATH_MAX]; -+ gscom[2 * PATH_MAX], -+ psnam[PATH_MAX]; - - wid = urx - llx; - ht = ury - lly; -@@ -311,19 +312,14 @@ - /* for color, use pcx */ - driver = "pcx256"; - } -- /* avoid absolute paths (for Cygwin with gswin32) by changing directory */ -- if (tmpfile[0] == '/') { -- psnam = strrchr(tmpfile, '/'); -- *psnam = 0; -- sprintf(gscom, "cd \"%s/\";", tmpfile); -- *psnam++ = '/'; /* Restore name for unlink() below */ -- } else { -- psnam = tmpfile; -- gscom[0] = '\0'; -+ /* Canonicalize the eps file filename, needed to "defeat" -dSAFER */ -+ if (!realpath(tmpfile, psnam)) { -+ file_msg("Cannot canonicalize %s: %s\n", tmpfile, strerror(errno)); -+ return False; - } -- sprintf(&gscom[strlen(gscom)], -- "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 2>&1", -- appres.ghostscript, driver, wid, ht, pixnam, errnam); -+ sprintf(gscom, -+ "%s -r72x72 -sDEVICE=%s -g%dx%d -sOutputFile=%s -dDELAYSAFER -c '<< /PermitFileReading [ (%s)] >> setuserparams .locksafe' -dSAFER -q - > %s 2>&1", -+ appres.ghostscript, driver, wid, ht, pixnam, psnam, errnam); - if (appres.DEBUG) - fprintf(stderr,"calling: %s\n",gscom); - if ((gsfile = popen(gscom, "w")) == 0) { diff --git a/38_formatstring.patch b/38_formatstring.patch deleted file mode 100644 index 985caa3..0000000 --- a/38_formatstring.patch +++ /dev/null @@ -1,14 +0,0 @@ -From: Roland Rosenfeld -Subject: Fix format string error with hardening. - ---- a/w_msgpanel.c -+++ b/w_msgpanel.c -@@ -588,7 +588,7 @@ - - strcat(tmpstr,"\n"); - if (update_figs) { -- fprintf(stderr,tmpstr); -+ fprintf(stderr, "%s", tmpstr); - } else { - /* append this message to the file message widget string */ - block.firstPos = 0; diff --git a/39_add_xfig_man_html.patch b/39_add_xfig_man_html.patch new file mode 100644 index 0000000..ecef0bb --- /dev/null +++ b/39_add_xfig_man_html.patch @@ -0,0 +1,2936 @@ +--- /dev/null 2013-11-23 20:48:05.582065962 +0100 ++++ b/Doc/xfig_man.html 2008-03-31 18:29:22.000000000 +0200 +@@ -0,0 +1,2933 @@ ++ ++Man page of XFIG ++ ++

XFIG

++Section: User Commands (1)
Updated: Xfig 3.2.4 (Dec 2002)
Index ++
++ ++  ++

NAME

++ ++xfig - Facility for Interactive Generation of figures under X11 ++
++ ++Version 3.2.4 ++  ++

SYNOPSIS

++ ++xfig ++ ++[options] ++ ++[file] ++ ++  ++

DESCRIPTION

++ ++Xfig ++ ++is a menu-driven tool that allows the user to draw and manipulate ++objects interactively under the X Window System. ++It runs under X version 11 ++ ++release 4 or higher ++ ++and requires a two- or three-button mouse. ++file ++ ++specifies the name of a file to be edited. ++The objects in the file will be read at the start of ++xfig. ++ ++

++ ++The bulk of the documentation fori ++xfig ++ ++is in an HTML-based reference guide. ++See the Help menu in ++xfig ++ ++or point your browser at ++Doc/html/index.html ++ ++(provided with the ++xfig ++ ++distribution, usually in the ++Doc/www ++ ++directory). ++There are both English and Japanese versions. ++

++ ++When using a two-button mouse use the ++<Meta> ++ ++key and the right button at the same time to effect ++the action of the middle button. ++

++ ++Xfig ++ ++is available from ++http://www.xfig.org . ++

++ ++The ++TransFig ++ ++package is used when printing or exporting the output from ++xfig. ++ ++The ++fig2dev ++ ++program from the ++TransFig ++ ++package is automatically called by ++xfig ++ ++as a back-end processor to produce various types of output: ++

++ ++LaTeX, Metafont, PostScript or Encapsulated PostScript, ++tk (tcl/tk tool command language/tool kit package), ++GIF, JPEG, PCX, PNG, PPM, TIFF, ++XBM, XPM, AutoCAD Slide, IBM-GL (HP/GL), Pic ++PiCTeX, box, epic, eepic and eepicemu. ++

++ ++See man fig2dev for all options. ++

++ ++The ++TransFig ++ ++package is available from ++http://www.xfig.org . ++  ++

OPTIONS

++ ++ ++ ++

++ ++ ++-help ++ ++ ++ ++

++
++ ++ ++Print all command-line options for xfig and quit. ++ ++ ++
++

++ ++ ++-a[llownegcoords] ++ ++ ++ ++

++
++ ++ ++Allow panning into the negative region of the canvas. ++This is the default ++ ++ ++
++

++ ++ ++-bal[loon_delay] ++ ++msec ++ ++ ++ ++

++
++ ++ ++Cause popup information balloons to be delayed by ++msec ++ ++milliseconds. The default is 500 milliseconds. ++ ++ ++
++

++ ++ ++-bol[d] ++ ++font ++ ++ ++ ++

++
++ ++ ++Cause the font used for displaying the file name and ++confirmation messages to be ++font ++ ++(default = 8x13bold). ++ ++ ++
++

++ ++ ++-butt[on] ++ ++font ++ ++ ++ ++

++
++ ++ ++Cause the font used for most buttons to be ++font ++ ++(default = 6x13). ++ ++ ++
++

++ ++ ++-but_[per_row] ++ ++number ++ ++ ++ ++

++
++ ++ ++Specify the number of buttons wide the mode panel should be. ++This is useful in conjunction with the ++-pheight ++ ++parameter to reduce the canvas height for small screens. ++ ++ ++
++

++ ++ ++-cbg color ++ ++ ++ ++

++
++ ++ ++Use ++color ++ ++as the background color for the canvas. ++If you want to set the background of everything in xfig ++(e.g. menus, etc.) use the general ++-bg ++ ++option. ++ ++ ++
++

++ ++ ++-center ++ ++ ++ ++

++
++ ++ ++Set the print option to print the figure centered on the page. ++This is the default. ++ ++ ++
++

++ ++ ++-centim[ers] ++ ++ ++ ++

++
++ ++ ++Make centimeters the unit of choice. See also ++-metric. ++ ++ ++ ++
++

++ ++ ++-cfg color ++ ++ ++ ++

++
++ ++ ++Use ++color ++ ++as the default color for objects. ++If you want to set the foreground of everything in xfig ++(e.g. menus, etc.) use the general ++-fg ++ ++option. ++ ++ ++
++

++ ++ ++-correct_font_size ++ ++ ++ ++

++
++ ++ ++Normally, ++fig2dev ++ ++uses 1/80 inch for font size increments (for historical reasons), ++instead of the more proper ``points'' (1/72 inch) that ++xfig ++ ++uses. This option makes xfig call fig2dev with the ++-F ++ ++option to make it use points (1/72 inch). ++ ++ ++
++

++ ++ ++-deb[ug] ++ ++ ++ ++

++
++ ++ ++Turn on debugging mode. ++Prints various debugging messages like font names etc. ++ ++ ++
++

++ ++ ++-dep[th] ++ ++ ++ ++

++
++ ++ ++Choose depth of visual desired. Your server must support the desired ++visual and depth chosen. ++Use ++xdpyinfo ++ ++to see what visuals and depths are supported. ++See also the ++-visual ++ ++option. ++ ++ ++
++

++ ++ ++-donta[llownegcoords] ++ ++ ++ ++

++
++ ++ ++Don't allow panning into the negative region of the canvas. ++The default is to allow panning in the negative region. ++ ++ ++
++

++ ++ ++-dontshowb[alloons] ++ ++ ++ ++

++
++ ++ ++Prevents xfig from popping up the information balloons. ++See also ++-showballoons. ++ ++ ++ ++
++

++ ++ ++-dontshowl[engths] ++ ++ ++ ++

++
++ ++ ++Don't show lengths of lines as they are being drawn. ++This is the default. ++ ++ ++
++

++ ++ ++-dontshowz[erolines] ++ ++ ++ ++

++
++ ++ ++Don't show axis zero lines on the canvas. ++The default is to show them. ++ ++ ++
++

++ ++ ++-dontsw[itchcmap] ++ ++ ++ ++

++
++ ++ ++Prevents xfig from switching to a private colormap if there aren't ++enough colors available in the default colormap. See also ++-max_image_colors. ++ ++ ++ ++
++

++ ++ ++-enc[oding] ++ ++encoding ++ ++ ++ ++

++
++ ++ ++Encode character set using ++encoding ++ ++when exporting LaTeX text. The default is 1. This is used ++for the ISO-8859 encoding of character sets. Allowed ++values are 0 (no encoding), 1 (ISO-8859-1) or 2 (ISO-8859-2). ++ ++ ++
++

++ ++ ++-exportL[anguage] ++ ++language ++ ++ ++ ++

++
++ ++ ++Specifies the default language to be used for when exporting a fig file. ++Choices are: ++ ++

++ ++ ++ ++ ++ ++

++
++Name              Language
++
Vector formats: ++box LaTeX box (figure boundary) ++latex LaTeX picture ++epic LaTeX picture + epic macros ++eepic LaTeX picture + eepic macros ++eepicemu LaTeX picture + eepicemu macros ++pictex PiCTeX macros ++hpl HPGL (IBMGL) ++eps Encapuslated PostScript ++eps_ascii Encapuslated PostScript with ASCII preview ++eps_mono_tiff Encapuslated PostScript with monochrome binary (TIFF) preview ++eps_color_tiff Encapuslated PostScript with color binary (TIFF) preview ++ps PostScript ++pdf PDF (Portable Document Format) ++pstex Combined PS/LaTeX (both PS and LaTeX parts) ++pdftex Combined PDF/LaTeX (both PDF and LaTeX parts) ++textyl Textyl special commands ++tpic TPIC ++pic PIC ++mf MF (MetaFont) ++mp MP (MetaPost) ++mmp MMP (Multi-MetaPost) ++cgm CGM (Computer Graphics Meta file) ++bcgm Binary CGM (Computer Graphics Meta file) ++emf Enhanced Meta file) ++tk Tk (of the tcl/tk fame) ++svg SVG (Scalable Vector Graphics (XML variant)) ++ ++Bitmap formats: ++gif GIF ++jpeg JPEG (JFIF) ++pcx PCX ++png PNG ++ppm PPM (portable pixmap package) ++sld (AutoCad slide) ++tiff TIFF ++xbm X11 Bitmap ++xpm X11 Pixmap (XPM3 package) ++ ++
++ ++ ++ ++ ++ ++

++ ++

++

++ ++ ++-export_m[argin] ++ ++width ++ ++ ++ ++

++
++ ++ ++Set the size of the border margin around the figure for exporting ++to bitmap, PostScript, Encapsulated PostScript, or HTML MAP formats. ++This is in units of pixels (1/80th inch). ++The default is 0. ++ ++ ++
++

++ ++ ++-fli[pvisualhints] ++ ++ ++ ++

++
++ ++ ++Flip left/right mouse indicator messages for mice whose buttons ++have been switched. ++The default is to NOT flip the messages. ++ ++ ++
++

++ ++ ++-flu[shleft] ++ ++ ++ ++

++
++ ++ ++Set the print option to print the figure flush left. ++The default is to center the figure on the page. ++ ++ ++
++

++ ++ ++-free[hand_resolution] ++ ++resolution ++ ++ ++ ++

++
++ ++ ++Set the resolution of the freehand drawing mode to ++resolution ++ ++pixels. This is the number of pixels the mouse must move before xfig ++adds another point to the object being drawn. ++ ++ ++
++

++ ++ ++-geom[etry] ++ ++[WxH][+X+Y] ++ ++ ++ ++

++
++ ++ ++You may use the -geometry option or resource to ++size and/or position the xfig window, ++ ++or you may use ++-pwidth ++ ++and/or ++-pheight ++ ++to specify the canvas size in inches or centimeters. ++If you use the ++-geom ++ ++option to make the xfig window smaller ++than the default, you may have to use the ++-but_per_row ++ ++option to ++tell xfig to put 3 or 4 buttons per row on the left mode panel. ++ ++ ++
++

++ ++ ++-gh[ostscript] ++ ++postscript-interpreter ++ ++ ++ ++

++
++ ++ ++Select the PostScript (tm) interpreter of your choice. The default is ghostscript (gs). ++This is needed when importing Encapsulated PostScript files. ++ ++ ++
++

++ ++ ++-grid_c[olor] ++ ++color ++ ++ ++ ++

++
++ ++ ++Draw the grid on the canvas in this color (default: red). ++ ++ ++
++

++ ++ ++-grid_u[nit] ++ ++unit ++ ++ ++ ++

++
++ ++ ++Only used when in inches mode to choose between showing fractions or decimal inches ++in the rulers and grid. Any of the following may be used to force decimal inches: ++"ten", "tenth", "10, "1/10". ++If any other value is used for this option, the rulers will show 1/16 inch divisions. ++ ++ ++
++

++ ++ ++-hidd[entext] ++ ++ ++ ++

++
++ ++ ++Start ++xfig ++ ++with the ++hidden text ++ ++mode for text objects. ++The ++Hidden ++ ++attribute is used for figures that will be used with ++LaTeX ++ ++and is applicable only to the display of the document in ++xfig. ++ ++It means that the text itself is not shown onscreen, but only the string ++``<text>''. This is to keep long sequences of ++LaTeX ++ ++formatting commands from making the screen messy and hard to read. ++The default for the ++Hidden ++ ++flag is ++off. ++ ++ ++ ++
++

++ ++ ++-dontshowd[epthmanager] ++ ++ ++ ++

++
++ ++ ++Hide the depth manager panel. ++The default is to show the panel. ++ ++ ++
++

++ ++ ++-icon_[view] ++ ++ ++ ++

++
++ ++ ++Show the library objects as icons. This is the default. The other ++mode is ++-list_view. ++ ++ ++ ++
++

++ ++ ++-iconG[eometry] ++ +++X+Y ++ ++ ++ ++

++
++ ++ ++Specifies the position for the icon. ++ ++ ++
++

++ ++ ++-im[age_editor] ++ ++editor ++ ++ ++ ++

++
++ ++ ++Specify bitmap editor to use when ``Edit Image'' button is pressed ++in Picture Object panel. ++ ++ ++
++

++ ++ ++-inc[hes] ++ ++(or-imperial) ++ ++ ++ ++

++
++ ++ ++Make inches the unit of choice. ++This is the default. ++ ++ ++
++

++ ++ ++-ins[tallowncmap] ++ ++ ++ ++

++
++ ++ ++Install own colormap. Normally, xfig uses the current colormap. ++ ++ ++
++

++ ++ ++-internalBW width ++ ++ ++ ++

++
++ ++ ++Use lines of width ++width ++ ++between all buttons and panels (default = 1). ++ ++ ++
++

++ ++ ++-international ++ ++ ++ ++

++
++ ++ ++Switch on international support (mainly Japanese and Korean), ++users of ISO Latin 1 (ISO-8859-1) probably should not use this, ++therefore the international support is switched off by default ++for locales using ISO-8859-1* codesets. For all other locales this ++option is already used by default. ++ ++ ++
++

++ ++ ++-jpeg[_quality] ++ ++quality ++ ++ ++ ++

++
++ ++ ++Set the quality factor for exporting to the jpeg format. ++The default is 75. ++ ++ ++
++

++ ++ ++-k[eyFile] ++ ++compose-key-file ++ ++ ++ ++

++
++ ++ ++Use ++compose-key-file ++ ++instead of ++CompKeyDB ++ ++for compose (meta) key database. ++If there are no ++``/''s ++ ++in the name, the file must reside in the ++xfig ++ ++library directory, ++$XFIGLIBDIR, ++ ++usually ++/usr/local/lib/X11/xfig. ++ ++If there are any ++``/''s ++ ++in the name it is taken as is (not relative to ++$XFIGLIBDIR). ++ ++If there is a leading ++``~/'' ++ ++in the string then the ++``~'' ++ ++is expanded to the user's home directory. ++ ++ ++
++

++ ++ ++-lan[dscape] ++ ++ ++ ++

++
++ ++ ++Make ++xfig ++ ++come up in landscape mode (10.5" x 8"). ++This is the default; however as the orientation is stored with Fig files, ++when you load a Fig file the orientation will change as required. ++This is only true for files of version 3.0 or higher. ++
++ ++See also -portrait. ++ ++ ++
++

++ ++ ++-lat[exfonts] ++ ++ ++ ++

++
++ ++ ++Start ++xfig ++ ++with ++LaTeX ++ ++font selection. ++Normally, the ++PostScript ++ ++fonts are available as the default. ++This flag selects the ++LaTeX ++ ++fonts to start. ++ ++ ++
++

++ ++ ++-le[ft] ++ ++ ++ ++

++
++ ++ ++Change the position of the side panel window to the left of the canvas window. ++This is the default. ++ ++ ++
++

++ ++ ++-library_d[ir] ++ ++directory ++ ++ ++ ++

++
++ ++ ++Specify directory where Fig object libraries are located. There may be sub-directories ++there and sub-sub-directories, etc. ++ ++ ++
++

++ ++ ++-library_i[con_size] ++ ++size ++ ++ ++ ++

++
++ ++ ++Specify the size of the icons shown for library objects. The default is 60 pixels, with the ++minimum being 40 and the maximum being 120. ++ ++ ++
++

++ ++ ++-lis[t_view] ++ ++ ++ ++

++
++ ++ ++Show the library objects as a list of names. The default ++mode is ++-icon_view. ++ ++ ++ ++
++

++ ++ ++-mag[nification] ++ ++mag ++ ++ ++ ++

++
++ ++ ++Set export and print magnification in %. ++ ++
++

++ ++ ++-max[_image_colors] ++ ++numcols ++ ++ ++ ++

++
++ ++ ++Limit the number of colors used for imported images to ++numcols (default 64). ++ ++ ++ ++
++

++ ++ ++-me[tric] ++ ++ ++ ++

++
++ ++ ++Make centimeters the unit of choice. ++The option ++-centimeters ++ ++may also be used. ++
++After ++xfig ++ ++is started you may change the units from metric to ++imperial or vice versa from a popup menu available by pressing mouse ++button 3 in the ++units ++ ++box where the two rulers meet. ++ ++ ++
++

++ ++ ++-mo[nochrome] ++ ++ ++ ++

++
++ ++ ++Use black and white only. ++ ++ ++
++

++ ++ ++-mu[ltiple] ++ ++ ++ ++

++
++ ++ ++Sets multiple page mode for print or export. See also ++-single. ++ ++ ++ ++
++

++ ++ ++-noo[verlap] ++ ++ ++ ++

++
++ ++ ++When exporting in multiple page mode, causes no overlap from page to page. ++This is the default. See also ++-overlap. ++ ++ ++ ++
++

++ ++ ++-nor[mal] ++ ++font ++ ++ ++ ++

++
++ ++ ++Cause the font used for the message window to be ++font. ++ ++This font is also used on the canvas when the selected font is not ++available in an X11 font (default = 6x13). ++ ++ ++
++

++ ++ ++-nosc[alablefonts] ++ ++ ++ ++

++
++ ++ ++Disables use of the X11R5 or OpenWindows scalable fonts. ++You might want to use this for debugging. ++ ++ ++
++

++ ++ ++-nosp[lash] ++ ++ ++ ++

++
++ ++ ++Don't show the startup splash screen. The default is to show it ( ++-splash ++ ++). ++ ++ ++
++

++ ++ ++-not[rack] ++ ++ ++ ++

++
++ ++ ++Turn off cursor (mouse) tracking arrows. ++ ++ ++
++

++ ++ ++-ov[erlap] ++ ++ ++ ++

++
++ ++ ++When exporting in multiple page mode, causes overlap from page to page of ++about 10%. ++See also ++-nooverlap. ++ ++ ++ ++
++

++ ++ ++-pag[eborder] ++ ++color ++ ++ ++ ++

++
++ ++ ++Draw the page border on the canvas in this color (default light blue). ++The page border is turned on by the ++-showpageborder ++ ++option ++(resource Fig.showpageborder), ++and shows the edges of the current ++export ++ ++paper size. ++ ++ ++
++

++ ++ ++-pap[er_size] ++ ++size ++ ++ ++ ++

++
++ ++ ++Set the initial paper size for Export and Print. Choices are ++ ++

++ ++ ++ ++ ++ ++

++
++Option     Paper      Size
++
letter Letter 8.5in x 11in ++legal Legal 8.5in x 14in ++tabloid Tabloid 17in x 11in ++a ANSI A 8.5in x 11in ++b ANSI B 11in x 17in ++c ANSI C 17in x 22in ++d ANSI D 22in x 34in ++e ANSI E 34in x 44in ++a9 ISO A9 37mm x 52mm ++a8 ISO A8 52mm x 74mm ++a7 ISO A7 74mm x 105mm ++a6 ISO A6 105mm x 148mm ++a5 ISO A5 148mm x 210mm ++a4 ISO A4 210mm x 297mm ++a3 ISO A3 297mm x 420mm ++a2 ISO A2 420mm x 594mm ++a1 ISO A1 594mm x 840mm ++a0 ISO A0 840mm x 1189mm ++b10 JIS B10 32mm x 45mm ++b9 JIS B9 45mm x 64mm ++b8 JIS B8 64mm x 91mm ++b7 JIS B7 91mm x 128mm ++b6 JIS B6 128mm x 182mm ++b5 JIS B5 182mm x 257mm ++b4 JIS B4 257mm x 364mm ++b3 JIS B3 364mm x 515mm ++b2 JIS B2 515mm x 728mm ++b1 JIS B1 728mm x 1030mm ++b0 JIS B0 1030mm x 1456mm ++
++ ++ ++ ++ ++ ++ ++

++ ++Note that this doesn't affect the size of the drawing canvas. ++Use the ++-pheight ++ ++and ++-pwidth ++ ++options for that. ++ ++ ++

++

++ ++ ++-ph[eight] ++ ++height ++ ++ ++ ++

++
++ ++ ++Make the ++xfig ++ ++canvas ++height ++ ++high (where ++height ++ ++is either cm or in, depending on the ++-metric ++ ++setting). ++ ++ ++
++

++ ++ ++-po[rtrait] ++ ++ ++ ++

++
++ ++ ++Make ++xfig ++ ++come up in portrait mode (8.5" x 9"). See note about landscape mode. ++ ++ ++
++

++ ++ ++-pw[idth] ++ ++width ++ ++ ++ ++

++
++ ++ ++Make the ++xfig ++ ++canvas ++width ++ ++wide (where ++width ++ ++is either cm or in, depending on the ++-metric ++ ++setting). ++ ++ ++
++

++ ++ ++-righ[t] ++ ++ ++ ++

++
++ ++ ++Change the position of the side panel window to the right of the canvas window ++(default: left). ++ ++ ++
++

++ ++ ++-rigi[d] ++ ++ ++ ++

++
++ ++ ++Start ++xfig ++ ++with the ++rigid text ++ ++mode for text objects. ++The ++Rigid ++ ++attribute forces text to remain the same size even if ++inside a compound object that is scaled up or down. ++The default is ++off. ++ ++ ++ ++
++

++ ++ ++-ru[lerthick] ++ ++ ++ ++

++
++ ++ ++Set the height(width) of the top(side) rulers in pixels. ++The default (and minimum) is 24. ++ ++ ++
++

++ ++ ++-scala[blefonts] ++ ++ ++ ++

++
++ ++ ++Allows use of the X11R5 or OpenWindows scalable fonts (this is the default). ++If the scalable fonts aren't available ++xfig ++ ++will automatically switch to non-scaling fonts. ++ ++ ++
++

++ ++ ++-scale_factor ++ ++scale ++ ++ ++ ++

++
++ ++ ++Scale every figure read in by this value. This is useful in conjunction with the ++-update ++ ++option to do batch scaling of figures. ++ ++ ++
++

++ ++ ++-showa[llbuttons] ++ ++ ++ ++

++
++ ++ ++Show all the ++xfig ++ ++indicator buttons instead of only those relevant ++to the current drawing mode. ++Normally, the buttons ++line width, ++ ++area-fill, ++ ++grid mode, ++ ++text size, ++ ++etc. are only visible when ++they are relevant to the current drawing mode. ++The ++-showallbuttons ++ ++option makes all ++of the indicator buttons visible at all times. ++This takes up more screen real estate, ++but allows the user to see all settable parameters. ++ ++ ++
++

++ ++ ++-showb[alloons] ++ ++ ++ ++

++
++ ++ ++Forces ++xfig ++ ++to pop up the information balloons when the mouse ++passws over a button. This is the default. See also ++-dontshowballoons . ++ ++ ++ ++
++

++ ++ ++-showd[epthmanager] ++ ++ ++ ++

++
++ ++ ++Show the depth manager panel. This panel lets one show or hide ++objects at various depths. ++This is the default. ++ ++ ++
++

++ ++ ++-showl[engths] ++ ++ ++ ++

++
++ ++ ++Makes ++xfig ++ ++show the lengths of lines being drawn, in red text near the ++line itself. Also, when points are moved or added. In addition, imagine ++a triangle formed with the line segment as the hypotenuse, ++and a vertical and horizontal line forming the other two sides. These ++lines and their lengths are also drawn in red as the point is moved or added. ++This mode is ignored when drawing in freehand mode. ++
++ ++This flag may be toggled by pressing <Meta>i (default). ++ ++ ++
++

++ ++ ++-shown[ums] ++ ++ ++ ++

++
++ ++ ++With this option, xfig will draw all objects with a red number next to each vertex. ++This is generally only useful for debugging. ++ ++ ++
++

++ ++ ++-showp[ageborder] ++ ++ ++ ++

++
++ ++ ++Makes ++xfig ++ ++show the border of the current paper size in the color specified ++by the ++-pageborder ++ ++option (default: light blue). ++ ++ ++
++

++ ++ ++-showz[erolines] ++ ++ ++ ++

++
++ ++ ++Show axis zero lines on the canvas. ++This is the default ++ ++ ++
++

++ ++ ++-si[ngle] ++ ++ ++ ++

++
++ ++ ++Sets single page mode for print or export. ++This is the default. See also ++-multiple. ++ ++ ++ ++
++

++ ++ ++-sm[ooth_factor] ++ ++factor ++ ++ ++ ++

++
++ ++ ++Enable smoothing when exporting to the bitmap formats (e.g. GIF, PNG, etc.). The allowed ++values are 0 (no smoothing), 2 or 4 (most smoothing). This parameter is passed ++to ghostscript in the -dTextAlphaBits -dGraphicsAlphaBits options to smooth the figure. ++ ++ ++
++

++ ++ ++-spec[ialtext] ++ ++ ++ ++

++
++ ++ ++Start ++xfig ++ ++with the ++special text ++ ++mode for text objects. ++Special text means that special characters in the string are not specially ++processed but are passed directly to ++LaTeX. ++ ++This is most useful for writing LaTeX equations. ++If this flag is not set, then the backslash character '\' is changed ++to the \backslash command, a brace '{' is turned into a brace command \{, etc. ++ ++ ++
++

++ ++ ++-spel[lcheckcommand] ++ ++command ++ ++ ++ ++

++
++ ++ ++Use ++command ++ ++for the external spell checking program when using the spell check/search/replace ++popup. ++The string ++command ++ ++should include the string ``%s'' which is replaced by a temporary filename. ++Default is ``spell %s''. ++ ++ ++
++

++ ++ ++-spinner_d[elay] ++ ++msec ++ ++ ++ ++

++
++ ++ ++The delay (in milliseconds) before the spinner will automatically count up ++or down when the button is pressed. ++Spinners are the (numeric) text widgets with an up- and down-arrow, which when ++clicked, cause the value to be incremented/decremented. ++The default is 500 milliseconds. ++ ++ ++
++

++ ++ ++-spinner_r[rate] ++ ++msec ++ ++ ++ ++

++
++ ++ ++The rate (in milliseconds) at which the spinner will count ++when the up- or down-arrow is pressed. ++ ++ ++
++

++ ++ ++-startfi[llstyle] ++ ++stylenumber ++ ++ ++ ++

++
++ ++ ++Set the starting fill style for area fill (-1 to 21). ++ ++ ++
++

++ ++ ++-startfo[ntsize] ++ ++pointsize ++ ++ ++ ++

++
++ ++ ++Set the default font size for text objects (default = 12pt). ++ ++ ++
++

++ ++ ++-startg[ridmode] ++ ++modenumber ++ ++ ++ ++

++
++ ++ ++Set the starting grid mode (0 to 3). Mode 0 is no grid. ++In imperial (inches) mode, grid mode 1 is 1/4 inch, ++mode 2 is 1/2 inch and mode 3 is 1 inch. ++In metric mode, grid mode 1 is 5mm, mode 2 is 1cm and mode 3 is 2cm. ++ ++ ++
++

++ ++ ++-startla[texFont] ++ ++font ++ ++ ++ ++

++
++ ++ ++Set the starting font name for ++LaTeX ++ ++fonts. ++ ++ ++
++

++ ++ ++-startli[newidth] ++ ++width ++ ++ ++ ++

++
++ ++ ++Set the starting line width. ++ ++ ++
++

++ ++ ++-startpo[snmode] ++ ++modenumber ++ ++ ++ ++

++
++ ++ ++Set the starting point positioning mode (0 to 4) ++In imperial (inches) mode, positioning mode 0 is ``any'', ++mode 1 is 1/16 inch, ++mode 2 is 1/4 inch, mode 3 is 1/2 inch and mode 4 is 1 inch. ++In metric mode, mode 0 is ``any'', ++mode 1 is 1mm, mode 2 is 5mm, mode 3 is 10mm and mode 4 is 20mm. ++ ++ ++
++

++ ++ ++-startp[sFont] ++ ++font ++ ++ ++ ++

++
++ ++ ++Set the starting font name for ++PostScript ++ ++fonts. ++ ++ ++
++

++ ++ ++-startt[extstep] ++ ++stepsize ++ ++ ++ ++

++
++ ++ ++Set the starting text step. ++ ++ ++
++

++ ++ ++-ta[blet] ++ ++ ++ ++

++
++ ++ ++Specifies that xfig should use the input tablet instead of the mouse ++for drawing. You must have the XInputExtension in your X server and ++an input tablet for this to work. Also, you must modify the Imakefile ++to include the ++USETAB ++ ++and ++TABLIB ++ ++variables. ++ ++ ++
++

++ ++ ++-track ++ ++ ++ ++

++
++ ++ ++Turn on cursor (mouse) tracking arrows (default). ++ ++ ++
++

++ ++ ++-tran[sparent_color] ++ ++color_number ++ ++ ++ ++

++
++ ++ ++Make the transparent color for GIF export ++color_number. ++ ++This number is the color number according to the ++xfig ++ ++color panel, starting at 0 (black) and ending at 31 (gold), ++or may be a user-defined color number, which is 32 or higher. ++ ++ ++
++

++ ++ ++-update ++ ++file [ file ... ] ++ ++ ++ ++

++
++ ++ ++Run xfig in an "update" mode, where it will read each Fig file specified ++on the command line and write it out to the original file, ++in the current file format for the version of xfig being run. ++The original Fig file will be preserved with ++the suffix .bak attached to the name. ++
++ ++In this mode, xfig doesn't connect the X server, so no window is opened, ++and it exits when finished. ++ ++ ++
++

++ ++ ++-users[cale] ++ ++scale ++ ++ ++ ++

++
++ ++ ++Set the multiplier for displayed line lengths etc. ++This factor is multiplied by the actual length, ++radius or diameter of the object currently ++being drawn on the canvas. ++It is useful for making scale drawings, where ++e.g. 1 inch = 1 foot (userscale = 12.0) or 1cm = 1m (userscale = 100.0). ++ ++ ++
++

++ ++ ++-useru[nit] ++ ++units ++ ++ ++ ++

++
++ ++ ++The ++units ++ ++string is printed with the length information when drawing objects. ++For example if the ++userscale ++ ++= 1.0 and the ++userunit ++ ++= ++ft ++ ++then a line which is 3 inches long on the canvas would be displayed as ++``length = 3 ft'' when it is being drawn. ++
++After ++xfig ++ ++is started you may change the ++userscale ++ ++and the ++userunit ++ ++from a popup menu available by pressing mouse button 3 in the ++units ++ ++box where the two rulers meet. ++ ++ ++
++

++ ++ ++-visual ++ ++visualname ++ ++ ++ ++

++
++ ++ ++Use ++visualname ++ ++as the visual for xfig. The names are TrueColor (case is not important), ++StaticColor, DirectColor, StaticGray, GrayScale and PseudoColor. ++xfig ++ ++uses the default visual unless this is specified. Your server must ++support the desired visual. ++Use ++xdpyinfo ++ ++to see what visuals and depths are supported. ++See also the ++-depth ++ ++option. ++ ++ ++
++

++ ++ ++-zoom ++ ++zoomscale ++ ++ ++ ++

++
++ ++ ++Set the starting zoom scale. ++

++

++

++

++ ++  ++

X RESOURCES and DEFAULTS

++ ++The overall widget name(Class) is xfig(Fig). ++These resources correspond to the command line arguments: ++

++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++

++Name                Type    Default         Command-line equivalent
++
allownegcoords boolean true -allownegcoords (true), ++ -dontallownegcoords (false) ++axislines string pink -axislines ++balloon_delay integer 500 (ms) -balloon_delay ++boldFont string 8x13bold -bold ++but_per_row integer 2 -but_per_row ++buttonFont string 6x13 -button ++canvasbackground string white -cbg ++canvasforeground string black -cfg ++correctfontsize boolean false -correctfontsize ++debug boolean false -debug ++depth integer * -depth ++dontswitchcmap boolean false -dontswitchcmap ++euc_encoding boolean false (n/a) ++encoding integer 1 -encoding ++exportLanguage string eps -exportLanguage ++export_margin integer 0 -export_margin ++flipvisualhints boolean false -flipvisualhints ++flushleft boolean false -flushleft (true), ++ -center (false) ++freehand_resolution integer 25 -freehand_resolution ++grid_color string black -grid_color ++grid_unit string 1/16 (inch) -grid_unit ++ 0.1 (metric) ++hiddentext boolean false -hiddentext ++icon_view boolean true -icon_view (true), ++ -list_view (false) ++image_editor string xv -image_editor ++inches boolean true -inches (true), ++ -imperial (true), ++ -centimeters (false), ++ -metric (false) ++installowncmap boolean false -installowncmap ++internalborderwidth integer 1 -internalBW ++international International booleanfalse-international ++jpeg_quality integer 75 -jpeg_quality ++justify boolean false -left (false), ++ -right (true) ++keyFile string CompKeyDB -keyFile ++landscape boolean true -Landscape (true), ++ -landscape (true), ++ -Portrait (false), ++ -portrait (false) ++latexfonts boolean false -latexfonts ++library_dir string ~/xfiglib -library_dir ++magnification float 100 -magnification ++max_image_colors integer 64 -max_image_colors ++monochrome boolean false -monochrome ++multiple boolean false -multiple ++normalFont string 6x13 -normal ++overlap boolean true -overlap (true), ++ -nooverlap (false) ++pageborder string lightblue -pageborder ++paper_size string Letter (inch) -paper_size ++ A4 (metric) ++pheight float 8.5 (landscape) -pheight ++ 9.5 (portrait) ++pwidth float 11 (landscape) -pwidth ++ 8.5 (portrait) ++rigidtext boolean false -rigid (true) ++rulerthick integer 24 -rulerthick ++scalablefonts boolean true -scalablefonts (true), ++ -noscalablefonts (false) ++scale_factor float 1.0 -scale_factor ++showallbuttons boolean false -showallbuttons ++showaxislines boolean true -showaxislines (true), ++ -dontshowaxislines (false) ++showballoons boolean true -showballoons (true), ++ -dontshowballoons (false) ++showdepthmanager boolean true -showdepthmanager (true), ++ -dontshowdepthmanager (false) ++showlengths boolean false -showlengths (true), ++ -dontshowlengths (false) ++shownums boolean false -shownums (true), ++ -dontshownums (false) ++showpageborder boolean true -showpageborder (true), ++ -dontshowpageborder (false) ++single boolean true -single ++smooth_factor integer 0 -smooth_factor ++specialtext boolean false -specialtext ++splash boolean true -splash (true), ++ -nosplash (false) ++spellcheckcommand string spell %s -spellcheckcommand ++spinner_delay integer 500 (ms) -spinner_delay ++spinner_rate integer 100 (ms) -spinner_rate ++startfillstyle integer 0 -startfillstyle ++startfontsize float 12 -startfontsize ++startgridmode integer 0 -startgridmode ++startlatexFont string Default -startlatexFont ++startlinewidth integer 1 -startlinewidth ++startposnmode integer 1 -startposnmode ++startpsFont string Times-Roman -startpsFont ++starttextstep float 1.2 -starttextstep ++tablet boolean false -track, ++trackCursor boolean true -track (true), ++ -notrack (false) ++transparent_color integer -2 (none) -transparent_color ++userscale float 1.0 -userscale ++userunit string in (inches) -userunit ++ cm (metric) ++visual string * -visual ++zoom float 1.0 -zoom ++ ++* Default visual and depth depend on the X server. Use xdpyinfo to see what visuals ++and depths are supported. ++
++ ++ ++ ++ ++ ++

++

++ ++  ++

BUGS and RESTRICTIONS

++ ++Please send bug reports, fixes, new features etc. to: ++
++ ++bvsmith@lbl.gov ++(Brian V. Smith) ++

++ ++When reporting a bug, please first check if the problem is mentioned in ++the FAQ section of the HTML files (xfig Help menu). ++

++ ++If it is not mentioned there, be sure to report the operating system you ++are using (e.g. SunOS 4.1.3), type of X server and version (OpenWindows 3, X11R6.4, ++XFree86 3.2.2, etc) and color depth (e.g. 8bpp, 16bpp), and most ++importantly the version of xfig or fig2dev that is having the problem. ++

++ ++It is also VERY useful to me if you can provide a stack trace from a debugger ++such as gdb, dbx, ups, etc, if the bug causes xfig to crash. ++

++ ++Because of the difference of some fonts in some X servers and the PostScript ++fonts on printers, text alignment can be problematic. ++

++ ++Not all operations employ smart redrawing of objects which are altered ++as a by product of the operation. ++You may need to use ++Redraw ++ ++in these cases. ++

++ ++Some servers do not allow bitmaps/pixmaps taller than the screen height ++or wider than the screen width. ++That is why there is a limit on the width ++of the top ruler and height of the side ruler. ++If you need wider/taller rulers AND your server allows bigger pixmaps, ++you may define ++MAX_TOPRULER_WD ++ ++and/or ++MAX_SIDERULER_HT ++ ++in your Imakefile in the ++DEFINES ++ ++line. ++For example, ++to have a maximum top ruler width of 1160 pixels, add ++-DMAX_TOPRULER_WD=1160 ++ ++to your ++DEFINES ++ ++line in the Imakefile. ++

++ ++If the image is panned or the ++xfig ++ ++window iconified and de-iconified ++during the middle of an operation (e.g. while drawing a line), the picture ++will be distorted. ++This can be corrected using ++Redraw ++ ++after the operation is complete. ++

++ ++When zoomed very large, the length of dashes in dashed lines will top out ++at 255 pixels long. This is due to a restriction in X ++that the dash list is defined by char (255 pixels maximum for a dash). ++The figure will print correctly, however. ++

++ ++When you do a copy/rotate with multiple copies, ++only the creation of the last object can be undone with the Undo button. ++

++ ++Modifications to text using the popup search/update/replace/spell check panel ++cannot be undone. ++

++ ++See the ++README ++ ++file for troubleshooting. ++  ++

SEE ALSO

++ ++

++ ++fig2dev(1) ++(TransFig ++ ++package) ++

++ ++gs(1) ++(Ghostscript ++ ++PostScript previewer) ++  ++

ACKNOWLEDGEMENT

++ ++(From the original author, Supoj Sutanthavibul): ++Many thanks goes to Professor Donald E. Fussell who inspired the ++creation of this tool. ++

++ ++(From current maintainer Brian Smith): ++Thanks to all the users who have contributed to xfig, especially ++Paul King who, besides adding many features, ++revamped the look and feel which became version 2.1. ++  ++

COPYRIGHT

++ ++
++Original Copyright (c) 1985 by Supoj Sutanthavibul
++Parts Copyright (c) 1994-1999 by Brian V. Smith
++Parts Copyright (c) 1991 by Paul King
++Other Copyrights may be found in various files
++
++
++
++ ++

++ ++Any party obtaining a copy of these files is granted, free of charge, a ++full and unrestricted irrevocable, world-wide, paid up, royalty-free, ++nonexclusive right and license to deal in this software and ++documentation files (the "Software"), including without limitation the ++rights to use, copy, modify, merge, publish and/or distribute copies of ++the Software, and to permit persons who receive copies from any such ++party to do so, with the only requirement being that this copyright ++notice remain intact. ++

++ ++Note that although I work at Lawrence Berkeley National Laboratory (LBNL) ++I don't speak for LBNL nor do I represent LBNL with respect to my work on ++TransFig and xfig, nor does LBL make any representations about the suitability ++of this software for any purpose. ++

++ ++Here is the legal part: ++

++ ++THE LAWRENCE BERKELEY NATIONAL LABORATORY DISCLAIMS ALL WARRANTIES WITH ++REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ++AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, ++INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ++LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE ++OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ++PERFORMANCE OF THIS SOFTWARE. ++

++

++ ++PostScript ++ ++is a trademark of Adobe Systems Incorporated. ++ ++

++ ++

++Parts Copyright (C) 1989 by Jef Poskanzer.
++Copyright notice for pbmplus code:
++
++
++Permission to use, copy, modify, and distribute this
++software and its documentation for any purpose and without
++fee is hereby granted, provided that the above copyright
++notice appear in all copies and that both that copyright
++notice and this permission notice appear in supporting
++documentation.  This software is provided ``as is'' without
++express or implied warranty.
++
++ ++
++ ++  ++

FILES

++ ++ ++ ++
++
CompKeyDB ++ ++
++Data base of compose (meta) key sequences for 8-bit characters. ++Must be installed in ++$(XFIGLIBDIR) ++ ++with ``make install'', ++or may be specified with command line option ++-keyFile ++ ++or X toolkit resource keyFile. ++See the ++Imakefile. ++ ++
/usr/lib/X11/xfig
++This directory contains the html documentation, the above mentioned ++CompKeyDB file, and a directory of libraries containing Fig objects ++such as electrical symbols, logic symbols, etc. ++
Fig.ad and Fig-color.ad ++ ++
++Application defaults files which are automatically installed ++in the system app-defaults directory with the ++make install ++ ++command. ++
Doc/FORMAT3.2 ++ ++
++Description of Fig file format. ++
README ++ ++
++Installation instructions and troubleshooting. ++
CHANGES ++ ++
++Description of bug fixes/new features. ++

++

++  ++

AUTHORS

++ ++Many people have contributed to ++xfig. ++ ++Here is a list of the people who ++have contributed the most (in chronological order): ++

++Version 1: ++ ++

++ ++Original author: ++
++ ++Supoj Sutanthavibul, University of Texas at Austin ++

++The ++LaTeX ++ ++line drawing modes were contributed by: ++
++ ++Frank Schmuck, Cornell University ++

++Original X11 port by: ++
++ ++Ken Yap, Rochester ++

++Variable window sizes, cleanup of X11 port, right hand side panel: ++
++ ++Dana Chee, Bellcore ++

++Cleanup of color port to X11 by: ++
++ ++John T. Kohl, MIT ++

++ ++Version 2.0: ++ ++ ++

++Area fill, multiple line thicknesses, multiple fonts and font sizes, ++bottom panel, line style/thickness, ++(and anything else that wasn't written by the others) ++by: ++
++ ++Brian Smith ++
++ ++(standard disclaimer applies) ++
++ ++(bvsmith@lbl.gov) ++

++Popup change-object menu by: ++
++ ++Jon Tombs ++
++ ++Frank Schmuck ++

++Zooming and panning functions, shift key select mechanism by: ++
++ ++Dieter Pellkofer ++
++ ++Henning Spruth ++

++Depth feature by: ++
++ ++Mike Lutz ++

++Cut/Paste by: ++
++ ++Tom Tkacik ++

++ ++Version 2.1: ++ ++ ++

++Indicator panel, file menu popup, print menu popup, ++panning with rulers, mouse function window, regular polygon, ++rubberbanding of circles/ellipses, filled splines on canvas, ++dashed/dotted splines on canvas, update button, ++arbitrary angle rotation of objects, alignment in compound, ++object scaling, constrained copy/move, corner markers for compound, ++context sensitive corner markers, smarter redraw, undo for compound ++and point move for boxes, cancel object creation, point positioning ++to three resolutions, ++TransFig ++ ++scalable text, hidden text, ++special text, save of figure on crash by: ++

++Paul King (king@cs.uq.oz.au) ++
++ ++with help from: ++
++ ++Brian Smith ++and Micah Beck (beck@cs.utk.edu) ++

++Encapsulated ++PostScript ++ ++importing by: ++
++ ++Brian Boyter ++

++Pan/zoom with ctrl key/mouse by: ++
++ ++Henning Spruth ++

++International characters by: ++
++ ++Herve Soulard ++

++Directory Browser based on XDir by: ++
++ ++Win Treese, Digital Equipment Corporation ++

++Rotated ellipses by: ++
++ ++James Tough, Dept. of Computer Science, Heriot-Watt University, Scotland ++

++Rotated text from the ++xvertext ++ ++package by: ++
++ ++Alan Richardson, Space Science Centre, School of MAPS, ++University of Sussex ++

++Popup scale menu and dynamic switching between inches and cm by: ++
++ ++Paul King (king@cs.uq.oz.au) ++

++Extensive man page formatting revisions by: ++
++ ++David W. Sanderson ++

++Display Postscript code for IBM RS/6000 by: ++
++ ++Dave Hale (dhale@green.mines.colorado.edu) ++ ++

++Version 3.0: ++ ++ ++

++
++ ++New arrowhead types, separate pen/fill colors, new file protocol, ++more colors with extended color popup panel, new arc style, ++new fill patterns (bricks, etc), new line join and cap styles, ++export offset and file load offset, XPM import, XBM import and export ++(and anything else that wasn't written by the others) by: ++
++ ++Brian Smith ++
++ ++(Note: the color popup panel was based on ++xcoloredit ++ ++by Richard Hesketh) ++

++

++GIF header reading code by: ++
++ ++David Koblas from the giftoppm part of the pbmplus package ++

++XPM export code (using XPM3 libraries) by: ++
++ ++Karel van Houten (K.H.C.vanHouten@research.ptt.nl) ++

++Higher figure resolution (1200dpi) by: ++
++ ++Ross Martin (martin@trcsun3.eas.asu.edu) ++

++Color quantization using neural network by: ++
++ ++Anthony Dekker (dekker@ACM.org) ++
++ ++[NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. ++See ``Kohonen neural networks for optimal colour quantization'' ++in ``Network: Computation in Neural Systems'' Vol. 5 (1994) pp 351-367. ++for a discussion of the algorithm.] ++

++Floyd-Steinberg algorithm for dithering color images on monochrome ++displays lifted from the Pbmplus package by Jef Poskanser. ++

++rotate/flip objects around/about selected anchor point and multiple ++copies of objects by: ++
++ ++Uwe Bonnes (bon@lte.e-technik.uni-erlangen.de) ++

++Input tablet extension by: ++
++ ++Greg LaCoste (greg@seismo.do.usbr.gov) ++ ++

++Version 3.1: ++ ++

++ ++
++ ++The only difference between protocol version 3.0 and version 3.1 is ++that the position of the ``magnet'' has been shifted by 14 fig units. ++In the 2.1 and older versions of xfig the grid was in multiples of 5 fig ++units, but they were on intervals 4, 9, 14, 19, etc. ++When version 3.0 was created, coordinates were simply multiplied by the ++ratio of the resolutions (1200/80 = 15) so values like 4 became 60 instead ++of 74 ((4+1)*15 - 1). ++

++The JPEG import/export code uses the Independent JPEG Group software ++(see jpeg/README for details) ++

++Image browser, editor and screen capture features by: ++
++ ++Jim Daley (jdaley@cix.compulink.co.uk) ++ ++

++Version 3.2: ++ ++

++ ++
++ ++The changes to the version 3.2 file protocol are the addition of the ++paper size, print/export magnification, single/multiple page indicator ++and a transparent color name used for GIF export to the header ++of the file. ++
++ ++The other difference in the version 3.2 protocol is the ++mathematical model used for splines. The new version ++uses X-splines which allows the user to mix interpolation and approximation ++points in a same curve. More precisely, it means that an X-spline curve ++is neither an interpolated spline nor an approximated one, it is BOTH ++(the behaviour of each point is controlled by one single parameter ++called ``shape factor''). For additional information about X-splines, see: ++

++
  "X-Splines: A Spline Model Designed for the End User" ++
  by C. Blanc and C. Schlick, Proceedings of SIGGRAPH'95 ++
  http://dept-info.labri.u-bordeaux.fr/~schlick/DOC/sig1.html ++

++Caveat: Because previous spline models (quadratic B-splines and Bezier ++with hidden points) are no longer supported, curves that are present ++in version 3.1 and older files are automatically converted to X-splines. ++This translation is only an approximation process. It means that the ++converted curves are not exactly the same as the original ones. Though ++they are usually very close, some hand-fitting may be needed in ++some pathological cases. ++

++Inclusion of X-splines by: ++
++ ++Carole Blanc (blanc@labri.u-bordeaux.fr) ++
++ ++Christophe Schlick (schlick@labri.u-bordeaux.fr) ++
++ ++Note: the initial implementation was done by C. Feuille, S. Grosbois, L. ++Maziere and L. Minihot as a student practice (Universite Bordeaux, France). ++

++Open/close compound feature written by ++
++ ++Bill Taylor (bill@mainstream.com) ++

++Library feature written by ++
++ ++Stephane Mancini (mancini@elecsrv.enst.fr) ++(object preview by Brian V. Smith) ++

++The library objects in the Electrical and Logic libraries were done by ++
++ ++Peter Hiscocks (phiscock@ee.ryerson.ca) ++

++The library objects in the Computer, Networks, and Hospital-Equipment ++libraries were extracted from the clipart example files by ++
++ ++Bill Chimiak (chim@bgsm.edu) ++

++ ++

++Version 3.2.3 and newer: ++ ++

++ ++Please see the CHANGES file for credits for newer releases. ++ ++  ++

NOTES

++ ++Many bug fixes/cleanups etc. by a host of faithful users ++

++See the ++CHANGES ++ ++file for all the credits ++

++The ++TransFig ++ ++package was written by Micah Beck and is maintained by Brian Smith ++

++ ++


++ 

Index

++
++
NAME
++
SYNOPSIS
++
DESCRIPTION
++
OPTIONS
++
X RESOURCES and DEFAULTS
++
BUGS and RESTRICTIONS
++
SEE ALSO
++
ACKNOWLEDGEMENT
++
COPYRIGHT
++
FILES
++
AUTHORS
++
NOTES
++
++
++This document was created by ++man2html, ++using the manual pages.
++Time: 16:26:41 GMT, March 22, 2008 ++ ++ diff --git a/sources b/sources index 74035c1..db0a967 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -499b0ce103a6b353453bf7e327f9a3b9 xfig.3.2.5b.full.tar.gz +210851330fa4bb3581bec1f8448a4db8 xfig.3.2.5c.full.tar.gz f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz diff --git a/xfig-3.2.5-Imakefile.patch b/xfig-3.2.5-Imakefile.patch index 90f91c3..6451bff 100644 --- a/xfig-3.2.5-Imakefile.patch +++ b/xfig-3.2.5-Imakefile.patch @@ -1,7 +1,7 @@ diff -up xfig.3.2.5b/Imakefile.fed xfig.3.2.5b/Imakefile --- xfig.3.2.5b/Imakefile.fed 2012-08-12 16:54:00.102765148 +0200 +++ xfig.3.2.5b/Imakefile 2012-08-12 16:57:32.883846828 +0200 -@@ -45,12 +45,12 @@ XCOMM Don't set the DESTDIR variable unl +@@ -45,7 +45,7 @@ XCOMM Don't set the DESTDIR variable unl XCOMM different tree than the "correct" tree that your X system expects. The usual XCOMM purpose of DESTDIR is to test an install process by installing in a benign area. @@ -10,12 +10,6 @@ diff -up xfig.3.2.5b/Imakefile.fed xfig.3.2.5b/Imakefile XCOMM Comment out the following definition for XAW3D if you don't to want to use XCOMM the 3d Athena Widget Set - --#define XAW3D -+XCOMM #define XAW3D - - #ifdef XAW3D - XAWLIB = -lXaw3d @@ -169,15 +169,14 @@ XCOMM be sure to comment out the second XCOMM XFIGLIBDIR = $(LIBDIR) diff --git a/xfig-3.2.5-enable-Xaw3d.patch b/xfig-3.2.5-disable-Xaw3d.patch similarity index 62% rename from xfig-3.2.5-enable-Xaw3d.patch rename to xfig-3.2.5-disable-Xaw3d.patch index a1df816..3b5b8fc 100644 --- a/xfig-3.2.5-enable-Xaw3d.patch +++ b/xfig-3.2.5-disable-Xaw3d.patch @@ -1,12 +1,12 @@ -diff -up xfig.3.2.5a/Imakefile.no-Xaw3d xfig.3.2.5a/Imakefile ---- xfig.3.2.5a/Imakefile.no-Xaw3d 2009-03-27 16:33:46.000000000 +0100 -+++ xfig.3.2.5a/Imakefile 2009-03-27 16:35:06.000000000 +0100 +diff -up xfig.3.2.5a/Imakefile.with-Xaw3d xfig.3.2.5a/Imakefile +--- xfig.3.2.5c/Imakefile.with-Xaw3d 2013-11-27 22:24:46.000000000 +0100 ++++ xfig.3.2.5c/Imakefile 2013-11-27 22:24:06.000000000 +0100 @@ -50,7 +50,7 @@ XAPPLOADDIR = /usr/share/X11/app-default XCOMM Comment out the following definition for XAW3D if you don't to want to use XCOMM the 3d Athena Widget Set --XCOMM #define XAW3D -+#define XAW3D +-#define XAW3D ++XCOMM #define XAW3D #ifdef XAW3D XAWLIB = -lXaw3d @@ -14,8 +14,8 @@ diff -up xfig.3.2.5a/Imakefile.no-Xaw3d xfig.3.2.5a/Imakefile XCOMM some new features, including "Tips", which replace xfig's "help balloons" XCOMM NOTE: This is the default for many X systems now. --XCOMM #define XAW3D1_5E -+#define XAW3D1_5E +-#define XAW3D1_5E ++XCOMM #define XAW3D1_5E #ifdef XAW3D1_5E DUSEXAW3D = -DXAW3D -DXAW3D1_5E diff --git a/xfig.spec b/xfig.spec index e492de1..74df78e 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,31 +3,25 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 38.b%{?dist} +Release: 39.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ -Source0: http://downloads.sourceforge.net/mcj/xfig.%{version}b.full.tar.gz +Source0: http://downloads.sourceforge.net/mcj/xfig.%{version}c.full.tar.gz Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.sh Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-Imakefile.patch -Patch2: xfig-3.2.5-enable-Xaw3d.patch +Patch2: xfig-3.2.5-disable-Xaw3d.patch Patch3: xfig-3.2.5-urwfonts.patch -Patch4: 03_usr_share.patch -Patch5: 12_network_images.patch -Patch6: 13_remove_extra_libs.patch -Patch7: 30_figparserstack.patch -Patch8: 31_spelling.patch -Patch9: 32_papersize_b1.patch -Patch10: 33_pdfimport_mediabox.patch -Patch11: 35_CVE-2010-4262.patch -Patch12: 36_libpng15.patch -Patch13: 37_fix-eps-reading.patch -Patch14: 38_formatstring.patch -Patch15: 40_fix_dash_list_for_different_styles.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: 39_add_xfig_man_html.patch +Patch7: 40_fix_dash_list_for_different_styles.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -91,23 +85,15 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %prep -%setup -q -n xfig.%{version}b -a 1 +%setup -q -n xfig.%{version}c -a 1 %patch0 -p1 %patch1 -p1 -%patch2 -p1 -b .no-Xaw3d +%patch2 -p1 -b .with-Xaw3d %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp @@ -115,7 +101,7 @@ chmod -x `find -type f` %build -# First build the Xaw3d version +# First build the normal Xaw version xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig"/"xfig-Xaw3d"/' main.c @@ -123,8 +109,8 @@ make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict- mv xfig xfig-Xaw3d make distclean -# And then build the normal Xaw version -mv Imakefile.no-Xaw3d Imakefile +# And then build the plain version +mv Imakefile.with-Xaw3d Imakefile xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig-Xaw3d"/"xfig-plain"/' main.c @@ -190,6 +176,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jan 03 2014 David Kaufmann - 3.2.5-39.c +- Version bump to 3.2.5-39c + * Fri Jan 03 2014 Michal Srb - 3.2.5-38.b - Fix crash when creating lines with linestyle 3 - Resolves: rhbz#1023744 (Thanks to Maurizio Paolini and David Kaufmann) From 358a07033378aa78b4ce8ee94b5e7ba95c0c738c Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 6 Jan 2014 13:02:28 +0100 Subject: [PATCH 08/61] Use fprintf in safe manner Needed due to -Werror=format-security --- 38_formatstring.patch | 14 ++++++++++++++ xfig.spec | 11 ++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 38_formatstring.patch diff --git a/38_formatstring.patch b/38_formatstring.patch new file mode 100644 index 0000000..985caa3 --- /dev/null +++ b/38_formatstring.patch @@ -0,0 +1,14 @@ +From: Roland Rosenfeld +Subject: Fix format string error with hardening. + +--- a/w_msgpanel.c ++++ b/w_msgpanel.c +@@ -588,7 +588,7 @@ + + strcat(tmpstr,"\n"); + if (update_figs) { +- fprintf(stderr,tmpstr); ++ fprintf(stderr, "%s", tmpstr); + } else { + /* append this message to the file message widget string */ + block.firstPos = 0; diff --git a/xfig.spec b/xfig.spec index 74df78e..8a73879 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 39.c%{?dist} +Release: 40.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -20,8 +20,9 @@ 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: 39_add_xfig_man_html.patch -Patch7: 40_fix_dash_list_for_different_styles.patch +Patch6: 38_formatstring.patch +Patch7: 39_add_xfig_man_html.patch +Patch8: 40_fix_dash_list_for_different_styles.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -94,6 +95,7 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp @@ -176,6 +178,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Jan 06 2014 Michal Srb - 3.2.5-40.c +- Use fprintf in safe manner + * Fri Jan 03 2014 David Kaufmann - 3.2.5-39.c - Version bump to 3.2.5-39c From 21405512926d00945188d687d38cc078f0c701c9 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 6 Jan 2014 13:07:51 +0100 Subject: [PATCH 09/61] Name binaries correctly Xaw3d version has fancy 3D buttons --- xfig.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/xfig.spec b/xfig.spec index 8a73879..719c141 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 40.c%{?dist} +Release: 41.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -106,16 +106,16 @@ chmod -x `find -type f` # First build the normal Xaw version xmkmf # make sure cmdline option parsing still works despite us renaming the binary -sed -i 's/"xfig"/"xfig-Xaw3d"/' main.c +sed -i 's/"xfig"/"xfig-plain"/' main.c make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" -mv xfig xfig-Xaw3d +mv xfig xfig-plain make distclean -# And then build the plain version +# And then build the Xaw3d version mv Imakefile.with-Xaw3d Imakefile xmkmf # make sure cmdline option parsing still works despite us renaming the binary -sed -i 's/"xfig-Xaw3d"/"xfig-plain"/' main.c +sed -i 's/"xfig-plain"/"xfig-Xaw3d"/' main.c make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" @@ -129,10 +129,10 @@ rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble # remove app-defaults symlink which gets installed rm $RPM_BUILD_ROOT%{_prefix}/lib*/X11/app-defaults -# install the Xaw3d version and the wrapper for the .desktop file -mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-plain +# install both Xaw and Xaw3d versions and the wrapper for the .desktop file +mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-Xaw3d install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name} -install -m 755 %{name}-Xaw3d $RPM_BUILD_ROOT%{_bindir} +install -m 755 %{name}-plain $RPM_BUILD_ROOT%{_bindir} install -D -p -m 644 %{name}16x16.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.xpm @@ -178,6 +178,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Jan 06 2014 Michal Srb - 3.2.5-41.c +- Name binaries correctly + * Mon Jan 06 2014 Michal Srb - 3.2.5-40.c - Use fprintf in safe manner From 380a25b68fc098c40c10b3349551fa956fcb3345 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 8 Jun 2014 00:50:11 -0500 Subject: [PATCH 10/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 719c141..d6224bf 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 41.c%{?dist} +Release: 42.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -178,6 +178,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 3.2.5-42.c +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Mon Jan 06 2014 Michal Srb - 3.2.5-41.c - Name binaries correctly From ba041598476a452115a89b7dedfc4ee3ee69ffc0 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 18 Jun 2014 17:05:11 +0200 Subject: [PATCH 11/61] Fix crash when changing arrow size on x86_64 (rhbz#1046102) --- xfig-3.2.5-rhbz1046102.patch | 12 ++++++++++++ xfig.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 xfig-3.2.5-rhbz1046102.patch diff --git a/xfig-3.2.5-rhbz1046102.patch b/xfig-3.2.5-rhbz1046102.patch new file mode 100644 index 0000000..23e8a52 --- /dev/null +++ b/xfig-3.2.5-rhbz1046102.patch @@ -0,0 +1,12 @@ +diff -up xfig.3.2.5c/w_indpanel.c~ xfig.3.2.5c/w_indpanel.c +--- xfig.3.2.5c/w_indpanel.c~ 2011-09-30 21:27:36.000000000 +0200 ++++ xfig.3.2.5c/w_indpanel.c 2014-06-18 16:39:38.783389253 +0200 +@@ -1266,7 +1266,7 @@ static void + set_arrow_size_state(Widget w, XtPointer closure, XtPointer call_data) + { + Boolean state; +- int which; ++ intptr_t which; + Pixel bg1, bg2, fg1, fg2; + + /* check state of the toggle and set/remove checkmark */ diff --git a/xfig.spec b/xfig.spec index d6224bf..5771030 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 42.c%{?dist} +Release: 43.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -23,6 +23,7 @@ Patch5: 33_pdfimport_mediabox.patch 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 BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -96,6 +97,7 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp @@ -178,6 +180,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Wed Jun 18 2014 Hans de Goede - 3.2.5-43.c +- Fix crash when changing arrow size on x86_64 (rhbz#1046102) + * Sun Jun 08 2014 Fedora Release Engineering - 3.2.5-42.c - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From c347dbacfcf0e536673c52498015f1ddaeec2c66 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Mon, 18 Aug 2014 10:00:44 +0000 Subject: [PATCH 12/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 5771030..8914a62 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 43.c%{?dist} +Release: 44.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -180,6 +180,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Aug 18 2014 Fedora Release Engineering - 3.2.5-44.c +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Wed Jun 18 2014 Hans de Goede - 3.2.5-43.c - Fix crash when changing arrow size on x86_64 (rhbz#1046102) From 877d4a525ce91a1a513dfa81e225457cbce356af Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 9 Oct 2014 17:51:14 +0200 Subject: [PATCH 13/61] Fix png reading (rhbz#1150330) --- xfig-3.2.5-libpng16.patch | 13 +++++++++++++ xfig.spec | 13 +++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 xfig-3.2.5-libpng16.patch diff --git a/xfig-3.2.5-libpng16.patch b/xfig-3.2.5-libpng16.patch new file mode 100644 index 0000000..1bb5eb5 --- /dev/null +++ b/xfig-3.2.5-libpng16.patch @@ -0,0 +1,13 @@ +--- a/f_readpng.c 2014-09-15 13:25:26.290813563 +0200 ++++ a/f_readpng.c 2014-09-15 14:04:10.241297027 +0200 +@@ -90,8 +90,8 @@ + png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, + &interlace_type, &compression_type, &filter_type); + +- png_fixed_point gamma = 0.45; +- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma); ++ double gamma = 0.45455; ++ png_get_gAMA(png_ptr,info_ptr,&gamma); + png_set_gamma(png_ptr, 2.2, gamma); + + if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) { diff --git a/xfig.spec b/xfig.spec index 8914a62..bbfb5cc 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 44.c%{?dist} +Release: 45.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -24,6 +24,7 @@ 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 +patch10: xfig-3.2.5-libpng16.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -98,6 +99,7 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES rm Doc/html/images/sav1a0.tmp @@ -109,7 +111,7 @@ chmod -x `find -type f` xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig"/"xfig-plain"/' main.c -make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" +make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -fno-strength-reduce -fno-strict-aliasing" mv xfig xfig-plain make distclean @@ -118,7 +120,7 @@ mv Imakefile.with-Xaw3d Imakefile xmkmf # make sure cmdline option parsing still works despite us renaming the binary sed -i 's/"xfig-plain"/"xfig-Xaw3d"/' main.c -make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fno-strength-reduce -fno-strict-aliasing" +make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -fno-strength-reduce -fno-strict-aliasing" %install @@ -180,6 +182,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Oct 9 2014 Hans de Goede - 3.2.5-45.c +- Fix png reading (rhbz#1150330) + * Mon Aug 18 2014 Fedora Release Engineering - 3.2.5-44.c - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild @@ -468,7 +473,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : * Sat Jan 06 2001 Florian La Roche - only require /usr/bin/netscape if not on S390 -* Tue Dec 20 2000 Yukihiro Nakai +* Wed Dec 20 2000 Yukihiro Nakai - Delete enable_japanese macro and set i18n default. - Fix Japanese translation in .desktop file From 8a1bdcc1fe9e961bc32bb86ade56f3cd2e8b01da Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 04:01:00 +0000 Subject: [PATCH 14/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index bbfb5cc..766e89c 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 45.c%{?dist} +Release: 46.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -182,6 +182,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 3.2.5-46.c +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Thu Oct 9 2014 Hans de Goede - 3.2.5-45.c - Fix png reading (rhbz#1150330) From 8bccf602c5d0b0e1c9f25c34ffba24284e323411 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 03:30:15 +0000 Subject: [PATCH 15/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 766e89c..8ccf763 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 46.c%{?dist} +Release: 47.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -182,6 +182,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 3.2.5-47.c +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Fri Jun 19 2015 Fedora Release Engineering - 3.2.5-46.c - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 01425803f19289d2bd6473320fe38751c5c79c49 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 29 Feb 2016 14:06:03 +0100 Subject: [PATCH 16/61] Bring in various bugfixes from Debian - Convert icons to png - Add appdata --- .gitignore | 2 + 31_spelling.patch | 12 - 33_pdfimport_mediabox.patch | 33 - 38_formatstring.patch | 14 - 39_add_xfig_man_html.patch | 2936 ------------------- 40_fix_dash_list_for_different_styles.patch | 34 - sources | 1 + xfig-3.2.5-Imakefile.patch | 11 +- xfig-3.2.5-rhbz1046102.patch | 12 - xfig-3.2.5a-default-apps.patch | 29 +- xfig.appdata.xml | 31 + xfig.desktop | 6 +- xfig.spec | 75 +- 13 files changed, 99 insertions(+), 3097 deletions(-) delete mode 100644 31_spelling.patch delete mode 100644 33_pdfimport_mediabox.patch delete mode 100644 38_formatstring.patch delete mode 100644 39_add_xfig_man_html.patch delete mode 100644 40_fix_dash_list_for_different_styles.patch delete mode 100644 xfig-3.2.5-rhbz1046102.patch create mode 100644 xfig.appdata.xml diff --git a/.gitignore b/.gitignore index 64810f4..96f3150 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ xfig.3.2.5b.full.tar.gz /xfig-icons.tar.gz +/xfig.3.2.5c.full.tar.gz +/xfig_3.2.5.c-8.debian.tar.xz diff --git a/31_spelling.patch b/31_spelling.patch deleted file mode 100644 index fd35db5..0000000 --- a/31_spelling.patch +++ /dev/null @@ -1,12 +0,0 @@ -From: Roland Rosenfeld -Subject: Fix spelling errors in binary. - ---- a/f_load.c -+++ b/f_load.c -@@ -373,5 +373,5 @@ - /* Format error; relevant error message is already delivered */ - ; - else -- file_msg("File \"%s\" is not accessable; %s.", file, strerror(err)); -+ file_msg("File \"%s\" is not accessible; %s.", file, strerror(err)); - } diff --git a/33_pdfimport_mediabox.patch b/33_pdfimport_mediabox.patch deleted file mode 100644 index a12ee33..0000000 --- a/33_pdfimport_mediabox.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: jsoula@univ-lille2.fr -Subject: Fix reading "/MediaBox" when importing PDF (Closes: #530898). -Bug-Debian: http://bugs.debian.org/530898 - ---- a/f_readeps.c -+++ b/f_readeps.c -@@ -77,11 +77,13 @@ - - /* look for /MediaBox for pdf file */ - if (pdf_flag) { -- if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */ -+ char *s; -+ for(s=buf; (s=strchr(s,'/')); s++) { -+ if (!strncmp(s, "/MediaBox", 8)) { /* look for the MediaBox spec */ - char *c; - -- c = strchr(buf, '[') + 1; -- if (c && sscanf(c, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { -+ c = strchr(s, '['); -+ if (c && sscanf(c+1, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { - llx = lly = 0; - urx = paper_sizes[0].width * 72 / PIX_PER_INCH; - ury = paper_sizes[0].height * 72 / PIX_PER_INCH; -@@ -89,7 +91,9 @@ - appres.INCHES ? "Letter" : "A4"); - app_flush(); - } -+ break; - } -+ } - /* look for bounding box */ - } else if (!nested && !strncmp(buf, "%%BoundingBox:", 14)) { - if (!strstr(buf, "(atend)")) { /* make sure doesn't say (atend) */ diff --git a/38_formatstring.patch b/38_formatstring.patch deleted file mode 100644 index 985caa3..0000000 --- a/38_formatstring.patch +++ /dev/null @@ -1,14 +0,0 @@ -From: Roland Rosenfeld -Subject: Fix format string error with hardening. - ---- a/w_msgpanel.c -+++ b/w_msgpanel.c -@@ -588,7 +588,7 @@ - - strcat(tmpstr,"\n"); - if (update_figs) { -- fprintf(stderr,tmpstr); -+ fprintf(stderr, "%s", tmpstr); - } else { - /* append this message to the file message widget string */ - block.firstPos = 0; diff --git a/39_add_xfig_man_html.patch b/39_add_xfig_man_html.patch deleted file mode 100644 index ecef0bb..0000000 --- a/39_add_xfig_man_html.patch +++ /dev/null @@ -1,2936 +0,0 @@ ---- /dev/null 2013-11-23 20:48:05.582065962 +0100 -+++ b/Doc/xfig_man.html 2008-03-31 18:29:22.000000000 +0200 -@@ -0,0 +1,2933 @@ -+ -+Man page of XFIG -+ -+

XFIG

-+Section: User Commands (1)
Updated: Xfig 3.2.4 (Dec 2002)
Index -+
-+ -+  -+

NAME

-+ -+xfig - Facility for Interactive Generation of figures under X11 -+
-+ -+Version 3.2.4 -+  -+

SYNOPSIS

-+ -+xfig -+ -+[options] -+ -+[file] -+ -+  -+

DESCRIPTION

-+ -+Xfig -+ -+is a menu-driven tool that allows the user to draw and manipulate -+objects interactively under the X Window System. -+It runs under X version 11 -+ -+release 4 or higher -+ -+and requires a two- or three-button mouse. -+file -+ -+specifies the name of a file to be edited. -+The objects in the file will be read at the start of -+xfig. -+ -+

-+ -+The bulk of the documentation fori -+xfig -+ -+is in an HTML-based reference guide. -+See the Help menu in -+xfig -+ -+or point your browser at -+Doc/html/index.html -+ -+(provided with the -+xfig -+ -+distribution, usually in the -+Doc/www -+ -+directory). -+There are both English and Japanese versions. -+

-+ -+When using a two-button mouse use the -+<Meta> -+ -+key and the right button at the same time to effect -+the action of the middle button. -+

-+ -+Xfig -+ -+is available from -+http://www.xfig.org . -+

-+ -+The -+TransFig -+ -+package is used when printing or exporting the output from -+xfig. -+ -+The -+fig2dev -+ -+program from the -+TransFig -+ -+package is automatically called by -+xfig -+ -+as a back-end processor to produce various types of output: -+

-+ -+LaTeX, Metafont, PostScript or Encapsulated PostScript, -+tk (tcl/tk tool command language/tool kit package), -+GIF, JPEG, PCX, PNG, PPM, TIFF, -+XBM, XPM, AutoCAD Slide, IBM-GL (HP/GL), Pic -+PiCTeX, box, epic, eepic and eepicemu. -+

-+ -+See man fig2dev for all options. -+

-+ -+The -+TransFig -+ -+package is available from -+http://www.xfig.org . -+  -+

OPTIONS

-+ -+ -+ -+

-+ -+ -+-help -+ -+ -+ -+

-+
-+ -+ -+Print all command-line options for xfig and quit. -+ -+ -+
-+

-+ -+ -+-a[llownegcoords] -+ -+ -+ -+

-+
-+ -+ -+Allow panning into the negative region of the canvas. -+This is the default -+ -+ -+
-+

-+ -+ -+-bal[loon_delay] -+ -+msec -+ -+ -+ -+

-+
-+ -+ -+Cause popup information balloons to be delayed by -+msec -+ -+milliseconds. The default is 500 milliseconds. -+ -+ -+
-+

-+ -+ -+-bol[d] -+ -+font -+ -+ -+ -+

-+
-+ -+ -+Cause the font used for displaying the file name and -+confirmation messages to be -+font -+ -+(default = 8x13bold). -+ -+ -+
-+

-+ -+ -+-butt[on] -+ -+font -+ -+ -+ -+

-+
-+ -+ -+Cause the font used for most buttons to be -+font -+ -+(default = 6x13). -+ -+ -+
-+

-+ -+ -+-but_[per_row] -+ -+number -+ -+ -+ -+

-+
-+ -+ -+Specify the number of buttons wide the mode panel should be. -+This is useful in conjunction with the -+-pheight -+ -+parameter to reduce the canvas height for small screens. -+ -+ -+
-+

-+ -+ -+-cbg color -+ -+ -+ -+

-+
-+ -+ -+Use -+color -+ -+as the background color for the canvas. -+If you want to set the background of everything in xfig -+(e.g. menus, etc.) use the general -+-bg -+ -+option. -+ -+ -+
-+

-+ -+ -+-center -+ -+ -+ -+

-+
-+ -+ -+Set the print option to print the figure centered on the page. -+This is the default. -+ -+ -+
-+

-+ -+ -+-centim[ers] -+ -+ -+ -+

-+
-+ -+ -+Make centimeters the unit of choice. See also -+-metric. -+ -+ -+ -+
-+

-+ -+ -+-cfg color -+ -+ -+ -+

-+
-+ -+ -+Use -+color -+ -+as the default color for objects. -+If you want to set the foreground of everything in xfig -+(e.g. menus, etc.) use the general -+-fg -+ -+option. -+ -+ -+
-+

-+ -+ -+-correct_font_size -+ -+ -+ -+

-+
-+ -+ -+Normally, -+fig2dev -+ -+uses 1/80 inch for font size increments (for historical reasons), -+instead of the more proper ``points'' (1/72 inch) that -+xfig -+ -+uses. This option makes xfig call fig2dev with the -+-F -+ -+option to make it use points (1/72 inch). -+ -+ -+
-+

-+ -+ -+-deb[ug] -+ -+ -+ -+

-+
-+ -+ -+Turn on debugging mode. -+Prints various debugging messages like font names etc. -+ -+ -+
-+

-+ -+ -+-dep[th] -+ -+ -+ -+

-+
-+ -+ -+Choose depth of visual desired. Your server must support the desired -+visual and depth chosen. -+Use -+xdpyinfo -+ -+to see what visuals and depths are supported. -+See also the -+-visual -+ -+option. -+ -+ -+
-+

-+ -+ -+-donta[llownegcoords] -+ -+ -+ -+

-+
-+ -+ -+Don't allow panning into the negative region of the canvas. -+The default is to allow panning in the negative region. -+ -+ -+
-+

-+ -+ -+-dontshowb[alloons] -+ -+ -+ -+

-+
-+ -+ -+Prevents xfig from popping up the information balloons. -+See also -+-showballoons. -+ -+ -+ -+
-+

-+ -+ -+-dontshowl[engths] -+ -+ -+ -+

-+
-+ -+ -+Don't show lengths of lines as they are being drawn. -+This is the default. -+ -+ -+
-+

-+ -+ -+-dontshowz[erolines] -+ -+ -+ -+

-+
-+ -+ -+Don't show axis zero lines on the canvas. -+The default is to show them. -+ -+ -+
-+

-+ -+ -+-dontsw[itchcmap] -+ -+ -+ -+

-+
-+ -+ -+Prevents xfig from switching to a private colormap if there aren't -+enough colors available in the default colormap. See also -+-max_image_colors. -+ -+ -+ -+
-+

-+ -+ -+-enc[oding] -+ -+encoding -+ -+ -+ -+

-+
-+ -+ -+Encode character set using -+encoding -+ -+when exporting LaTeX text. The default is 1. This is used -+for the ISO-8859 encoding of character sets. Allowed -+values are 0 (no encoding), 1 (ISO-8859-1) or 2 (ISO-8859-2). -+ -+ -+
-+

-+ -+ -+-exportL[anguage] -+ -+language -+ -+ -+ -+

-+
-+ -+ -+Specifies the default language to be used for when exporting a fig file. -+Choices are: -+ -+

-+ -+ -+ -+ -+ -+

-+
-+Name              Language
-+
Vector formats: -+box LaTeX box (figure boundary) -+latex LaTeX picture -+epic LaTeX picture + epic macros -+eepic LaTeX picture + eepic macros -+eepicemu LaTeX picture + eepicemu macros -+pictex PiCTeX macros -+hpl HPGL (IBMGL) -+eps Encapuslated PostScript -+eps_ascii Encapuslated PostScript with ASCII preview -+eps_mono_tiff Encapuslated PostScript with monochrome binary (TIFF) preview -+eps_color_tiff Encapuslated PostScript with color binary (TIFF) preview -+ps PostScript -+pdf PDF (Portable Document Format) -+pstex Combined PS/LaTeX (both PS and LaTeX parts) -+pdftex Combined PDF/LaTeX (both PDF and LaTeX parts) -+textyl Textyl special commands -+tpic TPIC -+pic PIC -+mf MF (MetaFont) -+mp MP (MetaPost) -+mmp MMP (Multi-MetaPost) -+cgm CGM (Computer Graphics Meta file) -+bcgm Binary CGM (Computer Graphics Meta file) -+emf Enhanced Meta file) -+tk Tk (of the tcl/tk fame) -+svg SVG (Scalable Vector Graphics (XML variant)) -+ -+Bitmap formats: -+gif GIF -+jpeg JPEG (JFIF) -+pcx PCX -+png PNG -+ppm PPM (portable pixmap package) -+sld (AutoCad slide) -+tiff TIFF -+xbm X11 Bitmap -+xpm X11 Pixmap (XPM3 package) -+ -+
-+ -+ -+ -+ -+ -+

-+ -+

-+

-+ -+ -+-export_m[argin] -+ -+width -+ -+ -+ -+

-+
-+ -+ -+Set the size of the border margin around the figure for exporting -+to bitmap, PostScript, Encapsulated PostScript, or HTML MAP formats. -+This is in units of pixels (1/80th inch). -+The default is 0. -+ -+ -+
-+

-+ -+ -+-fli[pvisualhints] -+ -+ -+ -+

-+
-+ -+ -+Flip left/right mouse indicator messages for mice whose buttons -+have been switched. -+The default is to NOT flip the messages. -+ -+ -+
-+

-+ -+ -+-flu[shleft] -+ -+ -+ -+

-+
-+ -+ -+Set the print option to print the figure flush left. -+The default is to center the figure on the page. -+ -+ -+
-+

-+ -+ -+-free[hand_resolution] -+ -+resolution -+ -+ -+ -+

-+
-+ -+ -+Set the resolution of the freehand drawing mode to -+resolution -+ -+pixels. This is the number of pixels the mouse must move before xfig -+adds another point to the object being drawn. -+ -+ -+
-+

-+ -+ -+-geom[etry] -+ -+[WxH][+X+Y] -+ -+ -+ -+

-+
-+ -+ -+You may use the -geometry option or resource to -+size and/or position the xfig window, -+ -+or you may use -+-pwidth -+ -+and/or -+-pheight -+ -+to specify the canvas size in inches or centimeters. -+If you use the -+-geom -+ -+option to make the xfig window smaller -+than the default, you may have to use the -+-but_per_row -+ -+option to -+tell xfig to put 3 or 4 buttons per row on the left mode panel. -+ -+ -+
-+

-+ -+ -+-gh[ostscript] -+ -+postscript-interpreter -+ -+ -+ -+

-+
-+ -+ -+Select the PostScript (tm) interpreter of your choice. The default is ghostscript (gs). -+This is needed when importing Encapsulated PostScript files. -+ -+ -+
-+

-+ -+ -+-grid_c[olor] -+ -+color -+ -+ -+ -+

-+
-+ -+ -+Draw the grid on the canvas in this color (default: red). -+ -+ -+
-+

-+ -+ -+-grid_u[nit] -+ -+unit -+ -+ -+ -+

-+
-+ -+ -+Only used when in inches mode to choose between showing fractions or decimal inches -+in the rulers and grid. Any of the following may be used to force decimal inches: -+"ten", "tenth", "10, "1/10". -+If any other value is used for this option, the rulers will show 1/16 inch divisions. -+ -+ -+
-+

-+ -+ -+-hidd[entext] -+ -+ -+ -+

-+
-+ -+ -+Start -+xfig -+ -+with the -+hidden text -+ -+mode for text objects. -+The -+Hidden -+ -+attribute is used for figures that will be used with -+LaTeX -+ -+and is applicable only to the display of the document in -+xfig. -+ -+It means that the text itself is not shown onscreen, but only the string -+``<text>''. This is to keep long sequences of -+LaTeX -+ -+formatting commands from making the screen messy and hard to read. -+The default for the -+Hidden -+ -+flag is -+off. -+ -+ -+ -+
-+

-+ -+ -+-dontshowd[epthmanager] -+ -+ -+ -+

-+
-+ -+ -+Hide the depth manager panel. -+The default is to show the panel. -+ -+ -+
-+

-+ -+ -+-icon_[view] -+ -+ -+ -+

-+
-+ -+ -+Show the library objects as icons. This is the default. The other -+mode is -+-list_view. -+ -+ -+ -+
-+

-+ -+ -+-iconG[eometry] -+ -++X+Y -+ -+ -+ -+

-+
-+ -+ -+Specifies the position for the icon. -+ -+ -+
-+

-+ -+ -+-im[age_editor] -+ -+editor -+ -+ -+ -+

-+
-+ -+ -+Specify bitmap editor to use when ``Edit Image'' button is pressed -+in Picture Object panel. -+ -+ -+
-+

-+ -+ -+-inc[hes] -+ -+(or-imperial) -+ -+ -+ -+

-+
-+ -+ -+Make inches the unit of choice. -+This is the default. -+ -+ -+
-+

-+ -+ -+-ins[tallowncmap] -+ -+ -+ -+

-+
-+ -+ -+Install own colormap. Normally, xfig uses the current colormap. -+ -+ -+
-+

-+ -+ -+-internalBW width -+ -+ -+ -+

-+
-+ -+ -+Use lines of width -+width -+ -+between all buttons and panels (default = 1). -+ -+ -+
-+

-+ -+ -+-international -+ -+ -+ -+

-+
-+ -+ -+Switch on international support (mainly Japanese and Korean), -+users of ISO Latin 1 (ISO-8859-1) probably should not use this, -+therefore the international support is switched off by default -+for locales using ISO-8859-1* codesets. For all other locales this -+option is already used by default. -+ -+ -+
-+

-+ -+ -+-jpeg[_quality] -+ -+quality -+ -+ -+ -+

-+
-+ -+ -+Set the quality factor for exporting to the jpeg format. -+The default is 75. -+ -+ -+
-+

-+ -+ -+-k[eyFile] -+ -+compose-key-file -+ -+ -+ -+

-+
-+ -+ -+Use -+compose-key-file -+ -+instead of -+CompKeyDB -+ -+for compose (meta) key database. -+If there are no -+``/''s -+ -+in the name, the file must reside in the -+xfig -+ -+library directory, -+$XFIGLIBDIR, -+ -+usually -+/usr/local/lib/X11/xfig. -+ -+If there are any -+``/''s -+ -+in the name it is taken as is (not relative to -+$XFIGLIBDIR). -+ -+If there is a leading -+``~/'' -+ -+in the string then the -+``~'' -+ -+is expanded to the user's home directory. -+ -+ -+
-+

-+ -+ -+-lan[dscape] -+ -+ -+ -+

-+
-+ -+ -+Make -+xfig -+ -+come up in landscape mode (10.5" x 8"). -+This is the default; however as the orientation is stored with Fig files, -+when you load a Fig file the orientation will change as required. -+This is only true for files of version 3.0 or higher. -+
-+ -+See also -portrait. -+ -+ -+
-+

-+ -+ -+-lat[exfonts] -+ -+ -+ -+

-+
-+ -+ -+Start -+xfig -+ -+with -+LaTeX -+ -+font selection. -+Normally, the -+PostScript -+ -+fonts are available as the default. -+This flag selects the -+LaTeX -+ -+fonts to start. -+ -+ -+
-+

-+ -+ -+-le[ft] -+ -+ -+ -+

-+
-+ -+ -+Change the position of the side panel window to the left of the canvas window. -+This is the default. -+ -+ -+
-+

-+ -+ -+-library_d[ir] -+ -+directory -+ -+ -+ -+

-+
-+ -+ -+Specify directory where Fig object libraries are located. There may be sub-directories -+there and sub-sub-directories, etc. -+ -+ -+
-+

-+ -+ -+-library_i[con_size] -+ -+size -+ -+ -+ -+

-+
-+ -+ -+Specify the size of the icons shown for library objects. The default is 60 pixels, with the -+minimum being 40 and the maximum being 120. -+ -+ -+
-+

-+ -+ -+-lis[t_view] -+ -+ -+ -+

-+
-+ -+ -+Show the library objects as a list of names. The default -+mode is -+-icon_view. -+ -+ -+ -+
-+

-+ -+ -+-mag[nification] -+ -+mag -+ -+ -+ -+

-+
-+ -+ -+Set export and print magnification in %. -+ -+
-+

-+ -+ -+-max[_image_colors] -+ -+numcols -+ -+ -+ -+

-+
-+ -+ -+Limit the number of colors used for imported images to -+numcols (default 64). -+ -+ -+ -+
-+

-+ -+ -+-me[tric] -+ -+ -+ -+

-+
-+ -+ -+Make centimeters the unit of choice. -+The option -+-centimeters -+ -+may also be used. -+
-+After -+xfig -+ -+is started you may change the units from metric to -+imperial or vice versa from a popup menu available by pressing mouse -+button 3 in the -+units -+ -+box where the two rulers meet. -+ -+ -+
-+

-+ -+ -+-mo[nochrome] -+ -+ -+ -+

-+
-+ -+ -+Use black and white only. -+ -+ -+
-+

-+ -+ -+-mu[ltiple] -+ -+ -+ -+

-+
-+ -+ -+Sets multiple page mode for print or export. See also -+-single. -+ -+ -+ -+
-+

-+ -+ -+-noo[verlap] -+ -+ -+ -+

-+
-+ -+ -+When exporting in multiple page mode, causes no overlap from page to page. -+This is the default. See also -+-overlap. -+ -+ -+ -+
-+

-+ -+ -+-nor[mal] -+ -+font -+ -+ -+ -+

-+
-+ -+ -+Cause the font used for the message window to be -+font. -+ -+This font is also used on the canvas when the selected font is not -+available in an X11 font (default = 6x13). -+ -+ -+
-+

-+ -+ -+-nosc[alablefonts] -+ -+ -+ -+

-+
-+ -+ -+Disables use of the X11R5 or OpenWindows scalable fonts. -+You might want to use this for debugging. -+ -+ -+
-+

-+ -+ -+-nosp[lash] -+ -+ -+ -+

-+
-+ -+ -+Don't show the startup splash screen. The default is to show it ( -+-splash -+ -+). -+ -+ -+
-+

-+ -+ -+-not[rack] -+ -+ -+ -+

-+
-+ -+ -+Turn off cursor (mouse) tracking arrows. -+ -+ -+
-+

-+ -+ -+-ov[erlap] -+ -+ -+ -+

-+
-+ -+ -+When exporting in multiple page mode, causes overlap from page to page of -+about 10%. -+See also -+-nooverlap. -+ -+ -+ -+
-+

-+ -+ -+-pag[eborder] -+ -+color -+ -+ -+ -+

-+
-+ -+ -+Draw the page border on the canvas in this color (default light blue). -+The page border is turned on by the -+-showpageborder -+ -+option -+(resource Fig.showpageborder), -+and shows the edges of the current -+export -+ -+paper size. -+ -+ -+
-+

-+ -+ -+-pap[er_size] -+ -+size -+ -+ -+ -+

-+
-+ -+ -+Set the initial paper size for Export and Print. Choices are -+ -+

-+ -+ -+ -+ -+ -+

-+
-+Option     Paper      Size
-+
letter Letter 8.5in x 11in -+legal Legal 8.5in x 14in -+tabloid Tabloid 17in x 11in -+a ANSI A 8.5in x 11in -+b ANSI B 11in x 17in -+c ANSI C 17in x 22in -+d ANSI D 22in x 34in -+e ANSI E 34in x 44in -+a9 ISO A9 37mm x 52mm -+a8 ISO A8 52mm x 74mm -+a7 ISO A7 74mm x 105mm -+a6 ISO A6 105mm x 148mm -+a5 ISO A5 148mm x 210mm -+a4 ISO A4 210mm x 297mm -+a3 ISO A3 297mm x 420mm -+a2 ISO A2 420mm x 594mm -+a1 ISO A1 594mm x 840mm -+a0 ISO A0 840mm x 1189mm -+b10 JIS B10 32mm x 45mm -+b9 JIS B9 45mm x 64mm -+b8 JIS B8 64mm x 91mm -+b7 JIS B7 91mm x 128mm -+b6 JIS B6 128mm x 182mm -+b5 JIS B5 182mm x 257mm -+b4 JIS B4 257mm x 364mm -+b3 JIS B3 364mm x 515mm -+b2 JIS B2 515mm x 728mm -+b1 JIS B1 728mm x 1030mm -+b0 JIS B0 1030mm x 1456mm -+
-+ -+ -+ -+ -+ -+ -+

-+ -+Note that this doesn't affect the size of the drawing canvas. -+Use the -+-pheight -+ -+and -+-pwidth -+ -+options for that. -+ -+ -+

-+

-+ -+ -+-ph[eight] -+ -+height -+ -+ -+ -+

-+
-+ -+ -+Make the -+xfig -+ -+canvas -+height -+ -+high (where -+height -+ -+is either cm or in, depending on the -+-metric -+ -+setting). -+ -+ -+
-+

-+ -+ -+-po[rtrait] -+ -+ -+ -+

-+
-+ -+ -+Make -+xfig -+ -+come up in portrait mode (8.5" x 9"). See note about landscape mode. -+ -+ -+
-+

-+ -+ -+-pw[idth] -+ -+width -+ -+ -+ -+

-+
-+ -+ -+Make the -+xfig -+ -+canvas -+width -+ -+wide (where -+width -+ -+is either cm or in, depending on the -+-metric -+ -+setting). -+ -+ -+
-+

-+ -+ -+-righ[t] -+ -+ -+ -+

-+
-+ -+ -+Change the position of the side panel window to the right of the canvas window -+(default: left). -+ -+ -+
-+

-+ -+ -+-rigi[d] -+ -+ -+ -+

-+
-+ -+ -+Start -+xfig -+ -+with the -+rigid text -+ -+mode for text objects. -+The -+Rigid -+ -+attribute forces text to remain the same size even if -+inside a compound object that is scaled up or down. -+The default is -+off. -+ -+ -+ -+
-+

-+ -+ -+-ru[lerthick] -+ -+ -+ -+

-+
-+ -+ -+Set the height(width) of the top(side) rulers in pixels. -+The default (and minimum) is 24. -+ -+ -+
-+

-+ -+ -+-scala[blefonts] -+ -+ -+ -+

-+
-+ -+ -+Allows use of the X11R5 or OpenWindows scalable fonts (this is the default). -+If the scalable fonts aren't available -+xfig -+ -+will automatically switch to non-scaling fonts. -+ -+ -+
-+

-+ -+ -+-scale_factor -+ -+scale -+ -+ -+ -+

-+
-+ -+ -+Scale every figure read in by this value. This is useful in conjunction with the -+-update -+ -+option to do batch scaling of figures. -+ -+ -+
-+

-+ -+ -+-showa[llbuttons] -+ -+ -+ -+

-+
-+ -+ -+Show all the -+xfig -+ -+indicator buttons instead of only those relevant -+to the current drawing mode. -+Normally, the buttons -+line width, -+ -+area-fill, -+ -+grid mode, -+ -+text size, -+ -+etc. are only visible when -+they are relevant to the current drawing mode. -+The -+-showallbuttons -+ -+option makes all -+of the indicator buttons visible at all times. -+This takes up more screen real estate, -+but allows the user to see all settable parameters. -+ -+ -+
-+

-+ -+ -+-showb[alloons] -+ -+ -+ -+

-+
-+ -+ -+Forces -+xfig -+ -+to pop up the information balloons when the mouse -+passws over a button. This is the default. See also -+-dontshowballoons . -+ -+ -+ -+
-+

-+ -+ -+-showd[epthmanager] -+ -+ -+ -+

-+
-+ -+ -+Show the depth manager panel. This panel lets one show or hide -+objects at various depths. -+This is the default. -+ -+ -+
-+

-+ -+ -+-showl[engths] -+ -+ -+ -+

-+
-+ -+ -+Makes -+xfig -+ -+show the lengths of lines being drawn, in red text near the -+line itself. Also, when points are moved or added. In addition, imagine -+a triangle formed with the line segment as the hypotenuse, -+and a vertical and horizontal line forming the other two sides. These -+lines and their lengths are also drawn in red as the point is moved or added. -+This mode is ignored when drawing in freehand mode. -+
-+ -+This flag may be toggled by pressing <Meta>i (default). -+ -+ -+
-+

-+ -+ -+-shown[ums] -+ -+ -+ -+

-+
-+ -+ -+With this option, xfig will draw all objects with a red number next to each vertex. -+This is generally only useful for debugging. -+ -+ -+
-+

-+ -+ -+-showp[ageborder] -+ -+ -+ -+

-+
-+ -+ -+Makes -+xfig -+ -+show the border of the current paper size in the color specified -+by the -+-pageborder -+ -+option (default: light blue). -+ -+ -+
-+

-+ -+ -+-showz[erolines] -+ -+ -+ -+

-+
-+ -+ -+Show axis zero lines on the canvas. -+This is the default -+ -+ -+
-+

-+ -+ -+-si[ngle] -+ -+ -+ -+

-+
-+ -+ -+Sets single page mode for print or export. -+This is the default. See also -+-multiple. -+ -+ -+ -+
-+

-+ -+ -+-sm[ooth_factor] -+ -+factor -+ -+ -+ -+

-+
-+ -+ -+Enable smoothing when exporting to the bitmap formats (e.g. GIF, PNG, etc.). The allowed -+values are 0 (no smoothing), 2 or 4 (most smoothing). This parameter is passed -+to ghostscript in the -dTextAlphaBits -dGraphicsAlphaBits options to smooth the figure. -+ -+ -+
-+

-+ -+ -+-spec[ialtext] -+ -+ -+ -+

-+
-+ -+ -+Start -+xfig -+ -+with the -+special text -+ -+mode for text objects. -+Special text means that special characters in the string are not specially -+processed but are passed directly to -+LaTeX. -+ -+This is most useful for writing LaTeX equations. -+If this flag is not set, then the backslash character '\' is changed -+to the \backslash command, a brace '{' is turned into a brace command \{, etc. -+ -+ -+
-+

-+ -+ -+-spel[lcheckcommand] -+ -+command -+ -+ -+ -+

-+
-+ -+ -+Use -+command -+ -+for the external spell checking program when using the spell check/search/replace -+popup. -+The string -+command -+ -+should include the string ``%s'' which is replaced by a temporary filename. -+Default is ``spell %s''. -+ -+ -+
-+

-+ -+ -+-spinner_d[elay] -+ -+msec -+ -+ -+ -+

-+
-+ -+ -+The delay (in milliseconds) before the spinner will automatically count up -+or down when the button is pressed. -+Spinners are the (numeric) text widgets with an up- and down-arrow, which when -+clicked, cause the value to be incremented/decremented. -+The default is 500 milliseconds. -+ -+ -+
-+

-+ -+ -+-spinner_r[rate] -+ -+msec -+ -+ -+ -+

-+
-+ -+ -+The rate (in milliseconds) at which the spinner will count -+when the up- or down-arrow is pressed. -+ -+ -+
-+

-+ -+ -+-startfi[llstyle] -+ -+stylenumber -+ -+ -+ -+

-+
-+ -+ -+Set the starting fill style for area fill (-1 to 21). -+ -+ -+
-+

-+ -+ -+-startfo[ntsize] -+ -+pointsize -+ -+ -+ -+

-+
-+ -+ -+Set the default font size for text objects (default = 12pt). -+ -+ -+
-+

-+ -+ -+-startg[ridmode] -+ -+modenumber -+ -+ -+ -+

-+
-+ -+ -+Set the starting grid mode (0 to 3). Mode 0 is no grid. -+In imperial (inches) mode, grid mode 1 is 1/4 inch, -+mode 2 is 1/2 inch and mode 3 is 1 inch. -+In metric mode, grid mode 1 is 5mm, mode 2 is 1cm and mode 3 is 2cm. -+ -+ -+
-+

-+ -+ -+-startla[texFont] -+ -+font -+ -+ -+ -+

-+
-+ -+ -+Set the starting font name for -+LaTeX -+ -+fonts. -+ -+ -+
-+

-+ -+ -+-startli[newidth] -+ -+width -+ -+ -+ -+

-+
-+ -+ -+Set the starting line width. -+ -+ -+
-+

-+ -+ -+-startpo[snmode] -+ -+modenumber -+ -+ -+ -+

-+
-+ -+ -+Set the starting point positioning mode (0 to 4) -+In imperial (inches) mode, positioning mode 0 is ``any'', -+mode 1 is 1/16 inch, -+mode 2 is 1/4 inch, mode 3 is 1/2 inch and mode 4 is 1 inch. -+In metric mode, mode 0 is ``any'', -+mode 1 is 1mm, mode 2 is 5mm, mode 3 is 10mm and mode 4 is 20mm. -+ -+ -+
-+

-+ -+ -+-startp[sFont] -+ -+font -+ -+ -+ -+

-+
-+ -+ -+Set the starting font name for -+PostScript -+ -+fonts. -+ -+ -+
-+

-+ -+ -+-startt[extstep] -+ -+stepsize -+ -+ -+ -+

-+
-+ -+ -+Set the starting text step. -+ -+ -+
-+

-+ -+ -+-ta[blet] -+ -+ -+ -+

-+
-+ -+ -+Specifies that xfig should use the input tablet instead of the mouse -+for drawing. You must have the XInputExtension in your X server and -+an input tablet for this to work. Also, you must modify the Imakefile -+to include the -+USETAB -+ -+and -+TABLIB -+ -+variables. -+ -+ -+
-+

-+ -+ -+-track -+ -+ -+ -+

-+
-+ -+ -+Turn on cursor (mouse) tracking arrows (default). -+ -+ -+
-+

-+ -+ -+-tran[sparent_color] -+ -+color_number -+ -+ -+ -+

-+
-+ -+ -+Make the transparent color for GIF export -+color_number. -+ -+This number is the color number according to the -+xfig -+ -+color panel, starting at 0 (black) and ending at 31 (gold), -+or may be a user-defined color number, which is 32 or higher. -+ -+ -+
-+

-+ -+ -+-update -+ -+file [ file ... ] -+ -+ -+ -+

-+
-+ -+ -+Run xfig in an "update" mode, where it will read each Fig file specified -+on the command line and write it out to the original file, -+in the current file format for the version of xfig being run. -+The original Fig file will be preserved with -+the suffix .bak attached to the name. -+
-+ -+In this mode, xfig doesn't connect the X server, so no window is opened, -+and it exits when finished. -+ -+ -+
-+

-+ -+ -+-users[cale] -+ -+scale -+ -+ -+ -+

-+
-+ -+ -+Set the multiplier for displayed line lengths etc. -+This factor is multiplied by the actual length, -+radius or diameter of the object currently -+being drawn on the canvas. -+It is useful for making scale drawings, where -+e.g. 1 inch = 1 foot (userscale = 12.0) or 1cm = 1m (userscale = 100.0). -+ -+ -+
-+

-+ -+ -+-useru[nit] -+ -+units -+ -+ -+ -+

-+
-+ -+ -+The -+units -+ -+string is printed with the length information when drawing objects. -+For example if the -+userscale -+ -+= 1.0 and the -+userunit -+ -+= -+ft -+ -+then a line which is 3 inches long on the canvas would be displayed as -+``length = 3 ft'' when it is being drawn. -+
-+After -+xfig -+ -+is started you may change the -+userscale -+ -+and the -+userunit -+ -+from a popup menu available by pressing mouse button 3 in the -+units -+ -+box where the two rulers meet. -+ -+ -+
-+

-+ -+ -+-visual -+ -+visualname -+ -+ -+ -+

-+
-+ -+ -+Use -+visualname -+ -+as the visual for xfig. The names are TrueColor (case is not important), -+StaticColor, DirectColor, StaticGray, GrayScale and PseudoColor. -+xfig -+ -+uses the default visual unless this is specified. Your server must -+support the desired visual. -+Use -+xdpyinfo -+ -+to see what visuals and depths are supported. -+See also the -+-depth -+ -+option. -+ -+ -+
-+

-+ -+ -+-zoom -+ -+zoomscale -+ -+ -+ -+

-+
-+ -+ -+Set the starting zoom scale. -+

-+

-+

-+

-+ -+  -+

X RESOURCES and DEFAULTS

-+ -+The overall widget name(Class) is xfig(Fig). -+These resources correspond to the command line arguments: -+

-+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+

-+Name                Type    Default         Command-line equivalent
-+
allownegcoords boolean true -allownegcoords (true), -+ -dontallownegcoords (false) -+axislines string pink -axislines -+balloon_delay integer 500 (ms) -balloon_delay -+boldFont string 8x13bold -bold -+but_per_row integer 2 -but_per_row -+buttonFont string 6x13 -button -+canvasbackground string white -cbg -+canvasforeground string black -cfg -+correctfontsize boolean false -correctfontsize -+debug boolean false -debug -+depth integer * -depth -+dontswitchcmap boolean false -dontswitchcmap -+euc_encoding boolean false (n/a) -+encoding integer 1 -encoding -+exportLanguage string eps -exportLanguage -+export_margin integer 0 -export_margin -+flipvisualhints boolean false -flipvisualhints -+flushleft boolean false -flushleft (true), -+ -center (false) -+freehand_resolution integer 25 -freehand_resolution -+grid_color string black -grid_color -+grid_unit string 1/16 (inch) -grid_unit -+ 0.1 (metric) -+hiddentext boolean false -hiddentext -+icon_view boolean true -icon_view (true), -+ -list_view (false) -+image_editor string xv -image_editor -+inches boolean true -inches (true), -+ -imperial (true), -+ -centimeters (false), -+ -metric (false) -+installowncmap boolean false -installowncmap -+internalborderwidth integer 1 -internalBW -+international International booleanfalse-international -+jpeg_quality integer 75 -jpeg_quality -+justify boolean false -left (false), -+ -right (true) -+keyFile string CompKeyDB -keyFile -+landscape boolean true -Landscape (true), -+ -landscape (true), -+ -Portrait (false), -+ -portrait (false) -+latexfonts boolean false -latexfonts -+library_dir string ~/xfiglib -library_dir -+magnification float 100 -magnification -+max_image_colors integer 64 -max_image_colors -+monochrome boolean false -monochrome -+multiple boolean false -multiple -+normalFont string 6x13 -normal -+overlap boolean true -overlap (true), -+ -nooverlap (false) -+pageborder string lightblue -pageborder -+paper_size string Letter (inch) -paper_size -+ A4 (metric) -+pheight float 8.5 (landscape) -pheight -+ 9.5 (portrait) -+pwidth float 11 (landscape) -pwidth -+ 8.5 (portrait) -+rigidtext boolean false -rigid (true) -+rulerthick integer 24 -rulerthick -+scalablefonts boolean true -scalablefonts (true), -+ -noscalablefonts (false) -+scale_factor float 1.0 -scale_factor -+showallbuttons boolean false -showallbuttons -+showaxislines boolean true -showaxislines (true), -+ -dontshowaxislines (false) -+showballoons boolean true -showballoons (true), -+ -dontshowballoons (false) -+showdepthmanager boolean true -showdepthmanager (true), -+ -dontshowdepthmanager (false) -+showlengths boolean false -showlengths (true), -+ -dontshowlengths (false) -+shownums boolean false -shownums (true), -+ -dontshownums (false) -+showpageborder boolean true -showpageborder (true), -+ -dontshowpageborder (false) -+single boolean true -single -+smooth_factor integer 0 -smooth_factor -+specialtext boolean false -specialtext -+splash boolean true -splash (true), -+ -nosplash (false) -+spellcheckcommand string spell %s -spellcheckcommand -+spinner_delay integer 500 (ms) -spinner_delay -+spinner_rate integer 100 (ms) -spinner_rate -+startfillstyle integer 0 -startfillstyle -+startfontsize float 12 -startfontsize -+startgridmode integer 0 -startgridmode -+startlatexFont string Default -startlatexFont -+startlinewidth integer 1 -startlinewidth -+startposnmode integer 1 -startposnmode -+startpsFont string Times-Roman -startpsFont -+starttextstep float 1.2 -starttextstep -+tablet boolean false -track, -+trackCursor boolean true -track (true), -+ -notrack (false) -+transparent_color integer -2 (none) -transparent_color -+userscale float 1.0 -userscale -+userunit string in (inches) -userunit -+ cm (metric) -+visual string * -visual -+zoom float 1.0 -zoom -+ -+* Default visual and depth depend on the X server. Use xdpyinfo to see what visuals -+and depths are supported. -+
-+ -+ -+ -+ -+ -+

-+

-+ -+  -+

BUGS and RESTRICTIONS

-+ -+Please send bug reports, fixes, new features etc. to: -+
-+ -+bvsmith@lbl.gov -+(Brian V. Smith) -+

-+ -+When reporting a bug, please first check if the problem is mentioned in -+the FAQ section of the HTML files (xfig Help menu). -+

-+ -+If it is not mentioned there, be sure to report the operating system you -+are using (e.g. SunOS 4.1.3), type of X server and version (OpenWindows 3, X11R6.4, -+XFree86 3.2.2, etc) and color depth (e.g. 8bpp, 16bpp), and most -+importantly the version of xfig or fig2dev that is having the problem. -+

-+ -+It is also VERY useful to me if you can provide a stack trace from a debugger -+such as gdb, dbx, ups, etc, if the bug causes xfig to crash. -+

-+ -+Because of the difference of some fonts in some X servers and the PostScript -+fonts on printers, text alignment can be problematic. -+

-+ -+Not all operations employ smart redrawing of objects which are altered -+as a by product of the operation. -+You may need to use -+Redraw -+ -+in these cases. -+

-+ -+Some servers do not allow bitmaps/pixmaps taller than the screen height -+or wider than the screen width. -+That is why there is a limit on the width -+of the top ruler and height of the side ruler. -+If you need wider/taller rulers AND your server allows bigger pixmaps, -+you may define -+MAX_TOPRULER_WD -+ -+and/or -+MAX_SIDERULER_HT -+ -+in your Imakefile in the -+DEFINES -+ -+line. -+For example, -+to have a maximum top ruler width of 1160 pixels, add -+-DMAX_TOPRULER_WD=1160 -+ -+to your -+DEFINES -+ -+line in the Imakefile. -+

-+ -+If the image is panned or the -+xfig -+ -+window iconified and de-iconified -+during the middle of an operation (e.g. while drawing a line), the picture -+will be distorted. -+This can be corrected using -+Redraw -+ -+after the operation is complete. -+

-+ -+When zoomed very large, the length of dashes in dashed lines will top out -+at 255 pixels long. This is due to a restriction in X -+that the dash list is defined by char (255 pixels maximum for a dash). -+The figure will print correctly, however. -+

-+ -+When you do a copy/rotate with multiple copies, -+only the creation of the last object can be undone with the Undo button. -+

-+ -+Modifications to text using the popup search/update/replace/spell check panel -+cannot be undone. -+

-+ -+See the -+README -+ -+file for troubleshooting. -+  -+

SEE ALSO

-+ -+

-+ -+fig2dev(1) -+(TransFig -+ -+package) -+

-+ -+gs(1) -+(Ghostscript -+ -+PostScript previewer) -+  -+

ACKNOWLEDGEMENT

-+ -+(From the original author, Supoj Sutanthavibul): -+Many thanks goes to Professor Donald E. Fussell who inspired the -+creation of this tool. -+

-+ -+(From current maintainer Brian Smith): -+Thanks to all the users who have contributed to xfig, especially -+Paul King who, besides adding many features, -+revamped the look and feel which became version 2.1. -+  -+

COPYRIGHT

-+ -+
-+Original Copyright (c) 1985 by Supoj Sutanthavibul
-+Parts Copyright (c) 1994-1999 by Brian V. Smith
-+Parts Copyright (c) 1991 by Paul King
-+Other Copyrights may be found in various files
-+
-+
-+
-+ -+

-+ -+Any party obtaining a copy of these files is granted, free of charge, a -+full and unrestricted irrevocable, world-wide, paid up, royalty-free, -+nonexclusive right and license to deal in this software and -+documentation files (the "Software"), including without limitation the -+rights to use, copy, modify, merge, publish and/or distribute copies of -+the Software, and to permit persons who receive copies from any such -+party to do so, with the only requirement being that this copyright -+notice remain intact. -+

-+ -+Note that although I work at Lawrence Berkeley National Laboratory (LBNL) -+I don't speak for LBNL nor do I represent LBNL with respect to my work on -+TransFig and xfig, nor does LBL make any representations about the suitability -+of this software for any purpose. -+

-+ -+Here is the legal part: -+

-+ -+THE LAWRENCE BERKELEY NATIONAL LABORATORY DISCLAIMS ALL WARRANTIES WITH -+REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -+AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, -+INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -+PERFORMANCE OF THIS SOFTWARE. -+

-+

-+ -+PostScript -+ -+is a trademark of Adobe Systems Incorporated. -+ -+

-+ -+

-+Parts Copyright (C) 1989 by Jef Poskanzer.
-+Copyright notice for pbmplus code:
-+
-+
-+Permission to use, copy, modify, and distribute this
-+software and its documentation for any purpose and without
-+fee is hereby granted, provided that the above copyright
-+notice appear in all copies and that both that copyright
-+notice and this permission notice appear in supporting
-+documentation.  This software is provided ``as is'' without
-+express or implied warranty.
-+
-+ -+
-+ -+  -+

FILES

-+ -+ -+ -+
-+
CompKeyDB -+ -+
-+Data base of compose (meta) key sequences for 8-bit characters. -+Must be installed in -+$(XFIGLIBDIR) -+ -+with ``make install'', -+or may be specified with command line option -+-keyFile -+ -+or X toolkit resource keyFile. -+See the -+Imakefile. -+ -+
/usr/lib/X11/xfig
-+This directory contains the html documentation, the above mentioned -+CompKeyDB file, and a directory of libraries containing Fig objects -+such as electrical symbols, logic symbols, etc. -+
Fig.ad and Fig-color.ad -+ -+
-+Application defaults files which are automatically installed -+in the system app-defaults directory with the -+make install -+ -+command. -+
Doc/FORMAT3.2 -+ -+
-+Description of Fig file format. -+
README -+ -+
-+Installation instructions and troubleshooting. -+
CHANGES -+ -+
-+Description of bug fixes/new features. -+

-+

-+  -+

AUTHORS

-+ -+Many people have contributed to -+xfig. -+ -+Here is a list of the people who -+have contributed the most (in chronological order): -+

-+Version 1: -+ -+

-+ -+Original author: -+
-+ -+Supoj Sutanthavibul, University of Texas at Austin -+

-+The -+LaTeX -+ -+line drawing modes were contributed by: -+
-+ -+Frank Schmuck, Cornell University -+

-+Original X11 port by: -+
-+ -+Ken Yap, Rochester -+

-+Variable window sizes, cleanup of X11 port, right hand side panel: -+
-+ -+Dana Chee, Bellcore -+

-+Cleanup of color port to X11 by: -+
-+ -+John T. Kohl, MIT -+

-+ -+Version 2.0: -+ -+ -+

-+Area fill, multiple line thicknesses, multiple fonts and font sizes, -+bottom panel, line style/thickness, -+(and anything else that wasn't written by the others) -+by: -+
-+ -+Brian Smith -+
-+ -+(standard disclaimer applies) -+
-+ -+(bvsmith@lbl.gov) -+

-+Popup change-object menu by: -+
-+ -+Jon Tombs -+
-+ -+Frank Schmuck -+

-+Zooming and panning functions, shift key select mechanism by: -+
-+ -+Dieter Pellkofer -+
-+ -+Henning Spruth -+

-+Depth feature by: -+
-+ -+Mike Lutz -+

-+Cut/Paste by: -+
-+ -+Tom Tkacik -+

-+ -+Version 2.1: -+ -+ -+

-+Indicator panel, file menu popup, print menu popup, -+panning with rulers, mouse function window, regular polygon, -+rubberbanding of circles/ellipses, filled splines on canvas, -+dashed/dotted splines on canvas, update button, -+arbitrary angle rotation of objects, alignment in compound, -+object scaling, constrained copy/move, corner markers for compound, -+context sensitive corner markers, smarter redraw, undo for compound -+and point move for boxes, cancel object creation, point positioning -+to three resolutions, -+TransFig -+ -+scalable text, hidden text, -+special text, save of figure on crash by: -+

-+Paul King (king@cs.uq.oz.au) -+
-+ -+with help from: -+
-+ -+Brian Smith -+and Micah Beck (beck@cs.utk.edu) -+

-+Encapsulated -+PostScript -+ -+importing by: -+
-+ -+Brian Boyter -+

-+Pan/zoom with ctrl key/mouse by: -+
-+ -+Henning Spruth -+

-+International characters by: -+
-+ -+Herve Soulard -+

-+Directory Browser based on XDir by: -+
-+ -+Win Treese, Digital Equipment Corporation -+

-+Rotated ellipses by: -+
-+ -+James Tough, Dept. of Computer Science, Heriot-Watt University, Scotland -+

-+Rotated text from the -+xvertext -+ -+package by: -+
-+ -+Alan Richardson, Space Science Centre, School of MAPS, -+University of Sussex -+

-+Popup scale menu and dynamic switching between inches and cm by: -+
-+ -+Paul King (king@cs.uq.oz.au) -+

-+Extensive man page formatting revisions by: -+
-+ -+David W. Sanderson -+

-+Display Postscript code for IBM RS/6000 by: -+
-+ -+Dave Hale (dhale@green.mines.colorado.edu) -+ -+

-+Version 3.0: -+ -+ -+

-+
-+ -+New arrowhead types, separate pen/fill colors, new file protocol, -+more colors with extended color popup panel, new arc style, -+new fill patterns (bricks, etc), new line join and cap styles, -+export offset and file load offset, XPM import, XBM import and export -+(and anything else that wasn't written by the others) by: -+
-+ -+Brian Smith -+
-+ -+(Note: the color popup panel was based on -+xcoloredit -+ -+by Richard Hesketh) -+

-+

-+GIF header reading code by: -+
-+ -+David Koblas from the giftoppm part of the pbmplus package -+

-+XPM export code (using XPM3 libraries) by: -+
-+ -+Karel van Houten (K.H.C.vanHouten@research.ptt.nl) -+

-+Higher figure resolution (1200dpi) by: -+
-+ -+Ross Martin (martin@trcsun3.eas.asu.edu) -+

-+Color quantization using neural network by: -+
-+ -+Anthony Dekker (dekker@ACM.org) -+
-+ -+[NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. -+See ``Kohonen neural networks for optimal colour quantization'' -+in ``Network: Computation in Neural Systems'' Vol. 5 (1994) pp 351-367. -+for a discussion of the algorithm.] -+

-+Floyd-Steinberg algorithm for dithering color images on monochrome -+displays lifted from the Pbmplus package by Jef Poskanser. -+

-+rotate/flip objects around/about selected anchor point and multiple -+copies of objects by: -+
-+ -+Uwe Bonnes (bon@lte.e-technik.uni-erlangen.de) -+

-+Input tablet extension by: -+
-+ -+Greg LaCoste (greg@seismo.do.usbr.gov) -+ -+

-+Version 3.1: -+ -+

-+ -+
-+ -+The only difference between protocol version 3.0 and version 3.1 is -+that the position of the ``magnet'' has been shifted by 14 fig units. -+In the 2.1 and older versions of xfig the grid was in multiples of 5 fig -+units, but they were on intervals 4, 9, 14, 19, etc. -+When version 3.0 was created, coordinates were simply multiplied by the -+ratio of the resolutions (1200/80 = 15) so values like 4 became 60 instead -+of 74 ((4+1)*15 - 1). -+

-+The JPEG import/export code uses the Independent JPEG Group software -+(see jpeg/README for details) -+

-+Image browser, editor and screen capture features by: -+
-+ -+Jim Daley (jdaley@cix.compulink.co.uk) -+ -+

-+Version 3.2: -+ -+

-+ -+
-+ -+The changes to the version 3.2 file protocol are the addition of the -+paper size, print/export magnification, single/multiple page indicator -+and a transparent color name used for GIF export to the header -+of the file. -+
-+ -+The other difference in the version 3.2 protocol is the -+mathematical model used for splines. The new version -+uses X-splines which allows the user to mix interpolation and approximation -+points in a same curve. More precisely, it means that an X-spline curve -+is neither an interpolated spline nor an approximated one, it is BOTH -+(the behaviour of each point is controlled by one single parameter -+called ``shape factor''). For additional information about X-splines, see: -+

-+
  "X-Splines: A Spline Model Designed for the End User" -+
  by C. Blanc and C. Schlick, Proceedings of SIGGRAPH'95 -+
  http://dept-info.labri.u-bordeaux.fr/~schlick/DOC/sig1.html -+

-+Caveat: Because previous spline models (quadratic B-splines and Bezier -+with hidden points) are no longer supported, curves that are present -+in version 3.1 and older files are automatically converted to X-splines. -+This translation is only an approximation process. It means that the -+converted curves are not exactly the same as the original ones. Though -+they are usually very close, some hand-fitting may be needed in -+some pathological cases. -+

-+Inclusion of X-splines by: -+
-+ -+Carole Blanc (blanc@labri.u-bordeaux.fr) -+
-+ -+Christophe Schlick (schlick@labri.u-bordeaux.fr) -+
-+ -+Note: the initial implementation was done by C. Feuille, S. Grosbois, L. -+Maziere and L. Minihot as a student practice (Universite Bordeaux, France). -+

-+Open/close compound feature written by -+
-+ -+Bill Taylor (bill@mainstream.com) -+

-+Library feature written by -+
-+ -+Stephane Mancini (mancini@elecsrv.enst.fr) -+(object preview by Brian V. Smith) -+

-+The library objects in the Electrical and Logic libraries were done by -+
-+ -+Peter Hiscocks (phiscock@ee.ryerson.ca) -+

-+The library objects in the Computer, Networks, and Hospital-Equipment -+libraries were extracted from the clipart example files by -+
-+ -+Bill Chimiak (chim@bgsm.edu) -+

-+ -+

-+Version 3.2.3 and newer: -+ -+

-+ -+Please see the CHANGES file for credits for newer releases. -+ -+  -+

NOTES

-+ -+Many bug fixes/cleanups etc. by a host of faithful users -+

-+See the -+CHANGES -+ -+file for all the credits -+

-+The -+TransFig -+ -+package was written by Micah Beck and is maintained by Brian Smith -+

-+ -+


-+ 

Index

-+
-+
NAME
-+
SYNOPSIS
-+
DESCRIPTION
-+
OPTIONS
-+
X RESOURCES and DEFAULTS
-+
BUGS and RESTRICTIONS
-+
SEE ALSO
-+
ACKNOWLEDGEMENT
-+
COPYRIGHT
-+
FILES
-+
AUTHORS
-+
NOTES
-+
-+
-+This document was created by -+man2html, -+using the manual pages.
-+Time: 16:26:41 GMT, March 22, 2008 -+ -+ diff --git a/40_fix_dash_list_for_different_styles.patch b/40_fix_dash_list_for_different_styles.patch deleted file mode 100644 index 7c5aaa9..0000000 --- a/40_fix_dash_list_for_different_styles.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- xfig.3.2.5c/w_drawprim.c 2012-10-17 00:14:09.000000000 +0200 -+++ xfig.3.2.5c/w_drawprim.c 2013-11-29 02:45:36.950448714 +0100 -@@ -1292,14 +1292,23 @@ void set_fill_gc(int fill_style, int op, - } - - --static unsigned char dash_list[16][2] = {{255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}, -- {255, 255}, {255, 255}}; -+static unsigned char dash_list[16][8] = { -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}, -+ {255, 255, 255, 255, 255, 255, 255, 255}}; - - static int join_styles[3] = { JoinMiter, JoinRound, JoinBevel }; - static int cap_styles[3] = { CapButt, CapRound, CapProjecting }; diff --git a/sources b/sources index db0a967..ee09d18 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 210851330fa4bb3581bec1f8448a4db8 xfig.3.2.5c.full.tar.gz f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz +214c32741f82fede789ae0e0ee06dc41 xfig_3.2.5.c-8.debian.tar.xz diff --git a/xfig-3.2.5-Imakefile.patch b/xfig-3.2.5-Imakefile.patch index 6451bff..644cbc8 100644 --- a/xfig-3.2.5-Imakefile.patch +++ b/xfig-3.2.5-Imakefile.patch @@ -10,7 +10,16 @@ diff -up xfig.3.2.5b/Imakefile.fed xfig.3.2.5b/Imakefile XCOMM Comment out the following definition for XAW3D if you don't to want to use XCOMM the 3d Athena Widget Set -@@ -169,15 +169,14 @@ XCOMM be sure to comment out the second +@@ -162,23 +162,22 @@ XCOMM uncomment the following line if yo + XCOMM inline functions. With the "INLINE" keyword, you should notice that + XCOMM the display will be a bit faster in complex figures + +-XCOMM USEINLINE = -DUSE_INLINE ++USEINLINE = -DUSE_INLINE + + XCOMM use (and change) the following if you want the multi-key data base file + XCOMM somewhere other than the standard X11 library directory + XCOMM be sure to comment out the second copy of XFIGLIBDIR if you use this one XCOMM XFIGLIBDIR = $(LIBDIR) XCOMM use this if you want the multi-key data base file in the standard X11 tree diff --git a/xfig-3.2.5-rhbz1046102.patch b/xfig-3.2.5-rhbz1046102.patch deleted file mode 100644 index 23e8a52..0000000 --- a/xfig-3.2.5-rhbz1046102.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up xfig.3.2.5c/w_indpanel.c~ xfig.3.2.5c/w_indpanel.c ---- xfig.3.2.5c/w_indpanel.c~ 2011-09-30 21:27:36.000000000 +0200 -+++ xfig.3.2.5c/w_indpanel.c 2014-06-18 16:39:38.783389253 +0200 -@@ -1266,7 +1266,7 @@ static void - set_arrow_size_state(Widget w, XtPointer closure, XtPointer call_data) - { - Boolean state; -- int which; -+ intptr_t which; - Pixel bg1, bg2, fg1, fg2; - - /* check state of the toggle and set/remove checkmark */ diff --git a/xfig-3.2.5a-default-apps.patch b/xfig-3.2.5a-default-apps.patch index 9930866..b5d8d7c 100644 --- a/xfig-3.2.5a-default-apps.patch +++ b/xfig-3.2.5a-default-apps.patch @@ -1,36 +1,19 @@ -diff -up xfig.3.2.5a/Fig.ad~ xfig.3.2.5a/Fig.ad ---- xfig.3.2.5a/Fig.ad~ 2007-04-14 04:17:24.000000000 +0200 -+++ xfig.3.2.5a/Fig.ad 2009-03-27 15:15:27.000000000 +0100 -@@ -5,6 +5,10 @@ - - ! some sample settings you may want to change - -+! If the following resource is set to false, xfig will use metric units -+! by default. -+Fig.inches: false -+ - ! The following fixes a problem that some window managers have - ! with xfig continually resizing itself - -@@ -23,18 +27,16 @@ +diff -up xfig.3.2.5c/Fig.ad.default xfig.3.2.5c/Fig.ad +--- xfig.3.2.5c/Fig.ad.default 2016-02-28 19:52:52.111911633 +0100 ++++ xfig.3.2.5c/Fig.ad 2016-02-28 19:54:23.936566220 +0100 +@@ -27,13 +27,11 @@ Fig.ghostscript: gs ! Browser - put your favorite browser here. ! This is for viewing the xfig html reference. -! For firefox, this command will open the help pages in a running firefox, -! or start a new netscape if one isn't already running --Fig.browser: firefox -remote 'openFile(%f)' || firefox %f +-Fig.browser: sensible-browser +Fig.browser: xdg-open %f ! pdfviewer - put your favorite pdf viewer here. ! This is for viewing the xfig how-to guide and man pages --Fig.pdfviewer: xpdf %f +-Fig.pdfviewer: xfig-pdf-viewer +Fig.pdfviewer: xdg-open %f ! Spell check program - put your favorite spelling check program here. ! It must write the misspelled words to standard output. - --Fig.spellcheckcommand: spell %f -+Fig.spellcheckcommand: enchant -l %f - - ! delay before spinner automatically counts when pressed (milliseconds) - Fig.spinner_delay: 1000 diff --git a/xfig.appdata.xml b/xfig.appdata.xml new file mode 100644 index 0000000..7734eb1 --- /dev/null +++ b/xfig.appdata.xml @@ -0,0 +1,31 @@ + + + xfig.desktop + CC0-1.0 + MIT + Xfig + Xfig drawing application + +

+ 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). +

+

+ You should install xfig if you need a simple program to create vector + graphics. +

+
+ http://www.xfig.org/ + http://xfig.org/userman/ + + http://xfig.org/userman/images/screen-image.png + http://xfig.org/userman/images/library-icon-view.png + http://xfig.org/userman/images/file-panel.png + http://xfig.org/userman/images/color-panel.png + http://xfig.org/userman/images/dimline-panel.png + + jwrdegoede_at_fedoraproject.org +
diff --git a/xfig.desktop b/xfig.desktop index 3fd49e7..0ad8a60 100644 --- a/xfig.desktop +++ b/xfig.desktop @@ -1,8 +1,7 @@ [Desktop Entry] -Encoding=UTF-8 Categories=Graphics; MimeType=image/fig;image/x-xfig; -Exec=xfig +Exec=/usr/bin/xfig %f Icon=xfig Type=Application Name=Xfig @@ -45,3 +44,6 @@ Comment[ta]=Xfig Ũþø ÀÂýÀ¡Î Comment[tr]=Xfig çizim uygulaması Comment[uk]=Xfig Comment[zh_CN.GB2312]=Xfig 绘图应用程序 +Terminal=false +StartupNotify=false +Keywords=vector;graphics;figure;drawing; diff --git a/xfig.spec b/xfig.spec index 8ccf763..2eedf24 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.5 -Release: 47.c%{?dist} +Release: 48.c%{?dist} License: MIT Group: Applications/Multimedia URL: http://www.xfig.org/ @@ -11,20 +11,14 @@ Source0: http://downloads.sourceforge.net/mcj/xfig.%{version}c.full.tar.gz Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.sh +Source4: xfig.appdata.xml +Source5: ftp://ftp.nluug.nl/pub/os/Linux/distr/debian/pool/main/x/xfig/xfig_3.2.5.c-8.debian.tar.xz Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-Imakefile.patch Patch2: xfig-3.2.5-disable-Xaw3d.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 -patch10: xfig-3.2.5-libpng16.patch +Patch4: xfig-3.2.5-libpng16.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -39,7 +33,8 @@ BuildRequires: libXmu-devel BuildRequires: libXpm-devel BuildRequires: libXt-devel BuildRequires: Xaw3d-devel -BuildRequires: desktop-file-utils +BuildRequires: man2html-core ImageMagick +BuildRequires: desktop-file-utils libappstream-glib Requires: %{name}-common = %{version}-%{release} Provides: %{name}-executable = %{version}-%{release} @@ -88,22 +83,28 @@ Files common to both the plain Xaw and the Xaw3d version of xfig. %prep -%setup -q -n xfig.%{version}c -a 1 +%setup -q -n xfig.%{version}c -a 1 -a 5 +# These Debian patches are not suited for the Fedora pkg +rm debian/patches/02_Imakefile_Debian.patch +rm debian/patches/05_xfig-libs.patch +rm debian/patches/13_remove_extra_libs.patch +for i in debian/patches/*_*.patch; do + patch -p1 --fuzz=0 < $i +done %patch0 -p1 %patch1 -p1 %patch2 -p1 -b .with-Xaw3d %patch3 -p1 %patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES +for i in CHANGES FIGAPPS LATEX.AND.XFIG README Doc/html/animate.js; do + sed -i.orig 's/\r//' $i; touch -r $i.orig $i +done rm Doc/html/images/sav1a0.tmp +rm `find -name "*.orig"` chmod -x `find -type f` +man2html Doc/xfig.man > Doc/xfig_man.html %build @@ -125,8 +126,10 @@ make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -fno-strength-r %install make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install.all -install -p -m 644 CHANGES README LATEX.AND.XFIG* FIGAPPS \ - $RPM_BUILD_ROOT%{_docdir}/%{name} +install -p -m 644 CHANGES README LATEX.AND.XFIG FIGAPPS \ + debian/PDFLATEX.AND.XFIG debian/TeXfig2eps $RPM_BUILD_ROOT%{_docdir}/%{name} +ln -s xfig.1x.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}-Xaw3d.1x +ln -s xfig.1x.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}-plain.1x # remove the map generation scripts, these are for xfig developers only rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble @@ -138,16 +141,20 @@ mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-Xaw3d install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name} install -m 755 %{name}-plain $RPM_BUILD_ROOT%{_bindir} -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}/icons/hicolor/{16x16,32x32,64x64}/apps +convert %{name}16x16.xpm \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png +convert %{name}32x32.xpm \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png +convert %{name}64x64.xpm \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications -desktop-file-install \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} +desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/appdata +appstream-util validate-relax --nonet \ + $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml %post common @@ -167,21 +174,29 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %{_bindir}/%{name}-Xaw3d +%{_mandir}/man1/%{name}-Xaw3d.1x.gz %files plain %{_bindir}/%{name}-plain +%{_mandir}/man1/%{name}-plain.1x.gz %files common %doc %{_docdir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name} -%{_mandir}/*/* +%{_mandir}/man1/%{name}.1x.gz %{app_defaults_dir}/* +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/??x??/apps/%{name}.xpm +%{_datadir}/icons/hicolor/??x??/apps/%{name}.png %changelog +* Sun Feb 28 2016 Hans de Goede - 3.2.5-48.c +- Bring in various bugfixes from Debian +- Convert icons to png +- Add appdata + * Fri Feb 05 2016 Fedora Release Engineering - 3.2.5-47.c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From 1066401dd25acd50239adc9a3e724f76d22e25a6 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 11 Aug 2016 14:20:45 +0200 Subject: [PATCH 17/61] New upstream release 3.2.6 - Drop all patches, all fixes are upstream now - Drop -plain subpackage, only build Xaw3d version - Update appdata screenshots for xfig.org being gone (point to http://epb.lbl.gov/xfig/ for now) --- .gitignore | 1 + sources | 3 +- xfig-3.2.5-Imakefile.patch | 40 --------- xfig-3.2.5-disable-Xaw3d.patch | 21 ----- xfig-3.2.5-libpng16.patch | 13 --- xfig-3.2.5-urwfonts.patch | 4 +- xfig-3.2.5a-default-apps.patch | 27 +++--- xfig.appdata.xml | 14 ++-- xfig.sh | 7 -- xfig.spec | 145 +++++++++------------------------ 10 files changed, 58 insertions(+), 217 deletions(-) delete mode 100644 xfig-3.2.5-Imakefile.patch delete mode 100644 xfig-3.2.5-disable-Xaw3d.patch delete mode 100644 xfig-3.2.5-libpng16.patch delete mode 100644 xfig.sh diff --git a/.gitignore b/.gitignore index 96f3150..6486e73 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ xfig.3.2.5b.full.tar.gz /xfig-icons.tar.gz /xfig.3.2.5c.full.tar.gz /xfig_3.2.5.c-8.debian.tar.xz +/xfig-full-3.2.6.tar.xz diff --git a/sources b/sources index ee09d18..143c8aa 100644 --- a/sources +++ b/sources @@ -1,3 +1,2 @@ -210851330fa4bb3581bec1f8448a4db8 xfig.3.2.5c.full.tar.gz +4c510265d87725abc3d678d6cb638d02 xfig-full-3.2.6.tar.xz f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz -214c32741f82fede789ae0e0ee06dc41 xfig_3.2.5.c-8.debian.tar.xz diff --git a/xfig-3.2.5-Imakefile.patch b/xfig-3.2.5-Imakefile.patch deleted file mode 100644 index 644cbc8..0000000 --- a/xfig-3.2.5-Imakefile.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -up xfig.3.2.5b/Imakefile.fed xfig.3.2.5b/Imakefile ---- xfig.3.2.5b/Imakefile.fed 2012-08-12 16:54:00.102765148 +0200 -+++ xfig.3.2.5b/Imakefile 2012-08-12 16:57:32.883846828 +0200 -@@ -45,7 +45,7 @@ XCOMM Don't set the DESTDIR variable unl - XCOMM different tree than the "correct" tree that your X system expects. The usual - XCOMM purpose of DESTDIR is to test an install process by installing in a benign area. - --XCOMM XAPPLOADDIR = /home/user/xfig -+XAPPLOADDIR = /usr/share/X11/app-defaults - - XCOMM Comment out the following definition for XAW3D if you don't to want to use - XCOMM the 3d Athena Widget Set -@@ -162,23 +162,22 @@ XCOMM uncomment the following line if yo - XCOMM inline functions. With the "INLINE" keyword, you should notice that - XCOMM the display will be a bit faster in complex figures - --XCOMM USEINLINE = -DUSE_INLINE -+USEINLINE = -DUSE_INLINE - - XCOMM use (and change) the following if you want the multi-key data base file - XCOMM somewhere other than the standard X11 library directory - XCOMM be sure to comment out the second copy of XFIGLIBDIR if you use this one - XCOMM XFIGLIBDIR = $(LIBDIR) - - XCOMM use this if you want the multi-key data base file in the standard X11 tree --XFIGLIBDIR = $(LIBDIR)/xfig -+XFIGLIBDIR = /usr/share/xfig - - XCOMM XFIGDOCDIR tells where the html and pdf documentation should go --XCOMM XFIGDOCDIR = $(DOCDIR)/xfig --XFIGDOCDIR = /usr/local/xfig/doc -+XFIGDOCDIR = /usr/share/doc/xfig - - XCOMM MANDIR tells where the standard man pages should go (no need to change it - XCOMM if you want the man pages installed in the standard place on your system --MANDIR = $(MANSOURCEPATH)$(MANSUFFIX) -+MANDIR = /usr/share/man/man1 - XCOMM MANDIR = /usr/local/xfig/man - - XCOMM If your system doesn't have strstr undefine the following definition diff --git a/xfig-3.2.5-disable-Xaw3d.patch b/xfig-3.2.5-disable-Xaw3d.patch deleted file mode 100644 index 3b5b8fc..0000000 --- a/xfig-3.2.5-disable-Xaw3d.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up xfig.3.2.5a/Imakefile.with-Xaw3d xfig.3.2.5a/Imakefile ---- xfig.3.2.5c/Imakefile.with-Xaw3d 2013-11-27 22:24:46.000000000 +0100 -+++ xfig.3.2.5c/Imakefile 2013-11-27 22:24:06.000000000 +0100 -@@ -50,7 +50,7 @@ XAPPLOADDIR = /usr/share/X11/app-default - XCOMM Comment out the following definition for XAW3D if you don't to want to use - XCOMM the 3d Athena Widget Set - --#define XAW3D -+XCOMM #define XAW3D - - #ifdef XAW3D - XAWLIB = -lXaw3d -@@ -60,7 +60,7 @@ XCOMM Uncomment the following if you hav - XCOMM some new features, including "Tips", which replace xfig's "help balloons" - XCOMM NOTE: This is the default for many X systems now. - --#define XAW3D1_5E -+XCOMM #define XAW3D1_5E - - #ifdef XAW3D1_5E - DUSEXAW3D = -DXAW3D -DXAW3D1_5E diff --git a/xfig-3.2.5-libpng16.patch b/xfig-3.2.5-libpng16.patch deleted file mode 100644 index 1bb5eb5..0000000 --- a/xfig-3.2.5-libpng16.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- a/f_readpng.c 2014-09-15 13:25:26.290813563 +0200 -+++ a/f_readpng.c 2014-09-15 14:04:10.241297027 +0200 -@@ -90,8 +90,8 @@ - png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, - &interlace_type, &compression_type, &filter_type); - -- png_fixed_point gamma = 0.45; -- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma); -+ double gamma = 0.45455; -+ png_get_gAMA(png_ptr,info_ptr,&gamma); - png_set_gamma(png_ptr, 2.2, gamma); - - if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) { diff --git a/xfig-3.2.5-urwfonts.patch b/xfig-3.2.5-urwfonts.patch index 7bc766b..82ca561 100644 --- a/xfig-3.2.5-urwfonts.patch +++ b/xfig-3.2.5-urwfonts.patch @@ -1,5 +1,5 @@ ---- xfig.3.2.4/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 -+++ new-xfig-3.2.4/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 +--- xfig.3.2.4/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 ++++ xfig-3.2.4/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 @@ -22,41 +22,41 @@ /* X11 font names */ diff --git a/xfig-3.2.5a-default-apps.patch b/xfig-3.2.5a-default-apps.patch index b5d8d7c..0a8aa2f 100644 --- a/xfig-3.2.5a-default-apps.patch +++ b/xfig-3.2.5a-default-apps.patch @@ -1,19 +1,12 @@ -diff -up xfig.3.2.5c/Fig.ad.default xfig.3.2.5c/Fig.ad ---- xfig.3.2.5c/Fig.ad.default 2016-02-28 19:52:52.111911633 +0100 -+++ xfig.3.2.5c/Fig.ad 2016-02-28 19:54:23.936566220 +0100 -@@ -27,13 +27,11 @@ Fig.ghostscript: gs - - ! Browser - put your favorite browser here. - ! This is for viewing the xfig html reference. --! For firefox, this command will open the help pages in a running firefox, --! or start a new netscape if one isn't already running --Fig.browser: sensible-browser -+Fig.browser: xdg-open %f - - ! pdfviewer - put your favorite pdf viewer here. - ! This is for viewing the xfig how-to guide and man pages --Fig.pdfviewer: xfig-pdf-viewer -+Fig.pdfviewer: xdg-open %f - +diff -up xfig-3.2.6/app-defaults/Fig.in~ xfig-3.2.6/app-defaults/Fig.in +--- xfig-3.2.6/app-defaults/Fig.in~ 2016-07-23 23:12:46.000000000 +0200 ++++ xfig-3.2.6/app-defaults/Fig.in 2016-08-11 12:36:56.550555744 +0200 +@@ -34,7 +34,7 @@ Fig.pdfviewer: xdg-open %f ! Spell check program - put your favorite spelling check program here. ! It must write the misspelled words to standard output. + +-Fig.spellcheckcommand: spell %f ++Fig.spellcheckcommand: enchant -l %f + + ! delay before spinner automatically counts when pressed (milliseconds) + Fig.spinner_delay: 1000 diff --git a/xfig.appdata.xml b/xfig.appdata.xml index 7734eb1..de29687 100644 --- a/xfig.appdata.xml +++ b/xfig.appdata.xml @@ -18,14 +18,14 @@ graphics.

- http://www.xfig.org/ - http://xfig.org/userman/ + https://en.wikipedia.org/wiki/Xfig + http://epb.lbl.gov/xfig/ - http://xfig.org/userman/images/screen-image.png - http://xfig.org/userman/images/library-icon-view.png - http://xfig.org/userman/images/file-panel.png - http://xfig.org/userman/images/color-panel.png - http://xfig.org/userman/images/dimline-panel.png + http://epb.lbl.gov/xfig/images/screen-image.png + http://epb.lbl.gov/xfig/images/library-icon-view.png + http://epb.lbl.gov/xfig/images/file-panel.png + http://epb.lbl.gov/xfig/images/color-panel.png + http://epb.lbl.gov/xfig/images/dimline-panel.png jwrdegoede_at_fedoraproject.org diff --git a/xfig.sh b/xfig.sh deleted file mode 100644 index cc85396..0000000 --- a/xfig.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -if [ -x /usr/bin/xfig-Xaw3d ]; then - exec xfig-Xaw3d "$@" -else - exec xfig-plain "$@" -fi diff --git a/xfig.spec b/xfig.spec index 2eedf24..ac096d1 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,23 +2,17 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.5 -Release: 48.c%{?dist} +Version: 3.2.6 +Release: 1%{?dist} License: MIT -Group: Applications/Multimedia -URL: http://www.xfig.org/ -Source0: http://downloads.sourceforge.net/mcj/xfig.%{version}c.full.tar.gz +URL: https://en.wikipedia.org/wiki/Xfig +Source0: http://downloads.sourceforge.net/mcj/xfig-full-%{version}.tar.xz Source1: xfig-icons.tar.gz Source2: xfig.desktop -Source3: xfig.sh -Source4: xfig.appdata.xml -Source5: ftp://ftp.nluug.nl/pub/os/Linux/distr/debian/pool/main/x/xfig/xfig_3.2.5.c-8.debian.tar.xz +Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch -Patch1: xfig-3.2.5-Imakefile.patch -Patch2: xfig-3.2.5-disable-Xaw3d.patch -Patch3: xfig-3.2.5-urwfonts.patch -Patch4: xfig-3.2.5-libpng16.patch +Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -36,11 +30,13 @@ BuildRequires: Xaw3d-devel BuildRequires: man2html-core ImageMagick BuildRequires: desktop-file-utils libappstream-glib -Requires: %{name}-common = %{version}-%{release} -Provides: %{name}-executable = %{version}-%{release} -# Xaw3d used to be the one in a subpackage, now the plain Xaw version is -Obsoletes: %{name}-Xaw3d <= 3.2.5-7.fc8 -Provides: %{name}-Xaw3d = %{version}-%{release} +# We used to have seperate Xaw3d and non Xaw3d pkgs, now we only have Xaw3d +Obsoletes: %{name}-common < %{version}-%{release} +Provides: %{name}-common = %{version}-%{release} +Obsoletes: %{name}-plain < %{version}-%{release} +Provides: %{name}-plain = %{version}-%{release} +Obsoletes: %{name}-Xaw3d < %{version}-%{release} +Provides: %{name}-Xaw3d = %{version}-%{release} %description Xfig is an X Window System tool for creating basic vector graphics, @@ -53,94 +49,28 @@ You should install xfig if you need a simple program to create vector graphics. -%package plain -Summary: Plain Xaw version of xfig -Group: Applications/Multimedia -Requires: %{name}-common = %{version}-%{release} -Provides: %{name}-executable = %{version}-%{release} - -%description plain -Plain Xaw version of xfig, an X Window System tool for creating basic vector -graphics, including bezier curves, lines, rulers and more. The normal xfig -package uses the more modern / prettier looking Xaw3d toolkit, whereas this -version uses the very basic Xaw toolkit. Unless you really know you want this -version you probably don't want this version. - - -%package common -Summary: Common xfig files -Group: Applications/Multimedia -Requires: transfig >= 1:3.2.5, xdg-utils, enchant, urw-fonts -Requires: hicolor-icon-theme -Requires: xorg-x11-fonts-base -# So that this will get uninstalled together with xfig / xfig-Xaw3d -Requires: %{name}-executable = %{version}-%{release} -Requires(post): desktop-file-utils -Requires(postun): desktop-file-utils - -%description common -Files common to both the plain Xaw and the Xaw3d version of xfig. - - %prep -%setup -q -n xfig.%{version}c -a 1 -a 5 -# These Debian patches are not suited for the Fedora pkg -rm debian/patches/02_Imakefile_Debian.patch -rm debian/patches/05_xfig-libs.patch -rm debian/patches/13_remove_extra_libs.patch -for i in debian/patches/*_*.patch; do - patch -p1 --fuzz=0 < $i -done +%setup -q -a 1 %patch0 -p1 %patch1 -p1 -%patch2 -p1 -b .with-Xaw3d -%patch3 -p1 -%patch4 -p1 - -iconv -f ISO-8859-1 -t UTF8 CHANGES > tmp; touch -r CHANGES tmp; mv tmp CHANGES -for i in CHANGES FIGAPPS LATEX.AND.XFIG README Doc/html/animate.js; do - sed -i.orig 's/\r//' $i; touch -r $i.orig $i +for i in doc/html/japanese/button_frame.fig doc/html/japanese/japanese.ps \ + doc/html/animate.js; do + sed -i.orig 's/\r//' $i; touch -r $i.orig $i; rm $i.orig done -rm Doc/html/images/sav1a0.tmp -rm `find -name "*.orig"` -chmod -x `find -type f` -man2html Doc/xfig.man > Doc/xfig_man.html %build -# First build the normal Xaw version -xmkmf -# make sure cmdline option parsing still works despite us renaming the binary -sed -i 's/"xfig"/"xfig-plain"/' main.c -make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -fno-strength-reduce -fno-strict-aliasing" -mv xfig xfig-plain -make distclean - -# And then build the Xaw3d version -mv Imakefile.with-Xaw3d Imakefile -xmkmf -# make sure cmdline option parsing still works despite us renaming the binary -sed -i 's/"xfig-plain"/"xfig-Xaw3d"/' main.c -make CDEBUGFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -fno-strength-reduce -fno-strict-aliasing" +# Fedora's Xaw3d is built with -DXAW_ARROW_SCROLLBARS +export CFLAGS="-DXAW_ARROW_SCROLLBARS $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing" +%configure --enable-xpm-splash +make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install.all -install -p -m 644 CHANGES README LATEX.AND.XFIG FIGAPPS \ - debian/PDFLATEX.AND.XFIG debian/TeXfig2eps $RPM_BUILD_ROOT%{_docdir}/%{name} -ln -s xfig.1x.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}-Xaw3d.1x -ln -s xfig.1x.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}-plain.1x - -# remove the map generation scripts, these are for xfig developers only -rm $RPM_BUILD_ROOT%{_datadir}/%{name}/Libraries/Maps/{USA,Canada}/assemble -# remove app-defaults symlink which gets installed -rm $RPM_BUILD_ROOT%{_prefix}/lib*/X11/app-defaults - -# install both Xaw and Xaw3d versions and the wrapper for the .desktop file -mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-Xaw3d -install -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name} -install -m 755 %{name}-plain $RPM_BUILD_ROOT%{_bindir} +%make_install INSTALL="install -p" +cp -p README CHANGES FIGAPPS $RPM_BUILD_ROOT%{_docdir}/%{name} +rm -r $RPM_BUILD_ROOT%{_datadir}/pixmaps mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,64x64}/apps convert %{name}16x16.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png @@ -152,46 +82,45 @@ convert %{name}64x64.xpm \ mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata -install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/appdata +install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml -%post common +%post update-desktop-database &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -%postun common +%postun update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi -%posttrans common +%posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -%{_bindir}/%{name}-Xaw3d -%{_mandir}/man1/%{name}-Xaw3d.1x.gz - -%files plain -%{_bindir}/%{name}-plain -%{_mandir}/man1/%{name}-plain.1x.gz - -%files common %doc %{_docdir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name} -%{_mandir}/man1/%{name}.1x.gz -%{app_defaults_dir}/* +%{_mandir}/man1/%{name}.1* +%{app_defaults_dir}/Fig %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/??x??/apps/%{name}.png %changelog +* Thu Aug 11 2016 Hans de Goede - 3.2.6-1 +- New upstream release 3.2.6 +- Drop all patches, all fixes are upstream now +- Drop -plain subpackage, only build Xaw3d version +- Update appdata screenshots for xfig.org being gone + (point to http://epb.lbl.gov/xfig/ for now) + * Sun Feb 28 2016 Hans de Goede - 3.2.5-48.c - Bring in various bugfixes from Debian - Convert icons to png From 25c6f651d8db1832a43a74475b79a5db58d45eae Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 11 Aug 2016 17:03:39 +0200 Subject: [PATCH 18/61] Make using metric units the default again --- xfig-3.2.5a-default-apps.patch | 13 ++++++++++++- xfig.spec | 5 ++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/xfig-3.2.5a-default-apps.patch b/xfig-3.2.5a-default-apps.patch index 0a8aa2f..54ceef0 100644 --- a/xfig-3.2.5a-default-apps.patch +++ b/xfig-3.2.5a-default-apps.patch @@ -1,7 +1,18 @@ diff -up xfig-3.2.6/app-defaults/Fig.in~ xfig-3.2.6/app-defaults/Fig.in --- xfig-3.2.6/app-defaults/Fig.in~ 2016-07-23 23:12:46.000000000 +0200 +++ xfig-3.2.6/app-defaults/Fig.in 2016-08-11 12:36:56.550555744 +0200 -@@ -34,7 +34,7 @@ Fig.pdfviewer: xdg-open %f +@@ -10,6 +10,10 @@ Fig.version: @VERSION@ + + ! some sample settings you may want to change + ++! If the following resource is set to false, xfig will use metric units ++! by default. ++Fig.inches: false ++ + ! The following fixes a problem that some window managers have + ! with xfig continually resizing itself + +@@ -38,7 +38,7 @@ Fig.pdfviewer: xdg-open %f ! Spell check program - put your favorite spelling check program here. ! It must write the misspelled words to standard output. diff --git a/xfig.spec b/xfig.spec index ac096d1..d18eb0b 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-full-%{version}.tar.xz @@ -114,6 +114,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Aug 11 2016 Hans de Goede - 3.2.6-2 +- Make using metric units the default again + * Thu Aug 11 2016 Hans de Goede - 3.2.6-1 - New upstream release 3.2.6 - Drop all patches, all fixes are upstream now From fecb81efff15308b722aaf8bbb75c27c5ad8f587 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 12 Aug 2016 10:34:06 +0200 Subject: [PATCH 19/61] Switch to non -full (smaller) version of upstream sources, we package transfig seperately so we do not need the -full version --- .gitignore | 1 + sources | 2 +- xfig.spec | 8 ++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6486e73..7f2633d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ xfig.3.2.5b.full.tar.gz /xfig.3.2.5c.full.tar.gz /xfig_3.2.5.c-8.debian.tar.xz /xfig-full-3.2.6.tar.xz +/xfig-3.2.6.tar.xz diff --git a/sources b/sources index 143c8aa..b3ef8a0 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -4c510265d87725abc3d678d6cb638d02 xfig-full-3.2.6.tar.xz +087a53173d4c092b65b471c99debc6b2 xfig-3.2.6.tar.xz f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz diff --git a/xfig.spec b/xfig.spec index d18eb0b..dc2047e 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,10 +3,10 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig -Source0: http://downloads.sourceforge.net/mcj/xfig-full-%{version}.tar.xz +Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.appdata.xml @@ -114,6 +114,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Aug 12 2016 Hans de Goede - 3.2.6-3 +- Switch to non -full (smaller) version of upstream sources, + we package transfig seperately so we do not need the -full version + * Thu Aug 11 2016 Hans de Goede - 3.2.6-2 - Make using metric units the default again From 5cb63aa9f1315edcbc3025f9dc24b3485d498d70 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 17:51:47 +0000 Subject: [PATCH 20/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index dc2047e..50db16c 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -114,6 +114,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 3.2.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Fri Aug 12 2016 Hans de Goede - 3.2.6-3 - Switch to non -full (smaller) version of upstream sources, we package transfig seperately so we do not need the -full version From b689dc394686cb30fdecf06ef9ebdcba0891114c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 12 Feb 2017 14:04:29 +0100 Subject: [PATCH 21/61] Build with -DGSBIT to fix eps file preview generation (rhbz#1418560) Fix broken screenshot links in appdata --- xfig.appdata.xml | 10 +++++----- xfig.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/xfig.appdata.xml b/xfig.appdata.xml index de29687..52787f6 100644 --- a/xfig.appdata.xml +++ b/xfig.appdata.xml @@ -21,11 +21,11 @@ https://en.wikipedia.org/wiki/Xfig http://epb.lbl.gov/xfig/ - http://epb.lbl.gov/xfig/images/screen-image.png - http://epb.lbl.gov/xfig/images/library-icon-view.png - http://epb.lbl.gov/xfig/images/file-panel.png - http://epb.lbl.gov/xfig/images/color-panel.png - http://epb.lbl.gov/xfig/images/dimline-panel.png + http://mcj.sourceforge.net/images/screen-image.png + http://mcj.sourceforge.net/images/library-icon-view.png + http://mcj.sourceforge.net/images/file-panel.png + http://mcj.sourceforge.net/images/color-panel.png + http://mcj.sourceforge.net/images/dimline-panel.png jwrdegoede_at_fedoraproject.org diff --git a/xfig.spec b/xfig.spec index 50db16c..72a8ef0 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -29,6 +29,8 @@ BuildRequires: libXt-devel BuildRequires: Xaw3d-devel BuildRequires: man2html-core ImageMagick BuildRequires: desktop-file-utils libappstream-glib +# For eps preview generation +Requires: ghostscript-core # We used to have seperate Xaw3d and non Xaw3d pkgs, now we only have Xaw3d Obsoletes: %{name}-common < %{version}-%{release} @@ -61,7 +63,8 @@ done %build # Fedora's Xaw3d is built with -DXAW_ARROW_SCROLLBARS -export CFLAGS="-DXAW_ARROW_SCROLLBARS $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing" +# Add -DGSBIT to make eps image previews work +export CFLAGS="-DXAW_ARROW_SCROLLBARS -DGSBIT $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing" %configure --enable-xpm-splash make %{?_smp_mflags} @@ -114,6 +117,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Sun Feb 12 2017 Hans de Goede - 3.2.6-5 +- Build with -DGSBIT to fix eps file preview generation (rhbz#1418560) +- Fix broken screenshot links in appdata + * Sat Feb 11 2017 Fedora Release Engineering - 3.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From f2c0c4be2b13b4f12da697848aed5e23157ec352 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 13 Feb 2017 15:42:39 +0100 Subject: [PATCH 22/61] New upstream release 3.2.6a --- .gitignore | 1 + sources | 4 ++-- xfig.spec | 14 ++++++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 7f2633d..054f115 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ xfig.3.2.5b.full.tar.gz /xfig_3.2.5.c-8.debian.tar.xz /xfig-full-3.2.6.tar.xz /xfig-3.2.6.tar.xz +/xfig-3.2.6a.tar.xz diff --git a/sources b/sources index b3ef8a0..d718363 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -087a53173d4c092b65b471c99debc6b2 xfig-3.2.6.tar.xz -f58e3bde288d623c826e1784ebb45de0 xfig-icons.tar.gz +SHA512 (xfig-3.2.6a.tar.xz) = 8d6952301cab297f87041ca645c316863c4ee454ba6318ae94b2493ca9dfeda6b0240a038001f82c390d1a772c4b5e3c43c9414ea150fd18adb8780a608d8cd0 +SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig.spec b/xfig.spec index 72a8ef0..5509d04 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.6 -Release: 5%{?dist} +Version: 3.2.6a +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -63,10 +63,9 @@ done %build # Fedora's Xaw3d is built with -DXAW_ARROW_SCROLLBARS -# Add -DGSBIT to make eps image previews work -export CFLAGS="-DXAW_ARROW_SCROLLBARS -DGSBIT $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing" -%configure --enable-xpm-splash -make %{?_smp_mflags} +export CFLAGS="-DXAW_ARROW_SCROLLBARS $RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing" +%configure +%make_build %install @@ -117,6 +116,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Feb 13 2017 Hans de Goede - 3.2.6a-1 +- New upstream release 3.2.6a + * Sun Feb 12 2017 Hans de Goede - 3.2.6-5 - Build with -DGSBIT to fix eps file preview generation (rhbz#1418560) - Fix broken screenshot links in appdata From 06159b7d96f45233769500568cfb57d223ce0be9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 22:07:30 +0000 Subject: [PATCH 23/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 5509d04..e985097 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -116,6 +116,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 3.2.6a-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Mon Feb 13 2017 Hans de Goede - 3.2.6a-1 - New upstream release 3.2.6a From e5c5939f8653fe8dc140169a26a30ef9c98e04f6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 10:43:04 +0000 Subject: [PATCH 24/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index e985097..6fc815c 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -116,6 +116,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 3.2.6a-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 3.2.6a-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From a4fd7a8fdc42e416f2a1b57091b14efa9b668127 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 7 Nov 2017 13:50:34 -0500 Subject: [PATCH 25/61] Drop unneeded BuildRequires: imake --- xfig.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xfig.spec b/xfig.spec index 6fc815c..8b87b42 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -16,7 +16,6 @@ Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel -BuildRequires: imake BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel @@ -116,6 +115,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Tue Nov 07 2017 Adam Jackson - 3.2.6a-4 +- Drop unneeded BuildRequires: imake + * Thu Aug 03 2017 Fedora Release Engineering - 3.2.6a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 9bf0f0c1f7cb470159bffd4a0067cc7dafeda872 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 21:39:21 +0000 Subject: [PATCH 26/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 8b87b42..8efbdc5 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -115,6 +115,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 3.2.6a-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Tue Nov 07 2017 Adam Jackson - 3.2.6a-4 - Drop unneeded BuildRequires: imake From 8b02b070fc35bffcebbb811519d2784e37010963 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 1 Mar 2018 23:46:57 +0100 Subject: [PATCH 27/61] Fix font issues (rhbz#1523624) : Adjust xfig-3.2.5-urwfonts.patch for new font names in urw-base35-fonts Except for the symbols font, use the old un-scalable Adobe PCF Symbol font for now as StandardSymbolsPS.otf from urw-base35-fonts is currently broken Add a patch to deal with some fonts being scalable, while Symbol is not Note the dingbats font is also broken in urw-base35-fonts, but there is no replacement for it, so that font is still broken, see rhbz#1534206 ghostscript-core no longer exists, instead require ghostscript (rhbz#1536581) Remove obsolete icon-cache and desktop-database scriptlets Add a patch from Debian fixing some issues with arrows --- 07_colorsliderarrows.patch | 34 ++++++++++ xfig-3.2.5-urwfonts.patch | 75 +++++++++++----------- xfig-3.2.6a-scalable-fonts.patch | 106 +++++++++++++++++++++++++++++++ xfig.spec | 42 ++++++------ 4 files changed, 201 insertions(+), 56 deletions(-) create mode 100644 07_colorsliderarrows.patch create mode 100644 xfig-3.2.6a-scalable-fonts.patch diff --git a/07_colorsliderarrows.patch b/07_colorsliderarrows.patch new file mode 100644 index 0000000..0bb141b --- /dev/null +++ b/07_colorsliderarrows.patch @@ -0,0 +1,34 @@ +Description: Fix direction of RGB & HSV color sliders arrows. +Author: Tim Bagot +Bug-Debian: https://bugs.debian.org/870365 + +--- a/src/w_color.c ++++ b/src/w_color.c +@@ -1919,15 +1919,15 @@ Scrolled(Widget w, XtPointer closure, Xt + pos = 255 - (int)(locked_top * 255 + 0.5); + break; + case S_HUE: +- hsv_values.h += (going_up? -blip: blip); ++ hsv_values.h += (going_up? blip: -blip); + ThumbHSV(w, 1.0-hsv_values.h); + return; + case S_SAT: +- hsv_values.s += (going_up? -blip: blip); ++ hsv_values.s += (going_up? blip: -blip); + ThumbHSV(w, 1.0-hsv_values.s); + return; + case S_VAL: +- hsv_values.v += (going_up? -blip: blip); ++ hsv_values.v += (going_up? blip: -blip); + ThumbHSV(w, 1.0-hsv_values.v); + return; + default: +@@ -1935,7 +1935,7 @@ Scrolled(Widget w, XtPointer closure, Xt + exit(1); + } + +- if (going_up) { ++ if (!going_up) { + if (pos > 0) + pos--; + } else { diff --git a/xfig-3.2.5-urwfonts.patch b/xfig-3.2.5-urwfonts.patch index 82ca561..69938ce 100644 --- a/xfig-3.2.5-urwfonts.patch +++ b/xfig-3.2.5-urwfonts.patch @@ -1,6 +1,6 @@ --- xfig.3.2.4/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 +++ xfig-3.2.4/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 -@@ -22,41 +22,41 @@ +@@ -22,41 +22,44 @@ /* X11 font names */ struct _xfstruct x_fontinfo[NUM_FONTS] = { @@ -39,41 +39,44 @@ - {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, - {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL}, - {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l condensed-medium-r-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l condensed-medium-i-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l condensed-bold-r-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l condensed-bold-i-condensed--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic-medium-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic-semibold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic-semibold-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman-light-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman-light-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman-semibold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman-semibold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono ps-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono ps-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono ps-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono ps-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans narrow-medium-r-semicondensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans narrow-medium-o-semicondensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans narrow-bold-r-semicondensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans narrow-bold-o-semicondensed--", (struct xfont*) NULL}, ++ {"-urw-c059-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-c059-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-c059-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-c059-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-p052-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-p052-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-p052-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-p052-bold-i-normal--", (struct xfont*) NULL}, ++ /* Should be "-urw-standard symbols ps-medium-r-normal--" but that is currently broken */ ++ {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, ++ /* Should be "-urw-z003-medium-i-normal--" but that is currently broken */ ++ {"-urw-nimbus roman-bold-i-normal--", (struct xfont*) NULL}, ++ /* Also broken but we've no alternative for it */ ++ {"-urw-d050000l-medium-r-normal--", (struct xfont*) NULL}, }; /* Use the following font names for any font that doesn't exist in the table above. diff --git a/xfig-3.2.6a-scalable-fonts.patch b/xfig-3.2.6a-scalable-fonts.patch new file mode 100644 index 0000000..f9b1ed0 --- /dev/null +++ b/xfig-3.2.6a-scalable-fonts.patch @@ -0,0 +1,106 @@ +diff -up xfig-3.2.6a/src/w_drawprim.c.scalable xfig-3.2.6a/src/w_drawprim.c +--- xfig-3.2.6a/src/w_drawprim.c.scalable 2017-01-05 15:08:08.000000000 +0100 ++++ xfig-3.2.6a/src/w_drawprim.c 2018-03-01 18:01:52.344780986 +0100 +@@ -69,6 +69,7 @@ static Pixel gc_color[NUMOPS], gc_backgr + static XRectangle clip[1]; + static int parsesize(char *name); + static Boolean openwinfonts; ++static Boolean font_scalable[NUM_FONTS]; + + #define MAXNAMES 300 + +@@ -131,33 +132,42 @@ void init_font(void) + if (appres.scalablefonts) { + /* first look for OpenWindow style font names (e.g. times-roman) */ + if ((fontlist = XListFonts(tool_d, ps_fontinfo[1].name, 1, &count))!=0) { +- openwinfonts = True; /* yes, use them */ +- for (f=0; fnext = NULL; + } + } /* next size */ +- } /* next font, f */ +- } /* !appres.scalablefonts */ ++ } /* !font_scalable[f] */ ++ } /* next font, f */ + } + + /* parse the point size of font 'name' */ +@@ -279,11 +289,11 @@ lookfont(int fnum, int size) + nf = x_fontinfo[fnum].xfontlist; + oldnf = nf; + if (nf != NULL) { +- if (nf->size > size && !appres.scalablefonts) ++ if (nf->size > size && !font_scalable[fnum]) + found = True; + else { + while (nf != NULL) { +- if (nf->size == size || (!appres.scalablefonts && ++ if (nf->size == size || (!font_scalable[fnum] && + (nf->size >= size && oldnf->size <= size))) { + found = True; + break; +@@ -297,7 +307,7 @@ lookfont(int fnum, int size) + strcpy(fn,nf->fname); /* put the name in fn */ + if (size < nf->size) + put_msg("Font size %d not found, using larger %d point",size,nf->size); +- } else if (!appres.scalablefonts) { /* not found, use largest available */ ++ } else if (!font_scalable[fnum]) { /* not found, use largest available */ + nf = oldnf; + strcpy(fn,nf->fname); /* put the name in fn */ + if (size > nf->size) diff --git a/xfig.spec b/xfig.spec index 8efbdc5..b46a937 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 5%{?dist} +Release: 6%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -13,6 +13,8 @@ Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-urwfonts.patch +Patch2: xfig-3.2.6a-scalable-fonts.patch +Patch3: 07_colorsliderarrows.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -29,7 +31,12 @@ BuildRequires: Xaw3d-devel BuildRequires: man2html-core ImageMagick BuildRequires: desktop-file-utils libappstream-glib # For eps preview generation -Requires: ghostscript-core +Requires: ghostscript +# For scalable fonts, also see xfig-3.2.5-urwfonts.patch +Requires: urw-base35-fonts +# Because StandardSymbolsPS.otf from urw-base35-fonts is currently broken, +# should be dropped and xfig-3.2.5-urwfonts.patch adjusted, once fixed +Requires: xorg-x11-fonts-100dpi # We used to have seperate Xaw3d and non Xaw3d pkgs, now we only have Xaw3d Obsoletes: %{name}-common < %{version}-%{release} @@ -51,9 +58,7 @@ graphics. %prep -%setup -q -a 1 -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 -a 1 for i in doc/html/japanese/button_frame.fig doc/html/japanese/japanese.ps \ doc/html/animate.js; do sed -i.orig 's/\r//' $i; touch -r $i.orig $i; rm $i.orig @@ -88,21 +93,6 @@ appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml -%post -update-desktop-database &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - - %files %doc %{_docdir}/%{name} %{_bindir}/%{name} @@ -115,6 +105,18 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu Mar 01 2018 Hans de Goede - 3.2.6a-6 +- Fix font issues (rhbz#1523624) : + - Adjust xfig-3.2.5-urwfonts.patch for new font names in urw-base35-fonts + - Except for the symbols font, use the old un-scalable Adobe PCF Symbol font + for now as StandardSymbolsPS.otf from urw-base35-fonts is currently broken + - Add a patch to deal with some fonts being scalable, while Symbol is not + - Note the dingbats font is also broken in urw-base35-fonts, but there is no + replacement for it, so that font is still broken, see rhbz#1534206 +- ghostscript-core no longer exists, instead require ghostscript (rhbz#1536581) +- Remove obsolete icon-cache and desktop-database scriptlets +- Add a patch from Debian fixing some issues with arrows + * Fri Feb 09 2018 Fedora Release Engineering - 3.2.6a-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From d327e0e90451476249b991ecfdf219975473dfbe Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 3 Mar 2018 16:09:19 +0100 Subject: [PATCH 28/61] Fix font issues take 2 (rhbz#1523624) : It turns out the new urw fonts are completely unusuable as X11 core fonts, stop using them for now (see bug rhbz#1551219) Add a patch to use the fallback fonts for non-scalable fonts too, so that we at least show something somewhat reasonable for Bookman, New Century Schoolbook and Palatino This means that display of Zapf Chancery and Zapf Dingbats currently falls back to the "fixed" font, which is completely wrong for Dingbats --- ....2.6a-fallback-for-nonscalable-fonts.patch | 71 +++++++++++++++++++ xfig.spec | 27 +++++-- 2 files changed, 91 insertions(+), 7 deletions(-) create mode 100644 xfig-3.2.6a-fallback-for-nonscalable-fonts.patch diff --git a/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch b/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch new file mode 100644 index 0000000..36644e3 --- /dev/null +++ b/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch @@ -0,0 +1,71 @@ +diff -up xfig-3.2.6a/src/w_drawprim.c.orig xfig-3.2.6a/src/w_drawprim.c +--- xfig-3.2.6a/src/w_drawprim.c.orig 2018-03-03 14:16:49.102597205 +0100 ++++ xfig-3.2.6a/src/w_drawprim.c 2018-03-03 14:31:36.434162815 +0100 +@@ -90,6 +90,7 @@ void init_font(void) + struct xfont *newfont, *nf; + int f, count, i, p, ss; + char template[300]; ++ char backup_template[300]; + char **fontlist, **fname; + + if (appres.boldFont == NULL || *appres.boldFont == '\0') +@@ -171,19 +172,28 @@ void init_font(void) + nf = NULL; + strcpy(template,x_fontinfo[f].template); + strcat(template,"*-*-*-*-*-*-"); ++ strcpy(backup_template,x_backup_fontinfo[f].template); ++ strcat(backup_template,"*-*-*-*-*-*-"); + /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name in non-international mode*/ + if ( + #ifdef I18N + !appres.international && + #endif + strstr(template,"ymbol") == NULL && +- strstr(template,"ingbats") == NULL) ++ strstr(template,"ingbats") == NULL) { + strcat(template,"ISO8859-*"); +- else ++ strcat(backup_template,"ISO8859-*"); ++ } else { + strcat(template,"*-*"); ++ strcat(backup_template,"*-*"); ++ } + /* don't free the Fontlist because we keep pointers into it */ + p = 0; +- if ((fontlist = XListFonts(tool_d, template, MAXNAMES, &count))==0) { ++ ++ if ((fontlist = XListFonts(tool_d, template, MAXNAMES, &count))==0) ++ fontlist = XListFonts(tool_d, backup_template, MAXNAMES, &count); ++ ++ if (fontlist == 0) { + /* no fonts by that name found, substitute the -normal font name */ + flist[p].fn = appres.normalFont; + flist[p++].s = 12; /* just set the size to 12 */ +@@ -233,16 +243,17 @@ parsesize(char *name) + int s; + char *np; + +- for (np = name; *(np + 1); np++) +- if (*np == '-' && *(np + 1) == '-') /* look for the -- */ +- break; +- s = 0; +- if (*(np + 1)) { +- np += 2; /* point past the -- */ +- s = atoi(np); /* get the point size */ +- } else +- fprintf(stderr, "Can't parse '%s'\n", name); +- return s; ++ for (np = name; *(np + 1); np++) { ++ /* look for "--" */ ++ if (strncmp(np, "--", 2) == 0) ++ return atoi(np + 2); ++ /* For "-b&h-lucida-*-normal-sans--*" */ ++ if (strncmp(np, "-normal-sans-", 13) == 0) ++ return atoi(np + 13); ++ } ++ ++ fprintf(stderr, "Can't parse '%s'\n", name); ++ return 0; + } + + /* diff --git a/xfig.spec b/xfig.spec index b46a937..c00e671 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 6%{?dist} +Release: 7%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -12,9 +12,10 @@ Source2: xfig.desktop Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch -Patch1: xfig-3.2.5-urwfonts.patch +#Patch1: xfig-3.2.5-urwfonts.patch Patch2: xfig-3.2.6a-scalable-fonts.patch -Patch3: 07_colorsliderarrows.patch +Patch3: xfig-3.2.6a-fallback-for-nonscalable-fonts.patch +Patch4: 07_colorsliderarrows.patch BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -32,10 +33,12 @@ BuildRequires: man2html-core ImageMagick BuildRequires: desktop-file-utils libappstream-glib # For eps preview generation Requires: ghostscript -# For scalable fonts, also see xfig-3.2.5-urwfonts.patch -Requires: urw-base35-fonts -# Because StandardSymbolsPS.otf from urw-base35-fonts is currently broken, -# should be dropped and xfig-3.2.5-urwfonts.patch adjusted, once fixed +# Used in the UI +Requires: xorg-x11-fonts-misc +# For scalable fonts, currently broken see bug: 1551219 +#Requires: urw-base35-fonts +# Because urw-base35-fonts is currently broken. Should be dropped +# and xfig-3.2.5-urwfonts.patch adjusted, once fixed Requires: xorg-x11-fonts-100dpi # We used to have seperate Xaw3d and non Xaw3d pkgs, now we only have Xaw3d @@ -105,6 +108,16 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Mar 03 2018 Hans de Goede - 3.2.6a-7 +- Fix font issues take 2 (rhbz#1523624) : + - It turns out the new urw fonts are completely unusuable as X11 core fonts, + stop using them for now (see bug rhbz#1551219) + - Add a patch to use the fallback fonts for non-scalable fonts too, so that + we at least show something somewhat reasonable for Bookman, New Century + Schoolbook and Palatino + - This means that display of Zapf Chancery and Zapf Dingbats currently + falls back to the "fixed" font, which is completely wrong for Dingbats + * Thu Mar 01 2018 Hans de Goede - 3.2.6a-6 - Fix font issues (rhbz#1523624) : - Adjust xfig-3.2.5-urwfonts.patch for new font names in urw-base35-fonts From 13dc7c06b6d833caf6fb916dbd3cbb902c4f02b9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 9 Jul 2018 19:06:54 +0200 Subject: [PATCH 29/61] add BuildRequires: gcc Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot --- xfig.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xfig.spec b/xfig.spec index c00e671..6f340b8 100644 --- a/xfig.spec +++ b/xfig.spec @@ -17,6 +17,7 @@ Patch2: xfig-3.2.6a-scalable-fonts.patch Patch3: xfig-3.2.6a-fallback-for-nonscalable-fonts.patch Patch4: 07_colorsliderarrows.patch +BuildRequires: gcc BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libICE-devel From 5ec62ea50b187abf88a9d815b22bf54e63475fbb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 09:18:23 +0000 Subject: [PATCH 30/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 6f340b8..440212b 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.6a -Release: 7%{?dist} +Release: 8%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -109,6 +109,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 3.2.6a-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Sat Mar 03 2018 Hans de Goede - 3.2.6a-7 - Fix font issues take 2 (rhbz#1523624) : - It turns out the new urw fonts are completely unusuable as X11 core fonts, From 0f7f0f3afe657a7553b74a449c6c726a138e1879 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 30 Oct 2018 09:35:45 +0100 Subject: [PATCH 31/61] New upstream release 3.2.7a Add Requires: transfig to make sure esp export works (rhbz#1642033) Switch back to URW fonts so that Bookman, New Century Schoolbook and Palatino work again. This uses the old version of the URW fonts which are now packaged as urw-base35-fonts-legacy (rhbz#1523624, rhbz#1551219) Trim the changelog --- .gitignore | 1 + 07_colorsliderarrows.patch | 34 -- sources | 2 +- xfig-3.2.5-urwfonts.patch | 75 ++-- ....2.6a-fallback-for-nonscalable-fonts.patch | 71 --- xfig-3.2.6a-scalable-fonts.patch | 106 ----- xfig.spec | 418 +----------------- 7 files changed, 52 insertions(+), 655 deletions(-) delete mode 100644 07_colorsliderarrows.patch delete mode 100644 xfig-3.2.6a-fallback-for-nonscalable-fonts.patch delete mode 100644 xfig-3.2.6a-scalable-fonts.patch diff --git a/.gitignore b/.gitignore index 054f115..ee34dba 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ xfig.3.2.5b.full.tar.gz /xfig-full-3.2.6.tar.xz /xfig-3.2.6.tar.xz /xfig-3.2.6a.tar.xz +/xfig-3.2.7a.tar.xz diff --git a/07_colorsliderarrows.patch b/07_colorsliderarrows.patch deleted file mode 100644 index 0bb141b..0000000 --- a/07_colorsliderarrows.patch +++ /dev/null @@ -1,34 +0,0 @@ -Description: Fix direction of RGB & HSV color sliders arrows. -Author: Tim Bagot -Bug-Debian: https://bugs.debian.org/870365 - ---- a/src/w_color.c -+++ b/src/w_color.c -@@ -1919,15 +1919,15 @@ Scrolled(Widget w, XtPointer closure, Xt - pos = 255 - (int)(locked_top * 255 + 0.5); - break; - case S_HUE: -- hsv_values.h += (going_up? -blip: blip); -+ hsv_values.h += (going_up? blip: -blip); - ThumbHSV(w, 1.0-hsv_values.h); - return; - case S_SAT: -- hsv_values.s += (going_up? -blip: blip); -+ hsv_values.s += (going_up? blip: -blip); - ThumbHSV(w, 1.0-hsv_values.s); - return; - case S_VAL: -- hsv_values.v += (going_up? -blip: blip); -+ hsv_values.v += (going_up? blip: -blip); - ThumbHSV(w, 1.0-hsv_values.v); - return; - default: -@@ -1935,7 +1935,7 @@ Scrolled(Widget w, XtPointer closure, Xt - exit(1); - } - -- if (going_up) { -+ if (!going_up) { - if (pos > 0) - pos--; - } else { diff --git a/sources b/sources index d718363..b7c4295 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.6a.tar.xz) = 8d6952301cab297f87041ca645c316863c4ee454ba6318ae94b2493ca9dfeda6b0240a038001f82c390d1a772c4b5e3c43c9414ea150fd18adb8780a608d8cd0 +SHA512 (xfig-3.2.7a.tar.xz) = d5c8c6f1d7fb0ce9565e71eb7b9fad00b797c321c29542c1cf68d93b7fd1f018c72d1eeb242735b9741fb4b48ac8e93c68589bb89737e497fffdf67068a1cd04 SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig-3.2.5-urwfonts.patch b/xfig-3.2.5-urwfonts.patch index 69938ce..7a46ce3 100644 --- a/xfig-3.2.5-urwfonts.patch +++ b/xfig-3.2.5-urwfonts.patch @@ -1,6 +1,6 @@ --- xfig.3.2.4/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 +++ xfig-3.2.4/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 -@@ -22,41 +22,44 @@ +@@ -22,41 +22,41 @@ /* X11 font names */ struct _xfstruct x_fontinfo[NUM_FONTS] = { @@ -39,44 +39,41 @@ - {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, - {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL}, - {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic-medium-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic-semibold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic-semibold-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman-light-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman-light-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman-semibold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman-semibold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono ps-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono ps-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono ps-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono ps-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans narrow-medium-r-semicondensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans narrow-medium-o-semicondensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans narrow-bold-r-semicondensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans narrow-bold-o-semicondensed--", (struct xfont*) NULL}, -+ {"-urw-c059-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-c059-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-c059-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-c059-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-p052-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-p052-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-p052-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-p052-bold-i-normal--", (struct xfont*) NULL}, -+ /* Should be "-urw-standard symbols ps-medium-r-normal--" but that is currently broken */ -+ {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, -+ /* Should be "-urw-z003-medium-i-normal--" but that is currently broken */ -+ {"-urw-nimbus roman-bold-i-normal--", (struct xfont*) NULL}, -+ /* Also broken but we've no alternative for it */ -+ {"-urw-d050000l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL}, }; /* Use the following font names for any font that doesn't exist in the table above. diff --git a/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch b/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch deleted file mode 100644 index 36644e3..0000000 --- a/xfig-3.2.6a-fallback-for-nonscalable-fonts.patch +++ /dev/null @@ -1,71 +0,0 @@ -diff -up xfig-3.2.6a/src/w_drawprim.c.orig xfig-3.2.6a/src/w_drawprim.c ---- xfig-3.2.6a/src/w_drawprim.c.orig 2018-03-03 14:16:49.102597205 +0100 -+++ xfig-3.2.6a/src/w_drawprim.c 2018-03-03 14:31:36.434162815 +0100 -@@ -90,6 +90,7 @@ void init_font(void) - struct xfont *newfont, *nf; - int f, count, i, p, ss; - char template[300]; -+ char backup_template[300]; - char **fontlist, **fname; - - if (appres.boldFont == NULL || *appres.boldFont == '\0') -@@ -171,19 +172,28 @@ void init_font(void) - nf = NULL; - strcpy(template,x_fontinfo[f].template); - strcat(template,"*-*-*-*-*-*-"); -+ strcpy(backup_template,x_backup_fontinfo[f].template); -+ strcat(backup_template,"*-*-*-*-*-*-"); - /* add ISO8859 (if not Symbol font or ZapfDingbats) to font name in non-international mode*/ - if ( - #ifdef I18N - !appres.international && - #endif - strstr(template,"ymbol") == NULL && -- strstr(template,"ingbats") == NULL) -+ strstr(template,"ingbats") == NULL) { - strcat(template,"ISO8859-*"); -- else -+ strcat(backup_template,"ISO8859-*"); -+ } else { - strcat(template,"*-*"); -+ strcat(backup_template,"*-*"); -+ } - /* don't free the Fontlist because we keep pointers into it */ - p = 0; -- if ((fontlist = XListFonts(tool_d, template, MAXNAMES, &count))==0) { -+ -+ if ((fontlist = XListFonts(tool_d, template, MAXNAMES, &count))==0) -+ fontlist = XListFonts(tool_d, backup_template, MAXNAMES, &count); -+ -+ if (fontlist == 0) { - /* no fonts by that name found, substitute the -normal font name */ - flist[p].fn = appres.normalFont; - flist[p++].s = 12; /* just set the size to 12 */ -@@ -233,16 +243,17 @@ parsesize(char *name) - int s; - char *np; - -- for (np = name; *(np + 1); np++) -- if (*np == '-' && *(np + 1) == '-') /* look for the -- */ -- break; -- s = 0; -- if (*(np + 1)) { -- np += 2; /* point past the -- */ -- s = atoi(np); /* get the point size */ -- } else -- fprintf(stderr, "Can't parse '%s'\n", name); -- return s; -+ for (np = name; *(np + 1); np++) { -+ /* look for "--" */ -+ if (strncmp(np, "--", 2) == 0) -+ return atoi(np + 2); -+ /* For "-b&h-lucida-*-normal-sans--*" */ -+ if (strncmp(np, "-normal-sans-", 13) == 0) -+ return atoi(np + 13); -+ } -+ -+ fprintf(stderr, "Can't parse '%s'\n", name); -+ return 0; - } - - /* diff --git a/xfig-3.2.6a-scalable-fonts.patch b/xfig-3.2.6a-scalable-fonts.patch deleted file mode 100644 index f9b1ed0..0000000 --- a/xfig-3.2.6a-scalable-fonts.patch +++ /dev/null @@ -1,106 +0,0 @@ -diff -up xfig-3.2.6a/src/w_drawprim.c.scalable xfig-3.2.6a/src/w_drawprim.c ---- xfig-3.2.6a/src/w_drawprim.c.scalable 2017-01-05 15:08:08.000000000 +0100 -+++ xfig-3.2.6a/src/w_drawprim.c 2018-03-01 18:01:52.344780986 +0100 -@@ -69,6 +69,7 @@ static Pixel gc_color[NUMOPS], gc_backgr - static XRectangle clip[1]; - static int parsesize(char *name); - static Boolean openwinfonts; -+static Boolean font_scalable[NUM_FONTS]; - - #define MAXNAMES 300 - -@@ -131,33 +132,42 @@ void init_font(void) - if (appres.scalablefonts) { - /* first look for OpenWindow style font names (e.g. times-roman) */ - if ((fontlist = XListFonts(tool_d, ps_fontinfo[1].name, 1, &count))!=0) { -- openwinfonts = True; /* yes, use them */ -- for (f=0; fnext = NULL; - } - } /* next size */ -- } /* next font, f */ -- } /* !appres.scalablefonts */ -+ } /* !font_scalable[f] */ -+ } /* next font, f */ - } - - /* parse the point size of font 'name' */ -@@ -279,11 +289,11 @@ lookfont(int fnum, int size) - nf = x_fontinfo[fnum].xfontlist; - oldnf = nf; - if (nf != NULL) { -- if (nf->size > size && !appres.scalablefonts) -+ if (nf->size > size && !font_scalable[fnum]) - found = True; - else { - while (nf != NULL) { -- if (nf->size == size || (!appres.scalablefonts && -+ if (nf->size == size || (!font_scalable[fnum] && - (nf->size >= size && oldnf->size <= size))) { - found = True; - break; -@@ -297,7 +307,7 @@ lookfont(int fnum, int size) - strcpy(fn,nf->fname); /* put the name in fn */ - if (size < nf->size) - put_msg("Font size %d not found, using larger %d point",size,nf->size); -- } else if (!appres.scalablefonts) { /* not found, use largest available */ -+ } else if (!font_scalable[fnum]) { /* not found, use largest available */ - nf = oldnf; - strcpy(fn,nf->fname); /* put the name in fn */ - if (size > nf->size) diff --git a/xfig.spec b/xfig.spec index 440212b..a87bcea 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.6a -Release: 8%{?dist} +Version: 3.2.7a +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -12,10 +12,7 @@ Source2: xfig.desktop Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch -#Patch1: xfig-3.2.5-urwfonts.patch -Patch2: xfig-3.2.6a-scalable-fonts.patch -Patch3: xfig-3.2.6a-fallback-for-nonscalable-fonts.patch -Patch4: 07_colorsliderarrows.patch +Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: gcc BuildRequires: libjpeg-devel @@ -34,13 +31,11 @@ BuildRequires: man2html-core ImageMagick BuildRequires: desktop-file-utils libappstream-glib # For eps preview generation Requires: ghostscript +Requires: transfig # Used in the UI Requires: xorg-x11-fonts-misc -# For scalable fonts, currently broken see bug: 1551219 -#Requires: urw-base35-fonts -# Because urw-base35-fonts is currently broken. Should be dropped -# and xfig-3.2.5-urwfonts.patch adjusted, once fixed -Requires: xorg-x11-fonts-100dpi +# For scalable fonts, inc. Bookman, New Century Schoolbook and Palatino +Requires: urw-base35-fonts-legacy # We used to have seperate Xaw3d and non Xaw3d pkgs, now we only have Xaw3d Obsoletes: %{name}-common < %{version}-%{release} @@ -109,6 +104,14 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Oct 29 2018 Hans de Goede - 3.2.7a-1 +- New upstream release 3.2.7a +- Add Requires: transfig to make sure esp export works (rhbz#1642033) +- Switch back to URW fonts so that Bookman, New Century Schoolbook and + Palatino work again. This uses the old version of the URW fonts which are + now packaged as urw-base35-fonts-legacy (rhbz#1523624, rhbz#1551219) +- Trim the changelog + * Sat Jul 14 2018 Fedora Release Engineering - 3.2.6a-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild @@ -177,396 +180,3 @@ appstream-util validate-relax --nonet \ * Fri Feb 05 2016 Fedora Release Engineering - 3.2.5-47.c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jun 19 2015 Fedora Release Engineering - 3.2.5-46.c -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Oct 9 2014 Hans de Goede - 3.2.5-45.c -- Fix png reading (rhbz#1150330) - -* Mon Aug 18 2014 Fedora Release Engineering - 3.2.5-44.c -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Wed Jun 18 2014 Hans de Goede - 3.2.5-43.c -- Fix crash when changing arrow size on x86_64 (rhbz#1046102) - -* Sun Jun 08 2014 Fedora Release Engineering - 3.2.5-42.c -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Mon Jan 06 2014 Michal Srb - 3.2.5-41.c -- Name binaries correctly - -* Mon Jan 06 2014 Michal Srb - 3.2.5-40.c -- Use fprintf in safe manner - -* Fri Jan 03 2014 David Kaufmann - 3.2.5-39.c -- Version bump to 3.2.5-39c - -* Fri Jan 03 2014 Michal Srb - 3.2.5-38.b -- Fix crash when creating lines with linestyle 3 -- Resolves: rhbz#1023744 (Thanks to Maurizio Paolini and David Kaufmann) - -* Sun Aug 04 2013 Fedora Release Engineering - 3.2.5-37.b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Sun Feb 10 2013 Parag Nemade - 3.2.5-36.b -- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 - -* Mon Jan 21 2013 Adam Tkac - 3.2.5-35.b -- rebuild due to "jpeg8-ABI" feature drop - -* Fri Dec 21 2012 Adam Tkac - 3.2.5-34.b -- rebuild against new libjpeg - -* Sun Aug 12 2012 Hans de Goede - 3.2.5-33.b -- Re-organize / consolidate patches -- Add a bunch of patches (minor bug-fixes) from the Debian package -- Add better icons from the Debian package - -* Sun Aug 12 2012 Hans de Goede - 3.2.5-32.b -- Fix a stack overflow when importing 1.3 files (CVE-2009-4227) (rhbz#543905) - -* Sun Jul 22 2012 Fedora Release Engineering - 3.2.5-31.b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Sun Feb 26 2012 Orion Poplawski - 3.2.5-30.b -- Rebuild with Xaw3d 1.6.1 - -* Tue Feb 14 2012 Peter Robinson - 3.2.5-29.b -- Add patch from Debian for libpng 1.5 - -* Sat Jan 14 2012 Fedora Release Engineering - 3.2.5-28.b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Dec 06 2011 Adam Jackson - 3.2.5-27.b -- Rebuild for new libpng - -* Mon Feb 07 2011 Fedora Release Engineering - 3.2.5-26.b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Mon Dec 6 2010 Stanislav Ochotnicky - 3.2.5-25.b -- Fix buffer overflow when opening malicious fig files - -* Thu Nov 25 2010 Hans de Goede 3.2.5-24.b -- Fix importing of eps files (#657290) - -* Wed Sep 30 2009 Hans de Goede 3.2.5-23.b -- New upstream 3.2.5b release -- Drop many merged patches - -* Mon Jul 27 2009 Fedora Release Engineering - 3.2.5-22.a -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Sun Jun 28 2009 Caolán McNamara 3.2.5-21.a -- Resolves: rhbz#506791 make xfig spellchecking work - -* Wed Jun 3 2009 Hans de Goede 3.2.5-20.a -- Fix eps preview (#503911) - -* Wed Apr 8 2009 Hans de Goede 3.2.5-19.a -- Fix crash when printing (#494193), thanks to Ian Dall for the patch - -* Fri Mar 27 2009 Hans de Goede 3.2.5-18.a -- Rebase to new upstream 3.2.5a release, this was made available to me by - the Debian maintainer who is in contact with upstream, which appearantly - is still somewhat alive (but not alive enough to put the tarbal on the - homepage ??) - -* Sun Mar 15 2009 Hans de Goede 3.2.5-17 -- Add various patches from Debian (doc updates, new figures in the lib, - better fix for modepanel resizing) -- Do not crash when inserting a character from the charmap into a text string - -* Sun Mar 15 2009 Hans de Goede 3.2.5-16 -- Fix Text size field inserts characters on left instead of right (#490257) -- Fix xfig-Xaw3d does not display messages in message panel (#490259) - -* Thu Feb 26 2009 Fedora Release Engineering - 3.2.5-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Sun Feb 22 2009 Hans de Goede 3.2.5-14 -- Add missing Requires: xorg-x11-fonts-base (#486701) - -* Mon Nov 10 2008 Stepan Kasal - 3.2.5-13 -- fix the Obsoletes tag to <= 3.2.5-7.fc8, which is the last - release with Xaw3d subpackage - -* Tue Nov 4 2008 Hans de Goede 3.2.5-12 -- Various small specfile cleanups from merge review - -* Mon Jul 14 2008 Ian Hutchinson 3.2.5-11 -- Fix incorrect height of modepanel. - -* Thu Apr 3 2008 Hans de Goede 3.2.5-10 -- Fix missing prototype compiler warnings - -* Thu Feb 28 2008 Hans de Goede 3.2.5-9 -- Fix cmdline parsing (broken by renaming the binary) (bz 435097) - -* Tue Feb 19 2008 Fedora Release Engineering - 3.2.5-8 -- Autorebuild for GCC 4.3 - -* Wed Dec 12 2007 Hans de Goede 3.2.5-7 -- Fix xfig crashing when zooming in a lot (bz 420411) - -* Sat Nov 17 2007 Hans de Goede 3.2.5-6 -- Put the Xaw3d version in the main xfig package, put the plain Xaw version - in a -plain subpackage - -* Fri Nov 16 2007 Hans de Goede 3.2.5-5 -- Also compile a version against Xaw3d instead of plain Xaw, available in the - new xfig-Xaw3d package -- Various specfile cleanups for packaging guidelines compliance -- Remove spurious executable permissions on various files (bz 247424) -- Apply patch fixing problems with xfig not finding fonts (bz 210278) - -* Thu Nov 15 2007 Than Ngo 3.2.5-4 -- fix #201992, xfig crashes in the edit function - -* Thu Nov 15 2007 Than Ngo 3.2.5-3 -- fix #201992, xfig crashes in the edit function - -* Fri Oct 05 2007 Than Ngo - 3.2.5-2 -- rh#313321, use xdg-open - -* Mon Apr 16 2007 Than Ngo - 3.2.5-1.fc7 -- 3.2.5 - -* Wed Jul 12 2006 Jesse Keating - 3.2.4-21.1 -- rebuild - -* Tue May 16 2006 Than Ngo 3.2.4-21 -- fix #191816, Xaw3d build problem - -* Fri May 05 2006 Than Ngo 3.2.4-20 -- fix #169330, wrong docdir -- fix #187902, no parameter negotiation for xfig -- fix #182451, switch xfig's pdf viewer to evince - -* Tue Apr 25 2006 Adam Jackson 3.2.4-19 -- Rebuild for updated imake build rules - -* Tue Apr 04 2006 Than Ngo 3.2.4-18 -- no parameter negotiation for xfig, fix #187902 - -* Fri Feb 10 2006 Jesse Keating - 3.2.4-17.2 -- bump again for double-long bug on ppc(64) - -* Tue Feb 07 2006 Jesse Keating - 3.2.4-17.1 -- rebuilt for new gcc4.1 snapshot and glibc changes - -* Wed Dec 21 2005 Than Ngo 3.2.4-17 -- workaround for utf8 - -* Sun Dec 18 2005 Than Ngo 3.2.4-16 -- add correct app-defaults directory - -* Fri Dec 09 2005 Jesse Keating -- rebuilt - -* Tue Nov 15 2005 Than Ngo 3.2.4-15 -- fix for modular X - -* Mon Oct 24 2005 Than Ngo 3.2.4-14 -- enable xpm support #158422 - -* Tue Jul 19 2005 Than Ngo 3.2.4-13 -- buildrequires on xorg-x11-devel - -* Mon Jul 18 2005 Than Ngo 3.2.4-12 -- fix another buffer overflow #163413 - -* Thu May 19 2005 Than Ngo 3.2.4-11 -- apply patch to fix buffer overflow #158088 - -* Mon Mar 21 2005 Than Ngo 3.2.4-10 -- fix font warning #116542 - -* Mon Mar 07 2005 Than Ngo 3.2.4-9 -- cleanup - -* Sat Mar 05 2005 Than Ngo 3.2.4-8 -- rebuilt - -* Wed Feb 09 2005 Than Ngo 3.2.4-7 -- rebuilt - -* Sat Sep 25 2004 Than Ngo 3.2.4-6 -- add mimetype spec #131629 - -* Mon Sep 13 2004 Than Ngo 3.2.4-5 -- fix desktop file #131983 - -* Tue Jun 15 2004 Elliot Lee -- rebuilt - -* Fri Feb 13 2004 Elliot Lee -- rebuilt - -* Wed Jun 04 2003 Elliot Lee -- rebuilt - -* Tue Jun 3 2003 Jeff Johnson -- add explicit epoch's where needed. - -* Tue May 6 2003 Than Ngo 3.2.4-1 -- 3.2.4 - -* Wed Jan 22 2003 Tim Powers -- rebuilt - -* Thu Nov 7 2002 Than Ngo 3.2.3d-11 -- rebuild in new enviroment - -* Thu Aug 22 2002 Than Ngo 3.2.3d-10 -- close should get fd, not filename - -* Wed Jul 31 2002 Than Ngo 3.2.3d-9 -- Fixed typo bug (bug #70347) - -* 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) - -* Fri Jun 21 2002 Tim Powers -- automated rebuild - -* Thu May 23 2002 Tim Powers -- automated rebuild - -* Wed Jan 09 2002 Tim Powers -- automated rebuild - -* Fri Jul 13 2001 Than Ngo 3.2.3d-3 -- fix build dependencies (bug #48910) - -* Tue Jul 03 2001 Than Ngo -- fix export to eps when i18n set (bug #45114) -- requires transfig-3.2.3d - -* Fri Jun 15 2001 Than Ngo -- update to 3.2.3d release - -* Tue Jun 12 2001 Than Ngo -- fix to build against XFree86-4.1.0 - -* Tue May 29 2001 Than Ngo -- update to 3.2.3d beta2 fixes (Bug #42597, #42556) -- fix bug when LANG is set, launching help gives a spurious error (Bug #42596) -- fix bug in resource setting (Bug #42595) -- remove some patches, which are included in 3.2.3d beta2 -- fix wrong version number -- use make install.all -- fix fhs problem - -* Wed May 9 2001 Bernhard Rosenkraenzer -- Don't require Netscape at all - use htmlview (which automatically launches - Netscape, Mozilla or Konqueror depending on what is installed/running). - No need to depend on proprietary stuff... - -* Thu Apr 26 2001 Florian La Roche -- do the same for s390x - -* Sat Jan 06 2001 Florian La Roche -- only require /usr/bin/netscape if not on S390 - -* Wed Dec 20 2000 Yukihiro Nakai -- Delete enable_japanese macro and set i18n default. -- Fix Japanese translation in .desktop file - -* Mon Nov 20 2000 Than Ngo -- rebuilt to fix bad dir perms - -* Thu Nov 9 2000 Than Ngo -- fixed f_read, which made xfig stop reading the file after - removing such bad objects. - -* Fri Oct 13 2000 Preston Brown -- improved .desktop entry - -* Thu Aug 24 2000 Yukihiro Nakai -- Add Japanese patch - -* Tue Aug 08 2000 Than Ngo -- fixed dependency problem -- fixed starting xpdf - -* Mon Aug 07 2000 Than Ngo -- fixed for using xpdf instead acroreader (Bug #15621) -- add requires: netscape, display - -* Sat Aug 05 2000 Than Ngo -- update to 3.2.3c (bugs fixed released) -- fix parse_printcap broken (Bug #11147) - -* Thu Jul 13 2000 Prospector -- automatic rebuild - -* Fri Jun 23 2000 Than Ngo -- xfig crash, if a menu item was clicked (Bug #12855) - -* Sun Jun 18 2000 Than Ngo -- rebuilt in the new build environment -- enable optimization - -* Sat Jun 03 2000 Than Ngo -- fix requires, xfig-3.2.3a requires transfig-2.2.3 or newer -- disable optimization -O2 (gcc-2.96 Bug) on i386 - -* Thu May 18 2000 Preston Brown -- fix buildroot issue in Imakefile - -* Mon May 8 2000 Bernhard Rosenkraenzer -- rebuild with current libXaw3d -- update to 3.2.3a - -* Mon Feb 07 2000 Preston Brown -- rebuild to gzip man pages - -* Fri Jan 14 2000 Preston Brown -- upgrade to beta1 of 2.2.3. Hopefully this fixes outstanding issues. -- no need for vararg fix, commented out - -* 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 From 4a82806a34100af5aec05177156626cb02ed64dc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 11 Jan 2019 17:28:50 +0100 Subject: [PATCH 32/61] Fix spline drawing (rhbz#1665237) --- xfig-3.2.7a-spline-fix.patch | 12 ++++++++++++ xfig.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 xfig-3.2.7a-spline-fix.patch diff --git a/xfig-3.2.7a-spline-fix.patch b/xfig-3.2.7a-spline-fix.patch new file mode 100644 index 0000000..01ccee1 --- /dev/null +++ b/xfig-3.2.7a-spline-fix.patch @@ -0,0 +1,12 @@ +diff -up xfig-3.2.7a/src/d_spline.c~ xfig-3.2.7a/src/d_spline.c +--- xfig-3.2.7a/src/d_spline.c~ 2016-07-23 23:10:27.000000000 +0200 ++++ xfig-3.2.7a/src/d_spline.c 2019-01-11 16:49:43.562644931 +0100 +@@ -168,7 +168,7 @@ make_sfactors(F_spline *spl) + { + F_point *p = spl->points; + F_sfactor *sp, *cur_sp; +- int type_s = approx_spline(spl) ? S_SPLINE_APPROX : S_SPLINE_INTERP; ++ double type_s = approx_spline(spl) ? S_SPLINE_APPROX : S_SPLINE_INTERP; + + spl->sfactors = NULL; + if ((sp = create_sfactor()) == NULL) diff --git a/xfig.spec b/xfig.spec index a87bcea..ac6a4fe 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7a -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -13,6 +13,7 @@ Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-urwfonts.patch +Patch2: xfig-3.2.7a-spline-fix.patch BuildRequires: gcc BuildRequires: libjpeg-devel @@ -104,6 +105,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jan 11 2019 Hans de Goede - 3.2.7a-2 +- Fix spline drawing (rhbz#1665237) + * Mon Oct 29 2018 Hans de Goede - 3.2.7a-1 - New upstream release 3.2.7a - Add Requires: transfig to make sure esp export works (rhbz#1642033) From d2c2a811147a0f1e4ad9d383dd90bbba21036629 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 12:25:16 +0000 Subject: [PATCH 33/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index ac6a4fe..acd1de5 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7a -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -105,6 +105,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 3.2.7a-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jan 11 2019 Hans de Goede - 3.2.7a-2 - Fix spline drawing (rhbz#1665237) From d22f7fc8e895eb67729bd89d5a41838ae09c258b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jul 2019 04:12:44 +0000 Subject: [PATCH 34/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index acd1de5..fe1e531 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7a -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -105,6 +105,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 27 2019 Fedora Release Engineering - 3.2.7a-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sun Feb 03 2019 Fedora Release Engineering - 3.2.7a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From b49b11d2e5a0f040645806e8425fc26462105911 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 16 Jan 2020 11:02:05 +0100 Subject: [PATCH 35/61] New upstream release 3.2.7b --- .gitignore | 1 + sources | 2 +- xfig-3.2.7a-spline-fix.patch | 12 ------------ xfig.rpmlintrc | 2 ++ xfig.spec | 11 +++++++---- 5 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 xfig-3.2.7a-spline-fix.patch create mode 100644 xfig.rpmlintrc diff --git a/.gitignore b/.gitignore index ee34dba..50b47b4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ xfig.3.2.5b.full.tar.gz /xfig-3.2.6.tar.xz /xfig-3.2.6a.tar.xz /xfig-3.2.7a.tar.xz +/xfig-3.2.7b.tar.xz diff --git a/sources b/sources index b7c4295..9193668 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.7a.tar.xz) = d5c8c6f1d7fb0ce9565e71eb7b9fad00b797c321c29542c1cf68d93b7fd1f018c72d1eeb242735b9741fb4b48ac8e93c68589bb89737e497fffdf67068a1cd04 +SHA512 (xfig-3.2.7b.tar.xz) = f3396ebf8a5961909e58b05b60117fd7bbc8c24fabbd47f108eaea9586f4180af572faffe077b1a5dcbf669ebd69b1c2791f302c126dea62a44aa1592de66f73 SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig-3.2.7a-spline-fix.patch b/xfig-3.2.7a-spline-fix.patch deleted file mode 100644 index 01ccee1..0000000 --- a/xfig-3.2.7a-spline-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up xfig-3.2.7a/src/d_spline.c~ xfig-3.2.7a/src/d_spline.c ---- xfig-3.2.7a/src/d_spline.c~ 2016-07-23 23:10:27.000000000 +0200 -+++ xfig-3.2.7a/src/d_spline.c 2019-01-11 16:49:43.562644931 +0100 -@@ -168,7 +168,7 @@ make_sfactors(F_spline *spl) - { - F_point *p = spl->points; - F_sfactor *sp, *cur_sp; -- int type_s = approx_spline(spl) ? S_SPLINE_APPROX : S_SPLINE_INTERP; -+ double type_s = approx_spline(spl) ? S_SPLINE_APPROX : S_SPLINE_INTERP; - - spl->sfactors = NULL; - if ((sp = create_sfactor()) == NULL) diff --git a/xfig.rpmlintrc b/xfig.rpmlintrc new file mode 100644 index 0000000..d4619a7 --- /dev/null +++ b/xfig.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("W: spelling-error.*") +addFilter("W: invalid-url Source1") diff --git a/xfig.spec b/xfig.spec index fe1e531..9fa81b0 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.7a -Release: 4%{?dist} +Version: 3.2.7b +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -13,9 +13,8 @@ Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-urwfonts.patch -Patch2: xfig-3.2.7a-spline-fix.patch -BuildRequires: gcc +BuildRequires: gcc libtool BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libICE-devel @@ -63,6 +62,7 @@ for i in doc/html/japanese/button_frame.fig doc/html/japanese/japanese.ps \ doc/html/animate.js; do sed -i.orig 's/\r//' $i; touch -r $i.orig $i; rm $i.orig done +autoreconf -i %build @@ -105,6 +105,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 16 2020 Hans de Goede - 3.2.7b-1 +- New upstream release 3.2.7b + * Sat Jul 27 2019 Fedora Release Engineering - 3.2.7a-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 1e6ca73d3172ee11d9aa3cab5d77410228e6eff7 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 16 Jan 2020 12:12:25 +0100 Subject: [PATCH 36/61] Add missing BuildRequires: transfig --- xfig.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xfig.spec b/xfig.spec index 9fa81b0..1aee29f 100644 --- a/xfig.spec +++ b/xfig.spec @@ -15,6 +15,7 @@ Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: gcc libtool +BuildRequires: transfig BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libICE-devel From 73a36189c359e5f782ddc405fbe90db1423f4125 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 31 Jan 2020 04:28:21 +0000 Subject: [PATCH 37/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 1aee29f..f83297b 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7b -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -106,6 +106,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jan 31 2020 Fedora Release Engineering - 3.2.7b-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jan 16 2020 Hans de Goede - 3.2.7b-1 - New upstream release 3.2.7b From 41f17ceb0d6d16be52f3324abb71f37d55f19380 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 14:44:33 +0000 Subject: [PATCH 38/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index f83297b..42d519c 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7b -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -106,6 +106,9 @@ appstream-util validate-relax --nonet \ %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 3.2.7b-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jan 31 2020 Fedora Release Engineering - 3.2.7b-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 5ff91750d14521e876ee165f28b43c38dce6449b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 1 Aug 2020 09:44:13 +0000 Subject: [PATCH 39/61] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 42d519c..1208683 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7b -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -106,6 +106,10 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Aug 01 2020 Fedora Release Engineering - 3.2.7b-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 3.2.7b-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From b53197af76050ad3e4fe1f30a2e5f83e1949d249 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 9 Jan 2021 01:26:51 +0000 Subject: [PATCH 40/61] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- xfig.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xfig.spec b/xfig.spec index 1208683..4247faf 100644 --- a/xfig.spec +++ b/xfig.spec @@ -14,6 +14,7 @@ Source3: xfig.appdata.xml Patch0: xfig-3.2.5a-default-apps.patch Patch1: xfig-3.2.5-urwfonts.patch +BuildRequires: make BuildRequires: gcc libtool BuildRequires: transfig BuildRequires: libjpeg-devel From 008ef270d3c4559917c510d05f8612bd3ecd825e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 28 Jan 2021 00:03:41 +0000 Subject: [PATCH 41/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 4247faf..20d1761 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.7b -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Thu Jan 28 2021 Fedora Release Engineering - 3.2.7b-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Sat Aug 01 2020 Fedora Release Engineering - 3.2.7b-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From f80ca5035b3afb853c08e156b1ef9030e6b892ef Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 29 May 2021 18:18:19 +0200 Subject: [PATCH 42/61] New upstream release 3.2.8a --- .gitignore | 1 + sources | 2 +- xfig.spec | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 50b47b4..0658c35 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ xfig.3.2.5b.full.tar.gz /xfig-3.2.6a.tar.xz /xfig-3.2.7a.tar.xz /xfig-3.2.7b.tar.xz +/xfig-3.2.8a.tar.xz diff --git a/sources b/sources index 9193668..61d6748 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.7b.tar.xz) = f3396ebf8a5961909e58b05b60117fd7bbc8c24fabbd47f108eaea9586f4180af572faffe077b1a5dcbf669ebd69b1c2791f302c126dea62a44aa1592de66f73 +SHA512 (xfig-3.2.8a.tar.xz) = fe20378d7c6de980aa0df4728470cd31a50adff748ebf707e2419fb057a8c3692fc3798bb5bc67fcec87d13c5ed66be93adb66a15b6ccf6fa1381ee45156f35b SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig.spec b/xfig.spec index 20d1761..5368161 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.7b -Release: 5%{?dist} +Version: 3.2.8a +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat May 29 2021 Hans de Goede - 3.2.8a-1 +- New upstream release 3.2.8a + * Thu Jan 28 2021 Fedora Release Engineering - 3.2.7b-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 78629c1193b521a621376de369004180a281b339 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 21:35:16 +0000 Subject: [PATCH 43/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 5368161..dee7e9d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.8a -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 3.2.8a-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Sat May 29 2021 Hans de Goede - 3.2.8a-1 - New upstream release 3.2.8a From 633a28c1986146112eba4ee50fc8b85a0b1b3725 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 11 Oct 2021 13:25:55 +0200 Subject: [PATCH 44/61] New upstream release 3.2.8b --- .gitignore | 1 + sources | 2 +- xfig.spec | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0658c35..3db123b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ xfig.3.2.5b.full.tar.gz /xfig-3.2.7a.tar.xz /xfig-3.2.7b.tar.xz /xfig-3.2.8a.tar.xz +/xfig-3.2.8b.tar.xz diff --git a/sources b/sources index 61d6748..378a54c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.8a.tar.xz) = fe20378d7c6de980aa0df4728470cd31a50adff748ebf707e2419fb057a8c3692fc3798bb5bc67fcec87d13c5ed66be93adb66a15b6ccf6fa1381ee45156f35b +SHA512 (xfig-3.2.8b.tar.xz) = 5cc5e61977f97956baca77bf4bce09d0f47ea6fafb10055d0523f7cccd72d7af80e706daa62ae16df3fc54338b4f6cd4a6b71dc460311e65be749ec84fa662b3 SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig.spec b/xfig.spec index dee7e9d..9295339 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.8a -Release: 2%{?dist} +Version: 3.2.8b +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Oct 11 2021 Hans de Goede - 3.2.8b-1 +- New upstream release 3.2.8b + * Fri Jul 23 2021 Fedora Release Engineering - 3.2.8a-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From ef2d0fc262d007de3670ee3bb9b906e09a0b467d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jan 2022 05:07:07 +0000 Subject: [PATCH 45/61] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 9295339..7be6431 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.8b -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 22 2022 Fedora Release Engineering - 3.2.8b-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Mon Oct 11 2021 Hans de Goede - 3.2.8b-1 - New upstream release 3.2.8b From 919897a2ca07e45a48e616c35a333dc83e0c3f6b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 13:08:55 +0000 Subject: [PATCH 46/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 7be6431..b27ccdd 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.8b -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 3.2.8b-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Sat Jan 22 2022 Fedora Release Engineering - 3.2.8b-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From c584d6197b3178df0eb340ba7623a6f08adc9ba6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 07:29:05 +0000 Subject: [PATCH 47/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index b27ccdd..b52410f 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.8b -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 3.2.8b-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Jul 23 2022 Fedora Release Engineering - 3.2.8b-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 38531cf4fbebbb0f05c7fccbd1041b3489bff32d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 18:51:48 +0000 Subject: [PATCH 48/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index b52410f..d06145f 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.8b -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -107,6 +107,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 3.2.8b-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sat Jan 21 2023 Fedora Release Engineering - 3.2.8b-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From fe283148262e2e363d8740b855ccd012d6f8712e Mon Sep 17 00:00:00 2001 From: aarem Date: Sat, 26 Aug 2023 10:36:17 -0500 Subject: [PATCH 49/61] update xfig to upstream 3.2.9 --- .gitignore | 1 + sources | 2 +- xfig-3.2.5-urwfonts.patch | 79 ---------------------------------- xfig-3.2.5a-default-apps.patch | 23 ---------- xfig.spec | 12 +++--- 5 files changed, 8 insertions(+), 109 deletions(-) delete mode 100644 xfig-3.2.5-urwfonts.patch delete mode 100644 xfig-3.2.5a-default-apps.patch diff --git a/.gitignore b/.gitignore index 3db123b..c4eacca 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ xfig.3.2.5b.full.tar.gz /xfig-3.2.7b.tar.xz /xfig-3.2.8a.tar.xz /xfig-3.2.8b.tar.xz +/xfig-3.2.9.tar.xz diff --git a/sources b/sources index 378a54c..17e233c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.8b.tar.xz) = 5cc5e61977f97956baca77bf4bce09d0f47ea6fafb10055d0523f7cccd72d7af80e706daa62ae16df3fc54338b4f6cd4a6b71dc460311e65be749ec84fa662b3 +SHA512 (xfig-3.2.9.tar.xz) = ec33476ca4349cdc106ac2308c61f6ecd014bb7331a4fc3616c9f94b93bdc391ce9affe87139c70da88549449b45309d6d9ec78a1e8477450bda4bc370cbbc9a SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig-3.2.5-urwfonts.patch b/xfig-3.2.5-urwfonts.patch deleted file mode 100644 index 7a46ce3..0000000 --- a/xfig-3.2.5-urwfonts.patch +++ /dev/null @@ -1,79 +0,0 @@ ---- xfig.3.2.4/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 -+++ xfig-3.2.4/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 -@@ -22,41 +22,41 @@ - /* X11 font names */ - - struct _xfstruct x_fontinfo[NUM_FONTS] = { -- {"-*-times-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-times-medium-i-normal--", (struct xfont*) NULL}, -- {"-*-times-bold-r-normal--", (struct xfont*) NULL}, -- {"-*-times-bold-i-normal--", (struct xfont*) NULL}, -- {"-*-avantgarde-book-r-normal--", (struct xfont*) NULL}, -- {"-*-avantgarde-book-o-normal--", (struct xfont*) NULL}, -- {"-*-avantgarde-demi-r-normal--", (struct xfont*) NULL}, -- {"-*-avantgarde-demi-o-normal--", (struct xfont*) NULL}, -- {"-*-bookman-light-r-normal--", (struct xfont*) NULL}, -- {"-*-bookman-light-i-normal--", (struct xfont*) NULL}, -- {"-*-bookman-demi-r-normal--", (struct xfont*) NULL}, -- {"-*-bookman-demi-i-normal--", (struct xfont*) NULL}, -- {"-*-courier-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-courier-medium-o-normal--", (struct xfont*) NULL}, -- {"-*-courier-bold-r-normal--", (struct xfont*) NULL}, -- {"-*-courier-bold-o-normal--", (struct xfont*) NULL}, -- {"-*-helvetica-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-helvetica-medium-o-normal--", (struct xfont*) NULL}, -- {"-*-helvetica-bold-r-normal--", (struct xfont*) NULL}, -- {"-*-helvetica-bold-o-normal--", (struct xfont*) NULL}, -- {"-*-helvetica-medium-r-narrow--", (struct xfont*) NULL}, -- {"-*-helvetica-medium-o-narrow--", (struct xfont*) NULL}, -- {"-*-helvetica-bold-r-narrow--", (struct xfont*) NULL}, -- {"-*-helvetica-bold-o-narrow--", (struct xfont*) NULL}, -- {"-*-new century schoolbook-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-new century schoolbook-medium-i-normal--", (struct xfont*) NULL}, -- {"-*-new century schoolbook-bold-r-normal--", (struct xfont*) NULL}, -- {"-*-new century schoolbook-bold-i-normal--", (struct xfont*) NULL}, -- {"-*-palatino-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-palatino-medium-i-normal--", (struct xfont*) NULL}, -- {"-*-palatino-bold-r-normal--", (struct xfont*) NULL}, -- {"-*-palatino-bold-i-normal--", (struct xfont*) NULL}, -- {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, -- {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL}, -- {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL}, -+ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL}, -+ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL}, -+ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL}, -+ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL}, - }; - - /* Use the following font names for any font that doesn't exist in the table above. diff --git a/xfig-3.2.5a-default-apps.patch b/xfig-3.2.5a-default-apps.patch deleted file mode 100644 index 54ceef0..0000000 --- a/xfig-3.2.5a-default-apps.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -up xfig-3.2.6/app-defaults/Fig.in~ xfig-3.2.6/app-defaults/Fig.in ---- xfig-3.2.6/app-defaults/Fig.in~ 2016-07-23 23:12:46.000000000 +0200 -+++ xfig-3.2.6/app-defaults/Fig.in 2016-08-11 12:36:56.550555744 +0200 -@@ -10,6 +10,10 @@ Fig.version: @VERSION@ - - ! some sample settings you may want to change - -+! If the following resource is set to false, xfig will use metric units -+! by default. -+Fig.inches: false -+ - ! The following fixes a problem that some window managers have - ! with xfig continually resizing itself - -@@ -38,7 +38,7 @@ Fig.pdfviewer: xdg-open %f - ! Spell check program - put your favorite spelling check program here. - ! It must write the misspelled words to standard output. - --Fig.spellcheckcommand: spell %f -+Fig.spellcheckcommand: enchant -l %f - - ! delay before spinner automatically counts when pressed (milliseconds) - Fig.spinner_delay: 1000 diff --git a/xfig.spec b/xfig.spec index d06145f..041bcd9 100644 --- a/xfig.spec +++ b/xfig.spec @@ -2,8 +2,8 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.8b -Release: 5%{?dist} +Version: 3.2.9 +Release: 1%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -11,8 +11,8 @@ Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.appdata.xml -Patch0: xfig-3.2.5a-default-apps.patch -Patch1: xfig-3.2.5-urwfonts.patch +#Patch0: xfig-3.2.5a-default-apps.patch +#Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: make BuildRequires: gcc libtool @@ -107,8 +107,8 @@ appstream-util validate-relax --nonet \ %changelog -* Sat Jul 22 2023 Fedora Release Engineering - 3.2.8b-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild +* Sat Aug 26 2023 Ranjan Maitra - 3.2.9 +- New upstream release 3.2.9 * Sat Jan 21 2023 Fedora Release Engineering - 3.2.8b-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From bcfd9f7504022991b88a5fa1dbef4511036351cb Mon Sep 17 00:00:00 2001 From: aarem Date: Sat, 26 Aug 2023 10:50:04 -0500 Subject: [PATCH 50/61] update xfig to upstream 3.2.9 --- xfig.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xfig.spec b/xfig.spec index 041bcd9..8e29f6d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -22,6 +22,7 @@ BuildRequires: libpng-devel BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel +BuildRequires: libXft-devel BuildRequires: libXaw-devel BuildRequires: libXext-devel BuildRequires: libXi-devel From af2c7a84ee2ce7ee6f40ceb3307bc51a57f48dfd Mon Sep 17 00:00:00 2001 From: aarem Date: Sat, 26 Aug 2023 10:51:29 -0500 Subject: [PATCH 51/61] update xfig to upstream 3.2.9 --- xfig.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/xfig.spec b/xfig.spec index 041bcd9..8e29f6d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -22,6 +22,7 @@ BuildRequires: libpng-devel BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel +BuildRequires: libXft-devel BuildRequires: libXaw-devel BuildRequires: libXext-devel BuildRequires: libXi-devel From 63b5996609c7aae1ff50e42298dacca10541ef42 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 18 Jan 2024 16:38:48 +0900 Subject: [PATCH 52/61] Backport upstream patches for upstream 2 issues Fix exporting only active layers Sanitize a call to realloc (redhat #2252679) --- ...orting-only-active-layers-ticket-163.patch | 29 ++++++++++++ Sanitize-a-call-to-realloc-ticket-165.patch | 44 +++++++++++++++++++ xfig.spec | 16 ++++++- 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 Fix-exporting-only-active-layers-ticket-163.patch create mode 100644 Sanitize-a-call-to-realloc-ticket-165.patch diff --git a/Fix-exporting-only-active-layers-ticket-163.patch b/Fix-exporting-only-active-layers-ticket-163.patch new file mode 100644 index 0000000..dabc1c1 --- /dev/null +++ b/Fix-exporting-only-active-layers-ticket-163.patch @@ -0,0 +1,29 @@ +From a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c Mon Sep 17 00:00:00 2001 +From: Thomas Loimer +Date: Sun, 31 Dec 2023 22:51:29 +0100 +Subject: [PATCH] Fix exporting only active layers, ticket #163 + +--- + src/u_print.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/u_print.c b/src/u_print.c +index c24c096..57921b3 100644 +--- a/src/u_print.c ++++ b/src/u_print.c +@@ -861,10 +861,10 @@ build_layer_list(char *layers) + } + if (len < notlen && firstyes != -1) { + /* use list of layers TO print */ +- sprintf(layers," -D +%s ",list); ++ sprintf(layers, "+%s", list); + } else if (firstno != -1){ + /* use list of layers to NOT print */ +- sprintf(layers," -D -%s ",notlist); ++ sprintf(layers, "-%s", notlist); + } + } + +-- +2.39.2 + diff --git a/Sanitize-a-call-to-realloc-ticket-165.patch b/Sanitize-a-call-to-realloc-ticket-165.patch new file mode 100644 index 0000000..94b8246 --- /dev/null +++ b/Sanitize-a-call-to-realloc-ticket-165.patch @@ -0,0 +1,44 @@ +From 68403622a6f6c7d74f73e38989cfc0ed86fb83fc Mon Sep 17 00:00:00 2001 +From: Thomas Loimer +Date: Sun, 31 Dec 2023 15:18:45 +0100 +Subject: [PATCH] Sanitize a call to realloc(), ticket #165 + +--- + src/u_print.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/u_print.c b/src/u_print.c +index 2ed385f..c24c096 100644 +--- a/src/u_print.c ++++ b/src/u_print.c +@@ -130,7 +130,7 @@ start_argumentlist(char *arg[restrict], char argbuf[restrict][ARGBUF_SIZE], + arg[0] = fig2dev_cmd; + arg[1] = "-L"; + *a = 2; /* arg[2] will be the output language */ +- if (appres.magnification < 99.99 | appres.magnification > 100.01) { ++ if (appres.magnification < 99.99 || appres.magnification > 100.01) { + int n; + arg[++*a] = "-m"; + n = snprintf(argbuf[++*b], ARGBUF_SIZE, +@@ -531,6 +531,7 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent, + } else if (cur_exp_lang == LANG_PSTEX || + cur_exp_lang == LANG_PDFTEX) { + size_t len = strlen(outfile); ++ char *s; + + /* Options were already set above + - output the first file */ +@@ -544,8 +545,9 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent, + goto free_outfile; + } + memcpy(tmp_name, outfile, len + 1); +- if (!realloc(outfile, len + 3)) { ++ if (!(outfile = realloc(s = outfile, len + 3))) { + ret = 1; ++ outfile = s; /* for free(outfile) below */ + goto free_tmp_name; + } + strcpy(outfile + len, "_t"); +-- +2.39.2 + diff --git a/xfig.spec b/xfig.spec index 8e29f6d..35b688f 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,13 +3,20 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz Source1: xfig-icons.tar.gz Source2: xfig.desktop Source3: xfig.appdata.xml +# https://sourceforge.net/p/mcj/tickets/165/ +# https://bugzilla.redhat.com/show_bug.cgi?id=2252679 +# https://sourceforge.net/p/mcj/xfig/ci/68403622a6f6c7d74f73e38989cfc0ed86fb83fc/ +Patch0: Sanitize-a-call-to-realloc-ticket-165.patch +# https://sourceforge.net/p/mcj/tickets/163/ +# https://sourceforge.net/p/mcj/xfig/ci/a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c/ +Patch1: Fix-exporting-only-active-layers-ticket-163.patch #Patch0: xfig-3.2.5a-default-apps.patch #Patch1: xfig-3.2.5-urwfonts.patch @@ -108,7 +115,12 @@ appstream-util validate-relax --nonet \ %changelog -* Sat Aug 26 2023 Ranjan Maitra - 3.2.9 +* Thu Jan 18 2024 Mamoru TASAKA - 3.2.9-2 +- Backport upstream patches for upstream 2 issues + - Fix exporting only active layers + - Sanitize a call to realloc (redhat #2252679) + +* Sat Aug 26 2023 Ranjan Maitra - 3.2.9-1 - New upstream release 3.2.9 * Sat Jan 21 2023 Fedora Release Engineering - 3.2.8b-4 From 86a92e5fa20da5489239c029accc5bee68f1b156 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 09:42:42 +0000 Subject: [PATCH 53/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 35b688f..506d57e 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -115,6 +115,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 3.2.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jan 18 2024 Mamoru TASAKA - 3.2.9-2 - Backport upstream patches for upstream 2 issues - Fix exporting only active layers From ed4f129aa602ae06fcf84c3cbb56d970ab3ce8ae Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 26 Feb 2024 13:20:50 +0100 Subject: [PATCH 54/61] Fix missing Dingbats and Symbol glyphs Resolves: rhbz#2260359 --- ...ingbat-glyphs-to-their-unicode-locat.patch | 644 ++++++++++++++++++ xfig.spec | 11 +- 2 files changed, 653 insertions(+), 2 deletions(-) create mode 100644 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch diff --git a/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch b/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch new file mode 100644 index 0000000..cc47580 --- /dev/null +++ b/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch @@ -0,0 +1,644 @@ +From 1e2d842875502b4ce0e74ec779454304c71efe54 Mon Sep 17 00:00:00 2001 +From: "Dr. Werner Fink" +Date: Sat, 30 Sep 2023 23:10:46 +0200 +Subject: [PATCH] Map symbol and dingbat glyphs to their unicode locations + +Under suse, symbol and dingbat glyphs are not displayed without +remapping to their correct unicode code points. Based on the +mappings defined in +usr/share/fonts/encodings/adobe-dingbats.enc.gz and +/usr/share/fonts/encodings/adobe-symbol.enc.gz. +Also include some aliases for these two fonts. +Under archlinux and debian, these mappings were not necessary, but +do not seem to do any harm. +--- + src/u_fonts.c | 500 ++++++++++++++++++++++++++++++++++++++++++++++- + src/u_fonts.h | 11 ++ + src/w_drawprim.c | 17 +- + 3 files changed, 516 insertions(+), 12 deletions(-) + +diff --git a/src/u_fonts.c b/src/u_fonts.c +index b29d0ea..5e454eb 100644 +--- a/src/u_fonts.c ++++ b/src/u_fonts.c +@@ -124,9 +124,9 @@ const char *const xft_name[NUM_FONTS] = { + "palatino:italic", /* Palatino-Italic */ + "palatino:bold", /* Palatino-Bold */ + "palatino:bold:italic", /* Palatino-BoldItalic */ +- "symbol", /* Symbol */ ++ "symbol,StandardSymbolsPS,StandardSymbolsL", /* Symbol */ + "zapfchancery:medium:italic", /* ZapfChancery-MediumItalic */ +- "zapfdingbats" /* ZapfDingbats */ ++ "zapfdingbats,ITCZapfDingbats,Dingbats,D050000L" /* ZapfDingbats */ + }; + + +@@ -307,6 +307,7 @@ textextents(F_text *t) + { + XGlyphInfo extents; + XftFont *rotfont; ++ map_f map = NULL; + int len = (int)strlen(t->cstring); + + /* shortcut, nothing to do for an empty string */ +@@ -325,8 +326,20 @@ textextents(F_text *t) + /* Get the font at native Fig resolution (often, 1200 ppi) */ + rotfont = getfont(psfont_text(t), t->font, t->size * ZOOM_FACTOR, + (double)t->angle); +- XftTextExtentsUtf8(tool_d, rotfont, (XftChar8 *)t->cstring, len, +- &extents); ++ if ((map = adobe_charset(rotfont))) { ++ XftChar32 glyphs[len], *glyph; ++ XftChar8 *s = (XftChar8 *)t->cstring; ++ int glen = 0; ++ ++ for (XftChar8 *chr = s; chr < s+len; chr++) { ++ XftChar32 glyph = XftCharIndex(tool_d, rotfont, map(*chr)); ++ if (glyph) ++ glyphs[glen++] = glyph; ++ } ++ XftGlyphExtents(tool_d, rotfont, glyphs, glen, &extents); ++ } else ++ XftTextExtentsUtf8(tool_d, rotfont, (XftChar8 *)t->cstring, len, ++ &extents); + /* libxft keeps the last 16, closed fonts in cache. + Hence, no need to keep rotfont open, in our own cache. */ + closefont(rotfont); +@@ -409,13 +422,27 @@ textextents(F_text *t) + } else { + /* a font at an angle */ + XftFont *horfont; ++ map_f map = NULL; + double cosa, sina; + struct f_pos tl, bl, tr, br; + + horfont = getfont(psfont_text(t), t->font, + t->size * ZOOM_FACTOR, 0.0); +- XftTextExtentsUtf8(tool_d, horfont, (XftChar8 *)t->cstring, len, +- &extents); ++ if ((map = adobe_charset(horfont))) { ++ XftChar32 glyphs[len], *glyph; ++ XftChar8 *s = (XftChar8 *)t->cstring; ++ int glen = 0; ++ ++ for (XftChar8 *chr = s; chr < s+len; chr++) { ++ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); ++ if (glyph) ++ glyphs[glen++] = glyph; ++ } ++ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); ++ } else { ++ XftTextExtentsUtf8(tool_d, horfont, (XftChar8 *)t->cstring, ++ len, &extents); ++ } + /* See above, libxft keeps a cache of 16 closed fonts. */ + closefont(horfont); + +@@ -453,11 +480,25 @@ int + textlength(XftFont *horfont, XftChar8 *string, int len) + { + XGlyphInfo extents; ++ map_f map = NULL; + + if (len == 0) + return 0; + +- XftTextExtentsUtf8(tool_d, horfont, string, len, &extents); ++ if ((map = adobe_charset(horfont))) { ++ XftChar32 glyphs[len], *glyph; ++ XftChar8 *chr, *s = string; ++ int glen = 0; ++ ++ for (XftChar8 *chr = s; chr < s+len; chr++) { ++ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); ++ if (glyph) ++ glyphs[glen++] = glyph; ++ } ++ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); ++ } else { ++ XftTextExtentsUtf8(tool_d, horfont, string, len, &extents); ++ } + return (int)extents.xOff; + } + +@@ -473,16 +514,30 @@ textmaxheight(int psflag, int font, int size, int *ascent, int *descent) + XGlyphInfo extents; + XftFont *horfont; + XftChar8 max_height_str[] = "{|(fgjOÜ"; ++ map_f map = NULL; ++ size_t len = sizeof(max_height_str); + + horfont = getfont(psflag, font, size * ZOOM_FACTOR, 0.0); +- XftTextExtentsUtf8(tool_d, horfont, max_height_str, +- (int)sizeof(max_height_str), &extents); ++ if ((map = adobe_charset(horfont))) { ++ XftChar32 glyphs[len], *glyph; ++ XftChar8 *s = max_height_str; ++ int glen = 0; ++ ++ for (XftChar8 *chr = s; chr < s+len; chr++) { ++ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); ++ if (glyph) ++ glyphs[glen++] = glyph; ++ } ++ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); ++ } else { ++ XftTextExtentsUtf8(tool_d, horfont, max_height_str, ++ (int)len, &extents); ++ } + closefont(horfont); + *ascent = extents.y; + *descent = extents.height - extents.y; + } + +- + /* + * Return the drawing origin, given the marker position (base_x, base_y) + * and the alignment. +@@ -510,3 +565,428 @@ text_origin(int *draw_x, int *draw_y, int base_x, int base_y, int align, + break; + } + } ++/* ++ * Unicode mapping found in ++ * /usr/share/fonts/encodings/adobe-dingbats.enc.gz ++ */ ++XftChar32 map_dingbats(XftChar8 in) ++{ ++ switch (in) { ++ case 0x20: return 0x0020; /* SPACE */ ++ case 0x21: return 0x2701; /* UPPER BLADE SCISSORS */ ++ case 0x22: return 0x2702; /* BLACK SCISSORS */ ++ case 0x23: return 0x2703; /* LOWER BLADE SCISSORS */ ++ case 0x24: return 0x2704; /* WHITE SCISSORS */ ++ case 0x25: return 0x260E; /* BLACK TELEPHONE */ ++ case 0x26: return 0x2706; /* TELEPHONE LOCATION SIGN */ ++ case 0x27: return 0x2707; /* TAPE DRIVE */ ++ case 0x28: return 0x2708; /* AIRPLANE */ ++ case 0x29: return 0x2709; /* ENVELOPE */ ++ case 0x2A: return 0x261B; /* BLACK RIGHT POINTING INDEX */ ++ case 0x2B: return 0x261E; /* WHITE RIGHT POINTING INDEX */ ++ case 0x2C: return 0x270C; /* VICTORY HAND */ ++ case 0x2D: return 0x270D; /* WRITING HAND */ ++ case 0x2E: return 0x270E; /* LOWER RIGHT PENCIL */ ++ case 0x2F: return 0x270F; /* PENCIL */ ++ case 0x30: return 0x2710; /* UPPER RIGHT PENCIL */ ++ case 0x31: return 0x2711; /* WHITE NIB */ ++ case 0x32: return 0x2712; /* BLACK NIB */ ++ case 0x33: return 0x2713; /* CHECK MARK */ ++ case 0x34: return 0x2714; /* HEAVY CHECK MARK */ ++ case 0x35: return 0x2715; /* MULTIPLICATION X */ ++ case 0x36: return 0x2716; /* HEAVY MULTIPLICATION X */ ++ case 0x37: return 0x2717; /* BALLOT X */ ++ case 0x38: return 0x2718; /* HEAVY BALLOT X */ ++ case 0x39: return 0x2719; /* OUTLINED GREEK CROSS */ ++ case 0x3A: return 0x271A; /* HEAVY GREEK CROSS */ ++ case 0x3B: return 0x271B; /* OPEN CENTRE CROSS */ ++ case 0x3C: return 0x271C; /* HEAVY OPEN CENTRE CROSS */ ++ case 0x3D: return 0x271D; /* LATIN CROSS */ ++ case 0x3E: return 0x271E; /* SHADOWED WHITE LATIN CROSS */ ++ case 0x3F: return 0x271F; /* OUTLINED LATIN CROSS */ ++ case 0x40: return 0x2720; /* MALTESE CROSS */ ++ case 0x41: return 0x2721; /* STAR OF DAVID */ ++ case 0x42: return 0x2722; /* FOUR TEARDROP-SPOKED ASTERISK */ ++ case 0x43: return 0x2723; /* FOUR BALLOON-SPOKED ASTERISK */ ++ case 0x44: return 0x2724; /* HEAVY FOUR BALLOON-SPOKED ASTERISK */ ++ case 0x45: return 0x2725; /* FOUR CLUB-SPOKED ASTERISK */ ++ case 0x46: return 0x2726; /* BLACK FOUR POINTED STAR */ ++ case 0x47: return 0x2727; /* WHITE FOUR POINTED STAR */ ++ case 0x48: return 0x2605; /* BLACK STAR */ ++ case 0x49: return 0x2729; /* STRESS OUTLINED WHITE STAR */ ++ case 0x4A: return 0x272A; /* CIRCLED WHITE STAR */ ++ case 0x4B: return 0x272B; /* OPEN CENTRE BLACK STAR */ ++ case 0x4C: return 0x272C; /* BLACK CENTRE WHITE STAR */ ++ case 0x4D: return 0x272D; /* OUTLINED BLACK STAR */ ++ case 0x4E: return 0x272E; /* HEAVY OUTLINED BLACK STAR */ ++ case 0x4F: return 0x272F; /* PINWHEEL STAR */ ++ case 0x50: return 0x2730; /* SHADOWED WHITE STAR */ ++ case 0x51: return 0x2731; /* HEAVY ASTERISK */ ++ case 0x52: return 0x2732; /* OPEN CENTRE ASTERISK */ ++ case 0x53: return 0x2733; /* EIGHT SPOKED ASTERISK */ ++ case 0x54: return 0x2734; /* EIGHT POINTED BLACK STAR */ ++ case 0x55: return 0x2735; /* EIGHT POINTED PINWHEEL STAR */ ++ case 0x56: return 0x2736; /* SIX POINTED BLACK STAR */ ++ case 0x57: return 0x2737; /* EIGHT POINTED RECTILINEAR BLACK STAR */ ++ case 0x58: return 0x2738; /* HEAVY EIGHT POINTED RECTILINEAR BLACK STAR */ ++ case 0x59: return 0x2739; /* TWELVE POINTED BLACK STAR */ ++ case 0x5A: return 0x273A; /* SIXTEEN POINTED ASTERISK */ ++ case 0x5B: return 0x273B; /* TEARDROP-SPOKED ASTERISK */ ++ case 0x5C: return 0x273C; /* OPEN CENTRE TEARDROP-SPOKED ASTERISK */ ++ case 0x5D: return 0x273D; /* HEAVY TEARDROP-SPOKED ASTERISK */ ++ case 0x5E: return 0x273E; /* SIX PETALLED BLACK AND WHITE FLORETTE */ ++ case 0x5F: return 0x273F; /* BLACK FLORETTE */ ++ case 0x60: return 0x2740; /* WHITE FLORETTE */ ++ case 0x61: return 0x2741; /* EIGHT PETALLED OUTLINED BLACK FLORETTE */ ++ case 0x62: return 0x2742; /* CIRCLED OPEN CENTRE EIGHT POINTED STAR */ ++ case 0x63: return 0x2743; /* HEAVY TEARDROP-SPOKED PINWHEEL ASTERISK */ ++ case 0x64: return 0x2744; /* SNOWFLAKE */ ++ case 0x65: return 0x2745; /* TIGHT TRIFOLIATE SNOWFLAKE */ ++ case 0x66: return 0x2746; /* HEAVY CHEVRON SNOWFLAKE */ ++ case 0x67: return 0x2747; /* SPARKLE */ ++ case 0x68: return 0x2748; /* HEAVY SPARKLE */ ++ case 0x69: return 0x2749; /* BALLOON-SPOKED ASTERISK */ ++ case 0x6A: return 0x274A; /* EIGHT TEARDROP-SPOKED PROPELLER ASTERISK */ ++ case 0x6B: return 0x274B; /* HEAVY EIGHT TEARDROP-SPOKED PROPELLER ASTERISK */ ++ case 0x6C: return 0x25CF; /* BLACK CIRCLE */ ++ case 0x6D: return 0x274D; /* SHADOWED WHITE CIRCLE */ ++ case 0x6E: return 0x25A0; /* BLACK SQUARE */ ++ case 0x6F: return 0x274F; /* LOWER RIGHT DROP-SHADOWED WHITE SQUARE */ ++ case 0x70: return 0x2750; /* UPPER RIGHT DROP-SHADOWED WHITE SQUARE */ ++ case 0x71: return 0x2751; /* LOWER RIGHT SHADOWED WHITE SQUARE */ ++ case 0x72: return 0x2752; /* UPPER RIGHT SHADOWED WHITE SQUARE */ ++ case 0x73: return 0x25B2; /* BLACK UP-POINTING TRIANGLE */ ++ case 0x74: return 0x25BC; /* BLACK DOWN-POINTING TRIANGLE */ ++ case 0x75: return 0x25C6; /* BLACK DIAMOND */ ++ case 0x76: return 0x2756; /* BLACK DIAMOND MINUS WHITE X */ ++ case 0x77: return 0x25D7; /* RIGHT HALF BLACK CIRCLE */ ++ case 0x78: return 0x2758; /* LIGHT VERTICAL BAR */ ++ case 0x79: return 0x2759; /* MEDIUM VERTICAL BAR */ ++ case 0x7A: return 0x275A; /* HEAVY VERTICAL BAR */ ++ case 0x7B: return 0x275B; /* HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT */ ++ case 0x7C: return 0x275C; /* HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT */ ++ case 0x7D: return 0x275D; /* HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT */ ++ case 0x7E: return 0x275E; /* HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT */ ++ case 0x80: return 0xF8D7; /* MEDIUM LEFT PARENTHESIS ORNAMENT */ ++ case 0x81: return 0xF8D8; /* MEDIUM RIGHT PARENTHESIS ORNAMENT */ ++ case 0x82: return 0xF8D9; /* MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT */ ++ case 0x83: return 0xF8DA; /* MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT */ ++ case 0x84: return 0xF8DB; /* MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT */ ++ case 0x85: return 0xF8DC; /* MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT */ ++ case 0x86: return 0xF8DD; /* HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT */ ++ case 0x87: return 0xF8DE; /* HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT */ ++ case 0x88: return 0xF8DF; /* HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT */ ++ case 0x89: return 0xF8E0; /* HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT */ ++ case 0x8A: return 0xF8E1; /* LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT */ ++ case 0x8B: return 0xF8E2; /* LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT */ ++ case 0x8C: return 0xF8E3; /* MEDIUM LEFT CURLY BRACKET ORNAMENT */ ++ case 0x8D: return 0xF8E4; /* MEDIUM RIGHT CURLY BRACKET ORNAMENT */ ++ case 0xA1: return 0x2761; /* CURVED STEM PARAGRAPH SIGN ORNAMENT */ ++ case 0xA2: return 0x2762; /* HEAVY EXCLAMATION MARK ORNAMENT */ ++ case 0xA3: return 0x2763; /* HEAVY HEART EXCLAMATION MARK ORNAMENT */ ++ case 0xA4: return 0x2764; /* HEAVY BLACK HEART */ ++ case 0xA5: return 0x2765; /* ROTATED HEAVY BLACK HEART BULLET */ ++ case 0xA6: return 0x2766; /* FLORAL HEART */ ++ case 0xA7: return 0x2767; /* ROTATED FLORAL HEART BULLET */ ++ case 0xA8: return 0x2663; /* BLACK CLUB SUIT */ ++ case 0xA9: return 0x2666; /* BLACK DIAMOND SUIT */ ++ case 0xAA: return 0x2665; /* BLACK HEART SUIT */ ++ case 0xAB: return 0x2660; /* BLACK SPADE SUIT */ ++ case 0xAC: return 0x2460; /* CIRCLED DIGIT ONE */ ++ case 0xAD: return 0x2461; /* CIRCLED DIGIT TWO */ ++ case 0xAE: return 0x2462; /* CIRCLED DIGIT THREE */ ++ case 0xAF: return 0x2463; /* CIRCLED DIGIT FOUR */ ++ case 0xB0: return 0x2464; /* CIRCLED DIGIT FIVE */ ++ case 0xB1: return 0x2465; /* CIRCLED DIGIT SIX */ ++ case 0xB2: return 0x2466; /* CIRCLED DIGIT SEVEN */ ++ case 0xB3: return 0x2467; /* CIRCLED DIGIT EIGHT */ ++ case 0xB4: return 0x2468; /* CIRCLED DIGIT NINE */ ++ case 0xB5: return 0x2469; /* CIRCLED NUMBER TEN */ ++ case 0xB6: return 0x2776; /* DINGBAT NEGATIVE CIRCLED DIGIT ONE */ ++ case 0xB7: return 0x2777; /* DINGBAT NEGATIVE CIRCLED DIGIT TWO */ ++ case 0xB8: return 0x2778; /* DINGBAT NEGATIVE CIRCLED DIGIT THREE */ ++ case 0xB9: return 0x2779; /* DINGBAT NEGATIVE CIRCLED DIGIT FOUR */ ++ case 0xBA: return 0x277A; /* DINGBAT NEGATIVE CIRCLED DIGIT FIVE */ ++ case 0xBB: return 0x277B; /* DINGBAT NEGATIVE CIRCLED DIGIT SIX */ ++ case 0xBC: return 0x277C; /* DINGBAT NEGATIVE CIRCLED DIGIT SEVEN */ ++ case 0xBD: return 0x277D; /* DINGBAT NEGATIVE CIRCLED DIGIT EIGHT */ ++ case 0xBE: return 0x277E; /* DINGBAT NEGATIVE CIRCLED DIGIT NINE */ ++ case 0xBF: return 0x277F; /* DINGBAT NEGATIVE CIRCLED NUMBER TEN */ ++ case 0xC0: return 0x2780; /* DINGBAT CIRCLED SANS-SERIF DIGIT ONE */ ++ case 0xC1: return 0x2781; /* DINGBAT CIRCLED SANS-SERIF DIGIT TWO */ ++ case 0xC2: return 0x2782; /* DINGBAT CIRCLED SANS-SERIF DIGIT THREE */ ++ case 0xC3: return 0x2783; /* DINGBAT CIRCLED SANS-SERIF DIGIT FOUR */ ++ case 0xC4: return 0x2784; /* DINGBAT CIRCLED SANS-SERIF DIGIT FIVE */ ++ case 0xC5: return 0x2785; /* DINGBAT CIRCLED SANS-SERIF DIGIT SIX */ ++ case 0xC6: return 0x2786; /* DINGBAT CIRCLED SANS-SERIF DIGIT SEVEN */ ++ case 0xC7: return 0x2787; /* DINGBAT CIRCLED SANS-SERIF DIGIT EIGHT */ ++ case 0xC8: return 0x2788; /* DINGBAT CIRCLED SANS-SERIF DIGIT NINE */ ++ case 0xC9: return 0x2789; /* DINGBAT CIRCLED SANS-SERIF NUMBER TEN */ ++ case 0xCA: return 0x278A; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE */ ++ case 0xCB: return 0x278B; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT TWO */ ++ case 0xCC: return 0x278C; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT THREE */ ++ case 0xCD: return 0x278D; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FOUR */ ++ case 0xCE: return 0x278E; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FIVE */ ++ case 0xCF: return 0x278F; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SIX */ ++ case 0xD0: return 0x2790; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SEVEN */ ++ case 0xD1: return 0x2791; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT EIGHT */ ++ case 0xD2: return 0x2792; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT NINE */ ++ case 0xD3: return 0x2793; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF NUMBER TEN */ ++ case 0xD4: return 0x2794; /* HEAVY WIDE-HEADED RIGHTWARDS ARROW */ ++ case 0xD5: return 0x2192; /* RIGHTWARDS ARROW */ ++ case 0xD6: return 0x2194; /* LEFT RIGHT ARROW */ ++ case 0xD7: return 0x2195; /* UP DOWN ARROW */ ++ case 0xD8: return 0x2798; /* HEAVY SOUTH EAST ARROW */ ++ case 0xD9: return 0x2799; /* HEAVY RIGHTWARDS ARROW */ ++ case 0xDA: return 0x279A; /* HEAVY NORTH EAST ARROW */ ++ case 0xDB: return 0x279B; /* DRAFTING POINT RIGHTWARDS ARROW */ ++ case 0xDC: return 0x279C; /* HEAVY ROUND-TIPPED RIGHTWARDS ARROW */ ++ case 0xDD: return 0x279D; /* TRIANGLE-HEADED RIGHTWARDS ARROW */ ++ case 0xDE: return 0x279E; /* HEAVY TRIANGLE-HEADED RIGHTWARDS ARROW */ ++ case 0xDF: return 0x279F; /* DASHED TRIANGLE-HEADED RIGHTWARDS ARROW */ ++ case 0xE0: return 0x27A0; /* HEAVY DASHED TRIANGLE-HEADED RIGHTWARDS ARROW */ ++ case 0xE1: return 0x27A1; /* BLACK RIGHTWARDS ARROW */ ++ case 0xE2: return 0x27A2; /* THREE-D TOP-LIGHTED RIGHTWARDS ARROWHEAD */ ++ case 0xE3: return 0x27A3; /* THREE-D BOTTOM-LIGHTED RIGHTWARDS ARROWHEAD */ ++ case 0xE4: return 0x27A4; /* BLACK RIGHTWARDS ARROWHEAD */ ++ case 0xE5: return 0x27A5; /* HEAVY BLACK CURVED DOWNWARDS AND RIGHTWARDS ARROW */ ++ case 0xE6: return 0x27A6; /* HEAVY BLACK CURVED UPWARDS AND RIGHTWARDS ARROW */ ++ case 0xE7: return 0x27A7; /* SQUAT BLACK RIGHTWARDS ARROW */ ++ case 0xE8: return 0x27A8; /* HEAVY CONCAVE-POINTED BLACK RIGHTWARDS ARROW */ ++ case 0xE9: return 0x27A9; /* RIGHT-SHADED WHITE RIGHTWARDS ARROW */ ++ case 0xEA: return 0x27AA; /* LEFT-SHADED WHITE RIGHTWARDS ARROW */ ++ case 0xEB: return 0x27AB; /* BACK-TILTED SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xEC: return 0x27AC; /* FRONT-TILTED SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xED: return 0x27AD; /* HEAVY LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xEE: return 0x27AE; /* HEAVY UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xEF: return 0x27AF; /* NOTCHED LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xF1: return 0x27B1; /* NOTCHED UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ ++ case 0xF2: return 0x27B2; /* CIRCLED HEAVY WHITE RIGHTWARDS ARROW */ ++ case 0xF3: return 0x27B3; /* WHITE-FEATHERED RIGHTWARDS ARROW */ ++ case 0xF4: return 0x27B4; /* BLACK-FEATHERED SOUTH EAST ARROW */ ++ case 0xF5: return 0x27B5; /* BLACK-FEATHERED RIGHTWARDS ARROW */ ++ case 0xF6: return 0x27B6; /* BLACK-FEATHERED NORTH EAST ARROW */ ++ case 0xF7: return 0x27B7; /* HEAVY BLACK-FEATHERED SOUTH EAST ARROW */ ++ case 0xF8: return 0x27B8; /* HEAVY BLACK-FEATHERED RIGHTWARDS ARROW */ ++ case 0xF9: return 0x27B9; /* HEAVY BLACK-FEATHERED NORTH EAST ARROW */ ++ case 0xFA: return 0x27BA; /* TEARDROP-BARBED RIGHTWARDS ARROW */ ++ case 0xFB: return 0x27BB; /* HEAVY TEARDROP-SHANKED RIGHTWARDS ARROW */ ++ case 0xFC: return 0x27BC; /* WEDGE-TAILED RIGHTWARDS ARROW */ ++ case 0xFD: return 0x27BD; /* HEAVY WEDGE-TAILED RIGHTWARDS ARROW */ ++ case 0xFE: return 0x27BE; /* OPEN-OUTLINED RIGHTWARDS ARROW */ ++ default: return 0x0000; ++ } ++}; ++ ++/* ++ * Unicode mapping found in ++ * /usr/share/fonts/encodings/adobe-symbol.enc.gz ++ * Duplicates are disabled ++ */ ++XftChar32 map_symbols(XftChar8 in) ++{ ++ switch(in) { ++ case 0x20: return 0x0020; /* SPACE */ ++ case 0x21: return 0x0021; /* EXCLAMATION MARK */ ++ case 0x23: return 0x0023; /* NUMBER SIGN */ ++ case 0x25: return 0x0025; /* PERCENT SIGN */ ++ case 0x26: return 0x0026; /* AMPERSAND */ ++ case 0x28: return 0x0028; /* OPENING PARENTHESIS */ ++ case 0x29: return 0x0029; /* CLOSING PARENTHESIS */ ++ case 0x2B: return 0x002B; /* PLUS SIGN */ ++ case 0x2C: return 0x002C; /* COMMA */ ++ case 0x2E: return 0x002E; /* PERIOD */ ++ case 0x2F: return 0x002F; /* SLASH */ ++ case 0x30: return 0x0030; /* DIGIT ZERO */ ++ case 0x31: return 0x0031; /* DIGIT ONE */ ++ case 0x32: return 0x0032; /* DIGIT TWO */ ++ case 0x33: return 0x0033; /* DIGIT THREE */ ++ case 0x34: return 0x0034; /* DIGIT FOUR */ ++ case 0x35: return 0x0035; /* DIGIT FIVE */ ++ case 0x36: return 0x0036; /* DIGIT SIX */ ++ case 0x37: return 0x0037; /* DIGIT SEVEN */ ++ case 0x38: return 0x0038; /* DIGIT EIGHT */ ++ case 0x39: return 0x0039; /* DIGIT NINE */ ++ case 0x3A: return 0x003A; /* COLON */ ++ case 0x3B: return 0x003B; /* SEMICOLON */ ++ case 0x3C: return 0x003C; /* LESS-THAN SIGN */ ++ case 0x3D: return 0x003D; /* EQUALS SIGN */ ++ case 0x3E: return 0x003E; /* GREATER-THAN SIGN */ ++ case 0x3F: return 0x003F; /* QUESTION MARK */ ++ case 0x5B: return 0x005B; /* OPENING SQUARE BRACKET */ ++ case 0x5D: return 0x005D; /* CLOSING SQUARE BRACKET */ ++ case 0x5F: return 0x005F; /* SPACING UNDERSCORE */ ++ case 0x7B: return 0x007B; /* OPENING CURLY BRACKET */ ++ case 0x7C: return 0x007C; /* VERTICAL BAR */ ++ case 0x7D: return 0x007D; /* CLOSING CURLY BRACKET */ ++ case 0xD3: return 0x00A9; /* COPYRIGHT SIGN */ ++ case 0xE3: return 0x00A9; /* COPYRIGHT SIGN */ ++ case 0xD8: return 0x00AC; /* NOT SIGN */ ++ case 0xD2: return 0x00AE; /* REGISTERED TRADE MARK SIGN */ ++ case 0xE2: return 0x00AE; /* REGISTERED TRADE MARK SIGN */ ++ case 0xB0: return 0x00B0; /* DEGREE SIGN */ ++ case 0xB1: return 0x00B1; /* PLUS-OR-MINUS SIGN */ ++ case 0xB4: return 0x00D7; /* MULTIPLICATION SIGN */ ++ case 0xB8: return 0x00F7; /* DIVISION SIGN */ ++ case 0xA6: return 0x0192; /* LATIN SMALL LETTER SCRIPT F */ ++ case 0x41: return 0x0391; /* GREEK CAPITAL LETTER ALPHA */ ++ case 0x42: return 0x0392; /* GREEK CAPITAL LETTER BETA */ ++ case 0x47: return 0x0393; /* GREEK CAPITAL LETTER GAMMA */ ++ case 0x44: return 0x0394; /* GREEK CAPITAL LETTER DELTA */ ++ case 0x45: return 0x0395; /* GREEK CAPITAL LETTER EPSILON */ ++ case 0x5A: return 0x0396; /* GREEK CAPITAL LETTER ZETA */ ++ case 0x48: return 0x0397; /* GREEK CAPITAL LETTER ETA */ ++ case 0x51: return 0x0398; /* GREEK CAPITAL LETTER THETA */ ++ case 0x49: return 0x0399; /* GREEK CAPITAL LETTER IOTA */ ++ case 0x4B: return 0x039A; /* GREEK CAPITAL LETTER KAPPA */ ++ case 0x4C: return 0x039B; /* GREEK CAPITAL LETTER LAMBDA */ ++ case 0x4D: return 0x039C; /* GREEK CAPITAL LETTER MU */ ++ case 0x4E: return 0x039D; /* GREEK CAPITAL LETTER NU */ ++ case 0x58: return 0x039E; /* GREEK CAPITAL LETTER XI */ ++ case 0x4F: return 0x039F; /* GREEK CAPITAL LETTER OMICRON */ ++ case 0x50: return 0x03A0; /* GREEK CAPITAL LETTER PI */ ++ case 0x52: return 0x03A1; /* GREEK CAPITAL LETTER RHO */ ++ case 0x53: return 0x03A3; /* GREEK CAPITAL LETTER SIGMA */ ++ case 0x54: return 0x03A4; /* GREEK CAPITAL LETTER TAU */ ++ case 0x55: return 0x03A5; /* GREEK CAPITAL LETTER UPSILON */ ++ case 0x46: return 0x03A6; /* GREEK CAPITAL LETTER PHI */ ++ case 0x43: return 0x03A7; /* GREEK CAPITAL LETTER CHI */ ++ case 0x59: return 0x03A8; /* GREEK CAPITAL LETTER PSI */ ++ case 0x57: return 0x03A9; /* GREEK CAPITAL LETTER OMEGA */ ++ case 0x61: return 0x03B1; /* GREEK SMALL LETTER ALPHA */ ++ case 0x62: return 0x03B2; /* GREEK SMALL LETTER BETA */ ++ case 0x67: return 0x03B3; /* GREEK SMALL LETTER GAMMA */ ++ case 0x64: return 0x03B4; /* GREEK SMALL LETTER DELTA */ ++ case 0x65: return 0x03B5; /* GREEK SMALL LETTER EPSILON */ ++ case 0x7A: return 0x03B6; /* GREEK SMALL LETTER ZETA */ ++ case 0x68: return 0x03B7; /* GREEK SMALL LETTER ETA */ ++ case 0x71: return 0x03B8; /* GREEK SMALL LETTER THETA */ ++ case 0x69: return 0x03B9; /* GREEK SMALL LETTER IOTA */ ++ case 0x6B: return 0x03BA; /* GREEK SMALL LETTER KAPPA */ ++ case 0x6C: return 0x03BB; /* GREEK SMALL LETTER LAMBDA */ ++ case 0x6D: return 0x03BC; /* GREEK SMALL LETTER MU */ ++ case 0x6E: return 0x03BD; /* GREEK SMALL LETTER NU */ ++ case 0x78: return 0x03BE; /* GREEK SMALL LETTER XI */ ++ case 0x6F: return 0x03BF; /* GREEK SMALL LETTER OMICRON */ ++ case 0x70: return 0x03C0; /* GREEK SMALL LETTER PI */ ++ case 0x72: return 0x03C1; /* GREEK SMALL LETTER RHO */ ++ case 0x56: return 0x03C2; /* GREEK SMALL LETTER FINAL SIGMA */ ++ case 0x73: return 0x03C3; /* GREEK SMALL LETTER SIGMA */ ++ case 0x74: return 0x03C4; /* GREEK SMALL LETTER TAU */ ++ case 0x75: return 0x03C5; /* GREEK SMALL LETTER UPSILON */ ++ case 0x66: return 0x03C6; /* GREEK SMALL LETTER PHI */ ++ case 0x63: return 0x03C7; /* GREEK SMALL LETTER CHI */ ++ case 0x79: return 0x03C8; /* GREEK SMALL LETTER PSI */ ++ case 0x77: return 0x03C9; /* GREEK SMALL LETTER OMEGA */ ++ case 0x4A: return 0x03D1; /* GREEK SMALL LETTER SCRIPT THETA */ ++ case 0xA1: return 0x03D2; /* GREEK CAPITAL LETTER UPSILON HOOK */ ++ case 0x6A: return 0x03D5; /* GREEK SMALL LETTER SCRIPT PHI */ ++ case 0x76: return 0x03D6; /* GREEK SMALL LETTER OMEGA PI */ ++ case 0xB7: return 0x2022; /* BULLET */ ++ case 0xBC: return 0x2026; /* HORIZONTAL ELLIPSIS */ ++ case 0xA2: return 0x2032; /* PRIME */ ++ case 0xB2: return 0x2033; /* DOUBLE PRIME */ ++ case 0x60: return 0x203E; /* SPACING OVERSCORE */ ++ case 0xA4: return 0x2044; /* FRACTION SLASH */ ++ case 0xC1: return 0x2111; /* BLACK-LETTER I */ ++ case 0xC3: return 0x2118; /* SCRIPT P */ ++ case 0xC2: return 0x211C; /* BLACK-LETTER R */ ++ case 0xD4: return 0x2122; /* TRADEMARK */ ++ case 0xE4: return 0x2122; /* TRADEMARK */ ++/* case 0x57: return 0x2126; /* OHM */ ++ case 0xC0: return 0x2135; /* FIRST TRANSFINITE CARDINAL */ ++ case 0xAC: return 0x2190; /* LEFT ARROW */ ++ case 0xAD: return 0x2191; /* UP ARROW */ ++ case 0xAE: return 0x2192; /* RIGHT ARROW */ ++ case 0xAF: return 0x2193; /* DOWN ARROW */ ++ case 0xAB: return 0x2194; /* LEFT RIGHT ARROW */ ++ case 0xBF: return 0x21B5; /* DOWN ARROW WITH CORNER LEFT */ ++ case 0xDC: return 0x21D0; /* LEFT DOUBLE ARROW */ ++ case 0xDD: return 0x21D1; /* UP DOUBLE ARROW */ ++ case 0xDE: return 0x21D2; /* RIGHT DOUBLE ARROW */ ++ case 0xDF: return 0x21D3; /* DOWN DOUBLE ARROW */ ++ case 0xDB: return 0x21D4; /* LEFT RIGHT DOUBLE ARROW */ ++ case 0x22: return 0x2200; /* FOR ALL */ ++ case 0xB6: return 0x2202; /* PARTIAL DIFFERENTIAL */ ++ case 0x24: return 0x2203; /* THERE EXISTS */ ++ case 0xC6: return 0x2205; /* EMPTY SET */ ++/* case 0x44: return 0x2206; /* INCREMENT */ ++ case 0xD1: return 0x2207; /* NABLA */ ++ case 0xCE: return 0x2208; /* ELEMENT OF */ ++ case 0xCF: return 0x2209; /* NOT AN ELEMENT OF */ ++ case 0x27: return 0x220B; /* CONTAINS AS MEMBER */ ++ case 0xD5: return 0x220F; /* N-ARY PRODUCT */ ++ case 0xE5: return 0x2211; /* N-ARY SUMMATION */ ++ case 0x2D: return 0x2212; /* MINUS SIGN */ ++/* case 0xA4: return 0x2215; /* DIVISION SLASH */ ++ case 0x2A: return 0x2217; /* ASTERISK OPERATOR */ ++ case 0xD6: return 0x221A; /* SQUARE ROOT */ ++ case 0xB5: return 0x221D; /* PROPORTIONAL TO */ ++ case 0xA5: return 0x221E; /* INFINITY */ ++ case 0xD0: return 0x2220; /* ANGLE */ ++ case 0xD9: return 0x2227; /* LOGICAL AND */ ++ case 0xDA: return 0x2228; /* LOGICAL OR */ ++ case 0xC7: return 0x2229; /* INTERSECTION */ ++ case 0xC8: return 0x222A; /* UNION */ ++ case 0xF2: return 0x222B; /* INTEGRAL */ ++ case 0x5C: return 0x2234; /* THEREFORE */ ++ case 0x7E: return 0x223C; /* TILDE OPERATOR */ ++ case 0x40: return 0x2245; /* APPROXIMATELY EQUAL TO */ ++ case 0xBB: return 0x2248; /* ALMOST EQUAL TO */ ++ case 0xB9: return 0x2260; /* NOT EQUAL TO */ ++ case 0xBA: return 0x2261; /* IDENTICAL TO */ ++ case 0xA3: return 0x2264; /* LESS THAN OR EQUAL TO */ ++ case 0xB3: return 0x2265; /* GREATER THAN OR EQUAL TO */ ++ case 0xCC: return 0x2282; /* SUBSET OF */ ++ case 0xC9: return 0x2283; /* SUPERSET OF */ ++ case 0xCB: return 0x2284; /* NOT A SUBSET OF */ ++ case 0xCD: return 0x2286; /* SUBSET OF OR EQUAL TO */ ++ case 0xCA: return 0x2287; /* SUPERSET OF OR EQUAL TO */ ++ case 0xC5: return 0x2295; /* CIRCLED PLUS */ ++ case 0xC4: return 0x2297; /* CIRCLED TIMES */ ++ case 0x5E: return 0x22A5; /* UP TACK */ ++ case 0xD7: return 0x22C5; /* DOT OPERATOR */ ++ case 0xF3: return 0x2320; /* TOP HALF INTEGRAL */ ++ case 0xF5: return 0x2321; /* BOTTOM HALF INTEGRAL */ ++ case 0xE1: return 0x2329; /* BRA */ ++ case 0xF1: return 0x232A; /* KET */ ++ case 0xE0: return 0x25CA; /* LOZENGE */ ++ case 0xAA: return 0x2660; /* BLACK SPADE SUIT */ ++ case 0xA7: return 0x2663; /* BLACK CLUB SUIT */ ++ case 0xA9: return 0x2665; /* BLACK HEART SUIT */ ++ case 0xA8: return 0x2666; /* BLACK DIAMOND SUIT */ ++ default: return 0x0000; ++ } ++}; ++ ++map_f adobe_charset(XftFont *font) ++{ ++ map_f map = NULL; ++ ++ /* ++ * Hack: does this font has small a in its charset? ++ * If not it is likly a Symbol or a Dingbats derivate. ++ */ ++ if (XftCharExists(tool_d, font, 0x61)) ++ return NULL; ++ else { ++ XftChar8 *pattern = FcNameUnparse(font->pattern); ++ char *fullname; ++ ++ if ((fullname = strcasestr((char*)pattern, "fullname="))) { ++ char *colon; ++ ++ fullname += 9; ++ if (colon = strchr(fullname, ':')) ++ *colon = '\0'; ++ if (strcasestr(fullname, "symbol")) ++ map = map_symbols; ++ else if (strcasestr(fullname, "dingbats")) ++ map = map_dingbats; ++ else if (strcasestr(fullname, "d050000l")) ++ map = map_dingbats; ++ free(pattern); ++ } ++ } ++ return map; ++} +diff --git a/src/u_fonts.h b/src/u_fonts.h +index 10b5f7c..725161a 100644 +--- a/src/u_fonts.h ++++ b/src/u_fonts.h +@@ -71,4 +71,15 @@ extern void text_origin(int *draw_x, int *draw_y, int base_x, int base_y, + extern struct _fstruct ps_fontinfo[]; + extern struct _fstruct latex_fontinfo[]; + ++/* ++ * For (ITC) Zapf Dingbats, URW Dingbats, or URW D050000L as well ++ * as Symbol, Standard Symbols PS, or URW Standard Symbols L we ++ * need to map the byte characters into UTF-8 multi byte characters. ++ * This to make XftTextExtentsUtf8() and XftDrawStringUtf8() working. ++ */ ++typedef XftChar8 (*map_f)(XftChar8); ++extern XftChar32 map_dingbats(XftChar8); ++extern XftChar32 map_symbols(XftChar8); ++extern map_f adobe_charset(XftFont *font); ++ + #endif /* U_FONTS_H */ +diff --git a/src/w_drawprim.c b/src/w_drawprim.c +index 959e3a6..7487833 100644 +--- a/src/w_drawprim.c ++++ b/src/w_drawprim.c +@@ -162,6 +162,8 @@ pw_xfttext(XftDraw *xftdraw, int x, int y, int depth, XftFont *font, + { + int zy = ZOOMY(y); + int zx = ZOOMX(x); ++ size_t len = strlen(s); ++ map_f map = NULL; + /* XGlyphInfo extents; */ + + if (*s == '\0') +@@ -181,8 +183,19 @@ pw_xfttext(XftDraw *xftdraw, int x, int y, int depth, XftFont *font, + if (check_cancel()) + return; + +- XftDrawStringUtf8(xftdraw, &xftcolor[c], font, zx, zy, (XftChar8 *)s, +- (int)strlen(s)); ++ if ((map = adobe_charset(font))) { ++ XftChar32 glyphs[len]; ++ int glen = 0; ++ ++ for (XftChar8 *chr = (XftChar8 *)s; chr < s+len; chr++) { ++ XftChar32 glyph = XftCharIndex(tool_d, font, map(*chr)); ++ if (glyph) ++ glyphs[glen++] = glyph; ++ } ++ XftDrawGlyphs(xftdraw, &xftcolor[c], font, zx, zy, glyphs, glen); ++ } else ++ XftDrawStringUtf8(xftdraw, &xftcolor[c], font, zx, zy, ++ (XftChar8*)s, (int)len); + } + + /* print "string" in window "w" using font specified in fstruct +-- +2.43.0 + diff --git a/xfig.spec b/xfig.spec index 506d57e..a3c2bcc 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -17,7 +17,10 @@ Patch0: Sanitize-a-call-to-realloc-ticket-165.patch # https://sourceforge.net/p/mcj/tickets/163/ # https://sourceforge.net/p/mcj/xfig/ci/a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c/ Patch1: Fix-exporting-only-active-layers-ticket-163.patch - +# https://sourceforge.net/p/mcj/tickets/159/ +# https://bugzilla.redhat.com/show_bug.cgi?id=2260359 +# https://sourceforge.net/p/mcj/xfig/ci/1e2d842875502b4ce0e74ec779454304c71efe54/ +Patch2: 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch #Patch0: xfig-3.2.5a-default-apps.patch #Patch1: xfig-3.2.5-urwfonts.patch @@ -115,6 +118,10 @@ appstream-util validate-relax --nonet \ %changelog +* Mon Feb 26 2024 Hans de Goede - 3.2.9-4 +- Fix missing Dingbats and Symbol glyphs +- Resolves: rhbz#2260359 + * Sat Jan 27 2024 Fedora Release Engineering - 3.2.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From a6b2ba00ebe180bfdfad2add5abfe22699931f9b Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 26 Feb 2024 14:15:30 +0100 Subject: [PATCH 55/61] Fix compile error with f40+ gcc --- xfig-3.2.9-compile-fix.patch | 13 +++++++++++++ xfig.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 xfig-3.2.9-compile-fix.patch diff --git a/xfig-3.2.9-compile-fix.patch b/xfig-3.2.9-compile-fix.patch new file mode 100644 index 0000000..6ca38bc --- /dev/null +++ b/xfig-3.2.9-compile-fix.patch @@ -0,0 +1,13 @@ +diff -up xfig-3.2.9/configure~ xfig-3.2.9/configure +diff -up xfig-3.2.9/src/u_fonts.h~ xfig-3.2.9/src/u_fonts.h +--- xfig-3.2.9/src/u_fonts.h~ 2024-02-26 13:37:49.000000000 +0100 ++++ xfig-3.2.9/src/u_fonts.h 2024-02-26 14:05:16.718889666 +0100 +@@ -77,7 +77,7 @@ extern struct _fstruct latex_fontinfo[]; + * need to map the byte characters into UTF-8 multi byte characters. + * This to make XftTextExtentsUtf8() and XftDrawStringUtf8() working. + */ +-typedef XftChar8 (*map_f)(XftChar8); ++typedef XftChar32 (*map_f)(XftChar8); + extern XftChar32 map_dingbats(XftChar8); + extern XftChar32 map_symbols(XftChar8); + extern map_f adobe_charset(XftFont *font); diff --git a/xfig.spec b/xfig.spec index a3c2bcc..f40d049 100644 --- a/xfig.spec +++ b/xfig.spec @@ -21,6 +21,8 @@ Patch1: Fix-exporting-only-active-layers-ticket-163.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2260359 # https://sourceforge.net/p/mcj/xfig/ci/1e2d842875502b4ce0e74ec779454304c71efe54/ Patch2: 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch +# compile fix for above patch +Patch3: xfig-3.2.9-compile-fix.patch #Patch0: xfig-3.2.5a-default-apps.patch #Patch1: xfig-3.2.5-urwfonts.patch From 4aeded16a42ab5b35ef853c7ab05fc4963b2dbae Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 10:04:37 +0000 Subject: [PATCH 56/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index f40d049..0c5cf6d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -120,6 +120,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 3.2.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Mon Feb 26 2024 Hans de Goede - 3.2.9-4 - Fix missing Dingbats and Symbol glyphs - Resolves: rhbz#2260359 From 25fb80a93080ec0fb3c12dc79aab069dbcd4bad1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 15:50:30 +0000 Subject: [PATCH 57/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 0c5cf6d..4722ea4 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 5%{?dist} +Release: 6%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -120,6 +120,9 @@ appstream-util validate-relax --nonet \ %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 3.2.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Sat Jul 20 2024 Fedora Release Engineering - 3.2.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From da28ae8028e2c4d6aaa9e6bae3b92244e115bc42 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:50:36 +0000 Subject: [PATCH 58/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 4722ea4..d535632 100644 --- a/xfig.spec +++ b/xfig.spec @@ -3,7 +3,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9 -Release: 6%{?dist} +Release: 7%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz @@ -120,6 +120,9 @@ appstream-util validate-relax --nonet \ %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 3.2.9-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sun Jan 19 2025 Fedora Release Engineering - 3.2.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 0b394da35bfb4ba5cb4240454973fbd4377b4d97 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 6 Aug 2025 22:00:49 +0200 Subject: [PATCH 59/61] Update to 3.2.9a + latest git changes to fix build with -std=c11 Switch to upstream appdata/metainfo and desktop file Drop all patches (all upstreamed) Resolves: rhbz#2341567 Resolves: rhbz#2385740 --- .gitignore | 1 + ...ingbat-glyphs-to-their-unicode-locat.patch | 644 ------------------ ...orting-only-active-layers-ticket-163.patch | 29 - Sanitize-a-call-to-realloc-ticket-165.patch | 44 -- sources | 2 +- xfig-3.2.9-compile-fix.patch | 13 - xfig.appdata.xml | 31 - xfig.desktop | 49 -- xfig.rpmlintrc | 5 +- xfig.spec | 52 +- 10 files changed, 25 insertions(+), 845 deletions(-) delete mode 100644 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch delete mode 100644 Fix-exporting-only-active-layers-ticket-163.patch delete mode 100644 Sanitize-a-call-to-realloc-ticket-165.patch delete mode 100644 xfig-3.2.9-compile-fix.patch delete mode 100644 xfig.appdata.xml delete mode 100644 xfig.desktop diff --git a/.gitignore b/.gitignore index c4eacca..26e4cf7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ xfig.3.2.5b.full.tar.gz /xfig-3.2.8a.tar.xz /xfig-3.2.8b.tar.xz /xfig-3.2.9.tar.xz +/mcj-xfig-ce9782a404b6a527393839369aac13dcfb66ff16.zip diff --git a/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch b/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch deleted file mode 100644 index cc47580..0000000 --- a/0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch +++ /dev/null @@ -1,644 +0,0 @@ -From 1e2d842875502b4ce0e74ec779454304c71efe54 Mon Sep 17 00:00:00 2001 -From: "Dr. Werner Fink" -Date: Sat, 30 Sep 2023 23:10:46 +0200 -Subject: [PATCH] Map symbol and dingbat glyphs to their unicode locations - -Under suse, symbol and dingbat glyphs are not displayed without -remapping to their correct unicode code points. Based on the -mappings defined in -usr/share/fonts/encodings/adobe-dingbats.enc.gz and -/usr/share/fonts/encodings/adobe-symbol.enc.gz. -Also include some aliases for these two fonts. -Under archlinux and debian, these mappings were not necessary, but -do not seem to do any harm. ---- - src/u_fonts.c | 500 ++++++++++++++++++++++++++++++++++++++++++++++- - src/u_fonts.h | 11 ++ - src/w_drawprim.c | 17 +- - 3 files changed, 516 insertions(+), 12 deletions(-) - -diff --git a/src/u_fonts.c b/src/u_fonts.c -index b29d0ea..5e454eb 100644 ---- a/src/u_fonts.c -+++ b/src/u_fonts.c -@@ -124,9 +124,9 @@ const char *const xft_name[NUM_FONTS] = { - "palatino:italic", /* Palatino-Italic */ - "palatino:bold", /* Palatino-Bold */ - "palatino:bold:italic", /* Palatino-BoldItalic */ -- "symbol", /* Symbol */ -+ "symbol,StandardSymbolsPS,StandardSymbolsL", /* Symbol */ - "zapfchancery:medium:italic", /* ZapfChancery-MediumItalic */ -- "zapfdingbats" /* ZapfDingbats */ -+ "zapfdingbats,ITCZapfDingbats,Dingbats,D050000L" /* ZapfDingbats */ - }; - - -@@ -307,6 +307,7 @@ textextents(F_text *t) - { - XGlyphInfo extents; - XftFont *rotfont; -+ map_f map = NULL; - int len = (int)strlen(t->cstring); - - /* shortcut, nothing to do for an empty string */ -@@ -325,8 +326,20 @@ textextents(F_text *t) - /* Get the font at native Fig resolution (often, 1200 ppi) */ - rotfont = getfont(psfont_text(t), t->font, t->size * ZOOM_FACTOR, - (double)t->angle); -- XftTextExtentsUtf8(tool_d, rotfont, (XftChar8 *)t->cstring, len, -- &extents); -+ if ((map = adobe_charset(rotfont))) { -+ XftChar32 glyphs[len], *glyph; -+ XftChar8 *s = (XftChar8 *)t->cstring; -+ int glen = 0; -+ -+ for (XftChar8 *chr = s; chr < s+len; chr++) { -+ XftChar32 glyph = XftCharIndex(tool_d, rotfont, map(*chr)); -+ if (glyph) -+ glyphs[glen++] = glyph; -+ } -+ XftGlyphExtents(tool_d, rotfont, glyphs, glen, &extents); -+ } else -+ XftTextExtentsUtf8(tool_d, rotfont, (XftChar8 *)t->cstring, len, -+ &extents); - /* libxft keeps the last 16, closed fonts in cache. - Hence, no need to keep rotfont open, in our own cache. */ - closefont(rotfont); -@@ -409,13 +422,27 @@ textextents(F_text *t) - } else { - /* a font at an angle */ - XftFont *horfont; -+ map_f map = NULL; - double cosa, sina; - struct f_pos tl, bl, tr, br; - - horfont = getfont(psfont_text(t), t->font, - t->size * ZOOM_FACTOR, 0.0); -- XftTextExtentsUtf8(tool_d, horfont, (XftChar8 *)t->cstring, len, -- &extents); -+ if ((map = adobe_charset(horfont))) { -+ XftChar32 glyphs[len], *glyph; -+ XftChar8 *s = (XftChar8 *)t->cstring; -+ int glen = 0; -+ -+ for (XftChar8 *chr = s; chr < s+len; chr++) { -+ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); -+ if (glyph) -+ glyphs[glen++] = glyph; -+ } -+ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); -+ } else { -+ XftTextExtentsUtf8(tool_d, horfont, (XftChar8 *)t->cstring, -+ len, &extents); -+ } - /* See above, libxft keeps a cache of 16 closed fonts. */ - closefont(horfont); - -@@ -453,11 +480,25 @@ int - textlength(XftFont *horfont, XftChar8 *string, int len) - { - XGlyphInfo extents; -+ map_f map = NULL; - - if (len == 0) - return 0; - -- XftTextExtentsUtf8(tool_d, horfont, string, len, &extents); -+ if ((map = adobe_charset(horfont))) { -+ XftChar32 glyphs[len], *glyph; -+ XftChar8 *chr, *s = string; -+ int glen = 0; -+ -+ for (XftChar8 *chr = s; chr < s+len; chr++) { -+ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); -+ if (glyph) -+ glyphs[glen++] = glyph; -+ } -+ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); -+ } else { -+ XftTextExtentsUtf8(tool_d, horfont, string, len, &extents); -+ } - return (int)extents.xOff; - } - -@@ -473,16 +514,30 @@ textmaxheight(int psflag, int font, int size, int *ascent, int *descent) - XGlyphInfo extents; - XftFont *horfont; - XftChar8 max_height_str[] = "{|(fgjOÜ"; -+ map_f map = NULL; -+ size_t len = sizeof(max_height_str); - - horfont = getfont(psflag, font, size * ZOOM_FACTOR, 0.0); -- XftTextExtentsUtf8(tool_d, horfont, max_height_str, -- (int)sizeof(max_height_str), &extents); -+ if ((map = adobe_charset(horfont))) { -+ XftChar32 glyphs[len], *glyph; -+ XftChar8 *s = max_height_str; -+ int glen = 0; -+ -+ for (XftChar8 *chr = s; chr < s+len; chr++) { -+ XftChar32 glyph = XftCharIndex(tool_d, horfont, map(*chr)); -+ if (glyph) -+ glyphs[glen++] = glyph; -+ } -+ XftGlyphExtents(tool_d, horfont, glyphs, glen, &extents); -+ } else { -+ XftTextExtentsUtf8(tool_d, horfont, max_height_str, -+ (int)len, &extents); -+ } - closefont(horfont); - *ascent = extents.y; - *descent = extents.height - extents.y; - } - -- - /* - * Return the drawing origin, given the marker position (base_x, base_y) - * and the alignment. -@@ -510,3 +565,428 @@ text_origin(int *draw_x, int *draw_y, int base_x, int base_y, int align, - break; - } - } -+/* -+ * Unicode mapping found in -+ * /usr/share/fonts/encodings/adobe-dingbats.enc.gz -+ */ -+XftChar32 map_dingbats(XftChar8 in) -+{ -+ switch (in) { -+ case 0x20: return 0x0020; /* SPACE */ -+ case 0x21: return 0x2701; /* UPPER BLADE SCISSORS */ -+ case 0x22: return 0x2702; /* BLACK SCISSORS */ -+ case 0x23: return 0x2703; /* LOWER BLADE SCISSORS */ -+ case 0x24: return 0x2704; /* WHITE SCISSORS */ -+ case 0x25: return 0x260E; /* BLACK TELEPHONE */ -+ case 0x26: return 0x2706; /* TELEPHONE LOCATION SIGN */ -+ case 0x27: return 0x2707; /* TAPE DRIVE */ -+ case 0x28: return 0x2708; /* AIRPLANE */ -+ case 0x29: return 0x2709; /* ENVELOPE */ -+ case 0x2A: return 0x261B; /* BLACK RIGHT POINTING INDEX */ -+ case 0x2B: return 0x261E; /* WHITE RIGHT POINTING INDEX */ -+ case 0x2C: return 0x270C; /* VICTORY HAND */ -+ case 0x2D: return 0x270D; /* WRITING HAND */ -+ case 0x2E: return 0x270E; /* LOWER RIGHT PENCIL */ -+ case 0x2F: return 0x270F; /* PENCIL */ -+ case 0x30: return 0x2710; /* UPPER RIGHT PENCIL */ -+ case 0x31: return 0x2711; /* WHITE NIB */ -+ case 0x32: return 0x2712; /* BLACK NIB */ -+ case 0x33: return 0x2713; /* CHECK MARK */ -+ case 0x34: return 0x2714; /* HEAVY CHECK MARK */ -+ case 0x35: return 0x2715; /* MULTIPLICATION X */ -+ case 0x36: return 0x2716; /* HEAVY MULTIPLICATION X */ -+ case 0x37: return 0x2717; /* BALLOT X */ -+ case 0x38: return 0x2718; /* HEAVY BALLOT X */ -+ case 0x39: return 0x2719; /* OUTLINED GREEK CROSS */ -+ case 0x3A: return 0x271A; /* HEAVY GREEK CROSS */ -+ case 0x3B: return 0x271B; /* OPEN CENTRE CROSS */ -+ case 0x3C: return 0x271C; /* HEAVY OPEN CENTRE CROSS */ -+ case 0x3D: return 0x271D; /* LATIN CROSS */ -+ case 0x3E: return 0x271E; /* SHADOWED WHITE LATIN CROSS */ -+ case 0x3F: return 0x271F; /* OUTLINED LATIN CROSS */ -+ case 0x40: return 0x2720; /* MALTESE CROSS */ -+ case 0x41: return 0x2721; /* STAR OF DAVID */ -+ case 0x42: return 0x2722; /* FOUR TEARDROP-SPOKED ASTERISK */ -+ case 0x43: return 0x2723; /* FOUR BALLOON-SPOKED ASTERISK */ -+ case 0x44: return 0x2724; /* HEAVY FOUR BALLOON-SPOKED ASTERISK */ -+ case 0x45: return 0x2725; /* FOUR CLUB-SPOKED ASTERISK */ -+ case 0x46: return 0x2726; /* BLACK FOUR POINTED STAR */ -+ case 0x47: return 0x2727; /* WHITE FOUR POINTED STAR */ -+ case 0x48: return 0x2605; /* BLACK STAR */ -+ case 0x49: return 0x2729; /* STRESS OUTLINED WHITE STAR */ -+ case 0x4A: return 0x272A; /* CIRCLED WHITE STAR */ -+ case 0x4B: return 0x272B; /* OPEN CENTRE BLACK STAR */ -+ case 0x4C: return 0x272C; /* BLACK CENTRE WHITE STAR */ -+ case 0x4D: return 0x272D; /* OUTLINED BLACK STAR */ -+ case 0x4E: return 0x272E; /* HEAVY OUTLINED BLACK STAR */ -+ case 0x4F: return 0x272F; /* PINWHEEL STAR */ -+ case 0x50: return 0x2730; /* SHADOWED WHITE STAR */ -+ case 0x51: return 0x2731; /* HEAVY ASTERISK */ -+ case 0x52: return 0x2732; /* OPEN CENTRE ASTERISK */ -+ case 0x53: return 0x2733; /* EIGHT SPOKED ASTERISK */ -+ case 0x54: return 0x2734; /* EIGHT POINTED BLACK STAR */ -+ case 0x55: return 0x2735; /* EIGHT POINTED PINWHEEL STAR */ -+ case 0x56: return 0x2736; /* SIX POINTED BLACK STAR */ -+ case 0x57: return 0x2737; /* EIGHT POINTED RECTILINEAR BLACK STAR */ -+ case 0x58: return 0x2738; /* HEAVY EIGHT POINTED RECTILINEAR BLACK STAR */ -+ case 0x59: return 0x2739; /* TWELVE POINTED BLACK STAR */ -+ case 0x5A: return 0x273A; /* SIXTEEN POINTED ASTERISK */ -+ case 0x5B: return 0x273B; /* TEARDROP-SPOKED ASTERISK */ -+ case 0x5C: return 0x273C; /* OPEN CENTRE TEARDROP-SPOKED ASTERISK */ -+ case 0x5D: return 0x273D; /* HEAVY TEARDROP-SPOKED ASTERISK */ -+ case 0x5E: return 0x273E; /* SIX PETALLED BLACK AND WHITE FLORETTE */ -+ case 0x5F: return 0x273F; /* BLACK FLORETTE */ -+ case 0x60: return 0x2740; /* WHITE FLORETTE */ -+ case 0x61: return 0x2741; /* EIGHT PETALLED OUTLINED BLACK FLORETTE */ -+ case 0x62: return 0x2742; /* CIRCLED OPEN CENTRE EIGHT POINTED STAR */ -+ case 0x63: return 0x2743; /* HEAVY TEARDROP-SPOKED PINWHEEL ASTERISK */ -+ case 0x64: return 0x2744; /* SNOWFLAKE */ -+ case 0x65: return 0x2745; /* TIGHT TRIFOLIATE SNOWFLAKE */ -+ case 0x66: return 0x2746; /* HEAVY CHEVRON SNOWFLAKE */ -+ case 0x67: return 0x2747; /* SPARKLE */ -+ case 0x68: return 0x2748; /* HEAVY SPARKLE */ -+ case 0x69: return 0x2749; /* BALLOON-SPOKED ASTERISK */ -+ case 0x6A: return 0x274A; /* EIGHT TEARDROP-SPOKED PROPELLER ASTERISK */ -+ case 0x6B: return 0x274B; /* HEAVY EIGHT TEARDROP-SPOKED PROPELLER ASTERISK */ -+ case 0x6C: return 0x25CF; /* BLACK CIRCLE */ -+ case 0x6D: return 0x274D; /* SHADOWED WHITE CIRCLE */ -+ case 0x6E: return 0x25A0; /* BLACK SQUARE */ -+ case 0x6F: return 0x274F; /* LOWER RIGHT DROP-SHADOWED WHITE SQUARE */ -+ case 0x70: return 0x2750; /* UPPER RIGHT DROP-SHADOWED WHITE SQUARE */ -+ case 0x71: return 0x2751; /* LOWER RIGHT SHADOWED WHITE SQUARE */ -+ case 0x72: return 0x2752; /* UPPER RIGHT SHADOWED WHITE SQUARE */ -+ case 0x73: return 0x25B2; /* BLACK UP-POINTING TRIANGLE */ -+ case 0x74: return 0x25BC; /* BLACK DOWN-POINTING TRIANGLE */ -+ case 0x75: return 0x25C6; /* BLACK DIAMOND */ -+ case 0x76: return 0x2756; /* BLACK DIAMOND MINUS WHITE X */ -+ case 0x77: return 0x25D7; /* RIGHT HALF BLACK CIRCLE */ -+ case 0x78: return 0x2758; /* LIGHT VERTICAL BAR */ -+ case 0x79: return 0x2759; /* MEDIUM VERTICAL BAR */ -+ case 0x7A: return 0x275A; /* HEAVY VERTICAL BAR */ -+ case 0x7B: return 0x275B; /* HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT */ -+ case 0x7C: return 0x275C; /* HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT */ -+ case 0x7D: return 0x275D; /* HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT */ -+ case 0x7E: return 0x275E; /* HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT */ -+ case 0x80: return 0xF8D7; /* MEDIUM LEFT PARENTHESIS ORNAMENT */ -+ case 0x81: return 0xF8D8; /* MEDIUM RIGHT PARENTHESIS ORNAMENT */ -+ case 0x82: return 0xF8D9; /* MEDIUM FLATTENED LEFT PARENTHESIS ORNAMENT */ -+ case 0x83: return 0xF8DA; /* MEDIUM FLATTENED RIGHT PARENTHESIS ORNAMENT */ -+ case 0x84: return 0xF8DB; /* MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT */ -+ case 0x85: return 0xF8DC; /* MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT */ -+ case 0x86: return 0xF8DD; /* HEAVY LEFT-POINTING ANGLE QUOTATION MARK ORNAMENT */ -+ case 0x87: return 0xF8DE; /* HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT */ -+ case 0x88: return 0xF8DF; /* HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT */ -+ case 0x89: return 0xF8E0; /* HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT */ -+ case 0x8A: return 0xF8E1; /* LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT */ -+ case 0x8B: return 0xF8E2; /* LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT */ -+ case 0x8C: return 0xF8E3; /* MEDIUM LEFT CURLY BRACKET ORNAMENT */ -+ case 0x8D: return 0xF8E4; /* MEDIUM RIGHT CURLY BRACKET ORNAMENT */ -+ case 0xA1: return 0x2761; /* CURVED STEM PARAGRAPH SIGN ORNAMENT */ -+ case 0xA2: return 0x2762; /* HEAVY EXCLAMATION MARK ORNAMENT */ -+ case 0xA3: return 0x2763; /* HEAVY HEART EXCLAMATION MARK ORNAMENT */ -+ case 0xA4: return 0x2764; /* HEAVY BLACK HEART */ -+ case 0xA5: return 0x2765; /* ROTATED HEAVY BLACK HEART BULLET */ -+ case 0xA6: return 0x2766; /* FLORAL HEART */ -+ case 0xA7: return 0x2767; /* ROTATED FLORAL HEART BULLET */ -+ case 0xA8: return 0x2663; /* BLACK CLUB SUIT */ -+ case 0xA9: return 0x2666; /* BLACK DIAMOND SUIT */ -+ case 0xAA: return 0x2665; /* BLACK HEART SUIT */ -+ case 0xAB: return 0x2660; /* BLACK SPADE SUIT */ -+ case 0xAC: return 0x2460; /* CIRCLED DIGIT ONE */ -+ case 0xAD: return 0x2461; /* CIRCLED DIGIT TWO */ -+ case 0xAE: return 0x2462; /* CIRCLED DIGIT THREE */ -+ case 0xAF: return 0x2463; /* CIRCLED DIGIT FOUR */ -+ case 0xB0: return 0x2464; /* CIRCLED DIGIT FIVE */ -+ case 0xB1: return 0x2465; /* CIRCLED DIGIT SIX */ -+ case 0xB2: return 0x2466; /* CIRCLED DIGIT SEVEN */ -+ case 0xB3: return 0x2467; /* CIRCLED DIGIT EIGHT */ -+ case 0xB4: return 0x2468; /* CIRCLED DIGIT NINE */ -+ case 0xB5: return 0x2469; /* CIRCLED NUMBER TEN */ -+ case 0xB6: return 0x2776; /* DINGBAT NEGATIVE CIRCLED DIGIT ONE */ -+ case 0xB7: return 0x2777; /* DINGBAT NEGATIVE CIRCLED DIGIT TWO */ -+ case 0xB8: return 0x2778; /* DINGBAT NEGATIVE CIRCLED DIGIT THREE */ -+ case 0xB9: return 0x2779; /* DINGBAT NEGATIVE CIRCLED DIGIT FOUR */ -+ case 0xBA: return 0x277A; /* DINGBAT NEGATIVE CIRCLED DIGIT FIVE */ -+ case 0xBB: return 0x277B; /* DINGBAT NEGATIVE CIRCLED DIGIT SIX */ -+ case 0xBC: return 0x277C; /* DINGBAT NEGATIVE CIRCLED DIGIT SEVEN */ -+ case 0xBD: return 0x277D; /* DINGBAT NEGATIVE CIRCLED DIGIT EIGHT */ -+ case 0xBE: return 0x277E; /* DINGBAT NEGATIVE CIRCLED DIGIT NINE */ -+ case 0xBF: return 0x277F; /* DINGBAT NEGATIVE CIRCLED NUMBER TEN */ -+ case 0xC0: return 0x2780; /* DINGBAT CIRCLED SANS-SERIF DIGIT ONE */ -+ case 0xC1: return 0x2781; /* DINGBAT CIRCLED SANS-SERIF DIGIT TWO */ -+ case 0xC2: return 0x2782; /* DINGBAT CIRCLED SANS-SERIF DIGIT THREE */ -+ case 0xC3: return 0x2783; /* DINGBAT CIRCLED SANS-SERIF DIGIT FOUR */ -+ case 0xC4: return 0x2784; /* DINGBAT CIRCLED SANS-SERIF DIGIT FIVE */ -+ case 0xC5: return 0x2785; /* DINGBAT CIRCLED SANS-SERIF DIGIT SIX */ -+ case 0xC6: return 0x2786; /* DINGBAT CIRCLED SANS-SERIF DIGIT SEVEN */ -+ case 0xC7: return 0x2787; /* DINGBAT CIRCLED SANS-SERIF DIGIT EIGHT */ -+ case 0xC8: return 0x2788; /* DINGBAT CIRCLED SANS-SERIF DIGIT NINE */ -+ case 0xC9: return 0x2789; /* DINGBAT CIRCLED SANS-SERIF NUMBER TEN */ -+ case 0xCA: return 0x278A; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE */ -+ case 0xCB: return 0x278B; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT TWO */ -+ case 0xCC: return 0x278C; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT THREE */ -+ case 0xCD: return 0x278D; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FOUR */ -+ case 0xCE: return 0x278E; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT FIVE */ -+ case 0xCF: return 0x278F; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SIX */ -+ case 0xD0: return 0x2790; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT SEVEN */ -+ case 0xD1: return 0x2791; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT EIGHT */ -+ case 0xD2: return 0x2792; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT NINE */ -+ case 0xD3: return 0x2793; /* DINGBAT NEGATIVE CIRCLED SANS-SERIF NUMBER TEN */ -+ case 0xD4: return 0x2794; /* HEAVY WIDE-HEADED RIGHTWARDS ARROW */ -+ case 0xD5: return 0x2192; /* RIGHTWARDS ARROW */ -+ case 0xD6: return 0x2194; /* LEFT RIGHT ARROW */ -+ case 0xD7: return 0x2195; /* UP DOWN ARROW */ -+ case 0xD8: return 0x2798; /* HEAVY SOUTH EAST ARROW */ -+ case 0xD9: return 0x2799; /* HEAVY RIGHTWARDS ARROW */ -+ case 0xDA: return 0x279A; /* HEAVY NORTH EAST ARROW */ -+ case 0xDB: return 0x279B; /* DRAFTING POINT RIGHTWARDS ARROW */ -+ case 0xDC: return 0x279C; /* HEAVY ROUND-TIPPED RIGHTWARDS ARROW */ -+ case 0xDD: return 0x279D; /* TRIANGLE-HEADED RIGHTWARDS ARROW */ -+ case 0xDE: return 0x279E; /* HEAVY TRIANGLE-HEADED RIGHTWARDS ARROW */ -+ case 0xDF: return 0x279F; /* DASHED TRIANGLE-HEADED RIGHTWARDS ARROW */ -+ case 0xE0: return 0x27A0; /* HEAVY DASHED TRIANGLE-HEADED RIGHTWARDS ARROW */ -+ case 0xE1: return 0x27A1; /* BLACK RIGHTWARDS ARROW */ -+ case 0xE2: return 0x27A2; /* THREE-D TOP-LIGHTED RIGHTWARDS ARROWHEAD */ -+ case 0xE3: return 0x27A3; /* THREE-D BOTTOM-LIGHTED RIGHTWARDS ARROWHEAD */ -+ case 0xE4: return 0x27A4; /* BLACK RIGHTWARDS ARROWHEAD */ -+ case 0xE5: return 0x27A5; /* HEAVY BLACK CURVED DOWNWARDS AND RIGHTWARDS ARROW */ -+ case 0xE6: return 0x27A6; /* HEAVY BLACK CURVED UPWARDS AND RIGHTWARDS ARROW */ -+ case 0xE7: return 0x27A7; /* SQUAT BLACK RIGHTWARDS ARROW */ -+ case 0xE8: return 0x27A8; /* HEAVY CONCAVE-POINTED BLACK RIGHTWARDS ARROW */ -+ case 0xE9: return 0x27A9; /* RIGHT-SHADED WHITE RIGHTWARDS ARROW */ -+ case 0xEA: return 0x27AA; /* LEFT-SHADED WHITE RIGHTWARDS ARROW */ -+ case 0xEB: return 0x27AB; /* BACK-TILTED SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xEC: return 0x27AC; /* FRONT-TILTED SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xED: return 0x27AD; /* HEAVY LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xEE: return 0x27AE; /* HEAVY UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xEF: return 0x27AF; /* NOTCHED LOWER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xF1: return 0x27B1; /* NOTCHED UPPER RIGHT-SHADOWED WHITE RIGHTWARDS ARROW */ -+ case 0xF2: return 0x27B2; /* CIRCLED HEAVY WHITE RIGHTWARDS ARROW */ -+ case 0xF3: return 0x27B3; /* WHITE-FEATHERED RIGHTWARDS ARROW */ -+ case 0xF4: return 0x27B4; /* BLACK-FEATHERED SOUTH EAST ARROW */ -+ case 0xF5: return 0x27B5; /* BLACK-FEATHERED RIGHTWARDS ARROW */ -+ case 0xF6: return 0x27B6; /* BLACK-FEATHERED NORTH EAST ARROW */ -+ case 0xF7: return 0x27B7; /* HEAVY BLACK-FEATHERED SOUTH EAST ARROW */ -+ case 0xF8: return 0x27B8; /* HEAVY BLACK-FEATHERED RIGHTWARDS ARROW */ -+ case 0xF9: return 0x27B9; /* HEAVY BLACK-FEATHERED NORTH EAST ARROW */ -+ case 0xFA: return 0x27BA; /* TEARDROP-BARBED RIGHTWARDS ARROW */ -+ case 0xFB: return 0x27BB; /* HEAVY TEARDROP-SHANKED RIGHTWARDS ARROW */ -+ case 0xFC: return 0x27BC; /* WEDGE-TAILED RIGHTWARDS ARROW */ -+ case 0xFD: return 0x27BD; /* HEAVY WEDGE-TAILED RIGHTWARDS ARROW */ -+ case 0xFE: return 0x27BE; /* OPEN-OUTLINED RIGHTWARDS ARROW */ -+ default: return 0x0000; -+ } -+}; -+ -+/* -+ * Unicode mapping found in -+ * /usr/share/fonts/encodings/adobe-symbol.enc.gz -+ * Duplicates are disabled -+ */ -+XftChar32 map_symbols(XftChar8 in) -+{ -+ switch(in) { -+ case 0x20: return 0x0020; /* SPACE */ -+ case 0x21: return 0x0021; /* EXCLAMATION MARK */ -+ case 0x23: return 0x0023; /* NUMBER SIGN */ -+ case 0x25: return 0x0025; /* PERCENT SIGN */ -+ case 0x26: return 0x0026; /* AMPERSAND */ -+ case 0x28: return 0x0028; /* OPENING PARENTHESIS */ -+ case 0x29: return 0x0029; /* CLOSING PARENTHESIS */ -+ case 0x2B: return 0x002B; /* PLUS SIGN */ -+ case 0x2C: return 0x002C; /* COMMA */ -+ case 0x2E: return 0x002E; /* PERIOD */ -+ case 0x2F: return 0x002F; /* SLASH */ -+ case 0x30: return 0x0030; /* DIGIT ZERO */ -+ case 0x31: return 0x0031; /* DIGIT ONE */ -+ case 0x32: return 0x0032; /* DIGIT TWO */ -+ case 0x33: return 0x0033; /* DIGIT THREE */ -+ case 0x34: return 0x0034; /* DIGIT FOUR */ -+ case 0x35: return 0x0035; /* DIGIT FIVE */ -+ case 0x36: return 0x0036; /* DIGIT SIX */ -+ case 0x37: return 0x0037; /* DIGIT SEVEN */ -+ case 0x38: return 0x0038; /* DIGIT EIGHT */ -+ case 0x39: return 0x0039; /* DIGIT NINE */ -+ case 0x3A: return 0x003A; /* COLON */ -+ case 0x3B: return 0x003B; /* SEMICOLON */ -+ case 0x3C: return 0x003C; /* LESS-THAN SIGN */ -+ case 0x3D: return 0x003D; /* EQUALS SIGN */ -+ case 0x3E: return 0x003E; /* GREATER-THAN SIGN */ -+ case 0x3F: return 0x003F; /* QUESTION MARK */ -+ case 0x5B: return 0x005B; /* OPENING SQUARE BRACKET */ -+ case 0x5D: return 0x005D; /* CLOSING SQUARE BRACKET */ -+ case 0x5F: return 0x005F; /* SPACING UNDERSCORE */ -+ case 0x7B: return 0x007B; /* OPENING CURLY BRACKET */ -+ case 0x7C: return 0x007C; /* VERTICAL BAR */ -+ case 0x7D: return 0x007D; /* CLOSING CURLY BRACKET */ -+ case 0xD3: return 0x00A9; /* COPYRIGHT SIGN */ -+ case 0xE3: return 0x00A9; /* COPYRIGHT SIGN */ -+ case 0xD8: return 0x00AC; /* NOT SIGN */ -+ case 0xD2: return 0x00AE; /* REGISTERED TRADE MARK SIGN */ -+ case 0xE2: return 0x00AE; /* REGISTERED TRADE MARK SIGN */ -+ case 0xB0: return 0x00B0; /* DEGREE SIGN */ -+ case 0xB1: return 0x00B1; /* PLUS-OR-MINUS SIGN */ -+ case 0xB4: return 0x00D7; /* MULTIPLICATION SIGN */ -+ case 0xB8: return 0x00F7; /* DIVISION SIGN */ -+ case 0xA6: return 0x0192; /* LATIN SMALL LETTER SCRIPT F */ -+ case 0x41: return 0x0391; /* GREEK CAPITAL LETTER ALPHA */ -+ case 0x42: return 0x0392; /* GREEK CAPITAL LETTER BETA */ -+ case 0x47: return 0x0393; /* GREEK CAPITAL LETTER GAMMA */ -+ case 0x44: return 0x0394; /* GREEK CAPITAL LETTER DELTA */ -+ case 0x45: return 0x0395; /* GREEK CAPITAL LETTER EPSILON */ -+ case 0x5A: return 0x0396; /* GREEK CAPITAL LETTER ZETA */ -+ case 0x48: return 0x0397; /* GREEK CAPITAL LETTER ETA */ -+ case 0x51: return 0x0398; /* GREEK CAPITAL LETTER THETA */ -+ case 0x49: return 0x0399; /* GREEK CAPITAL LETTER IOTA */ -+ case 0x4B: return 0x039A; /* GREEK CAPITAL LETTER KAPPA */ -+ case 0x4C: return 0x039B; /* GREEK CAPITAL LETTER LAMBDA */ -+ case 0x4D: return 0x039C; /* GREEK CAPITAL LETTER MU */ -+ case 0x4E: return 0x039D; /* GREEK CAPITAL LETTER NU */ -+ case 0x58: return 0x039E; /* GREEK CAPITAL LETTER XI */ -+ case 0x4F: return 0x039F; /* GREEK CAPITAL LETTER OMICRON */ -+ case 0x50: return 0x03A0; /* GREEK CAPITAL LETTER PI */ -+ case 0x52: return 0x03A1; /* GREEK CAPITAL LETTER RHO */ -+ case 0x53: return 0x03A3; /* GREEK CAPITAL LETTER SIGMA */ -+ case 0x54: return 0x03A4; /* GREEK CAPITAL LETTER TAU */ -+ case 0x55: return 0x03A5; /* GREEK CAPITAL LETTER UPSILON */ -+ case 0x46: return 0x03A6; /* GREEK CAPITAL LETTER PHI */ -+ case 0x43: return 0x03A7; /* GREEK CAPITAL LETTER CHI */ -+ case 0x59: return 0x03A8; /* GREEK CAPITAL LETTER PSI */ -+ case 0x57: return 0x03A9; /* GREEK CAPITAL LETTER OMEGA */ -+ case 0x61: return 0x03B1; /* GREEK SMALL LETTER ALPHA */ -+ case 0x62: return 0x03B2; /* GREEK SMALL LETTER BETA */ -+ case 0x67: return 0x03B3; /* GREEK SMALL LETTER GAMMA */ -+ case 0x64: return 0x03B4; /* GREEK SMALL LETTER DELTA */ -+ case 0x65: return 0x03B5; /* GREEK SMALL LETTER EPSILON */ -+ case 0x7A: return 0x03B6; /* GREEK SMALL LETTER ZETA */ -+ case 0x68: return 0x03B7; /* GREEK SMALL LETTER ETA */ -+ case 0x71: return 0x03B8; /* GREEK SMALL LETTER THETA */ -+ case 0x69: return 0x03B9; /* GREEK SMALL LETTER IOTA */ -+ case 0x6B: return 0x03BA; /* GREEK SMALL LETTER KAPPA */ -+ case 0x6C: return 0x03BB; /* GREEK SMALL LETTER LAMBDA */ -+ case 0x6D: return 0x03BC; /* GREEK SMALL LETTER MU */ -+ case 0x6E: return 0x03BD; /* GREEK SMALL LETTER NU */ -+ case 0x78: return 0x03BE; /* GREEK SMALL LETTER XI */ -+ case 0x6F: return 0x03BF; /* GREEK SMALL LETTER OMICRON */ -+ case 0x70: return 0x03C0; /* GREEK SMALL LETTER PI */ -+ case 0x72: return 0x03C1; /* GREEK SMALL LETTER RHO */ -+ case 0x56: return 0x03C2; /* GREEK SMALL LETTER FINAL SIGMA */ -+ case 0x73: return 0x03C3; /* GREEK SMALL LETTER SIGMA */ -+ case 0x74: return 0x03C4; /* GREEK SMALL LETTER TAU */ -+ case 0x75: return 0x03C5; /* GREEK SMALL LETTER UPSILON */ -+ case 0x66: return 0x03C6; /* GREEK SMALL LETTER PHI */ -+ case 0x63: return 0x03C7; /* GREEK SMALL LETTER CHI */ -+ case 0x79: return 0x03C8; /* GREEK SMALL LETTER PSI */ -+ case 0x77: return 0x03C9; /* GREEK SMALL LETTER OMEGA */ -+ case 0x4A: return 0x03D1; /* GREEK SMALL LETTER SCRIPT THETA */ -+ case 0xA1: return 0x03D2; /* GREEK CAPITAL LETTER UPSILON HOOK */ -+ case 0x6A: return 0x03D5; /* GREEK SMALL LETTER SCRIPT PHI */ -+ case 0x76: return 0x03D6; /* GREEK SMALL LETTER OMEGA PI */ -+ case 0xB7: return 0x2022; /* BULLET */ -+ case 0xBC: return 0x2026; /* HORIZONTAL ELLIPSIS */ -+ case 0xA2: return 0x2032; /* PRIME */ -+ case 0xB2: return 0x2033; /* DOUBLE PRIME */ -+ case 0x60: return 0x203E; /* SPACING OVERSCORE */ -+ case 0xA4: return 0x2044; /* FRACTION SLASH */ -+ case 0xC1: return 0x2111; /* BLACK-LETTER I */ -+ case 0xC3: return 0x2118; /* SCRIPT P */ -+ case 0xC2: return 0x211C; /* BLACK-LETTER R */ -+ case 0xD4: return 0x2122; /* TRADEMARK */ -+ case 0xE4: return 0x2122; /* TRADEMARK */ -+/* case 0x57: return 0x2126; /* OHM */ -+ case 0xC0: return 0x2135; /* FIRST TRANSFINITE CARDINAL */ -+ case 0xAC: return 0x2190; /* LEFT ARROW */ -+ case 0xAD: return 0x2191; /* UP ARROW */ -+ case 0xAE: return 0x2192; /* RIGHT ARROW */ -+ case 0xAF: return 0x2193; /* DOWN ARROW */ -+ case 0xAB: return 0x2194; /* LEFT RIGHT ARROW */ -+ case 0xBF: return 0x21B5; /* DOWN ARROW WITH CORNER LEFT */ -+ case 0xDC: return 0x21D0; /* LEFT DOUBLE ARROW */ -+ case 0xDD: return 0x21D1; /* UP DOUBLE ARROW */ -+ case 0xDE: return 0x21D2; /* RIGHT DOUBLE ARROW */ -+ case 0xDF: return 0x21D3; /* DOWN DOUBLE ARROW */ -+ case 0xDB: return 0x21D4; /* LEFT RIGHT DOUBLE ARROW */ -+ case 0x22: return 0x2200; /* FOR ALL */ -+ case 0xB6: return 0x2202; /* PARTIAL DIFFERENTIAL */ -+ case 0x24: return 0x2203; /* THERE EXISTS */ -+ case 0xC6: return 0x2205; /* EMPTY SET */ -+/* case 0x44: return 0x2206; /* INCREMENT */ -+ case 0xD1: return 0x2207; /* NABLA */ -+ case 0xCE: return 0x2208; /* ELEMENT OF */ -+ case 0xCF: return 0x2209; /* NOT AN ELEMENT OF */ -+ case 0x27: return 0x220B; /* CONTAINS AS MEMBER */ -+ case 0xD5: return 0x220F; /* N-ARY PRODUCT */ -+ case 0xE5: return 0x2211; /* N-ARY SUMMATION */ -+ case 0x2D: return 0x2212; /* MINUS SIGN */ -+/* case 0xA4: return 0x2215; /* DIVISION SLASH */ -+ case 0x2A: return 0x2217; /* ASTERISK OPERATOR */ -+ case 0xD6: return 0x221A; /* SQUARE ROOT */ -+ case 0xB5: return 0x221D; /* PROPORTIONAL TO */ -+ case 0xA5: return 0x221E; /* INFINITY */ -+ case 0xD0: return 0x2220; /* ANGLE */ -+ case 0xD9: return 0x2227; /* LOGICAL AND */ -+ case 0xDA: return 0x2228; /* LOGICAL OR */ -+ case 0xC7: return 0x2229; /* INTERSECTION */ -+ case 0xC8: return 0x222A; /* UNION */ -+ case 0xF2: return 0x222B; /* INTEGRAL */ -+ case 0x5C: return 0x2234; /* THEREFORE */ -+ case 0x7E: return 0x223C; /* TILDE OPERATOR */ -+ case 0x40: return 0x2245; /* APPROXIMATELY EQUAL TO */ -+ case 0xBB: return 0x2248; /* ALMOST EQUAL TO */ -+ case 0xB9: return 0x2260; /* NOT EQUAL TO */ -+ case 0xBA: return 0x2261; /* IDENTICAL TO */ -+ case 0xA3: return 0x2264; /* LESS THAN OR EQUAL TO */ -+ case 0xB3: return 0x2265; /* GREATER THAN OR EQUAL TO */ -+ case 0xCC: return 0x2282; /* SUBSET OF */ -+ case 0xC9: return 0x2283; /* SUPERSET OF */ -+ case 0xCB: return 0x2284; /* NOT A SUBSET OF */ -+ case 0xCD: return 0x2286; /* SUBSET OF OR EQUAL TO */ -+ case 0xCA: return 0x2287; /* SUPERSET OF OR EQUAL TO */ -+ case 0xC5: return 0x2295; /* CIRCLED PLUS */ -+ case 0xC4: return 0x2297; /* CIRCLED TIMES */ -+ case 0x5E: return 0x22A5; /* UP TACK */ -+ case 0xD7: return 0x22C5; /* DOT OPERATOR */ -+ case 0xF3: return 0x2320; /* TOP HALF INTEGRAL */ -+ case 0xF5: return 0x2321; /* BOTTOM HALF INTEGRAL */ -+ case 0xE1: return 0x2329; /* BRA */ -+ case 0xF1: return 0x232A; /* KET */ -+ case 0xE0: return 0x25CA; /* LOZENGE */ -+ case 0xAA: return 0x2660; /* BLACK SPADE SUIT */ -+ case 0xA7: return 0x2663; /* BLACK CLUB SUIT */ -+ case 0xA9: return 0x2665; /* BLACK HEART SUIT */ -+ case 0xA8: return 0x2666; /* BLACK DIAMOND SUIT */ -+ default: return 0x0000; -+ } -+}; -+ -+map_f adobe_charset(XftFont *font) -+{ -+ map_f map = NULL; -+ -+ /* -+ * Hack: does this font has small a in its charset? -+ * If not it is likly a Symbol or a Dingbats derivate. -+ */ -+ if (XftCharExists(tool_d, font, 0x61)) -+ return NULL; -+ else { -+ XftChar8 *pattern = FcNameUnparse(font->pattern); -+ char *fullname; -+ -+ if ((fullname = strcasestr((char*)pattern, "fullname="))) { -+ char *colon; -+ -+ fullname += 9; -+ if (colon = strchr(fullname, ':')) -+ *colon = '\0'; -+ if (strcasestr(fullname, "symbol")) -+ map = map_symbols; -+ else if (strcasestr(fullname, "dingbats")) -+ map = map_dingbats; -+ else if (strcasestr(fullname, "d050000l")) -+ map = map_dingbats; -+ free(pattern); -+ } -+ } -+ return map; -+} -diff --git a/src/u_fonts.h b/src/u_fonts.h -index 10b5f7c..725161a 100644 ---- a/src/u_fonts.h -+++ b/src/u_fonts.h -@@ -71,4 +71,15 @@ extern void text_origin(int *draw_x, int *draw_y, int base_x, int base_y, - extern struct _fstruct ps_fontinfo[]; - extern struct _fstruct latex_fontinfo[]; - -+/* -+ * For (ITC) Zapf Dingbats, URW Dingbats, or URW D050000L as well -+ * as Symbol, Standard Symbols PS, or URW Standard Symbols L we -+ * need to map the byte characters into UTF-8 multi byte characters. -+ * This to make XftTextExtentsUtf8() and XftDrawStringUtf8() working. -+ */ -+typedef XftChar8 (*map_f)(XftChar8); -+extern XftChar32 map_dingbats(XftChar8); -+extern XftChar32 map_symbols(XftChar8); -+extern map_f adobe_charset(XftFont *font); -+ - #endif /* U_FONTS_H */ -diff --git a/src/w_drawprim.c b/src/w_drawprim.c -index 959e3a6..7487833 100644 ---- a/src/w_drawprim.c -+++ b/src/w_drawprim.c -@@ -162,6 +162,8 @@ pw_xfttext(XftDraw *xftdraw, int x, int y, int depth, XftFont *font, - { - int zy = ZOOMY(y); - int zx = ZOOMX(x); -+ size_t len = strlen(s); -+ map_f map = NULL; - /* XGlyphInfo extents; */ - - if (*s == '\0') -@@ -181,8 +183,19 @@ pw_xfttext(XftDraw *xftdraw, int x, int y, int depth, XftFont *font, - if (check_cancel()) - return; - -- XftDrawStringUtf8(xftdraw, &xftcolor[c], font, zx, zy, (XftChar8 *)s, -- (int)strlen(s)); -+ if ((map = adobe_charset(font))) { -+ XftChar32 glyphs[len]; -+ int glen = 0; -+ -+ for (XftChar8 *chr = (XftChar8 *)s; chr < s+len; chr++) { -+ XftChar32 glyph = XftCharIndex(tool_d, font, map(*chr)); -+ if (glyph) -+ glyphs[glen++] = glyph; -+ } -+ XftDrawGlyphs(xftdraw, &xftcolor[c], font, zx, zy, glyphs, glen); -+ } else -+ XftDrawStringUtf8(xftdraw, &xftcolor[c], font, zx, zy, -+ (XftChar8*)s, (int)len); - } - - /* print "string" in window "w" using font specified in fstruct --- -2.43.0 - diff --git a/Fix-exporting-only-active-layers-ticket-163.patch b/Fix-exporting-only-active-layers-ticket-163.patch deleted file mode 100644 index dabc1c1..0000000 --- a/Fix-exporting-only-active-layers-ticket-163.patch +++ /dev/null @@ -1,29 +0,0 @@ -From a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c Mon Sep 17 00:00:00 2001 -From: Thomas Loimer -Date: Sun, 31 Dec 2023 22:51:29 +0100 -Subject: [PATCH] Fix exporting only active layers, ticket #163 - ---- - src/u_print.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/u_print.c b/src/u_print.c -index c24c096..57921b3 100644 ---- a/src/u_print.c -+++ b/src/u_print.c -@@ -861,10 +861,10 @@ build_layer_list(char *layers) - } - if (len < notlen && firstyes != -1) { - /* use list of layers TO print */ -- sprintf(layers," -D +%s ",list); -+ sprintf(layers, "+%s", list); - } else if (firstno != -1){ - /* use list of layers to NOT print */ -- sprintf(layers," -D -%s ",notlist); -+ sprintf(layers, "-%s", notlist); - } - } - --- -2.39.2 - diff --git a/Sanitize-a-call-to-realloc-ticket-165.patch b/Sanitize-a-call-to-realloc-ticket-165.patch deleted file mode 100644 index 94b8246..0000000 --- a/Sanitize-a-call-to-realloc-ticket-165.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 68403622a6f6c7d74f73e38989cfc0ed86fb83fc Mon Sep 17 00:00:00 2001 -From: Thomas Loimer -Date: Sun, 31 Dec 2023 15:18:45 +0100 -Subject: [PATCH] Sanitize a call to realloc(), ticket #165 - ---- - src/u_print.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/u_print.c b/src/u_print.c -index 2ed385f..c24c096 100644 ---- a/src/u_print.c -+++ b/src/u_print.c -@@ -130,7 +130,7 @@ start_argumentlist(char *arg[restrict], char argbuf[restrict][ARGBUF_SIZE], - arg[0] = fig2dev_cmd; - arg[1] = "-L"; - *a = 2; /* arg[2] will be the output language */ -- if (appres.magnification < 99.99 | appres.magnification > 100.01) { -+ if (appres.magnification < 99.99 || appres.magnification > 100.01) { - int n; - arg[++*a] = "-m"; - n = snprintf(argbuf[++*b], ARGBUF_SIZE, -@@ -531,6 +531,7 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent, - } else if (cur_exp_lang == LANG_PSTEX || - cur_exp_lang == LANG_PDFTEX) { - size_t len = strlen(outfile); -+ char *s; - - /* Options were already set above - - output the first file */ -@@ -544,8 +545,9 @@ print_export(char *file, int xoff, int yoff, char *backgrnd, char *transparent, - goto free_outfile; - } - memcpy(tmp_name, outfile, len + 1); -- if (!realloc(outfile, len + 3)) { -+ if (!(outfile = realloc(s = outfile, len + 3))) { - ret = 1; -+ outfile = s; /* for free(outfile) below */ - goto free_tmp_name; - } - strcpy(outfile + len, "_t"); --- -2.39.2 - diff --git a/sources b/sources index 17e233c..221c443 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (xfig-3.2.9.tar.xz) = ec33476ca4349cdc106ac2308c61f6ecd014bb7331a4fc3616c9f94b93bdc391ce9affe87139c70da88549449b45309d6d9ec78a1e8477450bda4bc370cbbc9a +SHA512 (mcj-xfig-ce9782a404b6a527393839369aac13dcfb66ff16.zip) = a0d483d77edb16d869596a53f89783efd232832b4447089227f34ff552836209f595e5cc9f179242386e85f6f8378607433913720aab29b9d69a2a4007404b47 SHA512 (xfig-icons.tar.gz) = f7d9b314d57994d479712740dcac4a2c924ddacea028db1c6cdeef36fb7d846885c45d21499f7453c750c265eeb5877e4b032454911ce91667ccc550cb2112e5 diff --git a/xfig-3.2.9-compile-fix.patch b/xfig-3.2.9-compile-fix.patch deleted file mode 100644 index 6ca38bc..0000000 --- a/xfig-3.2.9-compile-fix.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up xfig-3.2.9/configure~ xfig-3.2.9/configure -diff -up xfig-3.2.9/src/u_fonts.h~ xfig-3.2.9/src/u_fonts.h ---- xfig-3.2.9/src/u_fonts.h~ 2024-02-26 13:37:49.000000000 +0100 -+++ xfig-3.2.9/src/u_fonts.h 2024-02-26 14:05:16.718889666 +0100 -@@ -77,7 +77,7 @@ extern struct _fstruct latex_fontinfo[]; - * need to map the byte characters into UTF-8 multi byte characters. - * This to make XftTextExtentsUtf8() and XftDrawStringUtf8() working. - */ --typedef XftChar8 (*map_f)(XftChar8); -+typedef XftChar32 (*map_f)(XftChar8); - extern XftChar32 map_dingbats(XftChar8); - extern XftChar32 map_symbols(XftChar8); - extern map_f adobe_charset(XftFont *font); diff --git a/xfig.appdata.xml b/xfig.appdata.xml deleted file mode 100644 index 52787f6..0000000 --- a/xfig.appdata.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - xfig.desktop - CC0-1.0 - MIT - Xfig - Xfig drawing application - -

- 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). -

-

- You should install xfig if you need a simple program to create vector - graphics. -

-
- https://en.wikipedia.org/wiki/Xfig - http://epb.lbl.gov/xfig/ - - http://mcj.sourceforge.net/images/screen-image.png - http://mcj.sourceforge.net/images/library-icon-view.png - http://mcj.sourceforge.net/images/file-panel.png - http://mcj.sourceforge.net/images/color-panel.png - http://mcj.sourceforge.net/images/dimline-panel.png - - jwrdegoede_at_fedoraproject.org -
diff --git a/xfig.desktop b/xfig.desktop deleted file mode 100644 index 0ad8a60..0000000 --- a/xfig.desktop +++ /dev/null @@ -1,49 +0,0 @@ -[Desktop Entry] -Categories=Graphics; -MimeType=image/fig;image/x-xfig; -Exec=/usr/bin/xfig %f -Icon=xfig -Type=Application -Name=Xfig -Name[eo]=XDesegno -Name[et]=Ffig -Name[ja]=xfig -Name[no]=X-figur -Comment=Xfig drawing application -Comment[bg]=Xfig ïðîãðàìà çà ðèñóâàíå -Comment[ca]=Aplicació de dibuix Xfig -Comment[cs]=Aplikace pro kreslení vektorových obrázků -Comment[da]=Xfig tegneprogram -Comment[de]=Xfig-Zeichenprogramm -Comment[el]=Xfig -Comment[eo]=Desegnilo "Xfig" -Comment[es]=Aplicación de diseño vectorial (objetos) -Comment[et]=XFig joonistusprogramm -Comment[fi]=Xfig vektoripiirto-ohjelma -Comment[fr]=Programme de dessin objet Xfig -Comment[gl]=Aplicación de debuxo (obxectos) -Comment[he]=Xfig רויצה םושיי -Comment[hr]=Program za crtanje -Comment[hu]=Rajzolóprogram -Comment[is]=Hlutbundið teikniforrit -Comment[it]=Applicazione di disegno Xfig -Comment[lt]=Xfig braižymo programa -Comment[mk]=Едноставна апликација за векторско цртање -Comment[nl]=Xfig-tekenprogramma -Comment[no]=Xfig-tegneprogram -Comment[no_NY]=Teikneprogrammet Xfig -Comment[pl]=Aplikacja do kreślenia -Comment[pt]=Aplicação de desenho -Comment[ro]=Program de desenare vectorială -Comment[ru]=Приложения для рисования векторной графики -Comment[sk]=Xfig aplikácia pre kreslenie vektorových obrázkov -Comment[sl]=Program za risanje Xfig -Comment[sr]=Xfig prgram za vektorsko crtanje -Comment[sv]=Xfig ritprogram -Comment[ta]=Xfig Ũþø ÀÂýÀ¡Î -Comment[tr]=Xfig çizim uygulaması -Comment[uk]=Xfig -Comment[zh_CN.GB2312]=Xfig 绘图应用程序 -Terminal=false -StartupNotify=false -Keywords=vector;graphics;figure;drawing; diff --git a/xfig.rpmlintrc b/xfig.rpmlintrc index d4619a7..e87b437 100644 --- a/xfig.rpmlintrc +++ b/xfig.rpmlintrc @@ -1,2 +1,5 @@ -addFilter("W: spelling-error.*") addFilter("W: invalid-url Source1") +addFilter("W: no-%check-section") +addFilter("W: files-duplicate /usr/share/") +addFilter("E: non-executable-script /usr/share/xfig/Libraries/Maps/") +addFilter("E: spelling-error") diff --git a/xfig.spec b/xfig.spec index d535632..75c7451 100644 --- a/xfig.spec +++ b/xfig.spec @@ -1,36 +1,23 @@ -%global app_defaults_dir %{_datadir}/X11/app-defaults +%global commit ce9782a404b6a527393839369aac13dcfb66ff16 +%global commitdate 20250317 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) Summary: An X Window System tool for drawing basic vector graphics Name: xfig -Version: 3.2.9 -Release: 7%{?dist} +Version: 3.2.9a +Release: 1.%{commitdate}git%{shortcommit}%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig -Source0: http://downloads.sourceforge.net/mcj/xfig-%{version}.tar.xz +#Source0: http://downloads.sourceforge.net/mcj/xfig-%%{version}.tar.xz +Source0: https://sourceforge.net/code-snapshots/git/m/mc/mcj/xfig.git/mcj-xfig-%{commit}.zip Source1: xfig-icons.tar.gz -Source2: xfig.desktop -Source3: xfig.appdata.xml -# https://sourceforge.net/p/mcj/tickets/165/ -# https://bugzilla.redhat.com/show_bug.cgi?id=2252679 -# https://sourceforge.net/p/mcj/xfig/ci/68403622a6f6c7d74f73e38989cfc0ed86fb83fc/ -Patch0: Sanitize-a-call-to-realloc-ticket-165.patch -# https://sourceforge.net/p/mcj/tickets/163/ -# https://sourceforge.net/p/mcj/xfig/ci/a4a2f3f3aa29ec7fc84f9d782306b37bbe75025c/ -Patch1: Fix-exporting-only-active-layers-ticket-163.patch -# https://sourceforge.net/p/mcj/tickets/159/ -# https://bugzilla.redhat.com/show_bug.cgi?id=2260359 -# https://sourceforge.net/p/mcj/xfig/ci/1e2d842875502b4ce0e74ec779454304c71efe54/ -Patch2: 0001-Map-symbol-and-dingbat-glyphs-to-their-unicode-locat.patch -# compile fix for above patch -Patch3: xfig-3.2.9-compile-fix.patch -#Patch0: xfig-3.2.5a-default-apps.patch -#Patch1: xfig-3.2.5-urwfonts.patch BuildRequires: make BuildRequires: gcc libtool BuildRequires: transfig BuildRequires: libjpeg-devel BuildRequires: libpng-devel +BuildRequires: libtiff-devel BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel @@ -43,7 +30,6 @@ BuildRequires: libXpm-devel BuildRequires: libXt-devel BuildRequires: Xaw3d-devel BuildRequires: man2html-core ImageMagick -BuildRequires: desktop-file-utils libappstream-glib # For eps preview generation Requires: ghostscript Requires: transfig @@ -72,7 +58,7 @@ graphics. %prep -%autosetup -p1 -a 1 +%autosetup -p1 -a 1 -n mcj-xfig-%{commit} for i in doc/html/japanese/button_frame.fig doc/html/japanese/japanese.ps \ doc/html/animate.js; do sed -i.orig 's/\r//' $i; touch -r $i.orig $i; rm $i.orig @@ -100,26 +86,26 @@ convert %{name}32x32.xpm \ convert %{name}64x64.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png -mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications -desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} -mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata -install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata -appstream-util validate-relax --nonet \ - $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml - %files %doc %{_docdir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1* -%{app_defaults_dir}/Fig -%{_datadir}/appdata/%{name}.appdata.xml -%{_datadir}/applications/%{name}.desktop +%{_datadir}/X11/app-defaults/Fig +%{_datadir}/metainfo/org.xfig.xfig.metainfo.xml +%{_datadir}/applications/org.xfig.xfig.desktop %{_datadir}/icons/hicolor/??x??/apps/%{name}.png %changelog +* Wed Aug 6 2025 Hans de Goede - 3.2.9a-1.20250317gitce9782a +- Update to 3.2.9a + latest git changes to fix build with -std=c11 +- Switch to upstream appdata/metainfo and desktop file +- Drop all patches (all upstreamed) +- Resolves: rhbz#2341567 +- Resolves: rhbz#2385740 + * Fri Jul 25 2025 Fedora Release Engineering - 3.2.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 8a8a141c23983dff8d27625a8c80cf1b2d4c443d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 20:40:35 +0000 Subject: [PATCH 60/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index 75c7451..fc32cd5 100644 --- a/xfig.spec +++ b/xfig.spec @@ -5,7 +5,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9a -Release: 1.%{commitdate}git%{shortcommit}%{?dist} +Release: 2.%{commitdate}git%{shortcommit}%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig #Source0: http://downloads.sourceforge.net/mcj/xfig-%%{version}.tar.xz @@ -99,6 +99,9 @@ convert %{name}64x64.xpm \ %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 3.2.9a-2.20250317gitce9782a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Wed Aug 6 2025 Hans de Goede - 3.2.9a-1.20250317gitce9782a - Update to 3.2.9a + latest git changes to fix build with -std=c11 - Switch to upstream appdata/metainfo and desktop file From 45f80125657f0726c3de37c1a428d4890190d7c4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 09:13:38 +0000 Subject: [PATCH 61/61] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- xfig.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xfig.spec b/xfig.spec index fc32cd5..2443f40 100644 --- a/xfig.spec +++ b/xfig.spec @@ -5,7 +5,7 @@ Summary: An X Window System tool for drawing basic vector graphics Name: xfig Version: 3.2.9a -Release: 2.%{commitdate}git%{shortcommit}%{?dist} +Release: 3.%{commitdate}git%{shortcommit}%{?dist} License: MIT URL: https://en.wikipedia.org/wiki/Xfig #Source0: http://downloads.sourceforge.net/mcj/xfig-%%{version}.tar.xz @@ -99,6 +99,9 @@ convert %{name}64x64.xpm \ %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 3.2.9a-3.20250317gitce9782a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Sat Jan 17 2026 Fedora Release Engineering - 3.2.9a-2.20250317gitce9782a - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild