Fix build.
This commit is contained in:
parent
f3eae07bdb
commit
866af85127
20
byaccj.spec
20
byaccj.spec
@ -31,13 +31,12 @@
|
||||
Summary: Parser Generator with Java Extension
|
||||
Name: byaccj
|
||||
Version: 1.15
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 0
|
||||
License: Public Domain
|
||||
URL: http://byaccj.sourceforge.net/
|
||||
Group: Development/Libraries
|
||||
Source0: http://sourceforge.net/projects/byaccj/files/byaccj/1.15/byaccj1.15_src.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: man-pages
|
||||
|
||||
%description
|
||||
@ -53,18 +52,18 @@ generate Java source code, instead. So there finally is a YACC for
|
||||
Java now!
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}%{version}_src
|
||||
%setup -q -n %{name}%{version}
|
||||
|
||||
sed -i -e 's|-arch i386||g' src/Makefile
|
||||
|
||||
%build
|
||||
pushd src
|
||||
make linux CFLAGS="%{optflags}"
|
||||
make linux CFLAGS="%{optflags}" LDFLAGS=""
|
||||
popd
|
||||
|
||||
sed -i 's/\r//g' docs/tf.y
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# manual
|
||||
install -d -m 755 %{buildroot}%{_mandir}/man1
|
||||
mv docs/yacc.cat %{buildroot}%{_mandir}/man1
|
||||
@ -76,20 +75,17 @@ cp -p src/yacc.linux \
|
||||
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
cp -p docs/* %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
cp -p src/readme %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
cp -p src/README %{buildroot}%{_docdir}/%{name}-%{version}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc %{_docdir}/%{name}-%{version}
|
||||
%{_mandir}/man1/yacc.cat*
|
||||
%attr(755, root, root) %{_bindir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jan 26 2012 Alexander Kurtakov <akurtako@redhat.com> - 0:1.15-4
|
||||
- Fix build.
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.15-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user