1 | %global apiversion 0.3 |
---|
2 | |
---|
3 | Name: libwpg |
---|
4 | Summary: A library for import of WordPerfect Graphics images |
---|
5 | Summary(ja): WordPerfect のグラフィック画像をインポートするためのライブラリ |
---|
6 | Version: 0.3.1 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: LGPLv2+ or MPLv2.0 |
---|
11 | URL: http://libwpg.sourceforge.net/ |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | |
---|
16 | Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | BuildRequires: doxygen |
---|
20 | BuildRequires: help2man |
---|
21 | BuildRequires: libwpd-devel >= 0.10.0 |
---|
22 | BuildRequires: librevenge-devel |
---|
23 | BuildRequires: perl(Getopt::Std) |
---|
24 | |
---|
25 | %description |
---|
26 | Libwpg project is a library and to work with graphics in WPG |
---|
27 | (WordPerfect Graphics) format. WPG is the format used among others |
---|
28 | in Corel sofware, such as WordPerfect and Presentations. |
---|
29 | |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Development files for %{name} |
---|
33 | Summary(ja): %{name} の開発用ファイル |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | |
---|
37 | %description devel |
---|
38 | The %{name}-devel package contains libraries and header files for |
---|
39 | developing applications that use %{name}. |
---|
40 | |
---|
41 | |
---|
42 | %package tools |
---|
43 | Summary: Tools to convert WordPerfect Graphics images to other formats |
---|
44 | Summary(ja): WordPerfect グラフィック画像を他のフォーマットに変換するツール |
---|
45 | # wpg2svgbatch.pl says "GPL", without specifying version, and points to |
---|
46 | # http://www.gnu.org/copyleft/gpl.html . I assume this means "any |
---|
47 | # version". |
---|
48 | License: (LGPLv2+ or MPLv2.0) and GPL+ |
---|
49 | Group: Applications/Graphics |
---|
50 | Requires: %{name} = %{version}-%{release} |
---|
51 | |
---|
52 | %description tools |
---|
53 | Tools to convert WordPerfect Graphics images to other formats. Supported |
---|
54 | are: SVG, raw. |
---|
55 | |
---|
56 | |
---|
57 | %package doc |
---|
58 | Summary: Documentation of %{name} API |
---|
59 | Summary(ja): %{name} API のドキュメント |
---|
60 | Group: Documentation |
---|
61 | BuildArch: noarch |
---|
62 | |
---|
63 | %description doc |
---|
64 | The %{name}-doc package contains API documentation for %{name}. |
---|
65 | |
---|
66 | |
---|
67 | %prep |
---|
68 | %setup -q |
---|
69 | |
---|
70 | |
---|
71 | %build |
---|
72 | %configure --disable-static --disable-werror |
---|
73 | sed -i \ |
---|
74 | -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ |
---|
75 | -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ |
---|
76 | libtool |
---|
77 | make %{?_smp_mflags} V=1 |
---|
78 | sed 's/\r//' -i ChangeLog |
---|
79 | find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg |
---|
80 | |
---|
81 | export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} |
---|
82 | help2man -N -n 'debug the conversion library' -o wpg2raw.1 ./src/conv/raw/.libs/wpg2raw |
---|
83 | help2man -N -n 'convert WordPerfect Graphics into SVG' -o wpg2svg.1 ./src/conv/svg/.libs/wpg2svg |
---|
84 | help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \ |
---|
85 | --help-option=-h --no-discard-stderr \ |
---|
86 | -o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl |
---|
87 | |
---|
88 | %install |
---|
89 | rm -rf $RPM_BUILD_ROOT |
---|
90 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
91 | |
---|
92 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
93 | |
---|
94 | # we install API docs directly from build |
---|
95 | rm -rf %{buildroot}/%{_docdir}/%{name} |
---|
96 | |
---|
97 | install -m 0755 -d %{buildroot}/%{_mandir}/man1 |
---|
98 | install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1 |
---|
99 | |
---|
100 | |
---|
101 | %clean |
---|
102 | rm -rf $RPM_BUILD_ROOT |
---|
103 | |
---|
104 | %post -p /sbin/ldconfig |
---|
105 | %postun -p /sbin/ldconfig |
---|
106 | |
---|
107 | |
---|
108 | %files |
---|
109 | %defattr(-,root,root,-) |
---|
110 | %doc AUTHORS ChangeLog COPYING.LGPL COPYING.MPL |
---|
111 | %{_libdir}/%{name}-%{apiversion}.so.* |
---|
112 | |
---|
113 | %files devel |
---|
114 | %defattr(-,root,root,-) |
---|
115 | %{_includedir}/%{name}-%{apiversion} |
---|
116 | %{_libdir}/%{name}-%{apiversion}.so |
---|
117 | %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc |
---|
118 | |
---|
119 | %files tools |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %{_bindir}/wpg2raw |
---|
122 | %{_bindir}/wpg2svg |
---|
123 | %{_bindir}/wpg2svgbatch.pl |
---|
124 | %{_mandir}/man1/wpg2raw.1* |
---|
125 | %{_mandir}/man1/wpg2svg.1* |
---|
126 | %{_mandir}/man1/wpg2svgbatch.pl.1* |
---|
127 | |
---|
128 | %files doc |
---|
129 | %doc COPYING.LGPL COPYING.MPL |
---|
130 | %doc docs/doxygen/html |
---|
131 | |
---|
132 | |
---|
133 | %changelog |
---|
134 | * Sat Jul 2 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.1-1 |
---|
135 | - new upstream release. |
---|
136 | |
---|
137 | * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.0-1 |
---|
138 | - new upstream release |
---|
139 | - split documents to doc subpackage |
---|
140 | |
---|
141 | * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.2-1 |
---|
142 | - update to 0.2.2 |
---|
143 | - remove Patch0 (libwpg-0.1.3-nodate.patch) |
---|
144 | |
---|
145 | * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.0-3 |
---|
146 | - Initial build for Vine Linux |
---|
147 | |
---|
148 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 |
---|
149 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
150 | |
---|
151 | * Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1 |
---|
152 | - latest version |
---|
153 | |
---|
154 | * Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4 |
---|
155 | - Fix multilib problem with doxygen documentation (#508940) |
---|
156 | |
---|
157 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3 |
---|
158 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
159 | |
---|
160 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2 |
---|
161 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
162 | |
---|
163 | * Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1 |
---|
164 | - Initial packaging |
---|