File perl-IO-Stty.spec of Package perl-IO-Stty

#
# spec file for package perl-IO-Stty (Version .02)
#
# Copyright (c) 2008 SUSE LINUX Products 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/
#

# norootforbuild

Url:            http://search.cpan.org/search?module=IO::Stty

Name:           perl-IO-Stty
License:        Artistic License; GPL v2 or later
Group:          Development/Libraries/Perl
Requires:       perl = %{perl_version}
AutoReqProv:    on
Summary:        A Perl Module for Setting Terminal Parameters
Version:        .02
Release:        652
Source:         IO-Stty-%{version}.tar.gz
Patch:          IO-Stty-.02-correct_perl.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
IO::Stty is a Perl module for setting terminal parameters.



Authors:
--------
    Austin Schutz <tex@habit.com>

%prep
%setup -n IO-Stty-%{version}
%patch

%build
perl Makefile.PL
make
make test 

%install
#%define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
#install -d $RPM_BUILD_ROOT/%{perl_archlib}
#make PREFIX=$RPM_BUILD_ROOT/usr \
#     INSTALLMAN1DIR=$RPM_BUILD_ROOT/%{_mandir}/man1 \
#     INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
#     install
#install -d $RPM_BUILD_ROOT/var/adm/perl-modules
#cat $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod | sed "s@$RPM_BUILD_ROOT@@g" > $RPM_BUILD_ROOT/var/adm/perl-modules/perl-IO-Stty
#cd $RPM_BUILD_ROOT/%{perl_sitearch}/auto/IO/Stty
#sed "s@$RPM_BUILD_ROOT@@g" < .packlist | sort -u > .packlist.tmp
#mv .packlist.tmp .packlist
#rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
#rm -f $RPM_BUILD_ROOT/%{perl_sitelib}/IO/stty.pl
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README stty.txt
%dir %{perl_vendorarch}/auto/IO
%{perl_vendorarch}/auto/IO/Stty
/%{perl_vendorlib}/IO
/var/adm/perl-modules/perl-IO-Stty

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Fri Jul 18 2003 mc@suse.de
- add vendorarch changes
- fix for correct perl interpreter
* Sun Jun 22 2003 coolo@suse.de
- package directories
* Mon May 19 2003 mc@suse.de
- removed unpackaged Files from RPM_BUILD_ROOT
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Thu Jun 21 2001 mc@suse.de
- fixed the specfile. Used more RPM macros
* Thu Feb 08 2001 mc@suse.de
- first package, v.02
openSUSE Build Service is sponsored by