Changeset 813 for spec/trunk/SPECS
- Timestamp:
- Jun 27, 2016, 3:40:36 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/bison.spec (modified) (5 diffs)
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 1 5 Summary: A GNU general-purpose parser generator 2 6 Name: bison 3 Version: 2.54 Release: 2%{?dist}5 License: GPLv 2+7 Version: 3.0.4 8 Release: 1%{?dist} 9 License: GPLv3+ 6 10 Group: 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 11 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 10 12 URL: http://www.gnu.org/software/bison/ 13 Vendor: bww bitwise works GmbH 14 15 # testsuite dependency 16 BuildRequires: autoconf 17 BuildRequires: flex 18 11 19 BuildRoot: %{_tmppath}/%{name}-root 12 20 BuildRequires: m4 >= 1.4 13 21 #BuildRequires: java-1.6.0-openjdk-devel 22 #Requires(post): /sbin/install-info 23 #Requires(preun): /sbin/install-info 14 24 15 25 Requires: m4 >= 1.4 26 16 27 17 28 %description … … 33 44 Summary: -ly library for development using Bison-generated parsers 34 45 Group: Development/Libraries 46 Provides: bison-static = %{version}-%{release} 35 47 36 48 %description devel … … 62 74 Bison manual section for more information. 63 75 76 %debug_package 77 64 78 %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} 65 80 %setup -q 66 %patch0 -p1 67 #%patch1 -p1 81 %else 82 %setup -n "%{name}-%{version}" -Tc 83 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 84 rm -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 89 autoreconf -fi 68 90 69 91 %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" 92 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 93 %configure --docdir=%{_docdir}/%{name}-%{version} 76 94 make %{?_smp_mflags} 77 95 78 #%check 96 %check 97 export POSIXLY_CORRECT=1 98 # checks are still disabled, beside test 385 all work 99 # test 385 gives error 22 in printf() 79 100 #make check 80 101 #make maintainer-check … … 88 109 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir 89 110 rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc* 90 rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias 111 rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/calc++/* 112 rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/mfcalc/* 113 rm -f $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/rpcalc/* 91 114 92 #%find_lang %{name}93 #%find_lang %{name}-runtime115 %find_lang %{name} 116 %find_lang %{name}-runtime 94 117 95 118 gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info* 96 119 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 134 rm -rf $RPM_BUILD_ROOT 135 136 137 # The distribution contains also source files. These are used by m4 98 138 # when the target parser file is generated. 99 %files 139 %files -f %{name}.lang 100 140 %defattr(-,root,root) 101 %doc AUTHORS ChangeLog NEWS OChangeLog README THANKS TODO141 %doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING 102 142 %{_mandir}/*/bison* 103 143 %{_datadir}/bison … … 105 145 %{_bindir}/bison.exe 106 146 %{_datadir}/aclocal/bison*.m4 107 %{_datadir}/locale/* 147 148 %files -f %{name}-runtime.lang runtime 149 %doc COPYING 108 150 109 151 %files devel 152 %doc COPYING 110 153 %defattr(-,root,root) 111 154 %{_libdir}/liby.a 112 155 113 #%files runtime114 #%defattr(-,root,root)115 #%{_datadir}/locale/bison-runtime.*116 117 %clean118 rm -rf $RPM_BUILD_ROOT119 156 120 157 %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 121 162 * Tue Feb 28 2012 yd 122 163 - fixed m4 executable location.
Note:
See TracChangeset
for help on using the changeset viewer.
