]> git.pld-linux.org Git - packages/perl-User-Utmp.git/blame - perl-User-Utmp.spec
- release 11 (by relup.sh)
[packages/perl-User-Utmp.git] / perl-User-Utmp.spec
CommitLineData
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
8Summary: User::Utmp - Perl access to utmp- and utmpx-style databases
9Summary(pl.UTF-8): User::Utmp - dostęp z poziomu Perla do baz typu utmp i utmpx
801a95fe 10Name: perl-User-Utmp
9c58b282 11Version: 1.8
ea254e77 12Release: 11
d92567b2 13# same as perl
14License: GPL v1+ or Artistic
801a95fe 15Group: Development/Languages/Perl
a437bf1a 16Source0: http://www.cpan.org/modules/by-module/User/%{pdir}-%{pnam}-%{version}.tar.gz
9c58b282 17# Source0-md5: e3561ae2b07f08b0c754bc351e810551
18Patch0: %{name}-strcmp-fix.patch
a437bf1a 19URL: http://search.cpan.org/dist/User-Utmp/
c1500504 20BuildRequires: perl-devel >= 1:5.8.0
a437bf1a 21BuildRequires: rpm-perlprov >= 4.1-13
2e424138 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
801a95fe 23
24%description
5633af46 25The User::Utmp Perl module provides a simple Perl interface to utmp-
26and utmpx-style databases on UNIX systems, the most important being
27/var/run/utmp, which provides information about users currently
28logged in. There is also experimental support for writing utmp files.
801a95fe 29
f9ac7506
JR
30%description -l pl.UTF-8
31Moduł Perla User::Utmp udostępnia prosty interfejs w Perlu to plików
32baz danych typu utmp i utmpx w systemach UNIX. Najważniejszym z nich
33jest /var/run/utmp, który udostępnia informacje o aktualnie
34zalogowanych użytkownikach. Jest również eksperymentalne wsparcie dla
35zapisu 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
51rm -rf $RPM_BUILD_ROOT
cf20b19a 52install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
801a95fe 53
5dd75573 54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
83179965 56mv -f $RPM_BUILD_ROOT%{perl_vendorarch}/User/example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cf20b19a 57
801a95fe 58%clean
59rm -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}/*
This page took 0.093213 seconds and 4 git commands to generate.