]> git.pld-linux.org Git - packages/gucharmap.git/blob - gucharmap.spec
bbe83198122d55057f5ac6159341f20ba1a14690
[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.12.0
9 Release:        2
10 License:        GPL v3+
11 Group:          X11/Applications
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gucharmap/3.12/%{name}-%{version}.tar.xz
13 # Source0-md5:  008d144ac4f160ac4cc328bb7e48bc29
14 URL:            http://live.gnome.org/Gucharmap
15 BuildRequires:  autoconf >= 2.56
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  desktop-file-utils
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.24.0-2}
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 %if "%{_rpmversion}" >= "5"
96 BuildArch:      noarch
97 %endif
98
99 %description apidocs
100 gucharmap library API documentation (GTK+ 3 version).
101
102 %description apidocs -l pl.UTF-8
103 Dokumentacja API biblioteki gucharmap (wersja dla GTK+ 3).
104
105 %package -n vala-gucharmap
106 Summary:        gucharmap API for Vala language
107 Summary(pl.UTF-8):      API gucharmap dla języka Vala
108 Group:          Development/Libraries
109 Requires:       %{name}-devel = %{version}-%{release}
110 Requires:       vala >= 2:0.24.0-2
111
112 %description -n vala-gucharmap
113 gucharmap API for Vala language.
114
115 %description -n vala-gucharmap -l pl.UTF-8
116 API gucharmap dla języka Vala.
117
118 %prep
119 %setup -q
120
121 %build
122 %{__glib_gettextize}
123 %{__intltoolize}
124 %{__libtoolize}
125 %{__aclocal} -I m4
126 %{__automake}
127 %{__autoheader}
128 %{__autoconf}
129 %configure \
130         --disable-silent-rules \
131         --enable-gtk-doc \
132         --enable-introspection \
133         --enable-static \
134         %{?with_vala:--enable-vala} \
135         --with-html-dir=%{_gtkdocdir}
136 %{__make}
137
138 %install
139 rm -rf $RPM_BUILD_ROOT
140
141 %{__make} install \
142         DESTDIR=$RPM_BUILD_ROOT \
143         vapidir=%{_datadir}/vala/vapi
144
145 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
146
147 %find_lang %{name} --with-gnome
148
149 %clean
150 rm -rf $RPM_BUILD_ROOT
151
152 %post
153 %glib_compile_schemas
154
155 %postun
156 %glib_compile_schemas
157
158 %post   libs -p /sbin/ldconfig
159 %postun libs -p /sbin/ldconfig
160
161 %files -f %{name}.lang
162 %defattr(644,root,root,755)
163 %doc AUTHORS COPYING.UNICODE ChangeLog NEWS README TODO
164 %attr(755,root,root) %{_bindir}/charmap
165 %attr(755,root,root) %{_bindir}/gucharmap
166 %attr(755,root,root) %{_bindir}/gnome-character-map
167 %{_desktopdir}/gucharmap.desktop
168 %{_datadir}/appdata/gucharmap.appdata.xml
169 %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml
170 %{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml
171
172 %files libs
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/libgucharmap_2_90.so.*.*.*
175 %attr(755,root,root) %ghost %{_libdir}/libgucharmap_2_90.so.7
176 %{_libdir}/girepository-1.0/Gucharmap-2.90.typelib
177
178 %files devel
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_libdir}/libgucharmap_2_90.so
181 %{_includedir}/gucharmap-2.90
182 %{_pkgconfigdir}/gucharmap-2.90.pc
183 %{_datadir}/gir-1.0/Gucharmap-2.90.gir
184
185 %files static
186 %defattr(644,root,root,755)
187 %{_libdir}/libgucharmap_2_90.a
188
189 %files apidocs
190 %defattr(644,root,root,755)
191 %{_gtkdocdir}/gucharmap-2.90
192
193 %if %{with vala}
194 %files -n vala-gucharmap
195 %defattr(644,root,root,755)
196 %{_datadir}/vala/vapi/gucharmap-2.90.vapi
197 %endif
This page took 0.08658 seconds and 2 git commands to generate.