| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:27:06 +00:00
										 |  |  | # spec file for package perl-App-perlbrew (Version 0.16)
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Copyright (c) 2010 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/
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Name:           perl-App-perlbrew
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:27:06 +00:00
										 |  |  | Version:        0.16
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | Release:        1
 | 
					
						
							|  |  |  | License:        MIT
 | 
					
						
							|  |  |  | %define cpan_name App-perlbrew
 | 
					
						
							|  |  |  | Summary:        Manage perl installations in your $HOME
 | 
					
						
							|  |  |  | Url:            http://search.cpan.org/dist/App-perlbrew/
 | 
					
						
							|  |  |  | Group:          Development/Libraries/Perl
 | 
					
						
							|  |  |  | #Source:         http://www.cpan.org/authors/id/G/GU/GUGOD/App-perlbrew-%{version}.tar.gz
 | 
					
						
							|  |  |  | Source:         %{cpan_name}-%{version}.tar.bz2
 | 
					
						
							|  |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							|  |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							|  |  |  | BuildArch:      noarch
 | 
					
						
							|  |  |  | %{perl_requires}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | perlbrew is a program to automate the building and installation of perl in
 | 
					
						
							|  |  |  | the users HOME. At the moment, it installs everything to
 | 
					
						
							|  |  |  | '~/perl5/perlbrew', and requires you to tweak your PATH by including a
 | 
					
						
							|  |  |  | bashrc/cshrc file it provides. You then can benefit from not having to run
 | 
					
						
							|  |  |  | 'sudo' commands to install cpan modules because those are installed inside
 | 
					
						
							|  |  |  | your HOME too. It's a completely separate perl environment.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n %{cpan_name}-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | %{__perl} Makefile.PL INSTALLDIRS=vendor
 | 
					
						
							|  |  |  | %{__make} %{?_smp_mflags}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:57:34 +00:00
										 |  |  | %if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %{__make} test
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:57:34 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %perl_make_install
 | 
					
						
							|  |  |  | %perl_process_packlist
 | 
					
						
							|  |  |  | %perl_gen_filelist
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:27:06 +00:00
										 |  |  | %__chmod 0755 "%{buildroot}%{_bindir}"/*
 | 
					
						
							|  |  |  | %__perl -n -i -e 'print unless m|%{_bindir}|' "%{name}.files"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | %clean
 | 
					
						
							|  |  |  | %{__rm} -rf %{buildroot}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %files -f %{name}.files
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:27:06 +00:00
										 |  |  | %defattr(-,root,root)
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | %doc Changes LICENSE README
 | 
					
						
							| 
									
										
										
										
											2011-02-19 15:27:06 +00:00
										 |  |  | %{_bindir}/perlbrew
 | 
					
						
							| 
									
										
										
										
											2011-01-14 11:29:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |