automatic version update by autodist [release 20201107-1mamba;Tue Jun 01 2021]

This commit is contained in:
Automatic Build System 2024-01-05 22:29:44 +01:00
parent 0389d00ce5
commit 75766bca67

View File

@ -2,14 +2,14 @@
%define pkgver %(echo %version | tr _ -)
Name: fontforge
Epoch: 1
Version: 20190801
Release: 2mamba
Version: 20201107
Release: 1mamba
Summary: An outline font editor
Group: Applications/Fonts
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://fontforge.sourceforge.net/
URL: https://fontforge.org/
Source: https://github.com/fontforge/fontforge.git/%{version}/fontforge-%{version}.tar.bz2
#Source: http://downloads.sourceforge.net/fontforge/fontforge_full-%{pkgver}.tar.bz2
#Source1: http://downloads.sourceforge.net/fontforge/fontforge_htdocs-%{pkgver}.tar.bz2
@ -18,51 +18,33 @@ Patch0: fontforge-20150228-add_gunicode_to_pkgconfig.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXft-devel
BuildRequires: libXi-devel
BuildRequires: libXrender-devel
BuildRequires: libbsd-devel
BuildRequires: libbzip2-devel
BuildRequires: libbrotli-devel
BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libgif-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libjbig-devel
BuildRequires: libjpeg-devel
BuildRequires: libltdl-devel
BuildRequires: liblzma-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libpython39-devel
BuildRequires: libreadline-devel
BuildRequires: libselinux-devel
BuildRequires: libspiro-devel
BuildRequires: libtermcap-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libuninameslist-devel
BuildRequires: libuuid-devel
BuildRequires: libxcb-devel
BuildRequires: libwoff2-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libuninameslist-devel >= 20200413
BuildConflicts: libfontforge-devel
#BuildConflicts: libfontforge-devel
Requires: potrace
Requires: xdg-utils
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
FontForge is an outline font editor that lets you create your own postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap (bdf) fonts, or edit existing ones. Also lets you convert one format to another.
@ -91,6 +73,7 @@ This package contains static libraries and header files needed for development.
%prep
%setup -q -n %{name}-%{pkgver}
#-D -T
#%patch0 -p1
#mkdir docs
@ -104,51 +87,17 @@ This package contains static libraries and header files needed for development.
#tar xzf docs/cidmaps.tgz
%build
./bootstrap
#export CFLAGS='-DDOCDIR=\"%{_defaultdocdir}/%{name}-%{version}/docs\"'
export LIBS="-lspiro -ltermcap"
%configure \
--without-freetype-bytecode \
--with-regular-link \
--with-python=%{__python} \
PYTHON=%{__python}
# --with-freetype-src=%{_builddir}/freetype-%{freetype_ver}
# --with-multilayer \
#:<< _EOF
%cmake -d build
%make LDFLAGS="`pkg-config --libs libpng`"
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
# FIXME: add a wrapper that sets XLIB_SKIP_ARGB_VISUALS=1 before
# calling fontforge to make it work with Xgl
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin
cat > %{buildroot}%{_bindir}/%{name} << _EOF
#!/bin/bash
# Copyright (c) 2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2007 by Davide Madrisan <davide.madrisan@gmail.com>
XLIB_SKIP_ARGB_VISUALS=1 %{name}.bin \$@
_EOF
chmod 775 %{buildroot}%{_bindir}/%{name}
## install CMaps
#install -m 644 Adobe* %{buildroot}%{_datadir}/%{name}
%makeinstall -C build
%find_lang FontForge
## install icon
#install -d -m0755 %{buildroot}%{_datadir}/icons/hicolor/
#cp -a desktop/icons/* %{buildroot}%{_datadir}/icons/hicolor/
## install desktop file
#install -D -m 644 desktop/fontforge.desktop \
# %{buildroot}%{_datadir}/applications/%{name}.desktop
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
@ -158,13 +107,13 @@ chmod 775 %{buildroot}%{_bindir}/%{name}
%files -f FontForge.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/%{name}.bin
#%{_bindir}/%{name}.bin
%{_bindir}/fontimage
%{_bindir}/fontlint
%{_bindir}/sfddiff
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/appdata/org.fontforge.FontForge.appdata.xml
#%{_datadir}/appdata/org.fontforge.FontForge.appdata.xml
%{_datadir}/applications/org.fontforge.FontForge.desktop
%{_datadir}/icons/hicolor/*/apps/org.fontforge.FontForge.png
%{_datadir}/icons/hicolor/scalable/apps/org.fontforge.FontForge.svg
@ -175,49 +124,31 @@ chmod 775 %{buildroot}%{_bindir}/%{name}
%{_mandir}/man1/fontimage.*
%{_mandir}/man1/fontlint.*
%{_mandir}/man1/sfddiff.*
%{python_sitearch}/fontforge.*
%{python_sitearch}/psMat.*
%{python39_sitearch}/fontforge.*
%{python39_sitearch}/psMat.*
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libfontforge.so.*
%{_libdir}/libfontforgeexe.so.*
%{_libdir}/libgdraw.so.*
#%{_libdir}/libgioftp.so.*
%{_libdir}/libgunicode.so.*
%{_libdir}/libgutils.so.*
%doc AUTHORS LICENSE
%files -n %{libname}-devel
%defattr(-,root,root)
%dir %{_includedir}/fontforge
%{_includedir}/fontforge/*.h
%{_libdir}/libfontforge.a
%{_libdir}/libfontforge.la
#%dir %{_includedir}/fontforge
#%{_includedir}/fontforge/*.h
%{_libdir}/libfontforge.so
%{_libdir}/libfontforgeexe.a
%{_libdir}/libfontforgeexe.la
%{_libdir}/libfontforgeexe.so
%{_libdir}/libgdraw.a
%{_libdir}/libgdraw.la
%{_libdir}/libgdraw.so
#%{_libdir}/libgioftp.a
#%{_libdir}/libgioftp.la
#%{_libdir}/libgioftp.so
%{_libdir}/libgunicode.a
%{_libdir}/libgunicode.la
%{_libdir}/libgunicode.so
%{_libdir}/libgutils.a
%{_libdir}/libgutils.la
%{_libdir}/libgutils.so
%dir %{_docdir}/fontforge
%{_docdir}/fontforge/*
%{_docdir}/fontforge/.htaccess
%{_libdir}/pkgconfig/lib%{name}.pc
%{_libdir}/pkgconfig/lib%{name}exe.pc
%{_datadir}/doc/fontforge/.buildinfo
%{_datadir}/doc/fontforge/.nojekyll
#%{_libdir}/pkgconfig/lib%{name}.pc
#%{_libdir}/pkgconfig/lib%{name}exe.pc
#%doc README-unix README-Unix.html
%changelog
* Tue Jun 01 2021 Automatic Build System <autodist@mambasoft.it> 20201107-1mamba
- automatic version update by autodist
* Sat Dec 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 20190801-2mamba
- rebuilt with libuninameslist-devel 20200413