From f0b5c1b565a084047d749718902ee1dd3b792ce8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 1 Jul 2011 13:54:49 +0900 Subject: [PATCH] drop defattr's; move depgen setup to ghc_lib_install --- ghc-rpm-macros.ghc | 10 +++------- ghc-rpm-macros.spec | 7 ++++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc index cb3f980..594adda 100644 --- a/ghc-rpm-macros.ghc +++ b/ghc-rpm-macros.ghc @@ -43,13 +43,11 @@ fi %define docdir %{ghclibdocdir}/%{pkgnamever}\ rm -f %{basepkg}.files %{basepkg}-devel.files\ %if %{undefined ghc_without_shared}\ -echo "%defattr(-,root,root,-)" > %{basepkg}.files\ if [ -d "%{buildroot}%{pkgdir}" ]; then\ echo "%dir %{pkgdir}" >> %{basepkg}.files\ echo "%attr(755,root,root) %{pkgdir}/libHS%{pkgnamever}-ghc%{ghc_version}.so" >> %{basepkg}.files\ fi\ %endif\ -echo "%defattr(-,root,root,-)" > %{basepkg}-devel.files\ %if 0%{!?1:1}\ if [ -d "%{buildroot}%{_docdir}/%{name}-%{version}" ]; then\ echo "%{_docdir}/%{name}-%{version}" >> %{basepkg}%{?ghc_without_shared:-devel}.files\ @@ -101,7 +99,6 @@ Requires: ghc-%{?pkg_name}%{!?pkg_name:%{pkgname}} = %{?pkgver}%{!?pkgver: %define basepkg ghc-%{pkgname}\ %if %{undefined ghc_without_shared}\ %files -n %{basepkg} -f %{basepkg}.files\ -%defattr(-,root,root,-)\ %endif\ \ %ghc_package_devel\ @@ -141,9 +138,6 @@ This package provides the shared library.\ %define pkgver %{?2}%{!?2:%{version}}\ %define pkgnamever %{pkgname}-%{pkgver}\ %define basepkg ghc-%{pkgname}\ -%global _use_internal_dependency_generator 0\ -%global __find_provides %{_rpmconfigdir}/ghc-deps.sh --provides %{buildroot}%{ghclibdir}\ -%global __find_requires %{_rpmconfigdir}/ghc-deps.sh --requires %{buildroot}%{ghclibdir}\ %package -n %{basepkg}-devel\ Summary: %{?common_summary}%{!?common_summary:Haskell %{pkgname} library} development files\ Group: Development/Libraries\ @@ -172,7 +166,6 @@ This package contains the development files.\ %ghc_pkg_recache\ \ %files -n %{basepkg}-devel -f %{basepkg}-devel.files\ -%defattr(-,root,root,-)\ %{nil} # ghc_strip_dynlinked @@ -206,6 +199,9 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \ # ghc_lib_install [name] [version] %ghc_lib_install()\ +%global _use_internal_dependency_generator 0\ +%global __find_provides %{_rpmconfigdir}/ghc-deps.sh --provides %{buildroot}%{ghclibdir}\ +%global __find_requires %{_rpmconfigdir}/ghc-deps.sh --requires %{buildroot}%{ghclibdir}\ %{?1:cd %1-%2}\ %cabal_install\ %cabal_pkg_conf\ diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 2814547..fa78bb9 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -3,7 +3,7 @@ %global macros_file %{_sysconfdir}/rpm/macros.ghc Name: ghc-rpm-macros -Version: 0.13.7 +Version: 0.13.8 Release: 1%{?dist} Summary: Macros for building packages for GHC @@ -60,6 +60,11 @@ EOF %changelog +* Fri Jul 1 2011 Jens Petersen - 0.13.8-1 +- drop redundant defattr from filelists +- move dependency generator setup from ghc_package_devel to ghc_lib_install + in line with ghc_bin_install + * Mon Jun 27 2011 Jens Petersen - 0.13.7-1 - add requires for redhat-rpm-config for ghc_arches - drop ghc_bootstrapping from ghc_bootstrap: doesn't work for koji