Changes of Revision 18
[-] | Changed | PDFlib-Lite.spec |
x 1
2 3 4 ###################################################################### 5 -%if 0%{?suse_version} 6 %package tcl 7 Summary: %{name} for TCL 8 Group: Development/Libraries 9
10 %description tcl 11 %{name} TCL Extension 12 13 -%endif 14 ###################################################################### 15 -%if 0%{?suse_version} 16 %package python 17 Summary: %{name} for Python 18 Group: Development/Libraries 19
20 %description python 21 %{name} Python Extension 22 23 -%endif 24 ###################################################################### 25 # %package ruby 26 # Summary: %{name} for Ruby 27
28 %setup -q 29 %patch -p1 30 %patch1 -p1 31 -%configure --enable-cxx \ 32 + 33 + 34 +%build 35 +. %{_libdir}/tclConfig.sh 36 +export 37 +./configure --enable-cxx \ 38 --with-perl=%{_bindir}/perl \ 39 --with-py=%{_bindir} \ 40 --with-pyincl=%{_prefix}/include/python \ 41
42 %endif 43 --enable-large_files 44 45 -%__make 46 +%{__make} 47 48 %install 49 50 -make DESTDIR=$RPM_BUILD_ROOT install 51 +%{__make} DESTDIR=$RPM_BUILD_ROOT install 52 %perl_process_packlist 53 54 %clean 55
56 %{perl_sitelib}/pdflib_pl.so* 57 %{perl_sitearch} 58 59 -%if 0%{?suse_version} 60 %files python 61 %defattr(-,root,root,-) 62 %{py_libdir}/pdflib_py.a 63 %{py_libdir}/pdflib_py.la 64 %{py_libdir}/pdflib_py.so* 65 -%endif 66 67 # %file ruby 68 # %defattr(-,root,root,-) 69
70 71 %endif 72 73 -%if 0%{?suse_version} > 930 74 +%if 0%{?suse_version} > 930 || 0%{?centos_version} || 0%{?fedora_version} 75 %files tcl 76 %defattr(-,root,root,-) 77 %dir %{_prefix}/share/tcl/tcl%{tcl_version}/pdflib 78 |