Changeset 813 for spec/trunk/SPECS


Ignore:
Timestamp:
Jun 27, 2016, 3:40:36 PM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: bison update to version 3.0.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/bison.spec

    r299 r813  
     1#define svn_url     e:/trees/bison/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/bison/trunk
     3%define svn_rev     1621
     4
    15Summary: A GNU general-purpose parser generator
    26Name: bison
    3 Version: 2.5
    4 Release: 2%{?dist}
    5 License: GPLv2+
     7Version: 3.0.4
     8Release: 1%{?dist}
     9License: GPLv3+
    610Group: Development/Tools
    7 Source: ftp://ftp.gnu.org/pub/gnu/bison/bison-%{version}.tar.bz2
    8 Patch0: bison-os2.patch
    9 #Patch1: bison-2.4-reap_subpipe.patch
     11Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1012URL: http://www.gnu.org/software/bison/
     13Vendor: bww bitwise works GmbH
     14
     15# testsuite dependency
     16BuildRequires: autoconf
     17BuildRequires: flex
     18
    1119BuildRoot: %{_tmppath}/%{name}-root
    1220BuildRequires: m4 >= 1.4
    1321#BuildRequires: java-1.6.0-openjdk-devel
     22#Requires(post): /sbin/install-info
     23#Requires(preun): /sbin/install-info
    1424
    1525Requires: m4 >= 1.4
     26
    1627
    1728%description
     
    3344Summary: -ly library for development using Bison-generated parsers
    3445Group: Development/Libraries
     46Provides: bison-static = %{version}-%{release}
    3547
    3648%description devel
     
    6274Bison manual section for more information.
    6375
     76%debug_package
     77
    6478%prep
     79%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    6580%setup -q
    66 %patch0 -p1
    67 #%patch1 -p1
     81%else
     82%setup -n "%{name}-%{version}" -Tc
     83svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     84rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     85(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     86%endif
     87
     88# work-around Rpath
     89autoreconf -fi
    6890
    6991%build
    70 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    71 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    72 export LIBS="-lurpo -lmmap"
    73 export M4="/@unixroot/usr/bin/m4.exe"
    74 %configure \
    75    "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     92export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     93%configure --docdir=%{_docdir}/%{name}-%{version}
    7694make %{?_smp_mflags}
    7795
    78 #%check
     96%check
     97export POSIXLY_CORRECT=1
     98# checks are still disabled, beside test 385 all work
     99# test 385 gives error 22 in printf()
    79100#make check
    80101#make maintainer-check
     
    88109rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
    89110rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc*
    90 rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
     111rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/calc++/*
     112rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/mfcalc/*
     113rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/rpcalc/*
    91114
    92 #%find_lang %{name}
    93 #%find_lang %{name}-runtime
     115%find_lang %{name}
     116%find_lang %{name}-runtime
    94117
    95118gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
    96119
    97 # The distribution contains also source files.  These are used by m4
     120%post
     121#if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
     122#   /sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
     123#fi
     124
     125%preun
     126#if [ $1 = 0 ]; then
     127#    if [ -f %{_infodir}/bison.info.gz ]; then # for --excludedocs
     128#      /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison).                        The GNU parser generator." || :
     129#    fi
     130#fi
     131
     132
     133%clean
     134rm -rf $RPM_BUILD_ROOT
     135
     136
     137# The distribution contains also source files. These are used by m4
    98138# when the target parser file is generated.
    99 %files
     139%files -f %{name}.lang
    100140%defattr(-,root,root)
    101 %doc AUTHORS ChangeLog NEWS OChangeLog README THANKS TODO
     141%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
    102142%{_mandir}/*/bison*
    103143%{_datadir}/bison
     
    105145%{_bindir}/bison.exe
    106146%{_datadir}/aclocal/bison*.m4
    107 %{_datadir}/locale/*
     147
     148%files -f %{name}-runtime.lang runtime
     149%doc COPYING
    108150
    109151%files devel
     152%doc COPYING
    110153%defattr(-,root,root)
    111154%{_libdir}/liby.a
    112155
    113 #%files runtime
    114 #%defattr(-,root,root)
    115 #%{_datadir}/locale/bison-runtime.*
    116 
    117 %clean
    118 rm -rf $RPM_BUILD_ROOT
    119156
    120157%changelog
     158* Mon Jun 27 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 3.0.4-1
     159- update to version 3.0.4
     160- add debug package
     161
    121162* Tue Feb 28 2012 yd
    122163- fixed m4 executable location.
Note: See TracChangeset for help on using the changeset viewer.