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

160 lines
4.6 KiB
RPMSpec

#
# spec file for package gucharmap
#
# Copyright (c) 2011 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/
#
# norootforbuild
%define api_version 2.90
%define so_api _2_90
%define so_gucharmap 7
%define pc_api 2.90
Name: gucharmap
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: gconf2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: scrollkeeper
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
License: GPLv3+ ; LGPLv2.1+
Group: System/GUI/GNOME
Version: 3.2.2
Release: 1
Summary: A Featureful Unicode Character Map
Source: http://download.gnome.org/sources/gucharmap/3.2/%{name}-%{version}.tar.bz2
Url: http://gucharmap.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
%gconf_schemas_prereq
%description
Gucharmap is a featureful unicode character map.
%package -n libgucharmap%{so_api}-%{so_gucharmap}
License: GPLv3+ ; LGPLv2.1+
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 -- Library
Group: System/Libraries
%description -n typelib-1_0-Gucharmap-2_90
Gucharmap is a featureful unicode character map.
This package contains a library to use the character map.
%package devel
License: GPLv3+ ; LGPLv2.1+
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
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT
# 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
%post -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
%postun -n libgucharmap%{so_api}-%{so_gucharmap} -p /sbin/ldconfig
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%posttrans -f %{name}.schemas_posttrans
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/charmap
%{_bindir}/gnome-character-map
%{_bindir}/gucharmap
%{_datadir}/applications/gucharmap.desktop
%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