libspectre/libspectre.spec

107 lines
2.6 KiB
RPMSpec

#
# spec file for package libspectre (Version 0.2.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Url: http://libspectre.freedesktop.org/wiki/
Name: libspectre
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
Version: 0.2.0
Release: 2
Source0: %name-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghostscript-devel ghostscript-library
%description
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents.
Authors:
--------
Albert Astals Cid <aacid@kde.org>
Carlos Garcia Campos <carlosgc@gnome.org>
%package -n libspectre1
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
%description -n libspectre1
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents.
Authors:
--------
Albert Astals Cid <aacid@kde.org>
Carlos Garcia Campos <carlosgc@gnome.org>
%package -n libspectre-devel
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Library for Rendering PostScript Documents
Requires: libspectre1 >= %version
%requires_eq ghostscript-devel
%description -n libspectre-devel
libspectre is a small library for rendering Postscript documents. It
provides a convenient easy to use API for handling and rendering
Postscript documents.
Authors:
--------
Albert Astals Cid <aacid@kde.org>
Carlos Garcia Campos <carlosgc@gnome.org>
%prep
%setup -q
%build
# Update config.{guess,sub}
%{?suse_update_config}
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --enable-shared
make %{?jobs:-j %jobs}
%install
%makeinstall
%post -n libspectre1 -p /sbin/ldconfig
%postun -n libspectre1 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libspectre1
%defattr(-, root, root)
%_libdir/libspectre.so.1*
%files -n libspectre-devel
%defattr(-, root, root)
/usr/include/libspectre
%_libdir/libspectre.la
%_libdir/libspectre.so
%_libdir/pkgconfig/libspectre.pc
%changelog
* Thu Apr 03 2008 dmueller@suse.de
- Initial package (0.2.0)