/[smeserver]/rpms/perl-Passwd-Unix/sme10/Passwd-Unix.spec
ViewVC logotype

Contents of /rpms/perl-Passwd-Unix/sme10/Passwd-Unix.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Feb 4 13:14:25 2016 UTC (8 years, 9 months ago) by vip-ire
Branch: MAIN
CVS Tags: perl-Passwd-Unix-0_71-2, HEAD
Error occurred while calculating annotation data.
sme10 branch

1 #
2 # - Passwd::Unix -
3 # This spec file was automatically generated by cpan2rpm [ver: 2.028]
4 # The following arguments were used:
5 # --spec-only --no-depchk Passwd::Unix
6 # For more information on cpan2rpm please visit: http://perl.arix.com/
7 #
8
9 %define pkgname Passwd-Unix
10 %define filelist %{pkgname}-%{version}-filelist
11 %define NVR %{pkgname}-%{version}-%{release}
12 %define maketest 0
13
14 name: perl-Passwd-Unix
15 summary: Passwd-Unix - access to standard unix files
16 version: 0.71
17 release: 2
18 vendor: £ukasz Strzelecki <strzelec@rswsystems.pl>
19 packager: Arix International <cpan2rpm@arix.com>
20 license: Artistic
21 group: Applications/CPAN
22 url: http://www.cpan.org
23 buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
24 buildarch: noarch
25 prefix: %(echo %{_prefix})
26 source: http://search.cpan.org//CPAN/authors/id/S/ST/STRZELEC/Passwd-Unix-0.71.tar.gz
27
28 BuildRequires: perl(ExtUtils::MakeMaker)
29
30 %description
31 The Passwd::Unix module provides an abstract interface to /etc/passwd,
32 /etc/shadow and /etc/group format files. It is inspired by
33 Unix::PasswdFile module (that one does not handle /etc/shadow file,
34 what is necessary in modern systems like Sun Solaris 10 or Linux).
35
36 #
37 # This package was generated automatically with the cpan2rpm
38 # utility. To get this software or for more information
39 # please visit: http://perl.arix.com/
40 #
41
42 %prep
43 %setup -q -n %{pkgname}-%{version}
44 chmod -R u+w %{_builddir}/%{pkgname}-%{version}
45
46 %build
47 grep -rsl '^#!.*perl' . |
48 grep -v '.bak$' |xargs --no-run-if-empty \
49 %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
50 CFLAGS="$RPM_OPT_FLAGS"
51 %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
52 %{__make}
53 %if %maketest
54 %{__make} test
55 %endif
56
57 %install
58 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
59
60 %{makeinstall} INSTALLDIR=vendor `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
61
62 cmd=/usr/share/spec-helper/compress_files
63 [ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
64 [ -x $cmd ] && $cmd
65
66 # SuSE Linux
67 if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
68 then
69 %{__mkdir_p} %{buildroot}/var/adm/perl-modules
70 %{__cat} `find %{buildroot} -name "perllocal.pod"` \
71 | %{__sed} -e s+%{buildroot}++g \
72 > %{buildroot}/var/adm/perl-modules/%{name}
73 fi
74
75 # remove special files
76 find %{buildroot} -name "perllocal.pod" \
77 -o -name ".packlist" \
78 -o -name "*.bs" \
79 |xargs -i rm -f {}
80
81 # no empty directories
82 find %{buildroot}%{_prefix} \
83 -type d -depth \
84 -exec rmdir {} \; 2>/dev/null
85
86 %{__perl} -MFile::Find -le '
87 find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
88 print "%doc Changes README";
89 for my $x (sort @dirs, @files) {
90 push @ret, $x unless indirs($x);
91 }
92 print join "\n", sort @ret;
93
94 sub wanted {
95 return if /auto$/;
96
97 local $_ = $File::Find::name;
98 my $f = $_; s|^\Q%{buildroot}\E||;
99 return unless length;
100 return $files[@files] = $_ if -f $f;
101
102 $d = $_;
103 /\Q$d\E/ && return for reverse sort @INC;
104 $d =~ /\Q$_\E/ && return
105 for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
106
107 $dirs[@dirs] = $_;
108 }
109
110 sub indirs {
111 my $x = shift;
112 $x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
113 }
114 ' > %filelist
115
116 [ -z %filelist ] && {
117 echo "ERROR: empty %files listing"
118 exit -1
119 }
120
121 %clean
122 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
123
124 %files -f %filelist
125 %defattr(-,root,root)
126
127 %changelog
128 * Mon Oct 20 2014 <stephdl@de-labrusse.fr> 0.71-2
129 - First Release to sme9
130
131 * Thu Dec 12 2013 <daniel@firewall-services.com> 0.71-1
132 - Initial build.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed