]>
Commit | Line | Data |
---|---|---|
5633af46 | 1 | # |
2 | # Conditional build: | |
5dd75573 | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
5852abc8 | 5 | %include /usr/lib/rpm/macros.perl |
e864b8b3 | 6 | %define pdir User |
7 | %define pnam Utmp | |
a437bf1a JB |
8 | Summary: User::Utmp - Perl access to utmp- and utmpx-style databases |
9 | Summary(pl.UTF-8): User::Utmp - dostęp z poziomu Perla do baz typu utmp i utmpx | |
801a95fe | 10 | Name: perl-User-Utmp |
9c58b282 | 11 | Version: 1.8 |
ea254e77 | 12 | Release: 11 |
d92567b2 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
801a95fe | 15 | Group: Development/Languages/Perl |
a437bf1a | 16 | Source0: http://www.cpan.org/modules/by-module/User/%{pdir}-%{pnam}-%{version}.tar.gz |
9c58b282 | 17 | # Source0-md5: e3561ae2b07f08b0c754bc351e810551 |
18 | Patch0: %{name}-strcmp-fix.patch | |
a437bf1a | 19 | URL: http://search.cpan.org/dist/User-Utmp/ |
c1500504 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
a437bf1a | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
2e424138 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
801a95fe | 23 | |
24 | %description | |
5633af46 | 25 | The User::Utmp Perl module provides a simple Perl interface to utmp- |
26 | and utmpx-style databases on UNIX systems, the most important being | |
27 | /var/run/utmp, which provides information about users currently | |
28 | logged in. There is also experimental support for writing utmp files. | |
801a95fe | 29 | |
f9ac7506 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Perla User::Utmp udostępnia prosty interfejs w Perlu to plików | |
32 | baz danych typu utmp i utmpx w systemach UNIX. Najważniejszym z nich | |
33 | jest /var/run/utmp, który udostępnia informacje o aktualnie | |
34 | zalogowanych użytkownikach. Jest również eksperymentalne wsparcie dla | |
35 | zapisu do plików utmp. | |
801a95fe | 36 | |
37 | %prep | |
5852abc8 | 38 | %setup -q -n %{pdir}-%{pnam}-%{version} |
9498b240 | 39 | %patch0 -p1 |
801a95fe | 40 | |
41 | %build | |
83179965 | 42 | %{__perl} Makefile.PL \ |
a08e9ba6 | 43 | INSTALLDIRS=vendor |
5dd75573 | 44 | %{__make} \ |
00a23ecb | 45 | CC="%{__cc}" \ |
5dd75573 | 46 | OPTIMIZE="%{rpmcflags}" |
801a95fe | 47 | |
5dd75573 | 48 | %{?with_tests:%{__make} test} |
5633af46 | 49 | |
801a95fe | 50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
cf20b19a | 52 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
801a95fe | 53 | |
5dd75573 | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
83179965 | 56 | mv -f $RPM_BUILD_ROOT%{perl_vendorarch}/User/example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
cf20b19a | 57 | |
801a95fe | 58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
cf20b19a | 63 | %doc Changes README |
83179965 | 64 | %dir %{perl_vendorarch}/User |
65 | %{perl_vendorarch}/User/Utmp.pm | |
66 | %dir %{perl_vendorarch}/auto/User | |
67 | %dir %{perl_vendorarch}/auto/User/Utmp | |
68 | %{perl_vendorarch}/auto/User/Utmp/autosplit.ix | |
83179965 | 69 | %attr(755,root,root) %{perl_vendorarch}/auto/User/Utmp/Utmp.so |
801a95fe | 70 | %{_mandir}/man3/* |
cf20b19a | 71 | %dir %{_examplesdir}/%{name}-%{version} |
72 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/* |