- add patch to enable man page generation
- generate, install and package man page alex.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/alex?expand=0&rev=29
This commit is contained in:
parent
31731fe113
commit
d78462dca2
10
alex-2.3.5-generate-man-page.patch
Normal file
10
alex-2.3.5-generate-man-page.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff -Nur alex-2.3.5/doc/configure.ac alex-2.3.5-man/doc/configure.ac
|
||||||
|
--- alex-2.3.5/doc/configure.ac 2010-11-26 11:44:56.000000000 +0100
|
||||||
|
+++ alex-2.3.5-man/doc/configure.ac 2012-05-07 20:29:05.000000000 +0200
|
||||||
|
@@ -9,5 +9,5 @@
|
||||||
|
|
||||||
|
AC_PATH_PROG(DbLatexCmd,dblatex)
|
||||||
|
|
||||||
|
-AC_CONFIG_FILES([config.mk])
|
||||||
|
+AC_CONFIG_FILES([config.mk alex.1])
|
||||||
|
AC_OUTPUT
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 7 18:40:00 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
- add patch to enable man page generation
|
||||||
|
- generate, install and package man page alex.1
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 29 11:47:39 UTC 2011 - peter.trommler@ohm-hochschule.de
|
Thu Dec 29 11:47:39 UTC 2011 - peter.trommler@ohm-hochschule.de
|
||||||
|
|
||||||
|
10
alex.spec
10
alex.spec
@ -26,12 +26,15 @@ License: BSD-3-Clause
|
|||||||
# BEGIN cabal2spec
|
# BEGIN cabal2spec
|
||||||
URL: http://hackage.haskell.org/package/%{name}
|
URL: http://hackage.haskell.org/package/%{name}
|
||||||
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM alex-2.3.5-generate-man-page.patch -- fixed in 3.0.1
|
||||||
|
Patch: alex-2.3.5-generate-man-page.patch
|
||||||
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
|
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# END cabal2spec
|
# END cabal2spec
|
||||||
# list ghc-*-devel dependencies:
|
# list ghc-*-devel dependencies:
|
||||||
BuildRequires: ghc-QuickCheck-devel
|
BuildRequires: ghc-QuickCheck-devel
|
||||||
|
BuildRequires: autoconf
|
||||||
|
|
||||||
%if %{defined sles_version}
|
%if %{defined sles_version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -43,21 +46,28 @@ Tool for generating lexical analysers in Haskell similar to lex
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#%%define cabal_configure_options -f "opt1 -opt2 ..."
|
#%%define cabal_configure_options -f "opt1 -opt2 ..."
|
||||||
%ghc_bin_build
|
%ghc_bin_build
|
||||||
|
cd doc
|
||||||
|
test -f configure || autoreconf
|
||||||
|
./configure
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_bin_install
|
%ghc_bin_install
|
||||||
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
||||||
|
cp doc/alex.1 %{buildroot}/%{_mandir}/man1
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%attr(755,root,root) %{_bindir}/%{name}
|
%attr(755,root,root) %{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}-%{version}
|
%{_datadir}/%{name}-%{version}
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user