ghc-network-info/ghc-network-info.spec

93 lines
2.3 KiB
RPMSpec
Raw Normal View History

2018-01-24 13:11:39 +00:00
# generated by cabal-rpm-0.12.1
2017-08-28 20:54:14 +00:00
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name network-info
2017-08-29 20:23:05 +00:00
%global pkgver %{pkg_name}-%{version}
2017-08-28 20:54:14 +00:00
Name: ghc-%{pkg_name}
Version: 0.2.0.8
2017-08-29 20:25:25 +00:00
Release: 6%{?dist}
2017-08-28 20:54:14 +00:00
Summary: Access the local computer's basic network configuration
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
2017-08-29 20:23:05 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2017-08-28 20:54:14 +00:00
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
%description
This library provides simple read-only access to the local computer's
networking configuration. It is currently capable of getting a list of all the
network interfaces and their respective IPv4, IPv6 and MAC addresses.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
2018-01-24 13:11:39 +00:00
Provides: %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
2017-08-28 20:54:14 +00:00
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
2018-01-24 13:11:39 +00:00
%endif
2017-08-28 20:54:14 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
2017-08-29 20:23:05 +00:00
%setup -q -n %{pkgver}
2017-08-28 20:54:14 +00:00
%build
%ghc_lib_build
%install
%ghc_lib_install
2018-01-24 13:11:39 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2017-08-28 20:54:14 +00:00
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc README.mkd
%changelog
2017-08-29 20:25:25 +00:00
* Tue Aug 29 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.0.8-6
- Update to latest spec template.
- Fix date in changelog.
* Mon Aug 28 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.0.8-5
- Remove extra description about other OSs.
2017-08-28 20:54:14 +00:00
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.0.8-4
- Re-add dist tag to release numbers.
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.0.8-3
- Bump for Fedora 26.
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.0.8-2
- Update release to be newer than previous builds
* Thu Dec 15 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.2.0.8-1
- spec file generated by cabal-rpm-0.10.0