2009-12-08 08:20:09 +00:00
|
|
|
Summary: Utility to set/show the host name or domain name
|
|
|
|
Name: hostname
|
2011-03-07 16:35:01 +00:00
|
|
|
Version: 3.06
|
|
|
|
Release: 1%{?dist}
|
2009-12-08 08:20:09 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Base
|
|
|
|
URL: http://packages.qa.debian.org/h/hostname.html
|
|
|
|
Source0: http://ftp.de.debian.org/debian/pool/main/h/hostname/hostname_%{version}.tar.gz
|
|
|
|
Source1: hostname.1.pt
|
|
|
|
Source2: hostname.1.de
|
|
|
|
|
|
|
|
# Initial changes
|
2010-02-02 10:47:27 +00:00
|
|
|
Patch1: hostname-rh.patch
|
2009-12-08 08:20:09 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides commands which can be used to display the system's
|
|
|
|
DNS name, and to display or set its hostname or NIS domain name.
|
|
|
|
|
|
|
|
%prep
|
2010-11-16 17:08:31 +00:00
|
|
|
%setup -q
|
2010-02-02 10:47:27 +00:00
|
|
|
%patch1 -p1 -b .rh
|
2009-12-08 08:20:09 +00:00
|
|
|
|
|
|
|
#man pages conversion
|
|
|
|
#french
|
|
|
|
iconv -f iso-8859-1 -t utf-8 -o hostname.tmp hostname.1.fr && mv hostname.tmp hostname.1.fr
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS $CFLAGS"
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make BASEDIR=%{buildroot} install
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_mandir}/pt/man1
|
|
|
|
install -m 0644 %SOURCE1 %{buildroot}%{_mandir}/pt/man1/hostname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/pt/man1/dnsdomainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/pt/man1/domainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/pt/man1/ypdomainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/pt/man1/nisdomainname.1
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_mandir}/de/man1
|
|
|
|
install -m 0644 %SOURCE2 %{buildroot}%{_mandir}/de/man1/hostname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/de/man1/dnsdomainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/de/man1/domainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/de/man1/ypdomainname.1
|
|
|
|
ln -fs hostname.1 %{buildroot}%{_mandir}/de/man1/nisdomainname.1
|
|
|
|
|
2010-04-30 10:38:11 +00:00
|
|
|
%find_lang %{name} --all-name --with-man
|
2009-12-08 08:20:09 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-04-30 10:38:11 +00:00
|
|
|
%files -f %{name}.lang
|
2009-12-08 08:20:09 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYRIGHT
|
|
|
|
/bin/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%changelog
|
2011-03-07 16:35:01 +00:00
|
|
|
* Mon Mar 07 2011 Jiri Popelka <jpopelka@redhat.com> - 3.06-1
|
|
|
|
- 3.06
|
|
|
|
|
2011-02-09 09:21:33 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.05-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-16 17:08:31 +00:00
|
|
|
* Tue Nov 16 2010 Jiri Popelka <jpopelka@redhat.com> - 3.05-1
|
2011-03-07 16:35:01 +00:00
|
|
|
- 3.05
|
2010-11-16 17:08:31 +00:00
|
|
|
|
2010-04-30 10:38:11 +00:00
|
|
|
* Fri Apr 30 2010 Ville Skyttä <ville.skytta@iki.fi> - 3.04-2
|
|
|
|
- Mark localized man pages with %%lang.
|
|
|
|
|
2010-03-25 11:14:25 +00:00
|
|
|
* Thu Mar 25 2010 Jiri Popelka <jpopelka@redhat.com> - 3.04-1
|
2011-03-07 16:35:01 +00:00
|
|
|
- 3.04
|
2010-03-25 11:14:25 +00:00
|
|
|
|
2010-02-02 10:47:27 +00:00
|
|
|
* Tue Feb 02 2010 Jiri Popelka <jpopelka@redhat.com> - 3.03-1
|
2011-03-07 16:35:01 +00:00
|
|
|
- 3.03
|
2009-12-08 08:20:09 +00:00
|
|
|
|
|
|
|
* Tue Nov 10 2009 Jiri Popelka <jpopelka@redhat.com> - 3.01-1
|
|
|
|
- Initial package. Up to now hostname has been part of net-tools package.
|
|
|
|
- This package is based on Debian's hostname because Debian has had hostname
|
|
|
|
as separate package since 1997 and the code is much better then the old one
|
|
|
|
contained in net-tools.
|