[packages/libdmtx] - up to 0.7.4 - php,python,ruby wrappers are gone - utils moved to separate source
baggins
baggins at pld-linux.org
Fri Mar 13 16:50:09 CET 2015
commit 7800715259315e584d09ff03bc690e82463fdf08
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Mar 13 16:49:30 2015 +0100
- up to 0.7.4
- php,python,ruby wrappers are gone
- utils moved to separate source
libdmtx.spec | 180 ++---------------------------------------------------------
1 file changed, 6 insertions(+), 174 deletions(-)
---
diff --git a/libdmtx.spec b/libdmtx.spec
index 4b6a419..a1d4605 100644
--- a/libdmtx.spec
+++ b/libdmtx.spec
@@ -1,44 +1,24 @@
-# TODO
-# - java bindings
-# - .Net bindings
-# - vala bindings
-# - ruby bindings
#
# Conditional build:
-%bcond_with ruby # build Ruby bindings
-%bcond_without python # build Python2 bindings
-%bcond_without php # build PHP bindings
%bcond_without tests # build without tests
Summary: Library for working with Data Matrix 2D bar-codes
Name: libdmtx
-Version: 0.7.2
-Release: 5
-License: LGPL v2+
+Version: 0.7.4
+Release: 1
+License: BSD
Group: Libraries
Source0: http://downloads.sourceforge.net/libdmtx/%{name}-%{version}.tar.bz2
-# Source0-md5: 0684cf3857591e777b57248d652444ae
+# Source0-md5: d3a4c0becd92895eb606dbdb78b023e2
URL: http://www.libdmtx.org/
BuildRequires: ImageMagick-devel
BuildRequires: pkgconfig
-BuildRequires: python-modules
-BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
%if %{with tests}
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL_image-devel
BuildRequires: libpng-devel
%endif
-%if %{with php}
-BuildRequires: %{php_name}-devel
-%endif
-%if %{with python}
-BuildRequires: python-devel
-%endif
-%if %{with ruby}
-BuildRequires: ruby
-BuildRequires: ruby-devel
-%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -61,106 +41,18 @@ Requires: %{name} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
-%package utils
-Summary: Utilities for %{name}
-Group: Applications/System
-Requires: %{name} = %{version}-%{release}
-
-%description utils
-The %{name}-utils package contains utilities that use %{name}.
-
-%package -n %{php_name}-dmtx
-Summary: PHP bindings for %{name}
-License: GPL v2+
-Group: Development/Languages/PHP
-Requires: %{name} = %{version}-%{release}
-%{?requires_php_extension}
-Provides: php(dmtx) = %{version}
-Obsoletes: php-libdmtx < 0.7.2-4
-
-%description -n %{php_name}-dmtx
-This package contains bindings for using %{name} from PHP.
-
-%package -n python-pydmtx
-Summary: Python bindings for %{name}
-Group: Libraries/Python
-Requires: %{name} = %{version}-%{release}
-Obsoletes: python-libdmtx < 0.7.2-4
-
-%description -n python-pydmtx
-This package contains bindings for using %{name} from Python.
-
-%package -n ruby-libdmtx
-Summary: Ruby bindings for %{name}
-Group: Libraries
-Requires: %{name} = %{version}-%{release}
-Provides: ruby(%{name}) = %{version}
-
-%description -n ruby-libdmtx
-The ruby-%{name} package contains bindings for using %{name} from
-Ruby.
-
%prep
%setup -q
-# fix permissions
-chmod a-x wrapper/{php,python}/README
-
%build
%configure \
--disable-static
%{__make}
-# temporary installation required by the language wrappers
-install -d tmp
-%{__make} install \
- DESTDIR=$(pwd)/tmp
-
-# language wrappers must be built separately
-cd wrapper
-
-%if %{with php}
-cd php
-phpize
-%configure \
- --disable-static \
-
-%{__make} \
- EXTRA_CFLAGS="-I$(pwd)/../../tmp%{_includedir}" \
- DMTX_SHARED_LIBADD="-L$(pwd)/../../tmp%{_libdir} -ldmtx"
-cd ..
-%endif
-
-%if %{with python}
-cd python
-# fix paths
-sed -i.orig -e "s|%{_prefix}/local/include|$(pwd)/../../tmp%{_includedir}|" -e "s|%{_prefix}/local/lib|$(pwd)/../../tmp%{_libdir}|" setup.py
-%{__python} setup.py build
-chmod 0755 build/lib.*/*.so
-cd ..
-%endif
-
-%if %{with ruby}
-cd ruby
-ruby extconf.rb
-%{__make} \
- CPPFLAGS="-I$(pwd)/../../tmp%{_includedir}" \
- LIBPATH="-L$(pwd)/../../tmp%{_libdir} -ldmtx"
-cd ..
-%endif
-
-#cd java
-#make LIBDMTX_LA="/tmp%{_libdir}/libdmtx.so"
-#cd ..
-cd ..
-
%if %{with tests}
%{__make} check
-cd test
-for t in simple unit; do
- ./${t}_test/${t}_test
-done
+./test/simple_test/simple_test
%endif
%install
@@ -170,33 +62,6 @@ rm -rf $RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdmtx.la
-cd wrapper
-%if %{with php}
-%{__make} -C php install \
- INSTALL_ROOT=$RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/dmtx.ini
-; Enable dmtx extension module
-extension=dmtx.so
-EOF
-%endif
-
-%if %{with python}
-cd python
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
-cd ..
-%py_postclean
-%endif
-
-%if %{with ruby}
-%{__make} -C ruby install \
- DESTDIR=$RPM_BUILD_ROOT
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -205,7 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS COPYING.LESSER ChangeLog KNOWNBUG NEWS README README.linux TODO
+%doc AUTHORS ChangeLog KNOWNBUG NEWS README README.linux TODO
%attr(755,root,root) %{_libdir}/libdmtx.so.*.*.*
%ghost %{_libdir}/libdmtx.so.0
@@ -215,36 +80,3 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/dmtx.h
%{_pkgconfigdir}/%{name}.pc
%{_mandir}/man3/%{name}.3*
-
-%files utils
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/dmtxquery
-%attr(755,root,root) %{_bindir}/dmtxread
-%attr(755,root,root) %{_bindir}/dmtxwrite
-%{_mandir}/man1/dmtxquery.1*
-%{_mandir}/man1/dmtxread.1*
-%{_mandir}/man1/dmtxwrite.1*
-
-%if %{with php}
-%files -n %{php_name}-dmtx
-%defattr(644,root,root,755)
-%doc COPYING wrapper/php/README
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/dmtx.ini
-%attr(755,root,root) %{php_extensiondir}/dmtx.so
-%endif
-
-%if %{with python}
-%files -n python-pydmtx
-%defattr(644,root,root,755)
-%doc wrapper/python/README
-%{py_sitedir}/pydmtx.py[co]
-%attr(755,root,root) %{py_sitedir}/_pydmtx.so
-%{py_sitedir}/pydmtx-*.egg-info
-%endif
-
-%if %{with ruby}
-%files -n ruby-libdmtx
-%defattr(644,root,root,755)
-%doc wrapper/ruby/README
-%attr(755,root,root) %{ruby_sitearchdir}/*.so
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdmtx.git/commitdiff/7800715259315e584d09ff03bc690e82463fdf08
More information about the pld-cvs-commit
mailing list