Fresco logo Fresco title

trunk/Prague/config/Prague.spec.in

CVS Help

File: [Fresco] / trunk / Prague / config / Prague.spec.in (download)
Revision: 1371, Wed Nov 20 07:14:23 2002 UTC (7 years, 9 months ago) by stefan
File size: 1361 byte(s)
just cleanup, really
Summary: System level support library for Fresco
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1
License: LGPL
Group: Development/Libraries
Source: http://download.fresco.org/releases/%{version}/src/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
URL: http://fresco.org/
Prefix: %{_prefix}
Docdir: %{_docdir}

%description
system wrapper and utility library originaly developed for Fresco

%package devel
Summary: Libraries, includes, etc. to develop applications with Prague
Group: Development/Libraries
Requires: Prague = %{version}

%description devel
all you need to develop applications with the Prague library

%prep
%setup -q

%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --mandir=%{_mandir}
else
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --mandir=%{_mandir}
fi

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

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install
make prefix=$RPM_BUILD_ROOT%{prefix} install-doc

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)

%{prefix}/lib/lib*.so

%files devel
%defattr(-, root, root)

%{prefix}/include/*
%{prefix}/bin/Prague-config
%{prefix}/share/doc

%changelog