From 766a364c0a4f20bd40f36f86f6c78dbdc89c99865cab51f382a85b0ad955f2af Mon Sep 17 00:00:00 2001 From: Herbert Graeber Date: Fri, 20 Jan 2012 15:39:20 +0000 Subject: [PATCH] - initial packaging for Fedora automatically generated by cabal2spec-0.24.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-pandoc-types?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + _service | 3 + ...e:download_files:pandoc-types-1.8.2.tar.gz | 3 + ghc-pandoc-types.changes | 4 + ghc-pandoc-types.spec | 100 ++++++++++++++++++ rpmlintrc | 1 + 7 files changed, 135 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _service:download_files:pandoc-types-1.8.2.tar.gz create mode 100644 ghc-pandoc-types.changes create mode 100644 ghc-pandoc-types.spec create mode 100644 rpmlintrc diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..76828d7 --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/_service:download_files:pandoc-types-1.8.2.tar.gz b/_service:download_files:pandoc-types-1.8.2.tar.gz new file mode 100644 index 0000000..d2d7ce9 --- /dev/null +++ b/_service:download_files:pandoc-types-1.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a580be1ec25a747db2ee9df1c98b1f3a778493b98e5148bf8ce5ed1289e9013 +size 13079 diff --git a/ghc-pandoc-types.changes b/ghc-pandoc-types.changes new file mode 100644 index 0000000..c302754 --- /dev/null +++ b/ghc-pandoc-types.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jan 18 15:35:11 UTC 2012 - herbert@graeber-clan.de + +- initial packaging for Fedora automatically generated by cabal2spec-0.24.1 diff --git a/ghc-pandoc-types.spec b/ghc-pandoc-types.spec new file mode 100644 index 0000000..89c5747 --- /dev/null +++ b/ghc-pandoc-types.spec @@ -0,0 +1,100 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +# Copyright (c) 2012 Herbert Graeber +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%global pkg_name pandoc-types + +# common part of summary for all the subpackages +%global common_summary Haskell %{pkg_name} library + +# main description used for all the subpackages +%global common_description A %{pkg_name} library for Haskell. + +Name: ghc-%{pkg_name} +Version: 1.8.2 +Release: 1 +Summary: %{common_summary} + +Group: Development/Libraries/Other +License: BSD3c +# BEGIN cabal2spec +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +ExclusiveArch: %{ix86} x86_64 %{ghc_arches} +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +%if %{undefined without_hscolour} +BuildRequires: hscolour +%endif +BuildRequires: ghc-syb-devel +# END cabal2spec +# BR any C devel dependency here +# list ghc-*-prof dependencies: + +%description +%{common_description} + + +%package -n ghc-%{pkg_name}-devel +Summary: Development files for %{common_summary} +Group: Development/Libraries/Other +# BEGIN cabal2spec +%{?ghc_devel_requires} +Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release} +Provides: ghc-%{pkg_name}-prof = %{version}-%{release} +# END cabal2spec +# remember to require any C devel dependency here +# Haskell devel dependencies are autogenerated by ghc-deps.sh + +%description -n ghc-%{pkg_name}-devel +%{common_description} + +This package contains the development files. + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +#%%define cabal_configure_options -f "opt1 -opt2 ..." +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post -n ghc-%{pkg_name}-devel +%ghc_pkg_recache + + +%postun -n ghc-%{pkg_name}-devel +%ghc_pkg_recache + + +%if %{undefined ghc_without_shared} +%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files +%defattr(-,root,root,-) +%endif + + +%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files +%defattr(-,root,root,-) + + +%changelog diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..9cb85b4 --- /dev/null +++ b/rpmlintrc @@ -0,0 +1 @@ +addFilter("useless-provides")