SHA256
1
0
forked from pool/gucharmap

Accepting request 57539 from GNOME:Factory

Accepted submit request 57539 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/57539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gucharmap?expand=0&rev=42
This commit is contained in:
Berthold Gunreben 2011-01-10 10:35:45 +00:00 committed by Git OBS Bridge
commit c70d831889
2 changed files with 50 additions and 26 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Dec 23 19:05:01 CET 2010 - vuntz@opensuse.org
- Split libgucharmap7 and python-gucharmap subpackages, to respect
shared library packaging policy.
- Improve summary and description.
- Remove unneeded gconf2-devel, glib2-devel, gtk2-devel Requires in
devel package: they will automatically be added the pkgconfig()
way.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 15 11:34:51 CET 2010 - dimstar@opensuse.org Mon Nov 15 11:34:51 CET 2010 - dimstar@opensuse.org

View File

@ -32,7 +32,7 @@ License: GPLv3+ ; LGPLv2.1+
Group: System/GUI/GNOME Group: System/GUI/GNOME
Version: 2.32.1 Version: 2.32.1
Release: 1 Release: 1
Summary: A Feature-Rich Unicode Character Map Summary: A Featureful Unicode Character Map
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Url: http://gucharmap.sourceforge.net/ Url: http://gucharmap.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -40,37 +40,43 @@ Requires: %{name}-lang = %{version}
%gconf_schemas_prereq %gconf_schemas_prereq
%description %description
Gucharmap is a feature-rich Unicode character map and font viewer. 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.
Authors: This package contains a library to use the character map.
--------
Noah Levitt %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 %package devel
License: GPLv3+ ; LGPLv2.1+ License: GPLv3+ ; LGPLv2.1+
Summary: Include Files and Libraries mandatory for Development Summary: A Featureful Unicode Character Map -- Development Files
Group: Development/Libraries/GNOME Group: Development/Libraries/GNOME
Requires: %{name} = %{version} gconf2-devel glib2-devel gtk2-devel Requires: libgucharmap7 = %{version}
%description devel %description devel
This package contains all necessary include files and libraries needed This package contains all necessary include files and libraries needed
to develop applications that require these. to develop applications that require these.
Authors:
--------
Noah Levitt
%lang_package %lang_package
%prep %prep
%setup -q %setup -q
%build %build
# FIXME: Build as root modifies system!
# gucharmap-1.8.0: --disable-scrollkeeper does not work properly.
%configure --disable-static --with-pic \ %configure --disable-static --with-pic \
--disable-scrollkeeper \ --disable-scrollkeeper \
--enable-gtk-doc \ --enable-gtk-doc \
@ -82,7 +88,7 @@ make %{?jobs:-j%jobs}
%if 0%{?suse_version} <= 1120 %if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif %endif
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} + find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name} %find_lang %{name}
%find_gconf_schemas %find_gconf_schemas
%fdupes $RPM_BUILD_ROOT %fdupes $RPM_BUILD_ROOT
@ -90,9 +96,9 @@ find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
# want TextEditor, since that's too wide. # want TextEditor, since that's too wide.
%suse_update_desktop_file -N "GNOME Character Map" -G "Character Map" %{name} X-SuSE-Editor %suse_update_desktop_file -N "GNOME Character Map" -G "Character Map" %{name} X-SuSE-Editor
%post -p /sbin/ldconfig %post -n libgucharmap7 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n libgucharmap7 -p /sbin/ldconfig
%pre -f %{name}.schemas_pre %pre -f %{name}.schemas_pre
@ -106,19 +112,27 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.schemas_list %files -f %{name}.schemas_list
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING ChangeLog NEWS README TODO %doc COPYING ChangeLog NEWS README TODO
%{_bindir}/* %{_bindir}/charmap
%{_libdir}/*.so.* %{_bindir}/gnome-character-map
%{_datadir}/applications/*.desktop %{_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 %{py_sitedir}/gtk-2.0/gucharmap.so
%{_datadir}/pygtk/2.0/defs/* %{_datadir}/pygtk/2.0/defs/gucharmap.defs
%files lang -f %{name}.lang %files lang -f %{name}.lang
%files devel %files devel
%defattr (-, root, root) %defattr (-, root, root)
%{_includedir}/* %{_includedir}/gucharmap-2.0/
%{_libdir}/*.so %{_libdir}/libgucharmap.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/gucharmap-2.pc
%{_datadir}/gtk-doc/html/* %doc %{_datadir}/gtk-doc/html/gucharmap-2.0/
%changelog %changelog