]> git.pld-linux.org Git - packages/libwmf.git/blob - libwmf.spec
- don't relink in %%install
[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:        5
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 BuildRequires:  libtool
18 BuildRequires:  libpng-devel
19 BuildRequires:  freetype1-devel
20 BuildRequires:  XFree86-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 w
32 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         --enable-shared \
72         --with-ttf=/usr
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/xgd}
78
79 # avoid relinking
80 for f in *.la ; do
81         sed -e '/^relink_command/d' $f > $f.new
82         mv -f $f.new $f
83 done
84
85 %{__make} install DESTDIR=$RPM_BUILD_ROOT
86
87 mv -f $RPM_BUILD_ROOT%{_includedir}/{gd.h,gd_io.h,gdf*,gdc*} \
88         $RPM_BUILD_ROOT%{_includedir}/xgd
89
90 # remove unwanted paths from libtool scripts
91 for f in $RPM_BUILD_ROOT%{_libdir}/lib{X,eps,gd,xf,}wmf.la ; do
92         cat $f | awk '/^dependency_libs/ { gsub("-L[ \t]*[^ \t]*/\.libs ","") } //' >$f.tmp
93         mv -f $f.tmp $f
94 done
95
96 rm -rf notes/testprogram
97 gzip -9nf winepatches/* notes/*.txt CHANGELOG CREDITS README
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc *.gz
108 # only these binaries - other conflicts with gd
109 %attr(755,root,root) %{_bindir}/bdftogd
110 %attr(755,root,root) %{_bindir}/wmftofig
111 %attr(755,root,root) %{_bindir}/wmftopng
112 %attr(755,root,root) %{_bindir}/wmftoeps
113 %attr(755,root,root) %{_bindir}/xwmf
114 %attr(755,root,root) %{_libdir}/*.so.*.*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %doc doc examples notes winepatches
119 %{_includedir}/*
120 %{_libdir}/*.so
121 %attr(755,root,root) %{_libdir}/*.la
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/*.a
This page took 0.049689 seconds and 4 git commands to generate.