build subpackage in main package dir

This commit is contained in:
Jens Petersen 2017-02-10 16:24:20 +09:00
parent d65b8be2bd
commit baf4b30a45

View File

@ -8,7 +8,7 @@
Name: ghc-%{pkg_name}
Version: 0.9.8.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Snap web framework core library
License: BSD
@ -74,18 +74,18 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version} -b1
%setup -q -n %{pkg_name}-%{version} -a1
%patch1 -p1 -b .orig
%build
cd ..
%ghc_libs_build %{subpkgver} %{pkgver}
%ghc_libs_build %{subpkgver}
%ghc_lib_build
%install
cd ..
%ghc_libs_install %{subpkgver} %{pkgver}
%ghc_libs_install %{subpkgver}
%ghc_lib_install
%post devel
@ -97,6 +97,7 @@ cd ..
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
@ -104,6 +105,9 @@ cd ..
%changelog
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 0.9.8.0-3
- build subpackage in main package dir
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-2
- rebuild