/[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 1392853 - (show annotations) (download)
Wed Apr 17 22:40:40 2019 UTC (5 years ago) by umeabot
File size: 4840 byte(s)
Rebuild with meson 0.50.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 api_version 1.0
7 %define gir_major 1.0
8 %define module_version 1.8.0
9 %define lib_major 0
10 %define lib_name %mklibname %{name} %{api_version} %{lib_major}
11 %define libnamedev %mklibname -d %{name} %{api_version}
12 %define gir_name %mklibname %{name}-gir %{gir_major}
13
14 %define url_ver %(echo %{version}|cut -d. -f1,2)
15
16 Summary: System for layout and rendering of internationalized text
17 Name: pango
18 Version: 1.43.0
19 Release: %mkrel 3
20 License: LGPLv2+
21 Group: System/Internationalization
22 URL: http://www.pango.org/
23 Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
24 Patch0: 0001-pango.pc-Make-gobject-2.0-a-non-private-requirement.patch
25 BuildRequires: pkgconfig(cairo) >= 1.12.10
26 BuildRequires: pkgconfig(fontconfig) >= 2.10.91
27 BuildRequires: pkgconfig(freetype2)
28 BuildRequires: pkgconfig(glib-2.0) >= 2.33.12
29 BuildRequires: pkgconfig(gmodule-no-export-2.0)
30 BuildRequires: pkgconfig(gobject-2.0)
31 BuildRequires: pkgconfig(harfbuzz) >= 0.9.9
32 BuildRequires: pkgconfig(libthai) >= 0.1.9
33 BuildRequires: pkgconfig(xft) >= 2.0.0
34 BuildRequires: pkgconfig(xrender)
35 BuildRequires: pkgconfig(fribidi)
36 BuildRequires: meson
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
45 %description
46 A library to handle Unicode strings as well as complex bidirectional
47 or context dependent shaped strings.
48 It is the next step on Gtk+ internationalization.
49
50 %package -n %{lib_name}
51 Summary: %{summary}
52 Group: %{group}
53 Provides: lib%{name}%{api_version} = %{version}-%{release}
54 Provides: lib%{name} = %{version}-%{release}
55 Requires: %{name} >= %{version}-%{release}
56 Obsoletes: %{lib_name}-modules < 1.37.0
57 Conflicts: gir-repository < 0.6.5
58
59 %description -n %{lib_name}
60 A library to handle Unicode strings as well as complex bidirectional
61 or context dependent shaped strings.
62 It is the next step on Gtk+ internationalization.
63
64 %package -n %{libnamedev}
65 Summary: %{summary}
66 Group: Development/GNOME and GTK+
67 Obsoletes: %{name}-devel
68 Provides: %{name}-devel = %{version}-%{release}
69 Provides: lib%{name}-devel = %{version}-%{release}
70 Provides: lib%{name}%{api_version}-devel = %{version}-%{release}
71 Requires: %{name} = %{version}
72 Requires: %{lib_name} = %{version}
73 Requires: %{gir_name} = %{version}
74 Recommends: %{name}-doc >= %{version}
75
76 %description -n %{libnamedev}
77 This package includes the static libraries and header files
78 for the pango package.
79
80 %package -n %{gir_name}
81 Summary: GObject Introspection interface description for %{name}
82 Group: System/Libraries
83 Requires: %{lib_name} = %{version}-%{release}
84 Conflicts: %{mklibname %{name}1.0-gir 1.0}} < 1.29.3-4
85
86 %description -n %{gir_name}
87 GObject Introspection interface description for %{name}.
88
89 %package doc
90 Summary: %{summary}
91 Group: Development/GNOME and GTK+
92 BuildArch: noarch
93
94 %description doc
95 This package provides API documentation for Pango.
96
97 %package tests
98 Summary: Tests for the %{name} package
99 Group: Development/GNOME and GTK+
100 Requires: %{name} = %{version}-%{release}
101
102 %description tests
103 The %{name}-tests package contains tests that can be used to verify
104 the functionality of the installed %{name} package.
105
106 %prep
107 %setup -q
108 %autopatch -p1
109
110 %build
111 %meson \
112 %if %enable_gtkdoc
113 -Denable_docs=true
114 %endif
115
116
117 %meson_build
118
119 %check
120 #disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981
121 %meson_check || true
122
123 %install
124 %meson_install
125
126 # remove unpackaged files
127 find %{buildroot} -name '*.la' -delete
128
129 %files
130 %doc README.md THANKS
131 %doc NEWS
132 %{_mandir}/man1/*
133 %{_bindir}/pango-list
134
135 %files -n %{lib_name}
136 %{_libdir}/libpango-%{api_version}.so.%{lib_major}{,.*}
137 %{_libdir}/libpangoft2-%{api_version}.so.%{lib_major}{,.*}
138 %{_libdir}/libpangoxft-%{api_version}.so.%{lib_major}{,.*}
139 %{_libdir}/libpangocairo-%{api_version}.so.%{lib_major}{,.*}
140
141 %files -n %{gir_name}
142 %{_libdir}/girepository-1.0/Pango-%{gir_major}.typelib
143 %{_libdir}/girepository-1.0/PangoCairo-%{gir_major}.typelib
144 %{_libdir}/girepository-1.0/PangoFT2-%{gir_major}.typelib
145 %{_libdir}/girepository-1.0/PangoXft-%{gir_major}.typelib
146
147 %files -n %{libnamedev}
148 %{_bindir}/pango-view*
149 %{_libdir}/libpango-*.so
150 %{_libdir}/libpangoxft-*.so
151 %{_libdir}/libpangoft2-*.so
152 %{_libdir}/libpangocairo*.so
153 %{_libdir}/pkgconfig/*
154 %{_includedir}/*
155 %{_datadir}/gir-1.0/Pango-%{gir_major}.gir
156 %{_datadir}/gir-1.0/PangoCairo-%{gir_major}.gir
157 %{_datadir}/gir-1.0/PangoFT2-%{gir_major}.gir
158 %{_datadir}/gir-1.0/PangoXft-%{gir_major}.gir
159
160 %files doc
161 %doc %{_datadir}/gtk-doc/html/pango
162 %doc utils/HELLO.txt
163
164 %files tests
165 %{_libexecdir}/installed-tests/%{name}
166 %{_datadir}/installed-tests/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30