[packages/ossp-uuid] Up to 1.6.6

arekm arekm at pld-linux.org
Fri Nov 27 21:35:13 CET 2026


commit a1c19708288a30248b65214d34e9335e3df2c74c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:01:21 2026 +0100

    Up to 1.6.6
    
    Revived upstream - dropped php and postgresql bindings.

 ossp-uuid.spec         | 156 +++++++++++--------------------------
 php3.patch             |  12 ---
 uuid-ossp-prefix.patch | 208 -------------------------------------------------
 3 files changed, 47 insertions(+), 329 deletions(-)
---
diff --git a/ossp-uuid.spec b/ossp-uuid.spec
index 01bdfc7..883fe83 100644
--- a/ossp-uuid.spec
+++ b/ossp-uuid.spec
@@ -1,30 +1,28 @@
 #
 # Conditional build:
-%bcond_with	php		# don't build PHP binding
 %bcond_without	perl		# don't build Perl binding
-%bcond_with	pgsql		# build postgresql binding
-%bcond_without  static_libs     # don't build static libraries
+%bcond_without	static_libs	# don't build static libraries
+%bcond_without	tests		# unit tests
+
+%define	ver_us	%(echo %{version} | tr . _)
 
 Summary:	Universally Unique Identifier library
 Summary(pl.UTF-8):	Biblioteka unikalnych identyfikatorów UUID
 Name:		ossp-uuid
-Version:	1.6.2
-Release:	39
+Version:	1.6.6
+Release:	1
 License:	MIT
 Group:		Libraries
-Source0:	ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
-# Source0-md5:	5db0d43a9022a6ebbbc25337ae28942f
-Patch0:		uuid-ossp-prefix.patch
-Patch1:		php3.patch
-URL:		http://www.ossp.org/pkg/lib/uuid/
+Source0:	https://git.sr.ht/~nabijaczleweli/ossp-uuid/archive/UUID_%{ver_us}.tar.gz#/%{name}-%{version}.tar.gz
+# Source0-md5:	f2102b02cd3092a00596b08a6ed3ed8f
+URL:		https://sr.ht/~nabijaczleweli/ossp/
+BuildRequires:	autoconf
 BuildRequires:	automake
-%{?with_php:BuildRequires:	%{php_name}-devel}
-%{?with_php:BuildRequires:	%{php_name}-program}
+BuildRequires:	libmd-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
 %{?with_perl:BuildRequires:	perl-devel}
-%{?with_pgsql:BuildRequires:	postgresql-backend-devel}
-%{?with_pgsql:BuildRequires:	postgresql-devel}
+BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.519
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,9 +33,9 @@ corresponding command line interface (CLI) for the generation of DCE
 Identifier (UUID). It supports DCE 1.1 variant UUIDs of version 1
 (time and node based), version 3 (name based, MD5), version 4 (random
 number based) and version 5 (name based, SHA-1). Additional API
-bindings are provided for the languages ISO-C++:1998, Perl:5 and
-PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
-and Perl Data::UUID APIs.
+bindings are provided for the languages ISO-C++:1998 and Perl:5.
+Optional backward compatibility exists for the ISO-C DCE-1.1 and Perl
+Data::UUID APIs.
 
 %description -l pl.UTF-8
 OSSP uuid to interfejs programistyczny (API) ISO-C:1999 i
@@ -47,9 +45,9 @@ Identifier) zgodnych z DCE 1.1, ISO/IEC 11578:1996 i RFC 4122.
 Obsługuje wariant DCE 1.1 UUID-ów w wersji 1 (oparty na czasie i
 węzłach), w wersji 3 (oparty na nazwie i MD5), w wersji 4 (oparty na
 liczbach losowych) oraz w wersji 5 (oparty na nazwach i SHA-1).
-Załączone są dodatkowe wiązania API do języków ISO-C++:1998, Perl:5
-oraz PHP:4/5. Istnieje też opcjonalna warstwa kompatybilności dla API
-ISO-C DCE-1.1 i perlowego Data::UUID.
+Załączone są dodatkowe wiązania API do języków ISO-C++:1998 oraz
+Perl:5. Istnieje też opcjonalna warstwa kompatybilności dla API ISO-C
+DCE-1.1 i perlowego Data::UUID.
 
 %package devel
 Summary:	Development files for Universally Unique Identifier library
