]> git.pld-linux.org Git - packages/gucharmap.git/blob - gucharmap.spec
814567f438e5c7625278e3883b44efbc5f72164d
[packages/gucharmap.git] / gucharmap.spec
1 #
2 # Conditional build:
3 %bcond_without  vala    # Vala API
4
5 %define         unicode_ver     %{version}
6
7 Summary:        Unicode character map
8 Summary(pl.UTF-8):      Mapa znaków unikodowych
9 Name:           gucharmap
10 Version:        9.0.0
11 Release:        1
12 License:        GPL v3+
13 Group:          X11/Applications
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gucharmap/9.0/%{name}-%{version}.tar.xz
15 # Source0-md5:  c8618d22c684286f551bef465eb6beda
16 Source1:        http://www.unicode.org/Public/%{unicode_ver}/ucd/Blocks.txt
17 # Source1-md5:  cde1f7b09c2b18d24add1370ecadfea6
18 Source2:        http://www.unicode.org/Public/%{unicode_ver}/ucd/DerivedAge.txt
19 # Source2-md5:  a0fb4dbc152439695a457eb1c56d77e7
20 Source3:        http://www.unicode.org/Public/%{unicode_ver}/ucd/NamesList.txt
21 # Source3-md5:  87d74bd637b7ef615d3df131d8646c65
22 Source4:        http://www.unicode.org/Public/%{unicode_ver}/ucd/Scripts.txt
23 # Source4-md5:  5515683d7f3399262c3d5561e6acc21e
24 Source5:        http://www.unicode.org/Public/%{unicode_ver}/ucd/UnicodeData.txt
25 # Source5-md5:  dde25b1cf9bbb4ba1140ac12e4128b0b
26 Source6:        http://www.unicode.org/Public/%{unicode_ver}/ucd/Unihan.zip
27 # Source6-md5:  303b5e49b65aed9e4a184adc1a1c78f4
28 URL:            https://wiki.gnome.org/Apps/Gucharmap
29 BuildRequires:  autoconf >= 2.56
30 BuildRequires:  automake >= 1:1.11
31 BuildRequires:  desktop-file-utils
32 BuildRequires:  docbook-dtd412-xml
33 BuildRequires:  gettext-tools
34 BuildRequires:  glib2-devel >= 1:2.32.0
35 BuildRequires:  gnome-common
36 BuildRequires:  gobject-introspection-devel >= 0.10.0
37 BuildRequires:  gtk+3-devel >= 3.4.0
38 BuildRequires:  gtk-doc >= 1.0
39 BuildRequires:  intltool >= 0.40.0
40 BuildRequires:  libtool
41 BuildRequires:  libxml2-progs
42 BuildRequires:  pkgconfig
43 BuildRequires:  rpmbuild(find_lang) >= 1.23
44 BuildRequires:  rpmbuild(macros) >= 1.311
45 BuildRequires:  tar >= 1:1.22
46 %{?with_vala:BuildRequires:     vala >= 2:0.24.0-2}
47 BuildRequires:  xz
48 BuildRequires:  unzip
49 BuildRequires:  yelp-tools
50 Requires(post,postun):  gtk-update-icon-cache
51 Requires(post,preun):   glib2 >= 1:2.32.0
52 Requires:       %{name}-libs = %{version}-%{release}
53 # sr@Latn vs. sr@latin
54 Conflicts:      glibc-misc < 6:2.7
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 Gucharmap is a featureful unicode character map.
59
60 %description -l pl.UTF-8
61 Gucharmap jest wartościową mapą znaków unikodowych.
62
63 %package libs
64 Summary:        gucharmap library for GTK+ 3
65 Summary(pl.UTF-8):      Biblioteka gucharmap dla GTK+ 3
66 Group:          X11/Libraries
67 Requires:       glib2 >= 1:2.32.0
68 Requires:       gtk+3 >= 3.4.0
69 Requires:       pango >= 1:1.20.0
70
71 %description libs
72 This package contains gucharmap library for GTK+ 3.
73
74 %description libs -l pl.UTF-8
75 Pakiet ten zawiera bibliotekę gucharmap dla GTK+ 3.
76
77 %package devel
78 Summary:        Headers for gucharmap (GTK+ 3 verson)
79 Summary(pl.UTF-8):      Pliki nagłówkowe gucharmap (wersja dla GTK+ 3)
80 Group:          X11/Development/Libraries
81 Requires:       %{name}-libs = %{version}-%{release}
82 Requires:       glib2-devel >= 1:2.32.0
83 Requires:       gtk+3-devel >= 3.4.0
84
85 %description devel
86 The gucharmap-devel package includes the header files that you will
87 need to use gucharmap. This version is targeted for GTK+ 3.
88
89 %description devel -l pl.UTF-8
90 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów
91 używających gucharmap. Ta wersja jest przeznaczona dla GTK+ 3.
92
93 %package static
94 Summary:        Static gucharmap library for GTK+ 3
95 Summary(pl.UTF-8):      Statyczna biblioteka gucharmap dla GTK+ 3
96 Group:          X11/Development/Libraries
97 Requires:       %{name}-devel = %{version}-%{release}
98
99 %description static
100 Static version of gucharmap library for GTK+ 3.
101
102 %description static -l pl.UTF-8
103 Statyczna wersja biblioteki gucharmap dla GTK+ 3.
104
105 %package apidocs
106 Summary:        gucharmap library API documentation (GTK+ 3 version)
107 Summary(pl.UTF-8):      Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3)
108 Group:          Documentation
109 Requires:       gtk-doc-common
110 %if "%{_rpmversion}" >= "5"
111 BuildArch:      noarch
112 %endif
113
114 %description apidocs
115 gucharmap library API documentation (GTK+ 3 version).
116
117 %description apidocs -l pl.UTF-8
118 Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3).
119
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}
125 Requires:       vala >= 2:0.24.0-2
126 %if "%{_rpmversion}" >= "5"
127 BuildArch:      noarch
128 %endif
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
136 %prep
137 %setup -q
138
139 install -d unicode-data
140 cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} unicode-data
141
142 %build
143 %{__glib_gettextize}
144 %{__intltoolize}
145 %{__libtoolize}
146 %{__aclocal} -I m4
147 %{__automake}
148 %{__autoheader}
149 %{__autoconf}
150 %configure \
151         --disable-silent-rules \
152         --enable-gtk-doc \
153         --enable-introspection \
154         --enable-static \
155         %{?with_vala:--enable-vala} \
156         --with-html-dir=%{_gtkdocdir} \
157         --with-unicode-data=unicode-data
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 %{__make} install \
164         DESTDIR=$RPM_BUILD_ROOT \
165         vapidir=%{_datadir}/vala/vapi
166
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
168
169 %find_lang %{name} --with-gnome
170
171 %clean
172 rm -rf $RPM_BUILD_ROOT
173
174 %post
175 %glib_compile_schemas
176
177 %postun
178 %glib_compile_schemas
179
180 %post   libs -p /sbin/ldconfig
181 %postun libs -p /sbin/ldconfig
182
183 %files -f %{name}.lang
184 %defattr(644,root,root,755)
185 %doc AUTHORS COPYING.UNICODE ChangeLog NEWS README TODO
186 %attr(755,root,root) %{_bindir}/charmap
187 %attr(755,root,root) %{_bindir}/gucharmap
188 %attr(755,root,root) %{_bindir}/gnome-character-map
189 %{_desktopdir}/gucharmap.desktop
190 %{_datadir}/appdata/gucharmap.appdata.xml
191 %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml
192 %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml
193
194 %files libs
195 %defattr(644,root,root,755)
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
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
214
215 %if %{with vala}
216 %files -n vala-gucharmap
217 %defattr(644,root,root,755)
218 %{_datadir}/vala/vapi/gucharmap-2.90.vapi
219 %endif
This page took 0.189568 seconds and 2 git commands to generate.