Changes of Revision 4
[-] | Changed | perl-X11-Protocol.spec |
x 1
2 3 Summary: Perl module for the X Window System Protocol 4 Name: perl-X11-Protocol 5 -Version: 0.56 6 +Version: 0.55 7 Release: 1 8 License: Artistic 9 Group: Applications/CPAN 10
11 12 BuildArch: noarch 13 BuildRequires: perl 14 -%if 0%{?fedora_version} >= 7 15 -BuildRequires: perl-ExtUtils-MakeMaker 16 -%endif 17 18 %description 19 This is a module for the X Window System Protocol. 20 21 %prep 22 %setup -q -n %{real_name}-%{version} 23 -perl Makefile.PL 24 + 25 +%build 26 +%{__perl} Makefile.PL INSTALLDIRS="vendor" # PREFIX="%{buildroot}%{_prefix}" 27 %{__make} %{?_smp_mflags} 28 -%makeinstall DESTDIR=$RPM_BUILD_ROOT 29 -%if 0%{?suse_version} 30 -%perl_process_packlist 31 -%else 32 -find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null 33 -%endif 34 -cd $RPM_BUILD_ROOT 35 -find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} 36 -find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 37 -find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} 38 + 39 +%install 40 +%{__rm} -rf %{buildroot} 41 +%makeinstall 42 + 43 +### Clean up buildroot 44 +%{__rm} -rf %{buildroot}%{perl_archlib} \ 45 + %{buildroot}%{perl_vendorarch} 46 47 %clean 48 -rm -rf $RPM_BUILD_ROOT/* 49 -rm -rf $RPM_BUILD_DIR/%{name}* 50 +%{__rm} -rf %{buildroot} 51 52 -%if 0%{?suse_version} 53 %files 54 -%doc Changes README Todo 55 -/usr/share/man/man3/* 56 -/var/adm/perl-modules/perl-%{real_name} 57 -%{perl_sitelib}/* 58 -%ifarch %ix86 59 -%{perl_sitelib}/i586-linux-thread-multi 60 -%endif 61 -%ifarch x86_64 62 -%{perl_sitelib}/x86_64-linux-thread-multi 63 -%endif 64 - 65 -%else 66 - 67 -%files -f ../file.list.%{name} 68 - 69 -%endif 70 - 71 - 72 +%defattr(-, root, root, 0755) 73 +%doc Changes README 74 +%doc %{_mandir}/man3/* 75 +%dir %{perl_vendorlib}/X11/ 76 +%{perl_vendorlib}/X11/*.pm 77 +%{perl_vendorlib}/X11/Protocol/ 78 79 %changelog 80 -* Sat Sep 22 2007 Carsten Schoene <cs@linux-administrator.com> - 0.56-1 81 -- Updated to releas 0.56 82 -- added BuildRequires for Fedora 7 83 - 84 * Mon Jul 31 2006 Richard Bos <richard@radoeka.nl> - 0.55-1 85 - Initial build for opensuse 86 87
88 89 * Wed Dec 08 2004 Dries Verachtert <dries@ulyssis.org> - 0.53-1 90 - Initial package. 91 - 92 |