X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cpphs.spec;h=fac03f693fb4eb4fe6a265a03b04585b3c827463;hb=dfd65f20e2bc02b04a4289c6b8624a6fed001a00;hp=fd462d8c9512acd5f35f82b0c254c01a432ca3aa;hpb=3ce3459f4d81552f01faeaa41948cdf1b27dadb4;p=packages%2Fcpphs.git diff --git a/cpphs.spec b/cpphs.spec index fd462d8..fac03f6 100644 --- a/cpphs.spec +++ b/cpphs.spec @@ -1,41 +1,44 @@ # # Conditional build: %bcond_without prof # profiling library -# + %define pkgname cpphs Summary: A liberalised re-implementation of cpp, the C pre-processor Summary(pl.UTF-8): Swobodniejsza reimplementacja cpp (preprocesora C) Name: cpphs -Version: 1.17.1 +Version: 1.20.1 Release: 1 License: LGPL Group: Development/Languages -#Source0Download: http://hackage.haskell.org/package/cpphs -Source0: http://hackage.haskell.org/package/cpphs-%{version}/%{name}-%{version}.tar.gz -# Source0-md5: ef8982c386255b7b485110027690717c +# Source0Download: http://hackage.haskell.org/package/cpphs +Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 8d65834ec7b2905545ff127208a64a41 URL: http://haskell.org/cpphs/ BuildRequires: ghc >= 6.12.3 -BuildRequires: ghc-base >= 3 BuildRequires: ghc-base < 6 +BuildRequires: ghc-base >= 3 BuildRequires: ghc-directory BuildRequires: ghc-old-locale BuildRequires: ghc-old-time +BuildRequires: ghc-polyparse >= 1.9 %if %{with prof} -BuildRequires: ghc-prof >= 6.12.3 -BuildRequires: ghc-base-prof >= 3 BuildRequires: ghc-base-prof < 6 +BuildRequires: ghc-base-prof >= 3 BuildRequires: ghc-directory-prof BuildRequires: ghc-old-locale-prof BuildRequires: ghc-old-time-prof +BuildRequires: ghc-polyparse-prof >= 1.9 +BuildRequires: ghc-prof >= 6.12.3 %endif BuildRequires: rpmbuild(macros) >= 1.608 Requires(post,postun): /usr/bin/ghc-pkg %requires_eq ghc -Requires: ghc-base >= 3 Requires: ghc-base < 6 +Requires: ghc-base >= 3 Requires: ghc-directory Requires: ghc-old-locale Requires: ghc-old-time +Requires: ghc-polyparse >= 1.9 Obsoletes: cpphs-doc BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -70,8 +73,8 @@ Summary: Profiling cpphs library for GHC Summary(pl.UTF-8): Biblioteka profilująca cpphs dla GHC Group: Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: ghc-base-prof >= 3 Requires: ghc-base-prof < 6 +Requires: ghc-base-prof >= 3 Requires: ghc-directory-prof Requires: ghc-old-locale-prof Requires: ghc-old-time-prof @@ -81,8 +84,8 @@ Profiling cpphs library for GHC. Should be installed when GHC's profiling subsystem is needed. %description prof -l pl.UTF-8 -Biblioteka profilująca cpphs dla GHC. Powinna być zainstalowana -kiedy potrzebujemy systemu profilującego z GHC. +Biblioteka profilująca cpphs dla GHC. Powinna być zainstalowana kiedy +potrzebujemy systemu profilującego z GHC. %prep %setup -q @@ -135,13 +138,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Preprocessor/*.hi %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Preprocessor/Cpphs %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Preprocessor/Cpphs/*.hi -%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text -%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators -%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/*.hi +%if %{with prof} %files prof %defattr(644,root,root,755) %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHScpphs-%{version}_p.a %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Preprocessor/*.p_hi %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Preprocessor/Cpphs/*.p_hi -%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/*.p_hi +%endif