File lsb-release.spec of Package lsb-release

#
# spec file for package lsb-release
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           lsb-release
Summary:        Linux Standard Base Release Tools
License:        GPL-2.0+
Group:          System/Fhs
Version:        2.0
Release:        0
Prefix:         /usr
Source:         lsb-release-2.0.tar.bz2
Patch:          lsb-release-2.0.dif
BuildArch:      noarch
Url:            http://www.linuxbase.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Tools from the Linux Standard Base project to determine the used distribution

%prep
%setup -n lsb-release-2.0
%patch

%build
make

%install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m644 lsb_release.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ # install place
ln lsb_release.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/lsb-release.1.gz
install -m755 lsb_release $RPM_BUILD_ROOT%{_bindir}
ln -sf lsb_release $RPM_BUILD_ROOT%{_bindir}/lsb-release

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/lsb?release
%{_mandir}/man1/lsb?release.1.gz

%changelog
openSUSE Build Service is sponsored by