Sisyphus repository
Last update: 4 june 2020 | SRPMs: 17570 | Visits: 18690345
en ru br
ALT Linux repos
S:1.14.47-alt1
5.0: 1.14.13-alt1
4.1: 1.14.9-alt0.M41.1
4.0: 1.14.7-alt1
3.0: 1.10.1-alt1
+updates:1.10.1-alt1.M30.1

Group :: System/Libraries
RPM: libgsf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# This spec is backported to ALTLinux 4.1 automatically by rpmbh script. Do not edit it.
%define ver_major 1.14
%def_disable static

Name: libgsf
Version: %ver_major.9
Release: alt0.M41.1

Summary: GNOME Structured file library
License: %lgpl2plus
Group: System/Libraries
Url: http://www.gnome.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2

BuildPreReq: rpm-build-gnome rpm-build-licenses

# From configure.in

BuildPreReq: intltool
BuildPreReq: bzlib-devel
BuildPreReq: glib2-devel >= 2.8.0
BuildPreReq: libgio-devel
BuildPreReq: libxml2-devel >= 2.4.16
BuildPreReq: libbonobo-devel >= 2.0
BuildPreReq: gnome-vfs2-devel >= 2.2.0
BuildPreReq: gtk-doc >= 1.0
BuildPreReq: zlib-devel
BuildPreReq: GConf libGConf-devel
BuildPreReq: python-devel
BuildPreReq: python-module-pygobject-devel >= 2.10.0
BuildPreReq: python-module-pygtk-devel python-module-pyorbit-devel

BuildRequires: perl-XML-Parser

BuildRequires: rpm-build-compat >= 0.95

%description
GNOME Structured file library

%package devel
Summary: Libraries and include files for gsf
Group: Development/C
Requires: %name = %version-%release

%description devel
This package provides the necessary development libraries and include
files to allow you to develop programs using gsf.

%if_enabled static
%package devel-static
Summary: Static gsf libraries
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
This package provides the necessary development libraries to allow you
to build programs staticallly linked against libgsf.
%endif

%package gnome
Summary: GNOME Structured file library
Group: System/Libraries

%description gnome
GNOME Structured file library with Bonobo and Gnome-vfs support.

%package gnome-devel
Summary: Libraries and include files for gsf
Group: Development/C
Requires: %name-gnome = %version-%release

%description gnome-devel
This package provides the necessary development libraries and include
files to allow you to develop programs using gsf with Bonobo and
Gnome-vfs support.

%if_enabled static
%package gnome-devel-static
Summary: Static gsf libraries
Group: Development/C
Requires: %name-gnome-devel = %version-%release

%description gnome-devel-static
This package provides the necessary development libraries to allow you
to build programs staticallly linked against libgsf with Bonobo and
Gnome-vfs support.
%endif

%setup_python_module gsf
%package -n python-module-gsf
Summary: Python bindings for %name
Group: Development/Python
Autoreq: yes
Requires: %name = %version-%release
%add_python_req_skip _gsf

%description -n python-module-gsf
This package contains files that are needed to use libgsf from Python
programs.

%setup_python_module gsf-gnome
%package -n python-module-gsf-gnome
Summary: Python bindings for %name-gnome
Group: Development/Python
Autoreq: yes
Requires: %name-gnome = %version-%release

%description -n python-module-gsf-gnome
This package contains files that are needed to use libgsf-gnome from Python
programs.

%define _gtk_docdir %_datadir/gtk-doc/html

%prep
%setup -q

%build
%configure \
   --with-gnome \
   --with-python \
   --with-bz2 \
   --disable-scrollkeeper \
   --disable-schemas-install \
   --enable-gtk-doc \
   %{subst_enable static}

%make_build

%install
%makeinstall

mkdir -p %buildroot%_gtk_docdir/%name
cp doc/html/* %buildroot%_gtk_docdir/%name/

%find_lang --with-gnome %name

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%post gnome -p %post_ldconfig
%postun gnome -p %postun_ldconfig

%files -f %name.lang
%_bindir/*
%_libdir/%name-1.so.*
%_man1dir/*
%doc AUTHORS README TODO NEWS ChangeLog

%files devel
%dir %_includedir/%name-1
%dir %_includedir/%name-1/gsf
%_includedir/%name-1/gsf/*.h
#dir %_includedir/%name-1/gsf-gvfs
#_includedir/%name-1/gsf-gvfs/*.h
%_libdir/%name-1.so
%_pkgconfigdir/%name-1.pc
%doc doc/html

%if_enabled static
%files devel-static
%_libdir/%name-1.a
%endif

%files gnome
%_libdir/%name-gnome-1.so.*
#config %gconf_schemasdir/*
%doc AUTHORS README TODO NEWS ChangeLog

%files gnome-devel
%_includedir/%name-1/gsf-gnome
%_libdir/%name-gnome-1.so
%_pkgconfigdir/%name-gnome-1.pc
%doc %_gtk_docdir/*

%if_enabled static
%files gnome-devel-static
%_libdir/%name-gnome-1.a
%endif

%files -n python-module-gsf
%dir %python_sitelibdir/gsf
%python_sitelibdir/gsf/*.py*
%python_sitelibdir/gsf/_gsfmodule.so

%files -n python-module-gsf-gnome
%python_sitelibdir/gsf/gnomemodule.so
%exclude %python_sitelibdir/gsf/*.la

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin