[4914] | 1 | %define pkgname Class-Data-Inheritable |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 0.08 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: Artistic or GPL |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{pkgname}-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: yasumichi |
---|
| 15 | |
---|
| 16 | Summary: Inheritable, overridable class data |
---|
| 17 | Summary(ja): クラスデータを継承可能、オーバーライド可能にする |
---|
| 18 | |
---|
| 19 | # Dependency |
---|
| 20 | Requires: perl |
---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 22 | |
---|
| 23 | BuildRequires: perl |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | Class::Data::Inheritable is for creating accessor/mutators to class data. |
---|
| 27 | That is, if you want to store something about your class as a whole (instead |
---|
| 28 | of about a single object). This data is then inherited by your subclasses |
---|
| 29 | and can be overriden. |
---|
| 30 | |
---|
| 31 | #%%description -l ja |
---|
| 32 | #ここに日本語で詳細を記述してください。 |
---|
| 33 | |
---|
| 34 | %prep |
---|
| 35 | %setup -q -n Class-Data-Inheritable-0.08 |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | perl Makefile.PL |
---|
| 39 | %{__make} |
---|
| 40 | |
---|
| 41 | %install |
---|
| 42 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 43 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 44 | |
---|
| 45 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 46 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 47 | grep -v ^%{_mandir} | |
---|
| 48 | grep -v perllocal.pod | |
---|
| 49 | grep -v "\.packlist" > %{name}.files |
---|
| 50 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 51 | echo "ERROR: EMPTY FILE LIST" |
---|
| 52 | exit -1 |
---|
| 53 | fi |
---|
| 54 | |
---|
| 55 | # remove unnecessary files. |
---|
| 56 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
| 57 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Class/Data/Inheritable/.packlist |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %clean |
---|
| 61 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %files -f %{name}.files |
---|
| 65 | %defattr(-,root,root) |
---|
| 66 | %doc Changes README |
---|
| 67 | %{_mandir}/*/* |
---|
| 68 | |
---|
| 69 | %changelog |
---|
| 70 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.08-1 |
---|
| 71 | - initial build for Vine Linux |
---|