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