OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pslib?expand=0&rev=6
112 lines
3.1 KiB
RPMSpec
112 lines
3.1 KiB
RPMSpec
#
|
|
# 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: http://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
|
|
#BuildRequires: docbook2X docbook-utils
|
|
Patch0: pslib-configure.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
|
|
|
|
%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"
|
|
libtoolize --force
|
|
aclocal --force
|
|
autoheader --force
|
|
automake --force --copy --add-missing
|
|
intltoolize --copy --force
|
|
autoconf --force
|
|
%configure --with-png=%{_usr} --with-jpeg=%{_usr} \
|
|
--with-gif=%{_usr} --with-tiff=%{_usr} \
|
|
--without-debug --with-libdir=%{_lib} \
|
|
--disable-static --disable-rpath --with-pic
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%{__make} DESTDIR=%{buildroot} install
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%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
|