build subpackages inside main package dir
This commit is contained in:
parent
5517c1f361
commit
ae0985a107
@ -10,7 +10,7 @@
|
||||
#%%global without_hscolour 1
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 1.6.12
|
||||
Version: 1.6.13
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM macros for building Haskell packages for GHC
|
||||
|
||||
@ -147,6 +147,9 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 1.6.13-1
|
||||
- build subpackages inside main package directory
|
||||
|
||||
* Wed Feb 8 2017 Jens Petersen <petersen@redhat.com> - 1.6.12-1
|
||||
- no longer use a topdir for subpackage building
|
||||
- only autopackage license if subpackaging
|
||||
|
@ -88,7 +88,7 @@ echo "%{docdir}" >> %{basepkg}-devel.files\
|
||||
fi\
|
||||
%if 0%{?1:1}\
|
||||
for i in $(ls %{buildroot}%{?_defaultlicensedir}%{!?_defaultlicensedir:%_docdir}/%{!?1:%{name}}%{?1:%{basepkg}}); do\
|
||||
echo "%%license %{?1:../%{pkgnamever}/}$i" >> %{basepkg}.files\
|
||||
echo "%%license %{?1:%{pkgnamever}/}$i" >> %{basepkg}.files\
|
||||
done\
|
||||
%endif\
|
||||
for i in %{basepkg}.files %{basepkg}-devel.files; do\
|
||||
|
@ -51,13 +51,13 @@ This package provides the Haskell %{pkgname} library development files.\
|
||||
%postun -n %{basepkg}-devel\
|
||||
%ghc_pkg_recache\
|
||||
\
|
||||
%files -n %{basepkg} -f ../%{pkgname}-%{pkgver}/%{basepkg}.files\
|
||||
%files -n %{basepkg} -f %{pkgname}-%{pkgver}/%{basepkg}.files\
|
||||
%if 0%{?rhel} && 0%{?rhel} < 7\
|
||||
%defattr(-,root,root,-)\
|
||||
%endif\
|
||||
%{?base_doc_files:%doc %base_doc_files}\
|
||||
\
|
||||
%files -n %{basepkg}-devel -f ../%{pkgname}-%{pkgver}/%{basepkg}-devel.files\
|
||||
%files -n %{basepkg}-devel -f %{pkgname}-%{pkgver}/%{basepkg}-devel.files\
|
||||
%if 0%{?rhel} && 0%{?rhel} < 7\
|
||||
%defattr(-,root,root,-)\
|
||||
%endif\
|
||||
|
Loading…
Reference in New Issue
Block a user