]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- release 4.
[packages/libwmf.git] / libwmf.spec
1 Summary:        libwmf - library to convert wmf files
2 Summary(pl):    libwmf - biblioteka z funkcjami do konwersji plików wmf
3 Name:           libwmf
4 Version:        0.1.21b
5 Release:        4
6 Epoch:          2
7 License:        GPL
8 Vendor:         Caolan McNamara <Caolan.McNamara@ul.ie>
9 Group:          Applications/Text
10 Group(de):      Applikationen/Text
11 Group(fr):      Utilitaires/Texte
12 Group(pl):      Aplikacje/Tekst
13 Source0:        ftp://download.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
14 Patch0:         %{name}-DESTDIR.patch
15 Patch1:         %{name}-shared.patch
16 URL:            http://wvware.sourceforge.net/
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 BuildRequires:  libtool
19 BuildRequires:  libpng-devel
20 BuildRequires:  freetype-devel
21 BuildRequires:  XFree86-devel
22
23 %description
24 libwmf is a library for unix like machines that can convert wmf files
25 into other formats, currently it supports fig, eps, a gd binding to
26 convert to png, and an X one to draw direct to an X window or pixmap.
27
28 %description -l pl
29 libwmf jest bibliotek± dla systemów uniksowych, która konwertuje pliki
30 wmf na inne formaty. Aktualnie obs³uguje formaty fig i eps, format png
31 poprzez bibliotekê gd oraz - poprzez biblioteki X Window - rysowanie
32 w okienku oraz format xpm.
33
34 %package devel
35 Summary:        libwmf - header files
36 Summary(pl):    libwmf - pliki nag³ówkowe
37 Group:          Development/Libraries
38 Group(de):      Entwicklung/Libraries
39 Group(fr):      Development/Librairies
40 Group(pl):      Programowanie/Biblioteki
41 Requires:       %{name} = %{version}
42
43 %description devel
44 This package contains libwmf header files.
45
46 %description devel -l pl
47 Pakiet zawiera pliki nag³ówkowe do biblioteki libwmf.
48
49 %package static
50 Summary:        libwmf - static libraries
51 Summary(pl):    libwmf - biblioteki statyczne
52 Group:          Development/Libraries
53 Group(de):      Entwicklung/Libraries
54 Group(fr):      Development/Librairies
55 Group(pl):      Programowanie/Biblioteki
56 Requires:       %{name}-devel = %{version}
57
58 %description static
59 This package contains libwmf static libraries.
60
61 %description static -l pl
62 Pakiet zawiera statyczn± wersjê biblioteki libwmf.
63
64 %prep
65 %setup -q -n %{name}
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %configure \
71         --with-ttf=/usr
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
77
78 %{__make} install DESTDIR=$RPM_BUILD_ROOT
79
80 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} \
81         $RPM_BUILD_ROOT%{_includedir}/xgd
82
83 # remove unwanted paths from libtool scripts
84 for f in $RPM_BUILD_ROOT%{_libdir}/lib{X,eps,gd,xf,}wmf.la ; do
85         cat $f | awk '/^dependency_libs/ { gsub("-L[ \t]*[^ \t]*/\.libs ","") } //' >$f.tmp
86         mv -f $f.tmp $f
87 done
88
89 rm -rf notes/testprogram
90 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc *.gz
101 # only these binaries - other conflicts with gd
102 %attr(755,root,root) %{_bindir}/bdftogd
103 %attr(755,root,root) %{_bindir}/wmftofig
104 %attr(755,root,root) %{_bindir}/wmftopng
105 %attr(755,root,root) %{_bindir}/wmftoeps
106 %attr(755,root,root) %{_bindir}/xwmf
107 %attr(755,root,root) %{_libdir}/*.so.*.*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %doc doc examples notes winepatches
112 %{_includedir}/*
113 %{_libdir}/*.so
114 %attr(755,root,root) %{_libdir}/*.la
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/*.a
This page took 0.067844 seconds and 4 git commands to generate.