SHA256
1
0
forked from pool/gucharmap
gucharmap/gucharmap.spec
Dominique Leuenberger db49808823 Accepting request 24399 from home:vuntz:branches:GNOME:Factory
Copy from home:vuntz:branches:GNOME:Factory/gucharmap via accept of submit request 24399 revision 19.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/24399
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gucharmap?expand=0&rev=34
2009-11-25 11:20:50 +00:00

122 lines
3.1 KiB
RPMSpec

#
# spec file for package gucharmap (Version 2.29.1)
#
# Copyright (c) 2009 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: GPL v2 or later ; LGPL v2.1 or later
Group: System/GUI/GNOME
Version: 2.29.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: GPL v2 or later ; LGPL v2.1 or later
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
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