-
Notifications
You must be signed in to change notification settings - Fork 6
/
libwmf.spec.in
84 lines (71 loc) · 2.27 KB
/
libwmf.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%define name @LIBWMF_PACKAGE@
%define version @LIBWMF_VERSION@
%define release @LIBWMF_RELEASE@
%define prefix /usr
%define bindir %{prefix}/bin
%define libdir %{prefix}/lib
%define includedir %{prefix}/include
%define datadir %{prefix}/share
%define wmffontdir %{datadir}/%{name}/fonts
Name: %{name}
Summary: library and utilities for displaying and converting metafile images
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://wvware.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
License: LGPL
Prefix: %{prefix}
Epoch: 1
%description
libwmf is a library for interpreting metafile images and either displaying them
using X or converting them to standard formats such as PNG, JPEG, PS, EPS and
SVG(Z)...
%package devel
Summary: Development tools for programs to manipulate metafile images
Group: Development/Libraries
Requires: %{name} = %{PACKAGE_VERSION}
Serial: 1
%description devel
The libwmf-devel package contains the header files and static
libraries necessary for developing programs using libwmf.
If you want to develop programs which will manipulate metafile images, you
should install libwmf-devel. You'll also need to install the libwmf package.
%prep
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}
./configure \
--prefix=%{prefix} \
--bindir=%{bindir} \
--libdir=%{libdir} \
--includedir=%{includedir} \
--datadir=%{datadir} \
--with-fontdir=%{wmffontdir}
%build
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%{bindir}/wmf2*
%{bindir}/libwmf-fontmap
%{libdir}/libwmf*so*
%{libdir}/libwmf*la
%{wmffontdir}
%doc README COPYING ChangeLog
%doc doc/*.html doc/*.png doc/*.gif
%doc doc/caolan/*.html doc/caolan/*.gif
%doc doc/caolan/pics/weave.jpg
%doc doc/html/*.html doc/html/doxygen.*
%files devel
%defattr(-,root,root)
%{bindir}/libwmf-config
%{includedir}/libwmf
%{libdir}/libwmf*.a
%changelog
* Thu Feb 21 2002 Francis James Franklin <[email protected]>
* Wed Feb 20 2002 Francis James Franklin <[email protected]>
- incorporating suggestions by Michal Jaegermann <[email protected]>
* Mon Feb 18 2002 Francis James Franklin <[email protected]>
- spec adapted from AbiWord's spec template