@@ -164,92 +162,47 @@ Perl OSSP uuid modules, which includes a Data::UUID replacement.
 %description -n perl-uuid -l pl.UTF-8
 Moduły Perla OSSP uuid, zawierające zamiennik Data::UUID.
 
-%package -n %{php_name}-uuid
-Summary:	PHP support for Universally Unique Identifier library
-Summary(pl.UTF-8):	Wiązania PHP dla biblioteki OSSP UUID
-Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-%{?requires_php_extension}
-
-%description -n %{php_name}-uuid
-UUID is a PHP extension for the creation of Universally Unique
-Identifiers (UUID).
-
-%description -n %{php_name}-uuid -l pl.UTF-8
-UUID to rozrzeszenie PHP do tworzenia całkowicie unikalnych
-identyfikatorów UUID.
-
-%package -n postgresql-uuid
-Summary:	OSSP uuid bindings for PostgreSQL
-Summary(pl.UTF-8):	Wiązania OSSP uuid dla PostgreSQL-a
-Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-
-%description -n postgresql-uuid
-PostgreSQL OSSP uuid module.
-
-%description -n postgresql-uuid -l pl.UTF-8
-Moduł OSSP uuid dla PostgreSQL-a.
-
 %prep
-%setup -q -n uuid-%{version}
-%patch -P0 -p1
-%patch -P1 -p1
+%setup -q -n %{name}-UUID_%{ver_us}
 
 %build
-cp -f /usr/share/automake/config.sub .
-%if %{with php}
-cd php
 %{__libtoolize}
-cd ..
-%endif
-# Build the library.
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
 %configure \
 	--includedir=%{_includedir}/ossp-uuid \
 	%{!?with_static_libs:--disable-static} \
+	--with-libname=libossp-uuid \
 	--with-dce \
 	--with-cxx \
-	--with%{!?with_perl:out}-perl \
-	--with%{!?with_php:out}-php PHP=php \
-	--with%{!?with_pgsql:out}-pgsql
+	--with%{!?with_perl:out}-perl
 
 %{__make}
 
+%if %{with tests}
+%{__make} check
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/%{_lib}
 %{__make} install \
-	WITH_PHP=no \
-	WITH_PERL=no \
+	%{?with_perl:INSTALLDIRS=vendor} \
 	DESTDIR=$RPM_BUILD_ROOT
 
-mv -f $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so.* $RPM_BUILD_ROOT/%{_lib}
-ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libossp-uuid.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so
-
 %if %{with perl}
-%{__make} pure_install \
-	-C perl \
-	INSTALLDIRS=vendor \
-	DESTDIR=$RPM_BUILD_ROOT
-
-rm $RPM_BUILD_ROOT%{perl_vendorarch}/OSSP/uuid.pod
+rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OSSP/uuid/.packlist
+# Data::UUID compat module is not built (would clash with perl-Data-UUID)
+rm $RPM_BUILD_ROOT%{_mandir}/man3/Data::UUID.3perl
 %endif
 
-%if %{with php}
-install -d $RPM_BUILD_ROOT{%{php_data_dir},%{php_sysconfdir}/conf.d}
-%{__make} install \
-	-C php \
-	-f Makefile.local \
-	EXTDIR=%{php_extensiondir} \
-	DESTDIR=$RPM_BUILD_ROOT
+mv -f $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libossp-uuid.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libossp-uuid.so
 
-mv $RPM_BUILD_ROOT{%{php_extensiondir},%{php_data_dir}}/uuid.php
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini
-; Enable %{name} extension module
-extension=%{name}.so
-EOF
-%endif
+# uuid.3 would clash with other UUID libraries
+mv $RPM_BUILD_ROOT%{_mandir}/man3/uuid.3 $RPM_BUILD_ROOT%{_mandir}/man3/ossp-uuid.3
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -265,16 +218,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog HISTORY NEWS PORTING README SEEALSO THANKS TODO USERS
+%doc BINDINGS HISTORY README THANKS
 %attr(755,root,root) %{_bindir}/uuid
-%attr(755,root,root) /%{_lib}/libossp-uuid.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libossp-uuid.so.16
+/%{_lib}/libossp-uuid.so.*.*.*
+%ghost /%{_lib}/libossp-uuid.so.16
 %{_mandir}/man1/uuid.1*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/uuid-config
