Sat, 06 Oct 2012 16:24:01 +0200
Update to new vendor software version and adjust patch code accordingly.
Unfortunately the vendor has apparently failed to properly test this
release which depends on missing object symbols in libsasl2.a(common.o):
undefined reference to `sasl_randcreate'
undefined reference to `sasl_mkchal'
undefined reference to `sasl_utf8verify'
undefined reference to `sasl_rand'
undefined reference to `sasl_churn'
undefined reference to `sasl_encode64'
undefined reference to `sasl_decode64'
undefined reference to `sasl_erasebuffer'
undefined reference to `sasl_randfree'
undefined reference to `sasl_strlower'
undefined reference to `get_fqhostname'
...yet to be patched.
michael@458 | 1 | ## |
michael@458 | 2 | ## diffutils.spec -- OpenPKG RPM Package Specification |
michael@458 | 3 | ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@458 | 4 | ## |
michael@458 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@458 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@458 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@458 | 8 | ## copies. |
michael@458 | 9 | ## |
michael@458 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@458 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@458 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@458 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@458 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@458 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@458 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@458 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@458 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@458 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@458 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@458 | 21 | ## SUCH DAMAGE. |
michael@458 | 22 | ## |
michael@458 | 23 | |
michael@458 | 24 | # package information |
michael@458 | 25 | Name: diffutils |
michael@458 | 26 | Summary: GNU Diff Utilities |
michael@458 | 27 | URL: http://www.gnu.org/software/diffutils/ |
michael@458 | 28 | Vendor: Free Software Foundation |
michael@458 | 29 | Packager: OpenPKG Foundation e.V. |
michael@458 | 30 | Distribution: OpenPKG Community |
michael@458 | 31 | Class: BASE |
michael@458 | 32 | Group: Patching |
michael@458 | 33 | License: GPL |
michael@458 | 34 | Version: 3.2 |
michael@459 | 35 | Release: 20120800 |
michael@458 | 36 | |
michael@458 | 37 | # list of sources |
michael@458 | 38 | Source0: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz |
michael@458 | 39 | Patch0: diffutils.patch |
michael@458 | 40 | |
michael@458 | 41 | # build information |
michael@458 | 42 | BuildPreReq: OpenPKG, openpkg >= 20100101, texinfo, make, gcc |
michael@458 | 43 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@458 | 44 | |
michael@458 | 45 | %description |
michael@458 | 46 | The GNU set of diff utilities: cmp, diff, diff3 and sdiff. |
michael@458 | 47 | |
michael@458 | 48 | %track |
michael@458 | 49 | prog diffutils = { |
michael@458 | 50 | version = %{version} |
michael@458 | 51 | url = ftp://ftp.gnu.org/gnu/diffutils/ |
michael@458 | 52 | regex = diffutils-(__VER__)\.tar\.gz |
michael@458 | 53 | } |
michael@458 | 54 | |
michael@458 | 55 | %prep |
michael@458 | 56 | %setup -q |
michael@458 | 57 | %patch -p0 |
michael@458 | 58 | |
michael@458 | 59 | %build |
michael@458 | 60 | CC="%{l_cc}" \ |
michael@458 | 61 | CFLAGS="%{l_cflags -O}" \ |
michael@458 | 62 | ./configure \ |
michael@458 | 63 | --prefix=%{l_prefix} \ |
michael@458 | 64 | --mandir=%{l_prefix}/man \ |
michael@458 | 65 | --infodir=%{l_prefix}/info \ |
michael@458 | 66 | --disable-nls |
michael@459 | 67 | touch man/diff.1 man/diff3.1 && %{l_make} %{l_mflags -O} |
michael@458 | 68 | |
michael@458 | 69 | %install |
michael@458 | 70 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
michael@458 | 71 | rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
michael@458 | 72 | rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias |
michael@458 | 73 | strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true |
michael@458 | 74 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@458 | 75 | |
michael@458 | 76 | %files -f files |
michael@458 | 77 | |
michael@458 | 78 | %clean |
michael@458 | 79 |