2007-01-15 23:23:30 +00:00
|
|
|
#
|
2011-11-22 16:20:49 +00:00
|
|
|
# spec file for package libwmf
|
2007-01-15 23:23:30 +00:00
|
|
|
#
|
2023-04-29 08:24:23 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:23:30 +00:00
|
|
|
#
|
2008-11-28 14:30:06 +00:00
|
|
|
# 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.
|
|
|
|
|
2021-05-11 11:27:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:23:30 +00:00
|
|
|
#
|
|
|
|
|
2012-03-03 09:59:57 +00:00
|
|
|
|
2021-05-19 15:07:50 +00:00
|
|
|
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
2011-11-22 16:20:49 +00:00
|
|
|
%define lname libwmf-0_2-7
|
2014-05-28 14:47:34 +00:00
|
|
|
Name: libwmf
|
2023-04-29 08:24:23 +00:00
|
|
|
Version: 0.2.13
|
2012-01-30 00:19:49 +00:00
|
|
|
Release: 0
|
2011-11-22 16:20:49 +00:00
|
|
|
Summary: Utilities for Displaying and Converting Metafile Images
|
2018-03-02 05:53:30 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2012-01-30 00:19:49 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2021-05-11 11:27:51 +00:00
|
|
|
URL: https://github.com/caolanm/libwmf
|
|
|
|
Source: https://github.com/caolanm/libwmf/archive/v%{version}.tar.gz
|
2010-01-14 21:29:17 +00:00
|
|
|
Source2: baselibs.conf
|
2015-06-11 07:52:45 +00:00
|
|
|
Patch1: libwmf-0.2.8.4-fix.patch
|
|
|
|
Patch4: libwmf-0.2.8.4-gd_libpng.patch
|
|
|
|
Patch5: libwmf-0.2.8.4-bnc495842.patch
|
2014-05-28 14:47:34 +00:00
|
|
|
BuildRequires: gd-devel
|
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2018-05-07 08:14:30 +00:00
|
|
|
BuildRequires: libtool
|
2014-05-28 14:47:34 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2021-05-11 11:27:51 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-05-28 14:47:34 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11-proto-devel
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
Provides: mswordvw:%{_bindir}/wmftopng
|
|
|
|
Provides: wv:%{_bindir}/wmftopng
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library interprets metafile images and can either display them
|
|
|
|
using the X Window System or convert them to standard formats such as
|
|
|
|
PNG, JPEG, PS, EPS, and more.
|
|
|
|
|
2012-01-28 18:56:02 +00:00
|
|
|
%package tools
|
2011-11-22 16:20:49 +00:00
|
|
|
Summary: Utilities for Displaying and Converting Metafile Images
|
|
|
|
# Prov/Obs added on 2011-11-22 (post openSUSE 12.1)
|
2018-01-29 18:27:11 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2014-05-28 14:47:34 +00:00
|
|
|
Provides: libwmf = %{version}-%{release}
|
|
|
|
Provides: wmf-utils = %{version}-%{release}
|
|
|
|
Obsoletes: libwmf < %{version}-%{release}
|
|
|
|
Obsoletes: wmf-utils < %{version}-%{release}
|
2011-11-22 16:20:49 +00:00
|
|
|
|
2012-01-28 18:56:02 +00:00
|
|
|
%description tools
|
2011-11-22 16:20:49 +00:00
|
|
|
These utilities read metafile images and can either display them
|
|
|
|
using the X Window System or convert them to standard formats such as
|
|
|
|
PNG, JPEG, PS, EPS, and more.
|
|
|
|
|
2014-05-28 14:47:34 +00:00
|
|
|
%package -n %{lname}
|
2011-11-22 16:20:49 +00:00
|
|
|
Summary: Library for reading Metafile Images
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-05-28 14:47:34 +00:00
|
|
|
%description -n %{lname}
|
2011-11-22 16:20:49 +00:00
|
|
|
This library reads metafile images.
|
|
|
|
|
2007-01-15 23:23:30 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Static libraries, header files and documentation for libwmf
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-05-28 14:47:34 +00:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Requires: libwmf-gnome = %{version}
|
2018-03-02 05:53:30 +00:00
|
|
|
Requires: pkgconfig(freetype2)
|
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xproto)
|
|
|
|
Requires: pkgconfig(zlib)
|
2020-08-31 05:34:36 +00:00
|
|
|
Provides: mswordvd:%{_prefix}/lib/libwmf.a
|
|
|
|
Provides: wv-devel:%{_prefix}/lib/libwmf.a
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libwmf-devel package contains the header files and static libraries
|
|
|
|
necessary for developing programs using libwmf.
|
|
|
|
|
|
|
|
%package gnome
|
|
|
|
Summary: GNOME plugin for displaying and Converting Metafile Images
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description gnome
|
|
|
|
This library interprets metafile images and can either display them
|
|
|
|
using the X Window System or convert them to standard formats such as
|
|
|
|
PNG, JPEG, PS, EPS, and more.
|
|
|
|
|
|
|
|
%prep
|
2009-12-16 08:50:33 +00:00
|
|
|
%setup -q
|
2021-05-11 11:27:51 +00:00
|
|
|
%autopatch -p0
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
%build
|
2021-05-11 11:27:51 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-magick \
|
|
|
|
$RPM_ARCH-suse-linux
|
|
|
|
%make_build
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
%install
|
2021-05-11 11:27:51 +00:00
|
|
|
%make_install wmfdocdir=%{_defaultdocdir}/libwmf \
|
|
|
|
wmfonedocdir=%{_defaultdocdir}/libwmf/caolan
|
2014-05-28 14:47:34 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:23:30 +00:00
|
|
|
|
2014-05-28 14:47:34 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-01-15 23:23:30 +00:00
|
|
|
|
2012-01-28 18:56:02 +00:00
|
|
|
%files tools
|
2021-05-11 11:27:51 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS CREDITS README TODO
|
2014-05-28 14:47:34 +00:00
|
|
|
%{_bindir}/libwmf-fontmap
|
|
|
|
%{_bindir}/wmf2eps
|
|
|
|
%{_bindir}/wmf2fig
|
|
|
|
%{_bindir}/wmf2gd
|
|
|
|
%{_bindir}/wmf2svg
|
|
|
|
%{_bindir}/wmf2x
|
|
|
|
%{_datadir}/libwmf
|
2007-01-15 23:23:30 +00:00
|
|
|
|
2014-05-28 14:47:34 +00:00
|
|
|
%files -n %{lname}
|
|
|
|
%{_libdir}/libwmf*-0.2.so.7*
|
2011-11-22 16:20:49 +00:00
|
|
|
|
2007-01-15 23:23:30 +00:00
|
|
|
%files gnome
|
2021-05-11 11:27:51 +00:00
|
|
|
%{_libdir}/gdk-pixbuf-*/*/loaders/*.so
|
2007-01-15 23:23:30 +00:00
|
|
|
|
|
|
|
%files devel
|
2021-05-11 11:27:51 +00:00
|
|
|
%doc doc/caolan
|
|
|
|
%doc doc/html
|
|
|
|
%doc doc/*.{html,png,gif}
|
2014-05-28 14:47:34 +00:00
|
|
|
%{_bindir}/libwmf-config
|
|
|
|
%{_includedir}/libwmf
|
2007-01-15 23:23:30 +00:00
|
|
|
%{_libdir}/libwmf*.so
|
2021-05-11 11:27:51 +00:00
|
|
|
%{_libdir}/pkgconfig/libwmf.pc
|
2007-01-15 23:23:30 +00:00
|
|
|
|
2008-11-28 14:30:06 +00:00
|
|
|
%changelog
|