Browse Source

update pdflibs

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2371 ec354946-7b23-47d6-9f5a-488ba84defc7
owa 13 years ago
parent
commit
112aeec782
2 changed files with 213 additions and 31 deletions
  1. 178 0
      p/pdflib-lite/pdflib-lite-vl.spec
  2. 35 31
      p/pdflib/pdflib-vl.spec

+ 178 - 0
p/pdflib-lite/pdflib-lite-vl.spec

@@ -0,0 +1,178 @@
+%define binding_langs perl python
+Summary: Portable C library for dynamically generating PDF files
+Summary(ja): PDF ファイルを動的に生成できる取扱い易い C 言語ライブラリ
+Name: pdflib-lite
+Version: 7.0.5
+Release: 1%{?dist}
+License: Distributable
+Group: Development/Libraries
+URL: http://www.pdflib.com/
+Source: http://www.pdflib.com/binaries/PDFlib/704/PDFlib-Lite-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Vendor: Project Vine
+Distribution: Vine Linux
+Conflicts: pdflib <= 4
+
+%description
+PDFlib is a development tool for PDF-enabling your software, 
+or generating PDF on your server. PDFlib offers a simple-to-use API
+for programmatically creating PDF files from within your own server- 
+or client-side software. PDFlib doesn't make use of third-party software
+for generating PDF, nor does it require any other tools.
+
+%package devel
+Summary: Development files for pdflib
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+PDFlib is a development tool for PDF-enabling your software, 
+or generating PDF on your server. PDFlib offers a simple-to-use API
+for programmatically creating PDF files from within your own server- 
+or client-side software. PDFlib doesn't make use of third-party software
+for generating PDF, nor does it require any other tools.
+
+This package contains the files needed for compiling programs that will use
+the PDFlib library.
+
+%package python
+Summary: Python shared library for pdflib
+Group: System Environment/Libraries
+BuildRequires: python-devel
+Requires: %{name} = %{version}-%{release}
+Provides: python-pdflib = %{version}-%{release}
+
+%description python
+PDFlib is a development tool for PDF-enabling your software, 
+or generating PDF on your server. PDFlib offers a simple-to-use API
+for programmatically creating PDF files from within your own server- 
+or client-side software. PDFlib doesn't make use of third-party software
+for generating PDF, nor does it require any other tools.
+
+This package contains the library needed for python programs 
+that will use the PDFlib library.
+
+%package perl
+Summary: Perl shared library for pdflib
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Provides: perl-pdflib = %{version}-%{release}
+
+%description perl
+PDFlib is a development tool for PDF-enabling your software, 
+or generating PDF on your server. PDFlib offers a simple-to-use API
+for programmatically creating PDF files from within your own server- 
+or client-side software. PDFlib doesn't make use of third-party software
+for generating PDF, nor does it require any other tools.
+
+This package contains the library needed for perl programs 
+that will use the PDFlib library.
+
+
+%prep
+%setup -q -n PDFlib-Lite-%{version}
+sed -i -e "s|^PYTHONLIBDIR.*|PYTHONLIBDIR = %{python_sitearch}|" config/mkcommon.inc.in
+sed -i -e "s|^PERLLIBDIR.*|PERLLIBDIR = %{perl_vendorarch}|" config/mkcommon.inc.in
+
+
+%build
+# java, ruby and tcl disabled.
+# File a bug with RFE and patch if you need it (by fedora12).
+%configure \
+	--enable-large_files \
+	--enable-tiffwrite \
+	--disable-static \
+	--with-pyincl=%{_includedir}/python%{pyver} \
+	--with-py=yes \
+    --with-java=no \
+    --with-ruby=no \
+    --with-tcl=no \
+	--with-openssl \
+%ifarch x86_64
+	--enable-64bit \
+%endif
+	;
+
+%{__make} %{?_smp_mflags}
+for lang in %{binding_langs}; do
+	%{__make} -C bind/pdflib/$lang
+done
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{python_sitearch}
+mkdir -p %{buildroot}%{perl_vendorarch}
+make install DESTDIR=%{buildroot}
+for lang in %{binding_langs} ; do
+	make -C bind/pdflib/$lang install DESTDIR=%{buildroot}
+done
+
+install -p -m 0644 bind/pdflib/cpp/pdflib.hpp %{buildroot}%{_includedir}/pdflib.hpp
+chmod +x %{buildroot}%{_libdir}/libpdf*
+chmod +x %{buildroot}%{python_sitearch}/pdflib_py.so*
+chmod +x %{buildroot}%{perl_vendorarch}/pdflib_pl.so*
+
+rm -rf examples
+mkdir -p examples/{c,cpp,perl,php,python}
+cp -r bind/pdflib/data examples/data
+cp bind/pdflib/c/*.c bind/pdflib/c/Makefile bind/pdflib/c/readme.txt \
+	examples/c
+cp bind/pdflib/cpp/*.cpp bind/pdflib/cpp/Makefile bind/pdflib/cpp/readme.txt \
+	examples/cpp
+cp bind/pdflib/perl/*.pl bind/pdflib/perl/Makefile bind/pdflib/perl/readme.txt \
+	examples/perl
+cp bind/pdflib/python/*.py bind/pdflib/python/Makefile bind/pdflib/python/readme.txt \
+	examples/python
+cp bind/pdflib/php/*.php bind/pdflib/php/readme.txt \
+	examples/php
+cp bind/pdflib/php/examples.php5/*.php \
+	examples/php
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root)
+%doc readme.txt
+%doc doc/pdflib/PDFlib-Lite-license.pdf
+%{_bindir}/pdfimage
+%{_bindir}/pdflib-config
+%{_bindir}/text2pdf
+%{_libdir}/libpdf.so.*
+
+%files devel
+%defattr(-, root, root)
+%doc doc/pdflib/PDFlib-Lite-license.pdf
+%doc doc/pdflib/changes.txt doc/pdflib/compatibility.txt
+%doc doc/pdflib/PDFlib-API-reference.pdf
+%doc doc/pdflib/PDFlib-tutorial.pdf
+%doc doc/pdflib/readme-source-unix.txt
+%doc examples
+%{_bindir}/pdflib-config
+%{_includedir}/pdflib.h
+%{_includedir}/pdflib.hpp
+%{_libdir}/libpdf.so
+%exclude %{_libdir}/*.la
+
+%files python
+%defattr(-, root, root)
+%doc doc/pdflib/PDFlib-Lite-license.pdf
+%{python_sitearch}/pdflib_py.so*
+%exclude %{python_sitearch}/*.la
+
+%files perl
+%defattr(-, root, root)
+%doc doc/pdflib/PDFlib-Lite-license.pdf
+%{perl_vendorarch}/pdflib_pl.*
+
+
+%changelog
+* Mon Dec 20 2010 Shu KONNO <owa@bg.wakwak.com> 7.0.5-1
+- initial build for VineSeed
+

+ 35 - 31
p/pdflib/pdflib-vl.spec

@@ -1,18 +1,17 @@
 Summary:      Portable C library for dynamically generating PDF files.
-Summary(ja):  PDF 白央奶伙毛母奶瓜立永弁卞戲嶽允月 C 仿奶皮仿伉
+Summary(ja):  PDF �𨰻��扎��鉝��扎��麄��胯�����踺� C �押��硔���
 Name:         pdflib
 Version:      4.0.1
-Release:      0vl3
+Release:      1%{?_dist_release}
 Group:        Development/Libraries
-Copyright:    Aladdin Free Public License
+License:      Aladdin Free Public License
 URL:          http://www.pdflib.com/
 Source:       http://www.pdflib.com/pdflib/download/%{name}-%{version}.tar.gz
+Patch0:       pdflib-4.0.1-config_sub.patch
 BuildRoot:    %{_tmppath}/%{name}-%{version}-root
-
 Vendor:       Project Vine
 Distribution: Vine Linux
 
-
 %description
 PDFlib is a C library for generating PDF files. It offers a graphics
 API with support for drawing, text, fonts, images, and hypertext. Call PDFlib
@@ -22,18 +21,18 @@ see the PDFlib Programming Manual, included in PDF format in the
 PDFlib distribution.
 
 %description -l ja
-PDFlib 反 PDF 白央奶伙毛綜嶽允月及卞銀歹木月 C 及仿奶皮仿伉匹允‘
-弘仿白奴弁旦 API 互羼間今木化云曰﹞豭溥﹞氾平旦玄﹞白巧件玄﹞脰颶﹞
-甩奶由□氾平旦玄羈互扔禾□玄今木化中引允‘PDFlib 及伙□民件毛
-皿伕弘仿丞井日厙迕允木壬﹞母奶瓜立永弁 PDF 白央奶伙及請侳曉互曰匹允‘
-PDFlib 皿伕弘仿立件弘支 API 卞楮允月仁歹仄中濩抸反﹞PDFlib 皿伕弘仿立件弘
-穴瓦亙失伙卞踏井木化云曰﹞公及 PDF 白央奶伙互旯簞仄化中引允‘
+PDFlib �� PDF �𨰻��扎��雴��僐��卝��思蝙�譌��� C �柴��扎��押��扼�嚗�
+�啜��𨰻��胯� API �峕�靘䜘��䎚��𨳍�嚗�𠗊敶g�����嫘�嚗䎚��押�����餃�嚗�
+�譌��㻫�����嫘�蝑剹��萸��潦��𨰻��艾��整�嚗窰DFlib �柴��潦��喋�
+�𨰜��啜��𨬭��匧⏚�具��䎚�嚗䎚��扎��麄��� PDF �𨰻��扎��桀枂�乩��䎚��扼�嚗�
+PDFlib �𨰜��啜��麄��啜� API �恍硄�踺��譌��𨰜�隤祆��荔�PDFlib �𨰜��啜��麄���
+�𠺶��乓��怒��詻��䎚��𨳍�嚗䎚��� PDF �𨰻��扎��屸�撅𠺶��艾��整�嚗�
 
 
 %package devel
 Group:       Development/Libraries
 Summary:     Header file for pdflib
-Summary(ja): PDFlib 迕及目永母白央奶伙
+Summary(ja): PDFlib �具��塩����𨰻��扎�
 
 
 %description devel
@@ -41,69 +40,69 @@ This package contains the files needed for compiling programs using
 the PDF library.
 
 %description devel -l ja
-仇及由永弗□斥卞反 PDF 仿奶皮仿伉毛銀勻凶皿伕弘仿丞及戊件由奶伙卞
-优邰卅備潘白央奶伙互璋戶日木化中引允‘
+�瓐��㻫��晞��詻��� PDF �押��硔��芥�雿踴��麄��准��押��柴��喋��扎���
+敹���芸�蝔柴��~��怒��汿��剹��艾��整�嚗�
 
 
 #%package perl5
 #Group:       Development/Libraries
 #Summary:     PDFlib bindings for Perl5
-#Summary(ja): Perl5 迕 PDFlib 田奶件犯奴件弘
+#Summary(ja): Perl5 �� PDFlib �僐��喋������
 #
 #
 #%description perl5
 #This package contains perl bindings for the pdflib library.
 #
 #%description perl5 -l ja
-#仇及由永弗□斥卞反 PDFlib 仿奶皮仿伉尺及 Perl 田奶件犯奴件弘互
-#璋戶日木化中引允‘
+#�瓐��㻫��晞��詻��� PDFlib �押��硔��芥��� Perl �僐��喋�����啜�
+#�汿��剹��艾��整�嚗�
 
 
 #%package python1.5
 #Group:       Development/Libraries
 #Summary:     PDFlib bindings for Python 1.5
-#Summary(ja): Python 1.5 迕 PDFlib 田奶件犯奴件弘
+#Summary(ja): Python 1.5 �� PDFlib �僐��喋������
 #
 #
 #%description python1.5
 #This package contains python bindings for the pdflib library.
 #
 #%description python1.5 -l ja
-#仇及由永弗□斥卞反 PDFlib 仿奶皮仿伉尺及 Python 田奶件犯奴件弘互
-#璋戶日木化中引允‘
+#�瓐��㻫��晞��詻��� PDFlib �押��硔��芥��� Python �僐��喋�����啜�
+#�汿��剹��艾��整�嚗�
 
 
 #%package tcl8.0
 #Group:       Development/Libraries
 #Summary:     PDFlib bindings for Tcl 8.0
-#Summary(ja): Tcl 8.0 迕 PDFlib 田奶件犯奴件弘
+#Summary(ja): Tcl 8.0 �� PDFlib �僐��喋������
 #
 #
 #%description tcl8.0
 #This package contains tcl bindings for the pdflib library.
 #
 #%description tcl8.0 -l ja
-#仇及由永弗□斥卞反 PDFlib 仿奶皮仿伉尺及 Tcl 田奶件犯奴件弘互
-#璋戶日木化中引允‘
+#�瓐��㻫��晞��詻��� PDFlib �押��硔��芥��� Tcl �僐��喋�����啜�
+#�汿��剹��艾��整�嚗�
 
 
 #%package java1.2
 #Group:       Development/Libraries
 #Summary:     PDFlib bindings for Java 1.2
-#Summary(ja): Java 1.2 迕 PDFlib 田奶件犯奴件弘
+#Summary(ja): Java 1.2 �� PDFlib �僐��喋������
 #
 #
 #%description java1.2
 #This package contains java bindings for the pdflib library.
 #
 #%description java1.2 -l ja
-#仇及由永弗□斥卞反 PDFlib 仿奶皮仿伉尺及 Java 田奶件犯奴件弘互
-#璋戶日木化中引允‘
+#�瓐��㻫��晞��詻��� PDFlib �押��硔��芥��� Java �僐��喋�����啜�
+#�汿��剹��艾��整�嚗�
 
 
 %prep
 %setup -q
-
+%patch0 -p1 -b .config_sub
 
 %build
 %configure --with-perl=no --with-py=no --with-tcl=no --with-java=no
@@ -138,17 +137,17 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %files
 %defattr(-,root,root)
-%attr(755,root,root) %{_libdir}/libpdf.so.*
-%{_libdir}/libpdf.la
 %{_bindir}/*
+%attr(755,root,root) %{_libdir}/libpdf.so.*
+%exclude %{_libdir}/libpdf.la
 
 
 %files devel
 %defattr(-,root,root)
 %doc readme.txt doc/*
 %{_includedir}/pdflib.h
-%{_libdir}/libpdf.a
 %{_libdir}/libpdf.so
+%exclude %{_libdir}/libpdf.a
 
 
 #%files perl5
@@ -173,8 +172,13 @@ rm -rf ${RPM_BUILD_ROOT}
 #/usr/local/jdk1.2/jre
 
 
-
 %changelog
+* Mon Dec 20 2010 Shu KONNO <owa@bg.wakwak.com> 4.0.1-1
+- changed spec file as vine5 style, and spec in utf-8
+- s/Copyright/License/
+- added pdflib-4.0.1-config_sub.patch
+- exclude %{_libdir}/libpdf.{a,la}
+
 * Sun Sep 02 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.0.1-0vl3
 - fixed %%defattr