Group :: Text tools
RPM: gucharmap
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define ver_major 2.22
Name: gucharmap
Version: %ver_major.1
Release: alt1.qa1
Summary: gucharmap is a featureful Unicode character map
License: %gpl2plus
Group: Text tools
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# From configure.ac
%define gtk_ver 2.12.0
%define libgnome_ver 2.13.7
%define libgnomeui_ver 2.13.2
%define gnome_common_ver 2.8.0
Requires: lib%name = %version-%release
Requires(post): GConf2
BuildPreReq: rpm-build-gnome rpm-build-licenses
# From configure.ac
BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-common >= %gnome_common_ver
BuildPreReq: gnome-doc-utils >= 0.9.0
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libgnome-devel >= %libgnome_ver
BuildPreReq: libGConf-devel GConf
BuildRequires: gcc-c++ gnome-doc-utils python-modules-compiler perl-XML-Parser
%description
This package provides a featureful Unicode character map for GNOME2.
%package -n lib%name
Summary: Shared library needed to run %name
Group: System/Libraries
License: %lgpl2plus
%description -n lib%name
This package provides shared library for programs that show character maps
(including Gucharmap and a character map applet for the GNOME panel).
%package -n lib%name-devel
Summary: Development files for lib%name
License: %lgpl2plus
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains headers and libraries needed to compile
applications against lib%name
%prep
%setup -q
%build
%autoreconf
%configure \
--disable-scrollkeeper \
--disable-static \
--enable-gconf \
--disable-schemas-install
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install DESTDIR=%buildroot install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%find_lang --with-gnome %name
%postun -n gucharmap
%clean_menus
%post
%gconf2_install %name
%update_menus
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%post -n lib%name
%post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -f %name.lang
%_bindir/*
%_desktopdir/*
%_liconsdir/*
%config %gconf_schemasdir/%name.schemas
%doc ChangeLog README TODO COPYING COPYING.UNICODE
%files -n lib%name
%_libdir/*.so.*
%doc COPYING.LIB
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%changelog
…
Full changelog you can see here
Name: gucharmap
Version: %ver_major.1
Release: alt1.qa1
Summary: gucharmap is a featureful Unicode character map
License: %gpl2plus
Group: Text tools
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
# From configure.ac
%define gtk_ver 2.12.0
%define libgnome_ver 2.13.7
%define libgnomeui_ver 2.13.2
%define gnome_common_ver 2.8.0
Requires: lib%name = %version-%release
Requires(post): GConf2
BuildPreReq: rpm-build-gnome rpm-build-licenses
# From configure.ac
BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-common >= %gnome_common_ver
BuildPreReq: gnome-doc-utils >= 0.9.0
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libgnome-devel >= %libgnome_ver
BuildPreReq: libGConf-devel GConf
BuildRequires: gcc-c++ gnome-doc-utils python-modules-compiler perl-XML-Parser
%description
This package provides a featureful Unicode character map for GNOME2.
%package -n lib%name
Summary: Shared library needed to run %name
Group: System/Libraries
License: %lgpl2plus
%description -n lib%name
This package provides shared library for programs that show character maps
(including Gucharmap and a character map applet for the GNOME panel).
%package -n lib%name-devel
Summary: Development files for lib%name
License: %lgpl2plus
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains headers and libraries needed to compile
applications against lib%name
%prep
%setup -q
%build
%autoreconf
%configure \
--disable-scrollkeeper \
--disable-static \
--enable-gconf \
--disable-schemas-install
%make_build
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install DESTDIR=%buildroot install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%find_lang --with-gnome %name
%postun -n gucharmap
%clean_menus
%post
%gconf2_install %name
%update_menus
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
fi
%post -n lib%name
%post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -f %name.lang
%_bindir/*
%_desktopdir/*
%_liconsdir/*
%config %gconf_schemasdir/%name.schemas
%doc ChangeLog README TODO COPYING COPYING.UNICODE
%files -n lib%name
%_libdir/*.so.*
%doc COPYING.LIB
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc
%changelog
…
Full changelog you can see here