1 | %define binding_langs perl python |
---|
2 | Summary: Portable C library for dynamically generating PDF files |
---|
3 | Summary(ja): PDF ファイルを動的に生成できる取扱い易い C 言語ライブラリ |
---|
4 | Name: pdflib-lite |
---|
5 | Version: 7.0.5 |
---|
6 | Release: 1%{?dist} |
---|
7 | License: Distributable |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://www.pdflib.com/ |
---|
10 | Source: http://www.pdflib.com/binaries/PDFlib/704/PDFlib-Lite-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Conflicts: pdflib <= 4 |
---|
15 | |
---|
16 | %description |
---|
17 | PDFlib is a development tool for PDF-enabling your software, |
---|
18 | or generating PDF on your server. PDFlib offers a simple-to-use API |
---|
19 | for programmatically creating PDF files from within your own server- |
---|
20 | or client-side software. PDFlib doesn't make use of third-party software |
---|
21 | for generating PDF, nor does it require any other tools. |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Development files for pdflib |
---|
25 | Group: Development/Libraries |
---|
26 | Requires: %{name} = %{version}-%{release} |
---|
27 | |
---|
28 | %description devel |
---|
29 | PDFlib is a development tool for PDF-enabling your software, |
---|
30 | or generating PDF on your server. PDFlib offers a simple-to-use API |
---|
31 | for programmatically creating PDF files from within your own server- |
---|
32 | or client-side software. PDFlib doesn't make use of third-party software |
---|
33 | for generating PDF, nor does it require any other tools. |
---|
34 | |
---|
35 | This package contains the files needed for compiling programs that will use |
---|
36 | the PDFlib library. |
---|
37 | |
---|
38 | %package python |
---|
39 | Summary: Python shared library for pdflib |
---|
40 | Group: System Environment/Libraries |
---|
41 | BuildRequires: python-devel |
---|
42 | Requires: %{name} = %{version}-%{release} |
---|
43 | Provides: python-pdflib = %{version}-%{release} |
---|
44 | |
---|
45 | %description python |
---|
46 | PDFlib is a development tool for PDF-enabling your software, |
---|
47 | or generating PDF on your server. PDFlib offers a simple-to-use API |
---|
48 | for programmatically creating PDF files from within your own server- |
---|
49 | or client-side software. PDFlib doesn't make use of third-party software |
---|
50 | for generating PDF, nor does it require any other tools. |
---|
51 | |
---|
52 | This package contains the library needed for python programs |
---|
53 | that will use the PDFlib library. |
---|
54 | |
---|
55 | %package perl |
---|
56 | Summary: Perl shared library for pdflib |
---|
57 | Group: System Environment/Libraries |
---|
58 | Requires: %{name} = %{version}-%{release} |
---|
59 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
60 | Provides: perl-pdflib = %{version}-%{release} |
---|
61 | |
---|
62 | %description perl |
---|
63 | PDFlib is a development tool for PDF-enabling your software, |
---|
64 | or generating PDF on your server. PDFlib offers a simple-to-use API |
---|
65 | for programmatically creating PDF files from within your own server- |
---|
66 | or client-side software. PDFlib doesn't make use of third-party software |
---|
67 | for generating PDF, nor does it require any other tools. |
---|
68 | |
---|
69 | This package contains the library needed for perl programs |
---|
70 | that will use the PDFlib library. |
---|
71 | |
---|
72 | |
---|
73 | %prep |
---|
74 | %setup -q -n PDFlib-Lite-%{version} |
---|
75 | sed -i -e "s|^PYTHONLIBDIR.*|PYTHONLIBDIR = %{python_sitearch}|" config/mkcommon.inc.in |
---|
76 | sed -i -e "s|^PERLLIBDIR.*|PERLLIBDIR = %{perl_vendorarch}|" config/mkcommon.inc.in |
---|
77 | |
---|
78 | |
---|
79 | %build |
---|
80 | # java, ruby and tcl disabled. |
---|
81 | # File a bug with RFE and patch if you need it (by fedora12). |
---|
82 | %configure \ |
---|
83 | --enable-large_files \ |
---|
84 | --enable-tiffwrite \ |
---|
85 | --disable-static \ |
---|
86 | --with-pyincl=%{_includedir}/python%{pyver} \ |
---|
87 | --with-py=yes \ |
---|
88 | --with-java=no \ |
---|
89 | --with-ruby=no \ |
---|
90 | --with-tcl=no \ |
---|
91 | --with-openssl \ |
---|
92 | %ifarch x86_64 |
---|
93 | --enable-64bit \ |
---|
94 | %endif |
---|
95 | ; |
---|
96 | |
---|
97 | %{__make} %{?_smp_mflags} |
---|
98 | for lang in %{binding_langs}; do |
---|
99 | %{__make} -C bind/pdflib/$lang |
---|
100 | done |
---|
101 | |
---|
102 | |
---|
103 | %install |
---|
104 | rm -rf %{buildroot} |
---|
105 | mkdir -p %{buildroot}%{python_sitearch} |
---|
106 | mkdir -p %{buildroot}%{perl_vendorarch} |
---|
107 | make install DESTDIR=%{buildroot} |
---|
108 | for lang in %{binding_langs} ; do |
---|
109 | make -C bind/pdflib/$lang install DESTDIR=%{buildroot} |
---|
110 | done |
---|
111 | |
---|
112 | install -p -m 0644 bind/pdflib/cpp/pdflib.hpp %{buildroot}%{_includedir}/pdflib.hpp |
---|
113 | chmod +x %{buildroot}%{_libdir}/libpdf* |
---|
114 | chmod +x %{buildroot}%{python_sitearch}/pdflib_py.so* |
---|
115 | chmod +x %{buildroot}%{perl_vendorarch}/pdflib_pl.so* |
---|
116 | |
---|
117 | rm -rf examples |
---|
118 | mkdir -p examples/{c,cpp,perl,php,python} |
---|
119 | cp -r bind/pdflib/data examples/data |
---|
120 | cp bind/pdflib/c/*.c bind/pdflib/c/Makefile bind/pdflib/c/readme.txt \ |
---|
121 | examples/c |
---|
122 | cp bind/pdflib/cpp/*.cpp bind/pdflib/cpp/Makefile bind/pdflib/cpp/readme.txt \ |
---|
123 | examples/cpp |
---|
124 | cp bind/pdflib/perl/*.pl bind/pdflib/perl/Makefile bind/pdflib/perl/readme.txt \ |
---|
125 | examples/perl |
---|
126 | cp bind/pdflib/python/*.py bind/pdflib/python/Makefile bind/pdflib/python/readme.txt \ |
---|
127 | examples/python |
---|
128 | cp bind/pdflib/php/*.php bind/pdflib/php/readme.txt \ |
---|
129 | examples/php |
---|
130 | cp bind/pdflib/php/examples.php5/*.php \ |
---|
131 | examples/php |
---|
132 | |
---|
133 | |
---|
134 | %post -p /sbin/ldconfig |
---|
135 | %postun -p /sbin/ldconfig |
---|
136 | %clean |
---|
137 | rm -rf %{buildroot} |
---|
138 | |
---|
139 | |
---|
140 | %files |
---|
141 | %defattr(-, root, root) |
---|
142 | %doc readme.txt |
---|
143 | %doc doc/pdflib/PDFlib-Lite-license.pdf |
---|
144 | %{_bindir}/pdfimage |
---|
145 | %{_bindir}/pdflib-config |
---|
146 | %{_bindir}/text2pdf |
---|
147 | %{_libdir}/libpdf.so.* |
---|
148 | |
---|
149 | %files devel |
---|
150 | %defattr(-, root, root) |
---|
151 | %doc doc/pdflib/PDFlib-Lite-license.pdf |
---|
152 | %doc doc/pdflib/changes.txt doc/pdflib/compatibility.txt |
---|
153 | %doc doc/pdflib/PDFlib-API-reference.pdf |
---|
154 | %doc doc/pdflib/PDFlib-tutorial.pdf |
---|
155 | %doc doc/pdflib/readme-source-unix.txt |
---|
156 | %doc examples |
---|
157 | %{_bindir}/pdflib-config |
---|
158 | %{_includedir}/pdflib.h |
---|
159 | %{_includedir}/pdflib.hpp |
---|
160 | %{_libdir}/libpdf.so |
---|
161 | %exclude %{_libdir}/*.la |
---|
162 | |
---|
163 | %files python |
---|
164 | %defattr(-, root, root) |
---|
165 | %doc doc/pdflib/PDFlib-Lite-license.pdf |
---|
166 | %{python_sitearch}/pdflib_py.so* |
---|
167 | %exclude %{python_sitearch}/*.la |
---|
168 | |
---|
169 | %files perl |
---|
170 | %defattr(-, root, root) |
---|
171 | %doc doc/pdflib/PDFlib-Lite-license.pdf |
---|
172 | %{perl_vendorarch}/pdflib_pl.* |
---|
173 | |
---|
174 | |
---|
175 | %changelog |
---|
176 | * Mon Dec 20 2010 Shu KONNO <owa@bg.wakwak.com> 7.0.5-1 |
---|
177 | - initial build for VineSeed |
---|
178 | |
---|