]> git.pld-linux.org Git - packages/fontforge.git/blame - fontforge.spec
rebuild with python 3.10
[packages/fontforge.git] / fontforge.spec
CommitLineData
a7145d56
JB
1#
2# Conditional build:
ed9b96d9
JB
3%bcond_without python # Python (3) scripting and extension
4%bcond_without doc # Sphinx documentation
a7145d56 5
5b9f5543 6Summary: An outline font editor
5fbf9ad2 7Summary(pl.UTF-8): Edytor fontów rysowanych
5b9f5543 8Name: fontforge
8d38c334 9Version: 20201107
d0a22cad 10Release: 3
a7145d56 11License: GPL v3+ with BSD parts
5b9f5543 12Group: X11/Applications/Publishing
a7145d56 13#Source0Download: https://github.com/fontforge/fontforge/releases
ed9b96d9 14Source0: https://github.com/fontforge/fontforge/releases/download/%{version}/%{name}-%{version}.tar.xz
8d38c334
JB
15# Source0-md5: efc0b3c79ba576133de70d67ccadcf24
16URL: https://fontforge.org/
a7145d56 17BuildRequires: cairo-devel >= 1.6
ed9b96d9 18BuildRequires: cmake >= 3.5
a7145d56 19BuildRequires: freetype-devel >= 1:2.3.7
87017297 20BuildRequires: gettext-tools
ed9b96d9 21BuildRequires: gcc >= 5:3.2
ff913066 22BuildRequires: giflib-devel
a7145d56 23BuildRequires: glib2-devel >= 1:2.6
ed9b96d9 24BuildRequires: gtk+3-devel >= 3.10
5b9f5543
JB
25BuildRequires: libjpeg-devel
26BuildRequires: libpng-devel
ed9b96d9
JB
27BuildRequires: libspiro-devel >= 1:0.6
28BuildRequires: libstdc++-devel >= 1:4.7
a7145d56
JB
29BuildRequires: libtiff-devel >= 4
30BuildRequires: libltdl-devel >= 2:2
a7145d56
JB
31# 0.3
32BuildRequires: libuninameslist-devel >= 20130501
33BuildRequires: libxml2-devel >= 2.0
34BuildRequires: pango-devel >= 1:1.10
35BuildRequires: pkgconfig >= 1:0.25
ed9b96d9
JB
36BuildRequires: python3-devel >= 1:3.3
37BuildRequires: python3-modules >= 1:3.3
a7145d56
JB
38BuildRequires: readline-devel
39BuildRequires: tar >= 1:1.22
ed9b96d9 40BuildRequires: woff2-devel
f3c514af 41BuildRequires: xorg-lib-libX11-devel
f3c514af 42BuildRequires: xorg-lib-libXi-devel
a7145d56 43BuildRequires: xz
c40b8487 44BuildRequires: zlib-devel
a7145d56 45Requires: cairo >= 1.6
01b2c9d0 46Requires: freetype >= 1:2.3.7
a7145d56 47Requires: glib2 >= 1:2.6
ed9b96d9 48Requires: gtk+3 >= 3.10
7b1f7094 49Requires: iconv
a7145d56
JB
50Requires: libuninameslist >= 20130501
51Requires: pango >= 1:1.10
ed9b96d9
JB
52# API and plugins support withdrawn
53Obsoletes: fontforge-devel < 20190413
54Obsoletes: fontforge-static < 20190413
8d38c334 55Obsoletes: pfaedit < 040311
5b9f5543
JB
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58%description
59FontForge allows you to edit outline and bitmap fonts. You can create
60new ones or modify old ones. It is also a font format converter and
61can convert among PostScript (ASCII & binary Type 1, some Type 3s,
62some Type 0s), TrueType, OpenType (Type2) and CID-keyed fonts.
63
64FontForge used to be called PfaEdit.
65
ce0761d3
JR
66%description -l pl.UTF-8
67FontForge pozwala na edycję fontów rysowanych i bitmapowych. Można
68tworzyć nowe lub modyfikować istniejące. Jest to także konwerter
69między formatami fontów - potrafi obsługiwać fonty postscriptowe
70(ASCII i binarne Type 1, część Type 3, część Type 0), TrueType,
5b9f5543
JB
71OpenType (Type2) i fonty z kluczami CID.
72
ce0761d3 73FontForge wcześniej nazywał się PfaEdit.
5b9f5543 74
16b7cb86
JB
75%package devel
76Summary: Header files for FontForge libraries
77Summary(pl.UTF-8): Pliki nagłówkowe bibliotek FontForge
78Group: Development/Libraries
79Requires: %{name} = %{version}-%{release}
a7145d56 80Requires: cairo-devel >= 1.6
a7145d56 81Requires: freetype-devel >= 1:2.3.7
c40b8487
JB
82Requires: giflib-devel
83Requires: libjpeg-devel
01b2c9d0 84Requires: libltdl-devel
c40b8487 85Requires: libpng-devel
ed9b96d9 86Requires: libspiro-devel >= 1:0.6
a7145d56
JB
87Requires: libtiff-devel >= 4
88Requires: libuninameslist-devel >= 20130501
a7145d56 89Requires: pango-devel >= 1:1.10
c40b8487 90Requires: xorg-lib-libX11-devel
c40b8487 91Requires: zlib-devel
16b7cb86
JB
92
93%description devel
94Header files for FontForge libraries.
95
96%description devel -l pl.UTF-8
97Pliki nagłówkowe bibliotek FontForge.
98
a7145d56
JB
99%package static
100Summary: Static FontForge libraries
101Summary(pl.UTF-8): Statyczne biblioteki FontForge
102Group: Development/Libraries
103Requires: %{name}-devel = %{version}-%{release}
104
105%description static
106Static FontForge libraries.
107
108%description static -l pl.UTF-8
109Statyczne biblioteki FontForge.
110
111%package doc
112Summary: FontForge documentation
113Summary(pl.UTF-8): Dokumentacja do FontForge
114Group: Documentation
115
116%description doc
117FontForge documentation.
118
119%description doc -l pl.UTF-8
120Dokumentacja do FontForge.
121
ed9b96d9 122%package -n python3-fontforge
a7145d56
JB
123Summary: Python bindings for FontForge libraries
124Summary(pl.UTF-8): Wiązania Pythona do bibliotek FontForge
125Group: Libraries/Python
126Requires: %{name} = %{version}-%{release}
ed9b96d9 127Obsoletes: python-fontforge < 20200314
a7145d56 128
ed9b96d9 129%description -n python3-fontforge
a7145d56
JB
130Python bindings for FontForge libraries.
131
ed9b96d9 132%description -n python3-fontforge -l pl.UTF-8
a7145d56
JB
133Wiązania Pythona do bibliotek FontForge.
134
5b9f5543 135%prep
ed9b96d9
JB
136%setup -q
137
138%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
139 pycontrib/svg2glyph/svg2glyph
140
141%{__sed} -i -e '1s,/usr/bin/env fontforge,%{_bindir}/fontforge,' \
142 pycontrib/simple/expand-a.py \
143 pycontrib/simple/load-font-and-show-name.py
144
145# make Sphinx warnings non-fatal
146%{__sed} -i -e '/Sphinx_BUILD_BINARY/ s/ -W / /' doc/CMakeLists.txt
147# missing?
148touch doc/sphinx/contents.rst
69dd669d 149
5b9f5543 150%build
ed9b96d9
JB
151install -d build
152cd build
153%cmake .. \
154 -DCMAKE_INSTALL_DOCDIR=%{_docdir}/fontforge \
155 %{!?with_doc:-DENABLE_DOCS=OFF} \
156 -DENABLE_FONTFORGE_EXTRAS=ON \
157%if %{without python}
158 -DENABLE_PYTHON_EXTENSION=OFF \
159 -DENABLE_PYTHON_SCRIPTING=OFF \
160%endif
161 -DENABLE_WRITE_PFM=ON
5b9f5543
JB
162
163%{__make}
164
ed9b96d9
JB
165%{__rm} doc/sphinx-docs/{.buildinfo,.nojekyll,objects.inv}
166
5b9f5543
JB
167%install
168rm -rf $RPM_BUILD_ROOT
169
ed9b96d9 170%{__make} -C build install \
16b7cb86 171 DESTDIR=$RPM_BUILD_ROOT
5b9f5543 172
ed9b96d9
JB
173# API no longer exported
174%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfontforge.so
2142475b 175
93802d2a
JR
176%{__mv} $RPM_BUILD_ROOT%{_localedir}/tr{_TR,}
177
7935b599 178%find_lang FontForge
04c00bcf 179
5b9f5543
JB
180%clean
181rm -rf $RPM_BUILD_ROOT
182
183%post -p /sbin/ldconfig
184%postun -p /sbin/ldconfig
185
7935b599 186%files -f FontForge.lang
5b9f5543 187%defattr(644,root,root,755)
ed9b96d9 188%doc AUTHORS LICENSE README.md
5b9f5543 189%attr(755,root,root) %{_bindir}/fontforge
1699a51e
AM
190%attr(755,root,root) %{_bindir}/fontimage
191%attr(755,root,root) %{_bindir}/fontlint
5b9f5543 192%attr(755,root,root) %{_bindir}/sfddiff
ed9b96d9 193%attr(755,root,root) %{_libdir}/libfontforge.so.4
1699a51e 194%{_datadir}/fontforge
ed9b96d9 195%{_datadir}/metainfo/org.fontforge.FontForge.appdata.xml
a7145d56 196%{_datadir}/mime/packages/fontforge.xml
ed9b96d9
JB
197%{_desktopdir}/org.fontforge.FontForge.desktop
198%{_iconsdir}/hicolor/*x*/apps/org.fontforge.FontForge.png
199%{_iconsdir}/hicolor/scalable/apps/org.fontforge.FontForge.svg
200%{_pixmapsdir}/org.fontforge.FontForge.png
201%{_pixmapsdir}/org.fontforge.FontForge.xpm
16b7cb86
JB
202%{_mandir}/man1/fontforge.1*
203%{_mandir}/man1/fontimage.1*
204%{_mandir}/man1/fontlint.1*
205%{_mandir}/man1/sfddiff.1*
206
a7145d56
JB
207%files doc
208%defattr(644,root,root,755)
ed9b96d9
JB
209%dir %{_docdir}/fontforge
210%{_docdir}/fontforge/_images
211%{_docdir}/fontforge/_static
212%{_docdir}/fontforge/appendices
213%{_docdir}/fontforge/fontutils
214%{_docdir}/fontforge/scripting
215%{_docdir}/fontforge/techref
216%{_docdir}/fontforge/tutorial
217%{_docdir}/fontforge/ui
218%dir %{_docdir}/fontforge/old
219%lang(de) %{_docdir}/fontforge/old/de
220%lang(ja) %{_docdir}/fontforge/old/ja
221%{_docdir}/fontforge/*.html
222%{_docdir}/fontforge/*.js
223
224%files -n python3-fontforge
a7145d56 225%defattr(644,root,root,755)
ed9b96d9
JB
226%attr(755,root,root) %{py3_sitedir}/fontforge.so
227%attr(755,root,root) %{py3_sitedir}/psMat.so
This page took 0.138538 seconds and 4 git commands to generate.