]>
Commit | Line | Data |
---|---|---|
1750fbbe JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without vala # Vala API | |
0d19cce1 | 4 | |
35fb2d2c | 5 | %define unicode_ver 11.0.0 |
e0ec45e3 | 6 | |
2e236294 | 7 | Summary: Unicode character map |
ad8c36bd | 8 | Summary(pl.UTF-8): Mapa znaków unikodowych |
2e236294 | 9 | Name: gucharmap |
35fb2d2c | 10 | Version: 11.0.3 |
e0ec45e3 | 11 | Release: 1 |
ef6d75a3 | 12 | License: GPL v3+ |
2e236294 | 13 | Group: X11/Applications |
35fb2d2c JB |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gucharmap/11.0/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 9f8ebbc62a14d31edf77dadd53c348c8 | |
e0ec45e3 | 16 | Source1: http://www.unicode.org/Public/%{unicode_ver}/ucd/Blocks.txt |
35fb2d2c | 17 | # Source1-md5: b1978f3ebd79119b0b486d468c5ca7b7 |
e0ec45e3 | 18 | Source2: http://www.unicode.org/Public/%{unicode_ver}/ucd/DerivedAge.txt |
35fb2d2c | 19 | # Source2-md5: 6032a595fbb782694456491d86eecfac |
e0ec45e3 | 20 | Source3: http://www.unicode.org/Public/%{unicode_ver}/ucd/NamesList.txt |
35fb2d2c | 21 | # Source3-md5: ed4fd730506caa83a2ac45b90703f235 |
e0ec45e3 | 22 | Source4: http://www.unicode.org/Public/%{unicode_ver}/ucd/Scripts.txt |
35fb2d2c | 23 | # Source4-md5: 4562fafb7370c76d639ca15b08df91d0 |
e0ec45e3 | 24 | Source5: http://www.unicode.org/Public/%{unicode_ver}/ucd/UnicodeData.txt |
35fb2d2c | 25 | # Source5-md5: acc291106c3758d2025f8d7bd5518bee |
e0ec45e3 | 26 | Source6: http://www.unicode.org/Public/%{unicode_ver}/ucd/Unihan.zip |
35fb2d2c | 27 | # Source6-md5: fb1e7437ff3fc2516469f9904cf3fc7c |
ecde5047 | 28 | URL: https://wiki.gnome.org/Apps/Gucharmap |
f85b1a15 | 29 | BuildRequires: autoconf >= 2.56 |
253b5d5d | 30 | BuildRequires: automake >= 1:1.11 |
0acd47fb | 31 | BuildRequires: desktop-file-utils |
69f43c50 | 32 | BuildRequires: docbook-dtd412-xml |
289c321f | 33 | BuildRequires: gettext-tools |
a0de13e6 | 34 | BuildRequires: glib2-devel >= 1:2.32.0 |
2d7f47b2 | 35 | BuildRequires: gnome-common |
06922482 | 36 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
a0de13e6 | 37 | BuildRequires: gtk+3-devel >= 3.4.0 |
f8c17b07 | 38 | BuildRequires: gtk-doc >= 1.0 |
ea2de0c4 | 39 | BuildRequires: intltool >= 0.40.0 |
5d13bf12 | 40 | BuildRequires: libtool |
69f43c50 | 41 | BuildRequires: libxml2-progs |
d71f81da | 42 | BuildRequires: pkgconfig |
b399f8ef | 43 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
48be158f | 44 | BuildRequires: rpmbuild(macros) >= 1.311 |
39357083 | 45 | BuildRequires: tar >= 1:1.22 |
0acd47fb | 46 | %{?with_vala:BuildRequires: vala >= 2:0.24.0-2} |
39357083 | 47 | BuildRequires: xz |
e0ec45e3 | 48 | BuildRequires: unzip |
a0de13e6 | 49 | BuildRequires: yelp-tools |
467a7ac0 | 50 | Requires(post,postun): gtk-update-icon-cache |
a0de13e6 | 51 | Requires(post,preun): glib2 >= 1:2.32.0 |
8ed888f9 | 52 | Requires: %{name}-libs = %{version}-%{release} |
10c01cba | 53 | # sr@Latn vs. sr@latin |
54 | Conflicts: glibc-misc < 6:2.7 | |
2e236294 | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
57 | %description | |
58 | Gucharmap is a featureful unicode character map. | |
59 | ||
7d4e759e JR |
60 | %description -l pl.UTF-8 |
61 | Gucharmap jest wartościową mapą znaków unikodowych. | |
2e236294 | 62 | |
8ed888f9 | 63 | %package libs |
2920a0e2 JB |
64 | Summary: gucharmap library for GTK+ 3 |
65 | Summary(pl.UTF-8): Biblioteka gucharmap dla GTK+ 3 | |
b399f8ef | 66 | Group: X11/Libraries |
a0de13e6 | 67 | Requires: glib2 >= 1:2.32.0 |
fcc3d711 | 68 | Requires: gtk+3 >= 3.4.0 |
b399f8ef | 69 | Requires: pango >= 1:1.20.0 |
8ed888f9 | 70 | |
71 | %description libs | |
2920a0e2 | 72 | This package contains gucharmap library for GTK+ 3. |
8ed888f9 | 73 | |
7d4e759e | 74 | %description libs -l pl.UTF-8 |
2920a0e2 | 75 | Pakiet ten zawiera bibliotekę gucharmap dla GTK+ 3. |
8ed888f9 | 76 | |
2e236294 | 77 | %package devel |
2920a0e2 JB |
78 | Summary: Headers for gucharmap (GTK+ 3 verson) |
79 | Summary(pl.UTF-8): Pliki nagłówkowe gucharmap (wersja dla GTK+ 3) | |
b399f8ef | 80 | Group: X11/Development/Libraries |
8ed888f9 | 81 | Requires: %{name}-libs = %{version}-%{release} |
a0de13e6 ŁK |
82 | Requires: glib2-devel >= 1:2.32.0 |
83 | Requires: gtk+3-devel >= 3.4.0 | |
2e236294 | 84 | |
85 | %description devel | |
3698910a | 86 | The gucharmap-devel package includes the header files that you will |
2920a0e2 | 87 | need to use gucharmap. This version is targeted for GTK+ 3. |
2e236294 | 88 | |
7d4e759e JR |
89 | %description devel -l pl.UTF-8 |
90 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów | |
2920a0e2 | 91 | używających gucharmap. Ta wersja jest przeznaczona dla GTK+ 3. |
2e236294 | 92 | |
ec689dcc | 93 | %package static |
2920a0e2 JB |
94 | Summary: Static gucharmap library for GTK+ 3 |
95 | Summary(pl.UTF-8): Statyczna biblioteka gucharmap dla GTK+ 3 | |
b399f8ef | 96 | Group: X11/Development/Libraries |
ec689dcc | 97 | Requires: %{name}-devel = %{version}-%{release} |
98 | ||
99 | %description static | |
2920a0e2 | 100 | Static version of gucharmap library for GTK+ 3. |
ec689dcc | 101 | |
7d4e759e | 102 | %description static -l pl.UTF-8 |
2920a0e2 | 103 | Statyczna wersja biblioteki gucharmap dla GTK+ 3. |
ec689dcc | 104 | |
f8c17b07 | 105 | %package apidocs |
2920a0e2 JB |
106 | Summary: gucharmap library API documentation (GTK+ 3 version) |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3) | |
f8c17b07 MB |
108 | Group: Documentation |
109 | Requires: gtk-doc-common | |
0d19cce1 ER |
110 | %if "%{_rpmversion}" >= "5" |
111 | BuildArch: noarch | |
112 | %endif | |
f8c17b07 MB |
113 | |
114 | %description apidocs | |
2920a0e2 | 115 | gucharmap library API documentation (GTK+ 3 version). |
f8c17b07 MB |
116 | |
117 | %description apidocs -l pl.UTF-8 | |
2920a0e2 | 118 | Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3). |
f8c17b07 | 119 | |
1750fbbe JB |
120 | %package -n vala-gucharmap |
121 | Summary: gucharmap API for Vala language | |
122 | Summary(pl.UTF-8): API gucharmap dla języka Vala | |
123 | Group: Development/Libraries | |
124 | Requires: %{name}-devel = %{version}-%{release} | |
0acd47fb | 125 | Requires: vala >= 2:0.24.0-2 |
d238c158 ER |
126 | %if "%{_rpmversion}" >= "5" |
127 | BuildArch: noarch | |
128 | %endif | |
1750fbbe JB |
129 | |
130 | %description -n vala-gucharmap | |
131 | gucharmap API for Vala language. | |
132 | ||
133 | %description -n vala-gucharmap -l pl.UTF-8 | |
134 | API gucharmap dla języka Vala. | |
135 | ||
2e236294 | 136 | %prep |
137 | %setup -q | |
b399f8ef | 138 | |
e0ec45e3 JB |
139 | install -d unicode-data |
140 | cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} unicode-data | |
141 | ||
2e236294 | 142 | %build |
f85b1a15 MB |
143 | %{__glib_gettextize} |
144 | %{__intltoolize} | |
32f56f77 | 145 | %{__libtoolize} |
3516c5ac | 146 | %{__aclocal} -I m4 |
32f56f77 | 147 | %{__automake} |
b399f8ef | 148 | %{__autoheader} |
32f56f77 | 149 | %{__autoconf} |
39357083 | 150 | %configure \ |
1750fbbe | 151 | --disable-silent-rules \ |
f8c17b07 | 152 | --enable-gtk-doc \ |
1750fbbe JB |
153 | --enable-introspection \ |
154 | --enable-static \ | |
155 | %{?with_vala:--enable-vala} \ | |
e0ec45e3 JB |
156 | --with-html-dir=%{_gtkdocdir} \ |
157 | --with-unicode-data=unicode-data | |
2e236294 | 158 | %{__make} |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
39357083 | 163 | %{__make} install \ |
1750fbbe JB |
164 | DESTDIR=$RPM_BUILD_ROOT \ |
165 | vapidir=%{_datadir}/vala/vapi | |
253b5d5d MB |
166 | |
167 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
2e236294 | 168 | |
a0de13e6 | 169 | %find_lang %{name} --with-gnome |
2e236294 | 170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
28491b7d | 174 | %post |
f732b50d | 175 | %glib_compile_schemas |
28491b7d AF |
176 | |
177 | %postun | |
f732b50d | 178 | %glib_compile_schemas |
2e236294 | 179 | |
8ed888f9 | 180 | %post libs -p /sbin/ldconfig |
181 | %postun libs -p /sbin/ldconfig | |
182 | ||
2e236294 | 183 | %files -f %{name}.lang |
184 | %defattr(644,root,root,755) | |
25f67e0e | 185 | %doc AUTHORS COPYING.UNICODE ChangeLog NEWS TODO |
b399f8ef MB |
186 | %attr(755,root,root) %{_bindir}/charmap |
187 | %attr(755,root,root) %{_bindir}/gucharmap | |
188 | %attr(755,root,root) %{_bindir}/gnome-character-map | |
b399f8ef | 189 | %{_desktopdir}/gucharmap.desktop |
25f67e0e | 190 | %{_datadir}/metainfo/gucharmap.appdata.xml |
f732b50d ŁK |
191 | %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml |
192 | %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml | |
2e236294 | 193 | |
8ed888f9 | 194 | %files libs |
195 | %defattr(644,root,root,755) | |
253b5d5d MB |
196 | %attr(755,root,root) %{_libdir}/libgucharmap_2_90.so.*.*.* |
197 | %attr(755,root,root) %ghost %{_libdir}/libgucharmap_2_90.so.7 | |
198 | %{_libdir}/girepository-1.0/Gucharmap-2.90.typelib | |
199 | ||
253b5d5d MB |
200 | %files devel |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libgucharmap_2_90.so | |
203 | %{_includedir}/gucharmap-2.90 | |
204 | %{_pkgconfigdir}/gucharmap-2.90.pc | |
205 | %{_datadir}/gir-1.0/Gucharmap-2.90.gir | |
206 | ||
207 | %files static | |
208 | %defattr(644,root,root,755) | |
209 | %{_libdir}/libgucharmap_2_90.a | |
210 | ||
211 | %files apidocs | |
212 | %defattr(644,root,root,755) | |
213 | %{_gtkdocdir}/gucharmap-2.90 | |
1750fbbe JB |
214 | |
215 | %if %{with vala} | |
216 | %files -n vala-gucharmap | |
217 | %defattr(644,root,root,755) | |
2bcb54ed | 218 | %{_datadir}/vala/vapi/gucharmap-2.90.vapi |
1750fbbe | 219 | %endif |