osc copypac from project:devel:languages:haskell:ghc-8.4.x package:alex revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/alex?expand=0&rev=72
This commit is contained in:
parent
dabc93556c
commit
3efaeea9cf
12
alex.spec
12
alex.spec
@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_with tests
|
%bcond_without tests
|
||||||
Name: alex
|
Name: alex
|
||||||
Version: 3.2.4
|
Version: 3.2.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,6 +25,7 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Libraries/Haskell
|
Group: Development/Libraries/Haskell
|
||||||
URL: https://hackage.haskell.org/package/%{name}
|
URL: https://hackage.haskell.org/package/%{name}
|
||||||
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-array-devel
|
BuildRequires: ghc-array-devel
|
||||||
BuildRequires: ghc-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
@ -45,9 +46,16 @@ lex or flex for C/C++.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_bin_build
|
%ghc_bin_build
|
||||||
|
cd doc
|
||||||
|
test -f configure || autoreconf
|
||||||
|
# FIXME: you should use the %%configure macro
|
||||||
|
./configure
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_bin_install
|
%ghc_bin_install
|
||||||
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||||
|
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
|
||||||
|
rm doc/autom4te.cache/requests # varies across builds, breaking build-compare
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Ensure that the test suite can find the alex binary.
|
# Ensure that the test suite can find the alex binary.
|
||||||
@ -64,6 +72,8 @@ export PATH="%{buildroot}%{_bindir}:$PATH"
|
|||||||
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc
|
||||||
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-debug
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-debug
|
||||||
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-nopred
|
%{_datadir}/%{name}-%{version}/AlexTemplate-ghc-nopred
|
||||||
|
%{_datadir}/%{name}-%{version}
|
||||||
|
%{_mandir}/man1/*
|
||||||
%{_datadir}/%{name}-%{version}/AlexWrapper-basic
|
%{_datadir}/%{name}-%{version}/AlexWrapper-basic
|
||||||
%{_datadir}/%{name}-%{version}/AlexWrapper-basic-bytestring
|
%{_datadir}/%{name}-%{version}/AlexWrapper-basic-bytestring
|
||||||
%{_datadir}/%{name}-%{version}/AlexWrapper-gscan
|
%{_datadir}/%{name}-%{version}/AlexWrapper-gscan
|
||||||
|
Loading…
Reference in New Issue
Block a user