source: projects/specs/trunk/p/perl-Gtk2-Unique/perl-Gtk2-Unique-vl.spec @ 2683

Revision 2683, 1.7 KB checked in by kazutaka, 13 years ago (diff)

新規パッケージ (shutter の新規依存)

Line 
1Name:           perl-Gtk2-Unique
2Version:        0.05
3Release:        1%{?_dist_release}
4Summary:        Perl bindings for the C library "libunique"
5
6Group:          Development/Libraries
7License:        Artistic or GPL (same terms as Perl)
8URL:            http://search.cpan.org/dist/Gtk2-Unique/
9Source0:        http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/Gtk2-Unique-%{version}.tar.gz
10BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12BuildRequires:  perl(Gtk2)
13BuildRequires:  perl(ExtUtils::MakeMaker)
14BuildRequires:  perl(ExtUtils::Depends)
15BuildRequires:  perl(ExtUtils::PkgConfig)
16BuildRequires:  unique-devel
17Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
18Requires:       unique
19
20%description
21Perl bindings for the C library "libunique" that provides a mechanism for
22writing single instance applications. If you launch a single instance
23application twice, the second instance will either just quit or will send a
24message 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
39find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
40find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
41find $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
Note: See TracBrowser for help on using the repository browser.