1 |
%define upstream_name Gtk2-Unique |
2 |
%define upstream_version 0.05 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 2 |
7 |
|
8 |
Summary: Perl bindings for libunique |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Gtk2/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: unique-devel |
15 |
BuildRequires: perl(ExtUtils::MakeMaker) |
16 |
BuildRequires: perl(Gtk2) |
17 |
BuildRequires: perl-devel |
18 |
|
19 |
%description |
20 |
Gtk2::Unique is a Perl binding for the C library libunique which provides a |
21 |
way for writing single instance application. If you launch a single |
22 |
instance application twice, the second instance will either just quit or |
23 |
will send a message to the running instance. |
24 |
|
25 |
For more information about libunique see: the |
26 |
http://live.gnome.org/LibUnique manpage. |
27 |
|
28 |
%prep |
29 |
%setup -q -n %{upstream_name}-%{upstream_version} |
30 |
|
31 |
%build |
32 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
33 |
%make |
34 |
|
35 |
%check |
36 |
%make test |
37 |
|
38 |
%install |
39 |
rm -rf %buildroot |
40 |
%makeinstall_std |
41 |
|
42 |
%files |
43 |
%doc Changes META.yml README |
44 |
%{_mandir}/man3/* |
45 |
%perl_vendorlib/* |
46 |
|
47 |
|