[600] | 1 | Summary:rpm spec file generator for Vine Linux |
---|
| 2 | Name: vine-spec-skeleton |
---|
[3246] | 3 | Version: 0.4 |
---|
[3459] | 4 | Release: 2%{?_dist_release} |
---|
[600] | 5 | License: perl's |
---|
| 6 | Group: Development/Tools |
---|
| 7 | Source0: %{name}-%{version}.tar.gz |
---|
[3459] | 8 | Patch0: vine-spec-skeleton-0.4-elisp.patch |
---|
[600] | 9 | Url: http://trac.vinelinux.org/wiki/vine-spec-skeleton |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 11 | BuildArch: noarch |
---|
[669] | 12 | BuildRequires: perl perl-YAML perl-Class-Accessor perl-HTML-Template |
---|
[3246] | 13 | BuildRequires: perl-Email-Valid-Loose |
---|
[669] | 14 | Requires: perl perl-YAML perl-Class-Accessor perl-HTML-Template |
---|
[3246] | 15 | Requires: perl-Email-Valid-Loose |
---|
[600] | 16 | |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Packager: iwaim |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | rpm spec file generator for Vine Linux |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q |
---|
[3459] | 26 | %patch0 -p1 -b .elisp |
---|
[600] | 27 | |
---|
| 28 | %build |
---|
| 29 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 30 | make |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf $RPM_BUILD_ROOT |
---|
| 34 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 35 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 36 | |
---|
| 37 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
| 38 | |
---|
| 39 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 40 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 41 | grep -v ^%{_mandir} | |
---|
| 42 | grep -v perllocal.pod | |
---|
| 43 | grep -v "\.packlist" > %{name}.files |
---|
| 44 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 45 | echo "ERROR: EMPTY FILE LIST" |
---|
| 46 | exit -1 |
---|
| 47 | fi |
---|
| 48 | |
---|
| 49 | %check |
---|
| 50 | make test |
---|
| 51 | |
---|
| 52 | %clean |
---|
| 53 | rm -rf $RPM_BUILD_ROOT |
---|
| 54 | |
---|
| 55 | %files -f %{name}.files |
---|
| 56 | %defattr(-,root,root) |
---|
| 57 | %doc README Changes LICENSE |
---|
| 58 | %dir %{perl_vendorlib}/VineLinux |
---|
| 59 | %dir %{perl_vendorlib}/VineLinux/VSS |
---|
| 60 | %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton |
---|
| 61 | %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/Elisp |
---|
| 62 | %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/PerlModule |
---|
[669] | 63 | %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/SelfBuild |
---|
[600] | 64 | %dir %{perl_vendorlib}/VineLinux/VSS/Type |
---|
| 65 | #%{_mandir}/man3/* |
---|
| 66 | |
---|
| 67 | %changelog |
---|
[3459] | 68 | * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 0.4-2 |
---|
| 69 | - add elisp skeleton patch (Patch0) |
---|
| 70 | |
---|
[3246] | 71 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.4-1 |
---|
| 72 | - new upstream release |
---|
| 73 | - drop svn r664 patch (Patch1): upstream fixed |
---|
| 74 | - add {Build,}Requires: perl-Email-Valid-Loose |
---|
| 75 | |
---|
[669] | 76 | * Thu Mar 25 2010 IWAI, Masaharu <iwai@alib.jp> 0.3-1 |
---|
| 77 | - new upstream release |
---|
| 78 | - drop fix elisp skeleton patch (Patch0): upstream fixed |
---|
| 79 | - add upstream svn r664 patch (Patch1) |
---|
| 80 | - update Requires and BuildRequires: perl-HTML-Template |
---|
| 81 | |
---|
[600] | 82 | * Tue Feb 23 2010 IWAI, Masaharu <iwai@alib.jp> 0.2-1 |
---|
| 83 | - first release for Vine Linux |
---|