-%attr(755,root,root) %{_libdir}/libossp-uuid.so
+%{_libdir}/libossp-uuid.so
 %{_libdir}/libossp-uuid.la
 %dir %{_includedir}/ossp-uuid
 %{_includedir}/ossp-uuid/uuid.h
@@ -290,12 +243,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files c++
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libossp-uuid++.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libossp-uuid++.so.16
+%{_libdir}/libossp-uuid++.so.*.*.*
+%ghost %{_libdir}/libossp-uuid++.so.16
 
 %files c++-devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libossp-uuid++.so
+%{_libdir}/libossp-uuid++.so
 %{_libdir}/libossp-uuid++.la
 %{_includedir}/ossp-uuid/uuid++.hh
 %{_mandir}/man3/uuid++.3*
@@ -308,12 +261,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files dce
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libossp-uuid_dce.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libossp-uuid_dce.so.16
+%{_libdir}/libossp-uuid_dce.so.*.*.*
+%ghost %{_libdir}/libossp-uuid_dce.so.16
 
 %files dce-devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libossp-uuid_dce.so
+%{_libdir}/libossp-uuid_dce.so
 %{_libdir}/libossp-uuid_dce.la
 %{_includedir}/ossp-uuid/uuid_dce.h
 
@@ -330,21 +283,6 @@ rm -rf $RPM_BUILD_ROOT
 %{perl_vendorarch}/OSSP/uuid.pm
 %dir %{perl_vendorarch}/auto/OSSP
 %dir %{perl_vendorarch}/auto/OSSP/uuid
-%attr(755,root,root) %{perl_vendorarch}/auto/OSSP/uuid/uuid.so
+%{perl_vendorarch}/auto/OSSP/uuid/uuid.so
 %{_mandir}/man3/OSSP::uuid.3*
 %endif
