forked from pool/gucharmap
d7d0aee035
Copy from home:dimstar:branches:GNOME:Factory/gucharmap via accept of submit request 39127 revision 2. Request was accepted with message: Ok OBS-URL: https://build.opensuse.org/request/show/39127 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gucharmap?expand=0&rev=42
125 lines
3.2 KiB
RPMSpec
125 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package gucharmap (Version 2.30.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: GPLv2+ ; LGPLv2.1+
|
|
Group: System/GUI/GNOME
|
|
Version: 2.30.1
|
|
Release: 1
|
|
Summary: A Feature-Rich 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 feature-rich Unicode character map and font viewer.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Noah Levitt
|
|
|
|
%package devel
|
|
License: GPLv2+ ; LGPLv2.1+
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
Group: Development/Libraries/GNOME
|
|
Requires: %{name} = %{version} gconf2-devel glib2-devel gtk2-devel
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Noah Levitt
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# FIXME: Build as root modifies system!
|
|
# gucharmap-1.8.0: --disable-scrollkeeper does not work properly.
|
|
%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} -type f -name "*.la" -exec %{__rm} -fv {} +
|
|
%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 -p /sbin/ldconfig
|
|
|
|
%postun -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}/*
|
|
%{_libdir}/*.so.*
|
|
%{_datadir}/applications/*.desktop
|
|
%{py_sitedir}/gtk-2.0/gucharmap.so
|
|
%{_datadir}/pygtk/2.0/defs/*
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gtk-doc/html/*
|
|
|
|
%changelog
|