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

  ViewVC Help
Powered by ViewVC 1.1.30