]> git.pld-linux.org Git - packages/ming.git/commitdiff
- (re)added perl and python bindings (from separate sources; in the same spec as
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 16 Feb 2007 22:28:40 +0000 (22:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  they refer to ming sources on build)
- added perl-shared patch to use shared libming in perl module

Changed files:
    ming.spec -> 1.40

ming.spec

index 078aa4f146264089675b19c5d019d178f7a90d63..20682ea8aa11192beabd36035e5337b23f1a532c 100644 (file)
--- a/ming.spec
+++ b/ming.spec
@@ -8,12 +8,18 @@ License:      LGPL
 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)
 
@@ -71,21 +77,70 @@ Narzędzia Ming:
 - 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
 
@@ -132,3 +187,20 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/swftophp
 %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
This page took 0.052009 seconds and 4 git commands to generate.