File pslib.spec of Package pslib
#
# spec file for package pslib (Version 0.4.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Summary: Library for creating PostScript
Name: pslib
Version: 0.4.1
Release: 1
License: LGPL
Group: Development/Libraries
Source: https://prdownloads.sourceforge.net/pslib/pslib-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pslib.sourceforge.net/
BuildRequires: bison gcc-c++ intltool perl-XML-Parser libjpeg-devel libpng-devel
BuildRequires: gettext-devel giflib-devel glib2-devel libtiff-devel pkgconfig
BuildRequires: autoconf >= 2.52 automake libtool
#BuildRequires: docbook2X docbook-utils
Patch0: pslib-configure.patch
Patch1: pslib-getline.patch
Patch2: pslib-0.4.1-visibility.patch
%description
This library allows to create PostScript files.
%package -n libps0
Summary: Libraries, includes, etc. to develop PostScript applications
Group: Development/Libraries
Provides: %{name} = %{version}
Obsoletes: pslib =< 0.2.7
%description -n libps0
This library allows to create PostScript files.
%package -n libps-devel
Summary: Libraries, includes, etc. to develop PostScript applications
Group: Development/Libraries
Requires: libps0 = %{version} glibc-devel
Provides: pslib-devel = %{version}
%description -n libps-devel
Libraries, include files, etc you can use to develop PostScript applications.
%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2
%build
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
%if 0%{?suse_version} > 1000
CFLAGS="$CFLAGS -fstack-protector"
CXXFLAGS="$CXXFLAGS -fstack-protector"
%endif
export CFLAGS
export CXXFLAGS
export LDFLAGS="-Wl,--as-needed"
autoreconf -fi
%configure --enable-hidden-symbols --with-png=%{_usr} --with-jpeg=%{_usr} \
--with-gif=%{_usr} --with-tiff=%{_usr} \
--without-debug --with-libdir=%{_lib} \
--disable-static --disable-rpath --with-pic
make %{?_smp_mflags}
%install
%{__make} DESTDIR=%{buildroot} install
%find_lang %{name}
%post -n libps0 -p /sbin/ldconfig
%postun -n libps0 -p /sbin/ldconfig
%files -n libps0 -f %{name}.lang
%defattr(-, root, root)
%{_libdir}/lib*.so.0*
%files -n libps-devel
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%dir %{_datadir}/pslib
%{_datadir}/pslib/*
#%doc %{_mandir}/man3/*.3*
%exclude %{_libdir}/*.la
%changelog