/[packages]/cauldron/pango/current/SPECS/pango.spec
ViewVC logotype

Contents of /cauldron/pango/current/SPECS/pango.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 839485 - (show annotations) (download)
Mon Jun 22 13:11:06 2015 UTC (8 years, 10 months ago) by ovitters
File size: 5096 byte(s)
new version 1.37.1
1 # enable_gtkdoc: Toggle whether gtkdoc stuff should be rebuilt
2 # 0 = No
3 # 1 = Yes
4 %define enable_gtkdoc 1
5
6 # Define biarch packages
7 %define biarches_32 %{ix86} ppc
8 %define biarches_64 x86_64 ppc64
9
10 %define api_version 1.0
11 %define gir_major 1.0
12 %define module_version 1.8.0
13 %define lib_major 0
14 %define lib_name %mklibname %{name} %{api_version} %{lib_major}
15 %define libnamedev %mklibname -d %{name} %{api_version}
16 %define gir_name %mklibname %{name}-gir %{gir_major}
17
18 %define url_ver %(echo %{version}|cut -d. -f1,2)
19
20 Summary: System for layout and rendering of internationalized text
21 Name: pango
22 Version: 1.37.1
23 Release: %mkrel 1
24 License: LGPLv2+
25 Group: System/Internationalization
26 URL: http://www.pango.org/
27 BuildRequires: pkgconfig(cairo) >= 1.7.6
28 BuildRequires: pkgconfig(fontconfig) >= 2.5.0
29 BuildRequires: pkgconfig(freetype2)
30 BuildRequires: pkgconfig(glib-2.0) >= 2.33.12
31 BuildRequires: pkgconfig(gmodule-no-export-2.0)
32 BuildRequires: pkgconfig(gobject-2.0)
33 BuildRequires: pkgconfig(harfbuzz) >= 0.9.9
34 BuildRequires: pkgconfig(libthai) >= 0.1.9
35 BuildRequires: pkgconfig(xft) >= 2.0.0
36 BuildRequires: pkgconfig(xrender)
37 BuildRequires: gobject-introspection-devel >= 0.9.5
38 %if %enable_gtkdoc
39 BuildRequires: gtk-doc >= 0.10
40 BuildRequires: libxslt-proc
41 BuildRequires: docbook-style-xsl
42 BuildRequires: docbook-dtd412-xml
43 %endif
44 Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
45
46 %description
47 A library to handle Unicode strings as well as complex bidirectional
48 or context dependent shaped strings.
49 It is the next step on Gtk+ internationalization.
50
51 %package -n %{lib_name}
52 Summary: %{summary}
53 Group: %{group}
54 Provides: lib%{name}%{api_version} = %{version}-%{release}
55 Provides: lib%{name} = %{version}-%{release}
56 Requires: %{name} = %{version}
57 Requires: fontconfig >= 2.5.0
58 Requires: glib2 >= 2.33.12
59 Obsoletes: %{lib_name}-modules < 1.37.0
60 Requires: cairo >= 1.7.6
61 Conflicts: gir-repository < 0.6.5
62
63 %description -n %{lib_name}
64 A library to handle Unicode strings as well as complex bidirectional
65 or context dependent shaped strings.
66 It is the next step on Gtk+ internationalization.
67
68 %package -n %{libnamedev}
69 Summary: %{summary}
70 Group: Development/GNOME and GTK+
71 Obsoletes: %{name}-devel
72 Provides: %{name}-devel = %{version}-%{release}
73 Provides: lib%{name}-devel = %{version}-%{release}
74 Provides: lib%{name}%{api_version}-devel = %{version}-%{release}
75 Requires: %{name} = %{version}
76 Requires: %{lib_name} = %{version}
77 Recommends: %{name}-doc >= %{version}
78 Obsoletes: %mklibname -d %{name} %{api_version} %{lib_major}
79 Conflicts: %{name} < 1.18.0-3mdv
80 Conflicts: %{_lib}pango1.0_0 < 1.28.1-2
81
82 %description -n %{libnamedev}
83 This package includes the static libraries and header files
84 for the pango package.
85
86 %package -n %{gir_name}
87 Summary: GObject Introspection interface description for %{name}
88 Group: System/Libraries
89 Requires: %{lib_name} = %{version}-%{release}
90 Conflicts: %{mklibname %{name}1.0-gir 1.0}} < 1.29.3-4
91
92 %description -n %{gir_name}
93 GObject Introspection interface description for %{name}.
94
95 %package doc
96 Summary: %{summary}
97 Group: Development/GNOME and GTK+
98 BuildArch: noarch
99
100 %description doc
101 This package provides API documentation for Pango.
102
103 %package tests
104 Summary: Tests for the %{name} package
105 Group: Development/GNOME and GTK+
106 Requires: %{name} = %{version}-%{release}
107
108 %description tests
109 The %{name}-tests package contains tests that can be used to verify
110 the functionality of the installed %{name} package.
111
112 %prep
113 %setup -q
114 %autopatch -p1
115
116 %build
117 # generate build scripts using our autotools/libtoolize
118 autoreconf -fi
119
120 %configure2_5x \
121 --enable-static=no \
122 %if %enable_gtkdoc
123 --enable-gtk-doc=yes \
124 %endif
125 --enable-installed-tests
126
127 %make ARCH=%{_arch}
128
129 %check
130 #disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981
131 make check || true
132
133 %install
134 %makeinstall_std
135
136 # remove unpackaged files
137 find %{buildroot} -name '*.la' -delete
138
139 %files
140 %doc README AUTHORS
141 %doc NEWS
142 %{_mandir}/man1/*
143
144 %files -n %{lib_name}
145 %{_libdir}/libpango-%{api_version}.so.%{lib_major}*
146 %{_libdir}/libpangoft2-%{api_version}.so.%{lib_major}*
147 %{_libdir}/libpangoxft-%{api_version}.so.%{lib_major}*
148 %{_libdir}/libpangocairo-%{api_version}.so.%{lib_major}*
149
150 %files -n %{gir_name}
151 %{_libdir}/girepository-1.0/Pango-%{gir_major}.typelib
152 %{_libdir}/girepository-1.0/PangoCairo-%{gir_major}.typelib
153 %{_libdir}/girepository-1.0/PangoFT2-%{gir_major}.typelib
154 %{_libdir}/girepository-1.0/PangoXft-%{gir_major}.typelib
155
156 %files -n %{libnamedev}
157 %{_bindir}/pango-view*
158 %{_libdir}/libpango-*.so
159 %{_libdir}/libpangoxft-*.so
160 %{_libdir}/libpangoft2-*.so
161 %{_libdir}/libpangocairo*.so
162 %{_libdir}/pkgconfig/*
163 %{_includedir}/*
164 %{_datadir}/gir-1.0/Pango-%{gir_major}.gir
165 %{_datadir}/gir-1.0/PangoCairo-%{gir_major}.gir
166 %{_datadir}/gir-1.0/PangoFT2-%{gir_major}.gir
167 %{_datadir}/gir-1.0/PangoXft-%{gir_major}.gir
168
169 %files doc
170 %doc %{_datadir}/gtk-doc/html/pango
171 %doc ChangeLog
172 %doc pango-view/HELLO.txt
173
174 %files tests
175 %{_libexecdir}/installed-tests/%{name}
176 %{_datadir}/installed-tests/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30