2012-06-06 11:18:01 +02:00
|
|
|
#
|
2012-11-21 17:46:08 +01:00
|
|
|
# spec file for package ghc-rpm-macros
|
2012-06-06 11:18:01 +02:00
|
|
|
#
|
2017-02-23 10:41:30 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-11 22:21:36 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-06-06 11:18:01 +02:00
|
|
|
|
2012-01-11 22:21:36 +01:00
|
|
|
|
2013-07-31 17:36:43 +02:00
|
|
|
%global macros_dir %{_sysconfdir}/rpm
|
2013-10-29 22:02:49 +01:00
|
|
|
%global without_hscolour 1
|
2012-01-11 22:21:36 +01:00
|
|
|
Name: ghc-rpm-macros
|
2017-05-29 13:09:01 +02:00
|
|
|
Version: 1.7.1
|
2012-11-21 17:46:08 +01:00
|
|
|
Release: 0
|
2013-07-31 17:36:43 +02:00
|
|
|
Summary: RPM Macros for building packages for GHC
|
2014-05-11 12:35:48 +02:00
|
|
|
License: GPL-3.0+
|
2012-11-21 17:46:08 +01:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Url: https://fedoraproject.org/wiki/Haskell_SIG
|
2017-07-12 20:20:29 +02:00
|
|
|
# source gets updated with osc service dr
|
2017-02-22 21:37:06 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: xz
|
2015-08-27 18:00:57 +02:00
|
|
|
Requires: rpm
|
2017-05-29 13:09:01 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2013-07-31 17:36:43 +02:00
|
|
|
%if %{undefined without_hscolour}
|
|
|
|
Requires: hscolour
|
|
|
|
%endif
|
2012-01-11 22:21:36 +01:00
|
|
|
|
|
|
|
%description
|
2013-07-31 17:36:43 +02:00
|
|
|
A set of macros for building GHC packages following the openSUSE
|
|
|
|
Haskell Guidelines. ghc needs to be installed in
|
|
|
|
order to make use of these macros.
|
2012-01-11 22:21:36 +01:00
|
|
|
|
2013-07-31 17:36:43 +02:00
|
|
|
%package extra
|
|
|
|
Summary: Extra RPM macros for building Haskell packages with several libs
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description extra
|
2014-05-11 12:35:48 +02:00
|
|
|
Extra macros used for subpackaging of Haskell libraries,
|
|
|
|
for example in ghc and haskell-platform.
|
|
|
|
|
|
|
|
%package -n ghc-srpm-macros
|
|
|
|
Summary: RPM macros for building Haskell source packages
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-srpm-macros
|
|
|
|
Macros used when generating source Haskell rpm packages.
|
2012-01-11 22:21:36 +01:00
|
|
|
|
|
|
|
%prep
|
2017-05-29 13:09:01 +02:00
|
|
|
%setup -q
|
2012-01-11 22:21:36 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
echo no build stage needed
|
|
|
|
|
|
|
|
%install
|
2014-11-05 17:08:07 +01:00
|
|
|
install -p -D -m 0644 macros.ghc %{buildroot}%{macros_dir}/macros.ghc
|
|
|
|
install -p -D -m 0644 macros.ghc-extra %{buildroot}/%{macros_dir}/macros.ghc-extra
|
2016-06-29 10:20:35 +02:00
|
|
|
install -p -D -m 0644 macros.ghc-suse %{buildroot}/%{macros_dir}/macros.ghc-suse
|
2012-01-11 22:21:36 +01:00
|
|
|
install -p -D -m 0755 ghc-deps.sh %{buildroot}/%{_prefix}/lib/rpm/ghc-deps.sh
|
2013-07-31 17:36:43 +02:00
|
|
|
install -p -D -m 0755 cabal-tweak-dep-ver %{buildroot}/%{_bindir}/cabal-tweak-dep-ver
|
2017-05-29 13:09:01 +02:00
|
|
|
install -p -D -m 0755 cabal-tweak-drop-dep %{buildroot}/%{_bindir}/cabal-tweak-drop-dep
|
2013-07-31 17:36:43 +02:00
|
|
|
install -p -D -m 0755 cabal-tweak-flag %{buildroot}/%{_bindir}/cabal-tweak-flag
|
2016-02-23 19:03:26 +01:00
|
|
|
install -p -D -m 0755 ghc-pkg-wrapper %{buildroot}/%{_prefix}/lib/rpm/ghc-pkg-wrapper
|
2015-11-16 14:08:22 +01:00
|
|
|
install -p -D -m 0644 ghc.attr %{buildroot}/%{_prefix}/lib/rpm/fileattrs/ghc.attr
|
2017-02-22 21:37:06 +01:00
|
|
|
install -p -D -m 0755 ghc-dirs.sh %{buildroot}/%{_prefix}/lib/rpm/ghc-dirs.sh
|
2012-01-11 22:21:36 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING AUTHORS
|
2013-07-31 17:36:43 +02:00
|
|
|
%config %{macros_dir}/macros.ghc
|
2016-06-29 10:20:35 +02:00
|
|
|
%config %{macros_dir}/macros.ghc-suse
|
2012-01-11 22:21:36 +01:00
|
|
|
%{_prefix}/lib/rpm/ghc-deps.sh
|
2012-06-26 18:05:51 +02:00
|
|
|
%{_bindir}/cabal-tweak-dep-ver
|
2013-07-31 17:36:43 +02:00
|
|
|
%{_bindir}/cabal-tweak-flag
|
2017-05-29 13:09:01 +02:00
|
|
|
%{_bindir}/cabal-tweak-drop-dep
|
2015-11-16 14:08:22 +01:00
|
|
|
%{_prefix}/lib/rpm/ghc-pkg-wrapper
|
|
|
|
%{_prefix}/lib/rpm/fileattrs/ghc.attr
|
2017-02-22 21:37:06 +01:00
|
|
|
%{_prefix}/lib/rpm/ghc-dirs.sh
|
2013-07-31 17:36:43 +02:00
|
|
|
|
|
|
|
%files extra
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%config %{macros_dir}/macros.ghc-extra
|
2012-01-11 22:21:36 +01:00
|
|
|
|
|
|
|
%changelog
|