927b3a4
Name:    distro-info
0a4e881
Version: 0.18
0a4e881
Release: 1%{?dist}
927b3a4
927b3a4
Summary: Provides information about releases of Debian and Ubuntu
927b3a4
License: ISC
927b3a4
URL:     https://tracker.debian.org/pkg/distro-info
0a4e881
Source0: http://deb.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.xz
927b3a4
927b3a4
# Remove incompatible --install-layout=deb.
927b3a4
Patch0:  0001-Remove-install-layout.patch
927b3a4
# Adapt Perl path for Fedora.
927b3a4
Patch1:  0002-Fix-Perl-path.patch
927b3a4
# Do not install symlink as there is no fedora-distro-info.
927b3a4
Patch2:  0003-Do-not-install-distro-info-symlink.patch
927b3a4
927b3a4
BuildRequires: distro-info-data
927b3a4
BuildRequires: dpkg-dev
0a4e881
BuildRequires: gcc
edccc2a
BuildRequires: perl-interpreter
cfd1000
BuildRequires: perl-generators
927b3a4
BuildRequires: perl(Test::Simple)
927b3a4
BuildRequires: perl(Time::Piece)
0a4e881
BuildRequires: /usr/bin/python
927b3a4
BuildRequires: python2-devel
927b3a4
BuildRequires: python3-devel
927b3a4
BuildRequires: python2-setuptools
927b3a4
BuildRequires: python3-setuptools
927b3a4
BuildRequires: shunit2
927b3a4
927b3a4
Requires: distro-info-data
927b3a4
927b3a4
%description
927b3a4
Information about all releases of Debian and Ubuntu. The distro-info script
927b3a4
will give you the codename for e.g. the latest stable release of your
927b3a4
distribution. To get information about a specific distribution there are the
927b3a4
debian-distro-info and the ubuntu-distro-info scripts.
927b3a4
927b3a4
%package -n perl-distro-info
927b3a4
Summary: Perl module for distro-info
927b3a4
927b3a4
BuildArch: noarch
927b3a4
edccc2a
Requires: perl-interpreter
927b3a4
Requires: perl(Time::Piece)
927b3a4
Requires: distro-info-data
927b3a4
927b3a4
%description -n perl-distro-info
927b3a4
This package contains a Perl module for parsing the data in distro-info-data.
927b3a4
927b3a4
%package -n python2-distro-info
927b3a4
Summary: Python 2 module for distro-info
927b3a4
927b3a4
BuildArch: noarch
927b3a4
927b3a4
Requires: python2
927b3a4
Requires: distro-info-data
927b3a4
927b3a4
%{?python_provide:%python_provide python2-distro-info}
927b3a4
927b3a4
%description -n python2-distro-info
927b3a4
This package contains a Python 2 module for parsing the data in
927b3a4
distro-info-data.
927b3a4
927b3a4
%package -n python3-distro-info
927b3a4
Summary: Python 3 module for distro-info
927b3a4
927b3a4
BuildArch: noarch
927b3a4
927b3a4
Requires: python3
927b3a4
Requires: distro-info-data
927b3a4
927b3a4
%{?python_provide:%python_provide python3-distro-info}
927b3a4
927b3a4
%description -n python3-distro-info
927b3a4
This package contains a Python 3 module for parsing the data in
927b3a4
distro-info-data.
927b3a4
927b3a4
%prep
2663644
%autosetup -n %{name}
927b3a4
927b3a4
%build
927b3a4
make %{?_smp_mflags}
927b3a4
927b3a4
%install
927b3a4
%make_install
927b3a4
927b3a4
%check
927b3a4
PATH="/usr/share/shunit2:${PATH}" make test
927b3a4
927b3a4
%files
927b3a4
%license debian/copyright
927b3a4
%{_bindir}/*
927b3a4
%{_datadir}/%{name}
927b3a4
%{_mandir}/*/*
927b3a4
927b3a4
%files -n perl-distro-info
927b3a4
%license debian/copyright
927b3a4
%{perl_vendorlib}/Debian
927b3a4
927b3a4
%files -n python2-distro-info
927b3a4
%license debian/copyright
927b3a4
%{python2_sitelib}/distro_info*
927b3a4
927b3a4
%files -n python3-distro-info
927b3a4
%license debian/copyright
927b3a4
%{python3_sitelib}/distro_info*
927b3a4
%{python3_sitelib}/__pycache__/*
927b3a4
927b3a4
%changelog
0a4e881
* Thu Jul 19 2018 Michael Kuhn <suraia@fedoraproject.org> - 0.18-1
0a4e881
- Update to 0.18
0a4e881
- Explicitly depend on gcc and /usr/bin/python
0a4e881
f1634db
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-4
f1634db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f1634db
b692fb6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.17-3
b692fb6
- Rebuilt for Python 3.7
b692fb6
3bb7f12
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
3bb7f12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3bb7f12
2663644
* Wed Oct 25 2017 Michael Kuhn <suraia@fedoraproject.org> - 0.17-1
2663644
- Update to 0.17
2663644
b1a401c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-10
b1a401c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b1a401c
d9d38e3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-9
d9d38e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d9d38e3
edccc2a
* Thu Jul 13 2017 Petr Pisar <ppisar@redhat.com> - 0.14-8
edccc2a
- perl dependency renamed to perl-interpreter
edccc2a
  <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
edccc2a
4359cab
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-7
4359cab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4359cab
f222fea
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.14-6
f222fea
- Rebuild for Python 3.6
f222fea
b919095
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5
b919095
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b919095
d940b9d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-4
d940b9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d940b9d
2663644
* Mon Jan 04 2016 Michael Kuhn <suraia@fedoraproject.org> - 0.14-3
927b3a4
- Explicitly require python2.
927b3a4
- Rename python-* packages to python2-*.
927b3a4
- Provide python-distro-info.
927b3a4
2663644
* Tue Dec 29 2015 Michael Kuhn <suraia@fedoraproject.org> - 0.14-2
927b3a4
- Add license text.
927b3a4
- Own perl directory.
927b3a4
- Do not install distro-info symlink.
927b3a4
2663644
* Fri Nov 06 2015 Michael Kuhn <suraia@fedoraproject.org> - 0.14-1
927b3a4
- Initial package.