1 | # Note: this .spec is borrowed from pango-1.28.4-1.fc15.src.rpm
|
---|
2 |
|
---|
3 | %define glib2_base_version 2.17.3
|
---|
4 | %define glib2_version %{glib2_base_version}-1
|
---|
5 | %define pkgconfig_version 0.12
|
---|
6 | %define freetype_version 2.1.3-3
|
---|
7 | %define fontconfig_version 2.6
|
---|
8 | %define cairo_version 1.7.6
|
---|
9 | %define libthai_version 0.1.9
|
---|
10 |
|
---|
11 | Summary: System for layout and rendering of internationalized text
|
---|
12 | Name: pango
|
---|
13 | Version: 1.28.4
|
---|
14 | Release: 2%{?dist}
|
---|
15 | License: LGPLv2+
|
---|
16 | Group: System Environment/Libraries
|
---|
17 | #VCS: git:git://git.gnome.org/pango
|
---|
18 | #Source: http://download.gnome.org/sources/pango/1.28/pango-%{version}.tar.bz2
|
---|
19 | URL: http://www.pango.org
|
---|
20 | Vendor: bww bitwise works GmbH
|
---|
21 |
|
---|
22 | %define svn_url http://svn.netlabs.org/repos/ports/pango/trunk
|
---|
23 | %define svn_rev 1270
|
---|
24 |
|
---|
25 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
26 |
|
---|
27 | BuildRequires: gcc make subversion zip
|
---|
28 |
|
---|
29 | Requires: glib2 >= %{glib2_version}
|
---|
30 | Requires: freetype >= %{freetype_version}
|
---|
31 | Requires: fontconfig >= %{fontconfig_version}
|
---|
32 | Requires: cairo >= %{cairo_version}
|
---|
33 | #Requires: libthai >= %{libthai_version}
|
---|
34 | BuildRequires: glib2-devel >= %{glib2_version}
|
---|
35 | BuildRequires: pkgconfig >= %{pkgconfig_version}
|
---|
36 | BuildRequires: freetype-devel >= %{freetype_version}
|
---|
37 | BuildRequires: fontconfig-devel >= %{fontconfig_version}
|
---|
38 | BuildRequires: cairo-devel >= %{cairo_version}
|
---|
39 | #BuildRequires: libthai-devel >= %{libthai_version}
|
---|
40 | #BuildRequires: gobject-introspection-devel
|
---|
41 | BuildRequires: cairo-gobject-devel
|
---|
42 | # Bootstrap requirements
|
---|
43 | #BuildRequires: gnome-common intltool gtk-doc
|
---|
44 |
|
---|
45 | %description
|
---|
46 | Pango is a library for laying out and rendering of text, with an emphasis
|
---|
47 | on internationalization. Pango can be used anywhere that text layout is needed,
|
---|
48 | though most of the work on Pango so far has been done in the context of the
|
---|
49 | GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+.
|
---|
50 |
|
---|
51 | Pango is designed to be modular; the core Pango layout engine can be used
|
---|
52 | with different font backends.
|
---|
53 |
|
---|
54 | The integration of Pango with Cairo provides a complete solution with high
|
---|
55 | quality text handling and graphics rendering.
|
---|
56 |
|
---|
57 | %package devel
|
---|
58 | Summary: Development files for pango
|
---|
59 | Group: Development/Libraries
|
---|
60 | Requires: pango = %{version}-%{release}
|
---|
61 | Requires: glib2-devel >= %{glib2_version}
|
---|
62 | Requires: freetype-devel >= %{freetype_version}
|
---|
63 | Requires: fontconfig-devel >= %{fontconfig_version}
|
---|
64 | Requires: cairo-devel >= %{cairo_version}
|
---|
65 | Requires: pkgconfig
|
---|
66 |
|
---|
67 | %description devel
|
---|
68 | The pango-devel package includes the header files and developer documentation
|
---|
69 | for the pango package.
|
---|
70 |
|
---|
71 | %prep
|
---|
72 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
73 | %setup -q
|
---|
74 | %else
|
---|
75 | %setup -n "%{name}-%{version}" -Tc
|
---|
76 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
77 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
78 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
79 | %endif
|
---|
80 |
|
---|
81 |
|
---|
82 | # Generate confuigure and friends
|
---|
83 | # @todo this requires gnome-autogen.sh from gnome-common, we won't have it soon
|
---|
84 | #NOCONFIGURE=1 autogen.sh
|
---|
85 | autoreconf -fvi
|
---|
86 |
|
---|
87 | %build
|
---|
88 |
|
---|
89 | export LDFLAGS="-Zhigh-mem"
|
---|
90 | export LIBS="-lurpo -lmmap -lpoll"
|
---|
91 | %configure \
|
---|
92 | --enable-man \
|
---|
93 | --disable-gtk-doc
|
---|
94 | make %{?_smp_mflags}
|
---|
95 |
|
---|
96 |
|
---|
97 | %install
|
---|
98 |
|
---|
99 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
---|
100 |
|
---|
101 | # Remove files that should not be packaged
|
---|
102 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
103 | rm $RPM_BUILD_ROOT%{_libdir}/pango/*/modules/*.la
|
---|
104 |
|
---|
105 |
|
---|
106 | %files
|
---|
107 | %defattr(-, root, root,-)
|
---|
108 | %doc README AUTHORS COPYING NEWS
|
---|
109 | %doc pango-view/HELLO.txt
|
---|
110 | %{_libdir}/pang*.dll
|
---|
111 | %{_bindir}/pango-querymodules.exe
|
---|
112 | %{_bindir}/pango-view.exe
|
---|
113 | %{_mandir}/man1/pango-view.1
|
---|
114 | %{_mandir}/man1/pango-querymodules.1
|
---|
115 | %{_libdir}/pango
|
---|
116 | # @todo needs gobject-introspection
|
---|
117 | #%{_libdir}/girepository-1.0/Pango-1.0.typelib
|
---|
118 | #%{_libdir}/girepository-1.0/PangoCairo-1.0.typelib
|
---|
119 | #%{_libdir}/girepository-1.0/PangoFT2-1.0.typelib
|
---|
120 | #%{_libdir}/girepository-1.0/PangoXft-1.0.typelib
|
---|
121 |
|
---|
122 |
|
---|
123 | %files devel
|
---|
124 | %defattr(-, root, root,-)
|
---|
125 | %{_libdir}/pango*_dll.a
|
---|
126 | %{_includedir}/*
|
---|
127 | %{_libdir}/pkgconfig/*
|
---|
128 | # @todo no docs for now as we need gtk-doc for them!
|
---|
129 | #%doc %{_datadir}/gtk-doc/html/pango
|
---|
130 | # @todo needs gobject-introspection
|
---|
131 | #%{_datadir}/gir-1.0/Pango-1.0.gir
|
---|
132 | #%{_datadir}/gir-1.0/PangoCairo-1.0.gir
|
---|
133 | #%{_datadir}/gir-1.0/PangoFT2-1.0.gir
|
---|
134 | #%{_datadir}/gir-1.0/PangoXft-1.0.gir
|
---|
135 |
|
---|
136 |
|
---|
137 | %changelog
|
---|
138 | * Sat Jun 18 2016 yd <yd@os2power.com> 1.28.4-2
|
---|
139 | - rebuild for glib2 2.33.
|
---|
140 |
|
---|
141 | * Sat Feb 20 2016 Dmitriy Kuminov <coding@dmik.org> 1.28.4-1
|
---|
142 | - Initial package for version 1.28.4.
|
---|