Debian Codegraph @

Packaging/redhat/FontForge.spec.in

raw
1 Name: fontforge
2 Version: @PROJECT_VERSION@
3 Release: 1
4 License: GPLv3
5 Vendor: FontForge
6 URL: http://fontforge.github.io/
7 Packager: Package Maintainer <[email protected]>
8 Summary: Computer typeface editor
9 Source: fontforge-%{version}.tar.xz
10 Requires: libfontforge4 = %{version}, fontforge-common = %{version}
11 BuildRequires: cmake ninja-build gcc g++ gtk3-devel libspiro-devel readline-devel woff2-devel libtiff-devel libjpeg-devel giflib-devel libpng-devel python3-devel libxml2-devel
12
13 %define _unpackaged_files_terminate_build 0
14
15 %prep
16 %setup
17
18 %description
19 FontForge provides a complete suite of tools for producing high-quality typefaces and supports a wide range of file formats including TrueType, OpenType, PostScript, and U. F. O..
20
21 %build
22 mkdir build
23 cd build
24 cmake -GNinja .. -DCMAKE_INSTALL_PREFIX="%{_prefix}"
25 ninja
26
27 %install
28 cd build
29 DESTDIR="$RPM_BUILD_ROOT" ninja install
30
31 %pre
32
33 %post
34
35 %preun
36
37 %postun
38
39 %clean
40
41 %files
42 %defattr(-,root,root)
43 %attr(0755,root,root) %{_bindir}/fontforge
44 %attr(0755,root,root) %{_bindir}/fontimage
45 %attr(0755,root,root) %{_bindir}/fontlint
46 %attr(0755,root,root) %{_bindir}/sfddiff
47 %attr(0644,root,root) %{_datadir}/applications/*
48 %attr(0644,root,root) %{_datadir}/metainfo/*
49 %attr(0644,root,root) %{_datadir}/man/man1/*
50 %attr(0644,root,root) %{_datadir}/mime/packages/fontforge.xml
51
52 %package -n libfontforge4
53 Requires: libgcc
54 Summary: FontForge libraries
55
56 %description -n libfontforge4
57 FontForge provides a complete suite of tools for producing high-quality typefaces and supports a wide range of file formats including TrueType, OpenType, PostScript, and U. F. O..
58
59 %pre -n libfontforge4
60
61 %post -n libfontforge4
62
63 %preun -n libfontforge4
64
65 %postun -n libfontforge4
66
67 %files -n libfontforge4
68 %defattr(-,root,root)
69 %{_libdir}/libfontforge.so*
70
71 %package -n python-fontforge
72 Requires: libfontforge4 = %{version}
73 Summary: Python bindings
74
75 %description -n python-fontforge
76 FontForge provides a complete suite of tools for producing high-quality typefaces and supports a wide range of file formats including TrueType, OpenType, PostScript, and U. F. O..
77
78 %pre -n python-fontforge
79
80 %post -n python-fontforge
81
82 %preun -n python-fontforge
83
84 %postun -n python-fontforge
85
86 %files -n python-fontforge
87 %defattr(-,root,root)
88 %attr(0644,root,root) %{_libdir}*/python*/[a-z]*-packages/psMat.so
89 %attr(0644,root,root) %{_libdir}*/python*/[a-z]*-packages/fontforge.so
90 %attr(0644,root,root) %{_datadir}/fontforge/python/excepthook.py
91
92 %package common
93 Summary: Platform-independent support files
94
95 %description common
96 FontForge provides a complete suite of tools for producing high-quality typefaces and supports a wide range of file formats including TrueType, OpenType, PostScript, and U. F. O..
97
98 %pre common
99
100 %post common
101
102 %preun common
103
104 %postun common
105
106 %files common
107 %defattr(-,root,root)
108 %attr(0644,root,root) %{_datadir}/locale/*/LC_MESSAGES/FontForge.mo
109 %attr(0644,root,root) %{_datadir}/icons/*/*/*/*
110 %attr(0644,root,root) %{_datadir}/fontforge/hotkeys/*
111 %attr(0644,root,root) %{_datadir}/fontforge/pixmaps/*
112 %attr(0644,root,root) %{_datadir}/fontforge/prefs
113
114 %package doc
115 Summary: Documentation
116
117 %description doc
118 FontForge provides a complete suite of tools for producing high-quality typefaces and supports a wide range of file formats including TrueType, OpenType, PostScript, and U. F. O..
119
120 %pre doc
121
122 %post doc
123
124 %preun doc
125
126 %postun doc
127
128 %files doc
129 %defattr(-,root,root)
130 %attr(0644,root,root) %{_datadir}/doc/fontforge/*.*
131 %attr(0644,root,root) %{_datadir}/doc/fontforge/flags/*.*
132 %attr(0644,root,root) %{_datadir}/doc/fontforge/nonBMP/*.*
133
134