2007-01-08 18:18:49 +01:00
|
|
|
#
|
2011-02-14 01:12:26 +01:00
|
|
|
# spec file for package gucharmap
|
2007-01-08 18:18:49 +01:00
|
|
|
#
|
2012-02-08 11:58:30 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-08 18:18:49 +01:00
|
|
|
#
|
2008-08-14 01:33:51 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-08 18:18:49 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-28 08:21:45 +02:00
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%define api_version 2.90
|
|
|
|
%define so_api _2_90
|
|
|
|
%define so_gucharmap 7
|
|
|
|
%define pc_api 2.90
|
2008-03-01 00:06:04 +01:00
|
|
|
|
2007-01-08 18:18:49 +01:00
|
|
|
Name: gucharmap
|
2012-09-25 22:34:40 +02:00
|
|
|
Version: 3.5.99
|
2012-02-08 11:58:30 +01:00
|
|
|
Release: 0
|
2012-09-07 17:27:15 +02:00
|
|
|
# FIXME vala bindings are currently disabled by upstream and not supposed to auto-enable
|
2012-02-08 11:58:30 +01:00
|
|
|
Summary: A Featureful Unicode Character Map
|
|
|
|
License: GPL-3.0+ ; LGPL-2.1+
|
|
|
|
Group: System/GUI/GNOME
|
|
|
|
Url: http://gucharmap.sourceforge.net/
|
2012-09-07 17:27:15 +02:00
|
|
|
Source: http://download.gnome.org/sources/gucharmap/3.5/%{name}-%{version}.tar.xz
|
2009-02-17 18:02:48 +01:00
|
|
|
BuildRequires: fdupes
|
2011-04-26 08:11:58 +02:00
|
|
|
BuildRequires: gobject-introspection-devel
|
2011-12-21 05:47:28 +01:00
|
|
|
BuildRequires: gtk-doc
|
2012-09-07 17:27:15 +02:00
|
|
|
BuildRequires: gtk3-devel >= 3.4.0
|
2011-12-21 05:47:28 +01:00
|
|
|
BuildRequires: intltool
|
2012-09-07 17:27:15 +02:00
|
|
|
BuildRequires: libxml2-tools
|
2009-03-11 20:43:06 +01:00
|
|
|
BuildRequires: scrollkeeper
|
2011-02-16 08:52:13 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-09-05 02:38:22 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2012-09-07 17:27:15 +02:00
|
|
|
BuildRequires: yelp-tools
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.32.0
|
2011-02-13 22:12:17 +01:00
|
|
|
Recommends: %{name}-lang
|
2012-02-08 11:58:30 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%glib2_gsettings_schema_requires
|
2007-01-08 18:18:49 +01:00
|
|
|
|
|
|
|
%description
|
2010-12-30 01:12:49 +01:00
|
|
|
Gucharmap is a featureful unicode character map.
|
2007-01-08 18:18:49 +01:00
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%package -n libgucharmap%{so_api}-%{so_gucharmap}
|
2010-12-30 01:12:49 +01:00
|
|
|
Summary: A Featureful Unicode Character Map -- Library
|
|
|
|
Group: System/GUI/GNOME
|
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%description -n libgucharmap%{so_api}-%{so_gucharmap}
|
2010-12-30 01:12:49 +01:00
|
|
|
Gucharmap is a featureful unicode character map.
|
|
|
|
|
|
|
|
This package contains a library to use the character map.
|
|
|
|
|
2011-12-12 16:58:38 +01:00
|
|
|
%package -n typelib-1_0-Gucharmap-2_90
|
2011-12-21 05:47:28 +01:00
|
|
|
Summary: A Featureful Unicode Character Map -- Introspection bindings
|
2011-12-12 16:58:38 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Gucharmap-2_90
|
|
|
|
Gucharmap is a featureful unicode character map.
|
|
|
|
|
2011-12-21 05:47:28 +01:00
|
|
|
This package provides the GObject Introspection bindings for the
|
|
|
|
gucharmap library.
|
2011-12-12 16:58:38 +01:00
|
|
|
|
2007-01-08 18:18:49 +01:00
|
|
|
%package devel
|
2010-12-30 01:12:49 +01:00
|
|
|
Summary: A Featureful Unicode Character Map -- Development Files
|
2008-03-01 00:06:04 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2011-04-26 08:11:58 +02:00
|
|
|
Requires: libgucharmap%{so_api}-%{so_gucharmap} = %{version}
|
2011-12-12 16:58:38 +01:00
|
|
|
Requires: typelib-1_0-Gucharmap-2_90 = %{version}
|
2007-01-08 18:18:49 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
2007-08-09 19:31:23 +02:00
|
|
|
%lang_package
|
2007-01-08 18:18:49 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-02-16 08:52:13 +01:00
|
|
|
translation-update-upstream
|
2007-01-08 18:18:49 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-27 02:00:37 +01:00
|
|
|
%configure --disable-static --with-pic \
|
2008-06-26 01:27:35 +02:00
|
|
|
--disable-scrollkeeper \
|
2008-10-06 18:21:16 +02:00
|
|
|
--enable-gtk-doc \
|
2011-04-26 08:11:58 +02:00
|
|
|
--with-gtk=3.0 \
|
|
|
|
--enable-introspection
|
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-08 18:18:49 +01:00
|
|
|
|
|
|
|
%install
|
2007-03-10 23:57:02 +01:00
|
|
|
%makeinstall
|
2010-12-30 01:12:49 +01:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
2011-02-13 22:12:17 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2009-02-07 01:52:31 +01:00
|
|
|
# We need X-SuSE-Editor to avoid an error for the categories check. We don't
|
|
|
|
# want TextEditor, since that's too wide.
|
|
|
|
%suse_update_desktop_file -N "GNOME Character Map" -G "Character Map" %{name} X-SuSE-Editor
|
2012-02-08 11:58:30 +01:00
|
|
|
%fdupes $RPM_BUILD_ROOT
|
2007-01-08 18:18:49 +01:00
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%post -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
|
2007-01-08 18:18:49 +01:00
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%postun -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
|
2007-12-21 10:24:33 +01:00
|
|
|
|
2011-02-13 22:12:17 +01:00
|
|
|
%post
|
2012-02-08 11:58:30 +01:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 22:12:17 +01:00
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
2012-02-08 11:58:30 +01:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 22:12:17 +01:00
|
|
|
%desktop_database_postun
|
|
|
|
|
2007-01-08 18:18:49 +01:00
|
|
|
%clean
|
2008-03-01 00:28:07 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-08 18:18:49 +01:00
|
|
|
|
2012-02-08 11:58:30 +01:00
|
|
|
%files
|
2007-01-08 18:18:49 +01:00
|
|
|
%defattr(-,root,root)
|
2008-06-26 01:27:35 +02:00
|
|
|
%doc COPYING ChangeLog NEWS README TODO
|
2010-12-30 01:12:49 +01:00
|
|
|
%{_bindir}/charmap
|
|
|
|
%{_bindir}/gnome-character-map
|
|
|
|
%{_bindir}/gucharmap
|
|
|
|
%{_datadir}/applications/gucharmap.desktop
|
2012-02-08 11:58:30 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml
|
2012-09-07 17:27:15 +02:00
|
|
|
%doc %{_datadir}/help/C/gucharmap/
|
2010-12-30 01:12:49 +01:00
|
|
|
|
2011-04-26 08:11:58 +02:00
|
|
|
%files -n libgucharmap%{so_api}-%{so_gucharmap}
|
2010-12-30 01:12:49 +01:00
|
|
|
%defattr(-,root,root)
|
2011-04-26 08:11:58 +02:00
|
|
|
%{_libdir}/libgucharmap%{so_api}.so.%{so_gucharmap}*
|
2011-12-12 16:58:38 +01:00
|
|
|
|
|
|
|
%files -n typelib-1_0-Gucharmap-2_90
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/Gucharmap-2.90.typelib
|
2007-01-08 18:18:49 +01:00
|
|
|
|
2007-08-09 19:31:23 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-01-08 18:18:49 +01:00
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
2011-04-26 08:11:58 +02:00
|
|
|
%{_includedir}/gucharmap-%{pc_api}/
|
|
|
|
%{_libdir}/libgucharmap%{so_api}.so
|
|
|
|
%{_libdir}/pkgconfig/gucharmap-%{pc_api}.pc
|
|
|
|
%{_datadir}/gir-1.0/Gucharmap-%{pc_api}.gir
|
|
|
|
%doc %{_datadir}/gtk-doc/html/gucharmap-%{pc_api}/
|
2008-10-06 18:21:16 +02:00
|
|
|
|
2007-03-10 23:57:02 +01:00
|
|
|
%changelog
|