1 | Name: perl-Gtk2-Unique |
---|
2 | Version: 0.05 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Perl bindings for the C library "libunique" |
---|
5 | |
---|
6 | Group: Development/Libraries |
---|
7 | License: Artistic or GPL (same terms as Perl) |
---|
8 | URL: http://search.cpan.org/dist/Gtk2-Unique/ |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/Gtk2-Unique-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
11 | |
---|
12 | BuildRequires: perl(Gtk2) |
---|
13 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
14 | BuildRequires: perl(ExtUtils::Depends) |
---|
15 | BuildRequires: perl(ExtUtils::PkgConfig) |
---|
16 | BuildRequires: unique-devel |
---|
17 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
18 | Requires: unique |
---|
19 | |
---|
20 | %description |
---|
21 | Perl bindings for the C library "libunique" that provides a mechanism for |
---|
22 | writing single instance applications. If you launch a single instance |
---|
23 | application twice, the second instance will either just quit or will send a |
---|
24 | message to the running instance. |
---|
25 | |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n Gtk2-Unique-%{version} |
---|
29 | |
---|
30 | |
---|
31 | %build |
---|
32 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
33 | %{__make} %{?_smp_mflags} |
---|
34 | |
---|
35 | |
---|
36 | %install |
---|
37 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
38 | %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
39 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
40 | find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' |
---|
41 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
42 | %{__chmod} -R u+w $RPM_BUILD_ROOT/* |
---|
43 | |
---|
44 | |
---|
45 | %clean |
---|
46 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
47 | |
---|
48 | |
---|
49 | %files |
---|
50 | %defattr(-,root,root,-) |
---|
51 | %doc Changes README |
---|
52 | %{perl_vendorarch}/auto/Gtk2/Unique/ |
---|
53 | %{perl_vendorarch}/Gtk2/Unique* |
---|
54 | %{_mandir}/man3/*.3pm* |
---|
55 | |
---|
56 | |
---|
57 | %changelog |
---|
58 | * Sat Feb 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-1 |
---|
59 | - initial build for Vine Linux |
---|
60 | |
---|