Author: qboosh                       Date: Fri Feb 16 22:28:46 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- (re)added perl and python bindings (from separate sources; in the same spec as
  they refer to ming sources on build)
- added perl-shared patch to use shared libming in perl module

---- Files affected:
SPECS:
   ming.spec (1.39 -> 1.40) 

---- Diffs:

================================================================
Index: SPECS/ming.spec
diff -u SPECS/ming.spec:1.39 SPECS/ming.spec:1.40
--- SPECS/ming.spec:1.39        Fri Feb 16 21:24:00 2007
+++ SPECS/ming.spec     Fri Feb 16 23:28:40 2007
@@ -9,12 +9,18 @@
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/ming/%{name}-%{version}.tar.gz
 # Source0-md5: 56b29eeb4fdd0b98c9ee62e25d14841d
+Source1:       http://dl.sourceforge.net/ming/%{name}-perl-%{version}.tar.gz
+# Source1-md5: 56b29eeb4fdd0b98c9ee62e25d14841d
+Source2:       http://dl.sourceforge.net/ming/%{name}-py-%{version}.tar.gz
+# Source2-md5: 56b29eeb4fdd0b98c9ee62e25d14841d
 Patch0:                %{name}-DESTDIR.patch
 Patch1:                %{name}-build.patch
+Patch2:                %{name}-perl-shared.patch
 URL:           http://ming.sourceforge.net/
 BuildRequires: giflib-devel
-BuildRequires: python-devel
+BuildRequires: python-devel >= 1:2.5
 BuildRequires: rpm-perlprov >= 4.0.2-24
+BuildRequires: rpm-pythonprov
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,21 +78,70 @@
 - makefdb - wyciąga pliki definicji fontów fdb z pliku generatora
 - swftophp - próbuje zrobić skrypt php/ming z pliku swf
 
+%package -n perl-ming
+Summary:       Ming perl module
+Summary(pl.UTF-8):     Moduł perla Ming
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     ming-perl
+
+%description -n perl-ming
+Ming perl module - perl wrapper for Ming library.
+
+%description -n perl-ming -l pl.UTF-8
+Moduł perla Ming - perlowy wrapper do biblioteki Ming.
+
+%package -n python-ming
+Summary:       Ming Python module
+Summary(pl.UTF-8):     Moduł biblioteki Ming dla języka Python
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+%pyrequires_eq python-libs
+
+%description -n python-ming
+Ming Python module.
+
+%description -n python-ming -l pl.UTF-8
+Moduł biblioteki Ming dla języka Python.
+
 %prep
-%setup -q
+%setup -q -b1 -b2
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %configure
 %{__make} -j1
 
+cd perl_ext
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
+cd ..
+
+%{__make} -C py_ext \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       PYINCDIR=%{py_incdir}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__make} -C perl_ext pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} -C py_ext install \
+       PREFIX="--optimize=2 --root=$RPM_BUILD_ROOT"
+
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/SWF/.cvsignore
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/.packlist
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/ming*.py
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -134,12 +189,34 @@
 %attr(755,root,root) %{_bindir}/swftopython
 %{_mandir}/man1/makeswf.1*
 
+%files -n perl-ming
+%defattr(644,root,root,755)
+%doc perl_ext/{README,TODO}
+%{perl_vendorarch}/SWF.pm
+%{perl_vendorarch}/SWF
+%dir %{perl_vendorarch}/auto/SWF
+%{perl_vendorarch}/auto/SWF/SWF.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/SWF/SWF.so
+%{_mandir}/man3/SWF*
+
+%files -n python-ming
+%defattr(644,root,root,755)
+%doc py_ext/{README,TODO}
+%attr(755,root,root) %{py_sitedir}/_mingc.so
+%{py_sitedir}/ming*.py[co]
+%{py_sitedir}/mingc-*.egg-info
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.40  2007/02/16 22:28:40  qboosh
+- (re)added perl and python bindings (from separate sources; in the same spec 
as
+  they refer to ming sources on build)
+- added perl-shared patch to use shared libming in perl module
+
 Revision 1.39  2007/02/16 20:24:00  qboosh
 - pl for -static
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ming.spec?r1=1.39&r2=1.40&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to