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

139 lines
3.9 KiB
RPMSpec

#
# spec file for package gucharmap (Version 2.32.1)
#
# Copyright (c) 2010 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
Name: gucharmap
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: gconf2-devel
BuildRequires: gtk2-devel
BuildRequires: python-gtk-devel
BuildRequires: scrollkeeper
BuildRequires: update-desktop-files
License: GPLv3+ ; LGPLv2.1+
Group: System/GUI/GNOME
Version: 2.32.1
Release: 1
Summary: A Featureful Unicode Character Map
Source: %{name}-%{version}.tar.bz2
Url: http://gucharmap.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
%gconf_schemas_prereq
%description
Gucharmap is a featureful unicode character map.
%package -n libgucharmap7
License: GPLv3+ ; LGPLv2.1+
Summary: A Featureful Unicode Character Map -- Library
Group: System/GUI/GNOME
%description -n libgucharmap7
Gucharmap is a featureful unicode character map.
This package contains a library to use the character map.
%package -n python-gucharmap
License: GPLv3+ ; LGPLv2.1+
Summary: A Featureful Unicode Character Map -- Python Bindings
Group: System/GUI/GNOME
%description -n python-gucharmap
Gucharmap is a featureful unicode character map.
This package contains the python bindings to use the character map.
%package devel
License: GPLv3+ ; LGPLv2.1+
Summary: A Featureful Unicode Character Map -- Development Files
Group: Development/Libraries/GNOME
Requires: libgucharmap7 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%lang_package
%prep
%setup -q
%build
%configure --disable-static --with-pic \
--disable-scrollkeeper \
--enable-gtk-doc \
--enable-python-bindings
make %{?jobs:-j%jobs}
%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}
%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 libgucharmap7 -p /sbin/ldconfig
%postun -n libgucharmap7 -p /sbin/ldconfig
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%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
%{_bindir}/charmap
%{_bindir}/gnome-character-map
%{_bindir}/gucharmap
%{_datadir}/applications/gucharmap.desktop
%files -n libgucharmap7
%defattr(-,root,root)
%{_libdir}/libgucharmap.so.*
%files -n python-gucharmap
%defattr(-,root,root)
%{py_sitedir}/gtk-2.0/gucharmap.so
%{_datadir}/pygtk/2.0/defs/gucharmap.defs
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_includedir}/gucharmap-2.0/
%{_libdir}/libgucharmap.so
%{_libdir}/pkgconfig/gucharmap-2.pc
%doc %{_datadir}/gtk-doc/html/gucharmap-2.0/
%changelog