From 44e83bd1142bc447e8f2500635bfacb7708ce7bd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:41:19 +0100 Subject: [PATCH] package created [release 3.2.7b-1mamba;Sun Dec 06 2020] --- README.md | 2 + xfig-3.2.7b-build-spl_image.patch | 13 ++++++ xfig.spec | 72 +++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 xfig-3.2.7b-build-spl_image.patch create mode 100644 xfig.spec diff --git a/README.md b/README.md index c9bb7d9..ec7e5b0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xfig +xfig is an interactive drawing tool. + diff --git a/xfig-3.2.7b-build-spl_image.patch b/xfig-3.2.7b-build-spl_image.patch new file mode 100644 index 0000000..32d6f47 --- /dev/null +++ b/xfig-3.2.7b-build-spl_image.patch @@ -0,0 +1,13 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -130,6 +130,8 @@ + fig2dev -L xpm $(top_srcdir)/splash-image/spl_bckgnd.fig \ + | sed '2 {s/static //; s/noname/spl_bckgnd_xpm/}' > $@ + +-splash.xbm: $(top_srcdir)/splash-image/spl_bckgnd.fig $(top_srcdir)/version.m4 +- fig2dev -L xbm -S 4 $(top_srcdir)/splash-image/spl_bckgnd.fig \ ++splash.xbm: $(top_srcdir)/splash-image/spl_bckgnd.fig.in \ ++ $(top_srcdir)/version.m4 ++ fig2dev -L ppm -S 4 $(top_srcdir)/splash-image/spl_bckgnd.fig \ ++ | ppmtopgm | pgmtopbm -d8 | pbmtoxbm \ + | sed '1,3 s/noname/spl_bckgnd/; 3 s/char/unsigned &/' > $@ diff --git a/xfig.spec b/xfig.spec new file mode 100644 index 0000000..470e42e --- /dev/null +++ b/xfig.spec @@ -0,0 +1,72 @@ +%define fig2dev_dir /usr/share/fig2dev +%define xfig_dir /usr/lib/X11/xfig + +Name: xfig +Version: 3.2.7b +Release: 1mamba +Summary: An interactive drawing tool +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://xfig.org/ +Source: https://sourceforge.net/projects/mcj/files/xfig-%{version}.tar.xz +Patch5: xfig-3.2.7b-build-spl_image.patch +License: Distributable +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libX11-devel +BuildRequires: libXaw3d-devel +BuildRequires: libXpm-devel +BuildRequires: libXt-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot + +%description +xfig is an interactive drawing tool. + +%debug_package + +%prep +%setup -q +%patch5 -p1 +autoreconf -f -i + +%build +%configure + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/xfig +%dir %{_datadir}/xfig +%{_datadir}/xfig/CompKeyDB +%dir %{_datadir}/xfig/Libraries +%{_datadir}/xfig/Libraries/* +%{_datadir}/X11/app-defaults/Fig +%{_datadir}/applications/xfig.desktop +%{_datadir}/pixmaps/xfig.png +%dir %{_docdir}/xfig +%{_docdir}/xfig/FORMAT* +%dir %{_docdir}/xfig/html +%{_docdir}/xfig/html/* +%{_datadir}/doc/xfig/xfig-howto.pdf +%{_datadir}/doc/xfig/xfig-title.png +%{_datadir}/doc/xfig/xfig_man.html +%{_datadir}/doc/xfig/xfig_ref_en.pdf +%{_mandir}/man1/xfig.1* + +%changelog +* Sun Dec 06 2020 Silvan Calarco 3.2.7b-1mamba +- package created