[gdome]SPEC file for RPMs



Hello,
Here's a SPEC file so that you may build RPMs for libgdome.
If this spec file is put in the root directory of the tarball, users can
build RPMS with:

	rpm -ta gdome2-0.6.8.tar.gz

Enjoy.


p.s. somebody pls fill in some informative description in the specfile.


-- 
Wai-Sun "Squidster" Chia
Unix/Web Developer/RHCE
Professional Services
# Note that this is NOT a relocatable package
%define ver      0.6.8
%define prefix   /usr
%define datadir  %{prefix}/share

Summary: Library providing XML and HTML support
Name: libgdome
Version: %ver
Release: 1
Copyright: LGPL
Group: Development/Libraries
Source: http://www.cs.unibo.it/~casarini/gdome2/tarball/gdome2-%{ver}.tar.gz
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root

URL: http://xmlsoft.org/
Docdir: %{datadir}/doc

%description
FIXME:

%package devel
Summary: Libraries, includes, etc. to develop XML and HTML applications
Group: Development/Libraries
Requires: libxml2 >= 2.3.5

%description devel
FIXME:

%changelog
* Wed Jun 13 2001 Squidster <squidster msa dec com>
- Initial release

%prep
%setup -n gdome2-%{ver}

%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
%ifarch alpha
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
%else
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
%endif
else
%ifarch alpha
  CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
%else
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
%endif
fi

if [ "$SMP" != "" ]; then
  (make "MAKE=make -k -j $SMP"; exit 0)
  make
else
  make
fi

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{datadir}/man/man1
install -d $RPM_BUILD_ROOT%{datadir}/man/man4
make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{datadir}/man install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README MAINTAINERS COPYING COPYING.LIB
%{prefix}/lib/lib*.so.*

%files devel
%defattr(-, root, root)
%doc gtk-doc
%{prefix}/lib/lib*.so
%{prefix}/lib/*a
%{prefix}/lib/*.sh
%{prefix}/include/*
%{prefix}/bin/gdome-config


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