SHA256
1
0
forked from pool/gucharmap
gucharmap/gucharmap.spec

149 lines
4.5 KiB
RPMSpec

#
# spec file for package gucharmap
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define api_version 2.90
%define so_api _2_90
%define so_gucharmap 7
%define pc_api 2.90
Name: gucharmap
Version: 3.12.1
Release: 0
# FIXME vala bindings are currently disabled by upstream and not supposed to auto-enable
Summary: A Featureful Unicode Character Map
License: GPL-3.0+ and LGPL-2.1+
Group: System/GUI/GNOME
Url: http://gucharmap.sourceforge.net/
Source: http://download.gnome.org/sources/gucharmap/3.12/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
BuildRequires: gtk3-devel >= 3.4.0
BuildRequires: intltool
BuildRequires: libxml2-tools
BuildRequires: scrollkeeper
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(gio-2.0) >= 2.32.0
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Gucharmap is a featureful unicode character map.
%package -n libgucharmap%{so_api}-%{so_gucharmap}
Summary: A Featureful Unicode Character Map -- Library
Group: System/GUI/GNOME
%description -n libgucharmap%{so_api}-%{so_gucharmap}
Gucharmap is a featureful unicode character map.
This package contains a library to use the character map.
%package -n typelib-1_0-Gucharmap-2_90
Summary: A Featureful Unicode Character Map -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Gucharmap-2_90
Gucharmap is a featureful unicode character map.
This package provides the GObject Introspection bindings for the
gucharmap library.
%package devel
Summary: A Featureful Unicode Character Map -- Development Files
Group: Development/Libraries/GNOME
Requires: libgucharmap%{so_api}-%{so_gucharmap} = %{version}
Requires: typelib-1_0-Gucharmap-2_90 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --disable-static --with-pic \
--disable-scrollkeeper \
--enable-gtk-doc \
--with-gtk=3.0 \
--enable-introspection
make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name} %{?no_lang_C}
# 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
%fdupes $RPM_BUILD_ROOT
%post -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
%postun -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS README TODO
%{_bindir}/charmap
%{_bindir}/gnome-character-map
%{_bindir}/gucharmap
%{_datadir}/applications/gucharmap.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.Charmap.gschema.xml
%doc %{_datadir}/help/C/gucharmap/
%dir %{_datadir}/appdata
%{_datadir}/appdata/gucharmap.appdata.xml
%files -n libgucharmap%{so_api}-%{so_gucharmap}
%defattr(-,root,root)
%{_libdir}/libgucharmap%{so_api}.so.%{so_gucharmap}*
%files -n typelib-1_0-Gucharmap-2_90
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Gucharmap-2.90.typelib
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_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}/
%changelog