-
-%if %{with php}
-%files -n %{php_name}-uuid
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini
-%attr(755,root,root) %{php_extensiondir}/%{name}.so
-%{php_data_dir}/uuid.php
-%endif
-
-%if %{with pgsql}
-%files -n postgresql-uuid
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/postgresql/ossp-uuid.so
-%{_datadir}/postgresql/uuid.sql
-%endif
diff --git a/php3.patch b/php3.patch
deleted file mode 100644
index 230fd8f..0000000
--- a/php3.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-PHP3 compatibility headers were dropped in PHP 5.4
---- uuid-1.6.2/php/uuid.c~	2007-01-01 20:35:57.000000000 +0200
-+++ uuid-1.6.2/php/uuid.c	2014-05-01 21:12:08.750512116 +0300
-@@ -496,7 +496,7 @@
- }
- 
- /* module function table */
--static function_entry uuid_functions[] = {
-+static zend_function_entry uuid_functions[] = {
-     PHP_FE(uuid_create,  NULL)
-     PHP_FE(uuid_destroy, NULL)
-     PHP_FE(uuid_clone,   NULL)
diff --git a/uuid-ossp-prefix.patch b/uuid-ossp-prefix.patch
deleted file mode 100644
index f28b932..0000000
--- a/uuid-ossp-prefix.patch
+++ /dev/null
@@ -1,208 +0,0 @@
-diff -up uuid-1.6.1/uuid-config.in.BAD uuid-1.6.1/uuid-config.in
---- uuid-1.6.1/uuid-config.in.BAD	2008-03-06 11:56:13.000000000 -0500
-+++ uuid-1.6.1/uuid-config.in	2008-03-06 11:56:25.000000000 -0500
-@@ -121,7 +121,7 @@ do
-             output_extra="$output_extra $uuid_ldflags"
-             ;;
-         --libs)
--            output="$output -luuid"
-+            output="$output -lossp-uuid"
-             output_extra="$output_extra $uuid_libs"
-             ;;
-         * )
-diff -up uuid-1.6.1/Makefile.in.BAD uuid-1.6.1/Makefile.in
---- uuid-1.6.1/Makefile.in.BAD	2008-03-06 11:10:13.000000000 -0500
-+++ uuid-1.6.1/Makefile.in	2008-03-06 11:11:39.000000000 -0500
-@@ -62,13 +62,13 @@ PERL        = @PERL@
- PHP         = @PHP@
- PG_CONFIG   = @PG_CONFIG@
- 
--LIB_NAME    = libuuid.la
-+LIB_NAME    = libossp-uuid.la
- LIB_OBJS    = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_time.lo uuid_ui64.lo uuid_ui128.lo uuid_str.lo
- 
--DCE_NAME    = libuuid_dce.la
-+DCE_NAME    = libossp-uuid_dce.la
- DCE_OBJS    = uuid_dce.lo $(LIB_OBJS)
- 
--CXX_NAME    = libuuid++.la
-+CXX_NAME    = libossp-uuid++.la
- CXX_OBJS    = uuid++.lo $(LIB_OBJS)
- 
- PRG_NAME    = uuid
-@@ -79,10 +79,10 @@ MAN_NAME    = uuid.3 uuid++.3 uuid.1
- PERL_NAME   = $(S)/perl/blib/lib/OSSP/uuid.pm
- PERL_OBJS   = $(S)/perl/uuid.pm
- 
--PHP_NAME    = $(S)/php/modules/uuid.so
-+PHP_NAME    = $(S)/php/modules/ossp-uuid.so
- PHP_OBJS    = $(S)/php/uuid.c
- 
--PGSQL_NAME  = $(S)/pgsql/libuuid.so
-+PGSQL_NAME  = $(S)/pgsql/libossp-uuid.so
- PGSQL_OBJS  = $(S)/pgsql/uuid.c
- 
- TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@ @PHP_NAME@ @PGSQL_NAME@
-@@ -231,7 +231,7 @@ install:
- 	$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
- 	$(SHTOOL) install -c -m 755 uuid-config $(DESTDIR)$(bindir)/
- 	$(SHTOOL) install -c -m 644 $(S)/uuid-config.1 $(DESTDIR)$(mandir)/man1/
--	$(SHTOOL) install -c -m 644 $(S)/uuid.pc $(DESTDIR)$(libdir)/pkgconfig/
-+	$(SHTOOL) install -c -m 644 $(S)/uuid.pc $(DESTDIR)$(libdir)/pkgconfig/ossp-uuid.pc
- 	$(SHTOOL) install -c -m 644 uuid.h $(DESTDIR)$(includedir)/
- 	- at if [ ".$(WITH_DCE)" = .yes ]; then \
- 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid_dce.h $(DESTDIR)$(includedir)/"; \
-@@ -241,7 +241,7 @@ install:
- 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid++.hh $(DESTDIR)$(includedir)/"; \
- 	    $(SHTOOL) install -c -m 644 $(S)/uuid++.hh $(DESTDIR)$(includedir)/; \
- 	fi
--	$(SHTOOL) install -c -m 644 $(S)/uuid.3 $(DESTDIR)$(mandir)/man3/
-+	$(SHTOOL) install -c -m 644 $(S)/uuid.3 $(DESTDIR)$(mandir)/man3/ossp-uuid.3
- 	- at if [ ".$(WITH_CXX)" = .yes ]; then \
- 	    echo "$(SHTOOL) install -c -m 644 $(S)/uuid++.3 $(DESTDIR)$(mandir)/man3/"; \
- 	    $(SHTOOL) install -c -m 644 $(S)/uuid++.3 $(DESTDIR)$(mandir)/man3/; \
-@@ -276,7 +276,7 @@ uninstall:
- 	- at if [ ".$(WITH_CXX)" = .yes ]; then \
- 	    $(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(CXX_NAME); \
- 	fi
--	-$(RM) $(DESTDIR)$(mandir)/man3/uuid.3
-+	-$(RM) $(DESTDIR)$(mandir)/man3/ossp-uuid.3
- 	- at if [ ".$(WITH_CXX)" = .yes ]; then \
- 	    echo "$(RM) $(DESTDIR)$(mandir)/man3/uuid++.3"; \
- 	    $(RM) $(DESTDIR)$(mandir)/man3/uuid++.3; \
-@@ -290,7 +290,7 @@ uninstall:
- 	    echo "$(RM) $(DESTDIR)$(includedir)/uuid++.hh"; \
- 	    $(RM) $(DESTDIR)$(includedir)/uuid++.hh; \
- 	fi
--	-$(RM) $(DESTDIR)$(libdir)/pkgconfig/uuid.pc
-+	-$(RM) $(DESTDIR)$(libdir)/pkgconfig/ossp-uuid.pc
- 	-$(RM) $(DESTDIR)$(mandir)/man1/uuid-config.1
- 	-$(RM) $(DESTDIR)$(bindir)/uuid-config
- 	-$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
-diff -up uuid-1.6.1/pgsql/Makefile.BAD uuid-1.6.1/pgsql/Makefile
---- uuid-1.6.1/pgsql/Makefile.BAD	2008-03-06 11:53:26.000000000 -0500
-+++ uuid-1.6.1/pgsql/Makefile	2008-03-06 11:54:14.000000000 -0500
-@@ -18,13 +18,13 @@ POSTGRES          := $(shell $(PG_CONFIG
- top_builddir      := $(dir $(PGXS))../..
- include           $(top_builddir)/src/Makefile.global
-     
--NAME              = uuid
-+NAME              = ossp-uuid
- OBJS              = uuid.o
- SO_MAJOR_VERSION  = 1
- SO_MINOR_VERSION  = 0
- 
- override CPPFLAGS := -I.. $(CPPFLAGS)
--SHLIB_LINK        := -L../.libs -luuid
-+SHLIB_LINK        := -L../.libs -lossp-uuid
- SHLIB_LINK        += $(shell test $(shell uname -s) = FreeBSD && echo "-Wl,-Bsymbolic")
- SHLIB_LINK        += $(shell test $(shell uname -s) = Darwin && echo "-bundle_loader $(POSTGRES)")
- rpath             :=
-@@ -35,16 +35,16 @@ enable_shared     = yes
- include           $(top_builddir)/src/Makefile.shlib
- 
- uuid.sql: uuid.sql.in
--	sed -e 's;MODULE_PATHNAME;$(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql
-+	sed -e 's;MODULE_PATHNAME;$(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql
- 
- install: all
- 	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
- 	$(mkinstalldirs) $(DESTDIR)$(datadir)
--	$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
-+	$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX)
- 	$(INSTALL_DATA) uuid.sql $(DESTDIR)$(datadir)/uuid.sql
- 
- uninstall:
--	-rm -f $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
-+	-rm -f $(DESTDIR)$(pkglibdir)/ossp-uuid$(DLSUFFIX)
- 	-rm -f $(DESTDIR)$(datadir)/uuid.sql
- 
- clean distclean: clean-lib
-diff -up uuid-1.6.1/uuid.pc.in.BAD uuid-1.6.1/uuid.pc.in
---- uuid-1.6.1/uuid.pc.in.BAD	2008-03-06 11:57:29.000000000 -0500
-+++ uuid-1.6.1/uuid.pc.in	2008-03-06 11:57:36.000000000 -0500
-@@ -37,6 +37,6 @@ Description: Universally Unique Identifi
- Version: @UUID_VERSION_RAW@
- URL: http://www.ossp.org/pkg/lib/uuid/
- Cflags: -I${includedir}
--Libs: -L${libdir} -luuid
-+Libs: -L${libdir} -lossp-uuid
- Libs.private: @LIBS@
- 
-diff -up uuid-1.6.1/perl/Makefile.PL.BAD uuid-1.6.1/perl/Makefile.PL
---- uuid-1.6.1/perl/Makefile.PL.BAD	2008-03-06 11:12:05.000000000 -0500
-+++ uuid-1.6.1/perl/Makefile.PL	2008-03-06 11:49:25.000000000 -0500
-@@ -33,9 +33,9 @@ use Config;
- use ExtUtils::MakeMaker;
- 
- #   determine source directory
--my ($srcdir) = map { my $d = $_; $d =~ s/\/libuuid\.la$//; $d }
--               grep { -f $_ } ("../libuuid.la", glob("../*/libuuid.la"))
--    or die "no source directory found (where libuuid.la is located)";
-+my ($srcdir) = map { my $d = $_; $d =~ s/\/libossp-uuid\.la$//; $d }
-+               grep { -f $_ } ("../libossp-uuid.la", glob("../*/libossp-uuid.la"))
-+    or die "no source directory found (where libossp-uuid.la is located)";
- 
- #   determine extra build options
- my $compat = 0;
-@@ -47,7 +47,7 @@ WriteMakefile(
-     VERSION_FROM      => 'uuid.pm',
-     ABSTRACT_FROM     => 'uuid.pod',
-     PREREQ_PM         => {},
--    LIBS              => [ "-L$srcdir/.libs -L$srcdir -luuid" ],
-+    LIBS              => [ "-L$srcdir/.libs -L$srcdir -lossp-uuid" ],
-     DEFINE            => '',
-     INC               => "-I. -I$srcdir",
-     PM                => { 'uuid.pm'   => '$(INST_LIBDIR)/uuid.pm',
-diff -up uuid-1.6.1/Makefile.PL.BAD uuid-1.6.1/Makefile.PL
---- uuid-1.6.1/Makefile.PL.BAD	2008-03-06 11:09:49.000000000 -0500
-+++ uuid-1.6.1/Makefile.PL	2008-03-06 11:10:01.000000000 -0500
-@@ -44,7 +44,7 @@ ARGS     = $ARGS
- all pure_all:
- 	\@if [ ! -d build ]; then mkdir build; fi
- 	\@if [ ! -f build/Makefile ]; then (cd build && ../configure --disable-shared); fi
--	\@if [ ! -f build/libuuid.la ]; then (cd build && \$(MAKE) \$(MFLAGS) libuuid.la); fi
-+	\@if [ ! -f build/libossp-uuid.la ]; then (cd build && \$(MAKE) \$(MFLAGS) libossp-uuid.la); fi
- 	\@if [ ! -f perl/Makefile ]; then (cd perl && \$(PERL) Makefile.PL \$(ARGS)); fi
- 	\@cd perl && \$(MAKE) \$(MFLAGS) \$\@
- 
-diff -up uuid-1.6.1/php/config.m4.BAD uuid-1.6.1/php/config.m4
---- uuid-1.6.1/php/config.m4.BAD	2008-03-06 11:54:55.000000000 -0500
-+++ uuid-1.6.1/php/config.m4	2008-03-06 11:55:07.000000000 -0500
-@@ -34,7 +34,7 @@ if test "$PHP_UUID" != "no"; then
-     PHP_NEW_EXTENSION(uuid, uuid.c, $ext_shared)
-     AC_DEFINE(HAVE_UUID, 1, [Have OSSP uuid library])
--    PHP_ADD_LIBPATH([..], )
-+    PHP_ADD_LIBPATH([../.libs], )
--    PHP_ADD_LIBRARY([uuid],, UUID_SHARED_LIBADD)
-+    PHP_ADD_LIBRARY([ossp-uuid],, UUID_SHARED_LIBADD)
-     PHP_ADD_INCLUDE([..])
-     PHP_SUBST(UUID_SHARED_LIBADD)
- 
-diff -up uuid-1.6.1/php/Makefile.local.BAD uuid-1.6.1/php/Makefile.local
---- uuid-1.6.1/php/Makefile.local.BAD	2008-03-06 11:54:39.000000000 -0500
-+++ uuid-1.6.1/php/Makefile.local	2008-03-06 11:54:49.000000000 -0500
-@@ -48,7 +48,7 @@ install: build
- 	@version=`$(PHP)-config --version | sed -e 's;^\([0-9]\).*$$;\1;'`; extdir="$(EXTDIR)"; \
- 	echo "installing PHP$$version API into $$extdir"; \
- 	./build/shtool mkdir -f -p -m 755 $(DESTDIR)$$extdir; \
--	./build/shtool install -c -m 755 modules/uuid.so $(DESTDIR)$$extdir/uuid.so; \
-+	./build/shtool install -c -m 755 modules/uuid.so $(DESTDIR)$$extdir/ossp-uuid.so; \
- 	./build/shtool install -c -m 644 uuid.php$$version $(DESTDIR)$$extdir/uuid.php
- 
- clean:
-diff -up uuid-1.6.1/php/uuid.ts.BAD uuid-1.6.1/php/uuid.ts
---- uuid-1.6.1/php/uuid.ts.BAD	2008-03-06 11:55:38.000000000 -0500
-+++ uuid-1.6.1/php/uuid.ts	2008-03-06 11:56:03.000000000 -0500
-@@ -34,9 +34,9 @@
- 
- $php_version = $argv[1];
- 
--print "++ loading DSO uuid.so (low-level API)\n";
-+print "++ loading DSO ossp-uuid.so (low-level API)\n";
- if (!extension_loaded('uuid')) {
--    dl('modules/uuid.so');
-+    dl('modules/ossp-uuid.so');
- }
- 
- print "++ loading PHP uuid.php${php_version} (high-level API)\n";
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ossp-uuid.git/commitdiff/a1c19708288a30248b65214d34e9335e3df2c74c



More information about the pld-cvs-commit mailing list