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