]> git.pld-linux.org Git - packages/apr-util.git/commitdiff
- added link patch to link with used libs
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Oct 2003 22:28:18 +0000 (22:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- -devel R: apr-devel
- pl descriptions

Changed files:
    apr-util-link.patch -> 1.1
    apr-util.spec -> 1.6

apr-util-link.patch [new file with mode: 0644]
apr-util.spec

diff --git a/apr-util-link.patch b/apr-util-link.patch
new file mode 100644 (file)
index 0000000..c800d34
--- /dev/null
@@ -0,0 +1,24 @@
+--- apr-util/configure.in.orig 2003-08-29 00:17:18.000000000 +0200
++++ apr-util/configure.in      2003-10-05 22:59:22.686006816 +0200
+@@ -98,7 +98,12 @@
+ APU_FIND_EXPAT
+ APU_FIND_ICONV
++save_LIBS="$LIBS"
++LIBS=
+ AC_SEARCH_LIBS(crypt, crypt ufc)
++APR_ADDTO(APRUTIL_EXPORT_LIBS, [$LIBS])
++APR_ADDTO(APRUTIL_LIBS, [$LIBS])
++LIBS="$save_LIBS $LIBS"
+ AC_MSG_CHECKING(if system crypt() function is threadsafe)
+ if test "x$apu_crypt_threadsafe" = "x1"; then
+   AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe])
+@@ -134,7 +139,7 @@
+     aprlib=`$apr_config --link-libtool`
+     EXTRA_OS_LINK="$aprlib $top_builddir/xml/expat/lib/libexpat.la"
+     ;;
+-*AIX*|*Darwin*)
++*AIX*|*Darwin*|*Linux*)
+     dnl need such stuff as -liconv to be specified when building libaprutil.la
+     EXTRA_OS_LINK='$(APRUTIL_LDFLAGS) $(APRUTIL_LIBS)'
+     ;;
index f1d8ae33b30aab35457beb88f76884560426428e..9f205f3d331769136ea24ba053ce233bf5a82f88 100644 (file)
@@ -1,6 +1,10 @@
-%bcond_without ldap
+#
+# Conditional build:
+%bcond_without ldap    # without LDAP support
+#
 %define snap   20030913101715
 Summary:       A companion library to Apache Portable Runtime
+Summary(pl):   Biblioteka towarzysz±ca Apache Portable Runtime
 Name:          apr-util
 Version:       0.9.4
 Release:       0.%{snap}.2
@@ -10,14 +14,15 @@ Group:              Libraries
 # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
 Source0:       http://cvs.apache.org/snapshots/apr-util/%{name}_%{snap}.tar.gz
 # Source0-md5: 00e26d0d77e1265c3bd45d11e9d8457d
+Patch0:                %{name}-link.patch
 URL:           http://apr.apache.org/
 BuildRequires: apr-devel >= 1:0.9.4
-%{?with_ldap:BuildRequires:    openldap-devel}
-BuildRequires: expat-devel
+BuildRequires: autoconf
 BuildRequires: db-devel
+BuildRequires: expat-devel
 BuildRequires: gdbm-devel
 BuildRequires: libtool
-BuildRequires: autoconf
+%{?with_ldap:BuildRequires:    openldap-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _includedir     /usr/include/apr-util
@@ -25,24 +30,38 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 A companion library to Apache Portable Runtime.
 
+%description -l pl
+Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
+(przeno¶nej biblioteki uruchomieniowej).
+
 %package devel
-Summary:       Header files and develpment documentation for apr-util
+Summary:       Header files and development documentation for apr-util
+Summary(pl):   Pliki nag³ówkowe i dokumentacja programisty do apr-util
 Group:         Development/Libraries
-Requires:      %{name} = %{epoch}:%{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      apr-devel
 
 %description devel
-Header files and develpment documentation for apr-util.
+Header files and development documentation for apr-util.
+
+%description devel -l pl
+Pliki nag³ówkowe i dokumentacja programisty do apr-util.
 
 %package static
 Summary:       Static apr-util library
+Summary(pl):   Statyczna biblioteka apr-util
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{epoch}:%{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static apr-util library.
 
+%description static -l pl
+Statyczna biblioteka apr-util.
+
 %prep
-%setup  -q -n %{name}
+%setup -q -n %{name}
+%patch -p1
 
 %build
 ./buildconf \
@@ -60,12 +79,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc CHANGES STATUS
This page took 0.050471 seconds and 4 git commands to generate.