Re: gal.spec



On 31 Aug 2001 23:44:02 -0700, Chris Lyttle wrote:
> Ok I was trying to compile a newer evolution tonight and ran into a
> problem I frequently have with libs associated with evo. If I upgrade it
> affects several other apps that use the same libs (dependency). So I
> hacked a first spec file to partially resolve the problem. This splits
> gal into gal, gal-devel and libgal with the libgal being the bit I need
> to retain. Based on similar ones that Ximian uses.
> 
> Comments?
> 
> Chris
> 
> PS If I run into the same problem with GtkHTML (I suspect I will) I'll
> also post that
> 
> 


Ok Here's the GtkHTML spec file
%define _localstatedir %{_var}/lib
Name:            gtkhtml 
Version:         0.10.1
Release:         1
BuildRoot:       %{_tmppath}/%{name}-%{version}-root
Summary:         HTML rendering/printing/editing library
License:         LGPL
Group:           X11/Libraries
Source:          ftp://ftp.gnome.org/pub/GNOME/sources/gtkhtml/%{name}-%{version}.tar.gz
Requires:        gdk-pixbuf >= 0.8.0
Requires:        gal >= 0.8
Requires:        bonobo >= 0.32
Requires:        gnome-print >= 0.25
BuildRequires:   xml-i18n-tools
BuildRequires:   gdk-pixbuf-devel >= 0.8.0
BuildRequires:   gnome-print-devel >= 0.25
BuildRequires:   bonobo-devel >= 0.32
BuildRequires:   gal-devel >= 0.8


%description
This is GtkHTML, a lightweight HTML rendering/printing/editing engine.
It was originally based on KHTMLW, but is now being developed
independently of it.

%package devel
Summary: Libraries, includes, etc to develop gtkhtml applications
Group: Development/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}

%description devel
Libraries, include files, etc you can use to develop gtkhtml applications.

%package -n libgtkhtml13
Summary:	GtkHTML is a HTML rendering/editing library.
Group:		System Environment/Libraries

%description -n libgtkhtml13
GtkHTML is a HTML rendering/editing library.  GtkHTML is
not designed to be the ultimate HTML browser/editor: instead, it is
designed to be easily embedded into applications that require
lightweight HTML functionality.

%prep
%setup -q

%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ;
%{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ;
./configure %{_target_platform} \
	--prefix=%{_prefix} \
	--exec-prefix=%{_exec_prefix} \
	--bindir=%{_bindir} \
	--sbindir=%{_sbindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--libdir=%{_libdir} \
	--libexecdir=%{_libexecdir} \
	--localstatedir=%{_localstatedir} \
	--sharedstatedir=%{_sharedstatedir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir}
%__make

%install
if test "$RPM_BUILD_ROOT" != "/"; then
	rm -rf $RPM_BUILD_ROOT
fi
%{__make} \
	prefix=%{?buildroot:%{buildroot}}%{_prefix} \
	exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \
	bindir=%{?buildroot:%{buildroot}}%{_bindir} \
	sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \
	sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \
	datadir=%{?buildroot:%{buildroot}}%{_datadir} \
	libdir=%{?buildroot:%{buildroot}}%{_libdir} \
	libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \
	localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \
	sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \
	mandir=%{?buildroot:%{buildroot}}%{_mandir} \
	infodir=%{?buildroot:%{buildroot}}%{_infodir} \
install
%{find_lang} %{name}

%clean
if test "$RPM_BUILD_ROOT" != "/"; then
	rm -rf $RPM_BUILD_ROOT
fi

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/CORBA/servers/*
%{_bindir}/*
%{_datadir}/control-center/Documents/*
%{_datadir}/gnome/apps/Settings/Documents/*
%{_datadir}/gnome/ui/*
%{_datadir}/gtkhtml
%{_datadir}/oaf/*
%doc AUTHORS ChangeLog NEWS README COPYING TODO COPYING.LIB INSTALL

%files devel
%defattr(-, root, root)
%{_includedir}/gtkhtml
%{_libdir}/*.sh
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/bonobo/plugin/*.a
%{_libdir}/bonobo/plugin/*.la
%{_libdir}/bonobo/plugin/*.so

%files -n libgtkhtml13
%defattr(-, root, root)
%{_libdir}/lib*.so.*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]