[2683] | 1 | Name: perl-Gtk2-Unique |
---|
| 2 | Version: 0.05 |
---|
[9141] | 3 | Release: 3%{?_dist_release} |
---|
[2683] | 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 | |
---|
[9141] | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[2683] | 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 | |
---|
[3699] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
[2683] | 23 | %description |
---|
| 24 | Perl bindings for the C library "libunique" that provides a mechanism for |
---|
| 25 | writing single instance applications. If you launch a single instance |
---|
| 26 | application twice, the second instance will either just quit or will send a |
---|
| 27 | message to the running instance. |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n Gtk2-Unique-%{version} |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %build |
---|
| 35 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 36 | %{__make} %{?_smp_mflags} |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 41 | %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
| 42 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
| 43 | find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' |
---|
| 44 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 45 | %{__chmod} -R u+w $RPM_BUILD_ROOT/* |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %clean |
---|
| 49 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %files |
---|
| 53 | %defattr(-,root,root,-) |
---|
| 54 | %doc Changes README |
---|
| 55 | %{perl_vendorarch}/auto/Gtk2/Unique/ |
---|
| 56 | %{perl_vendorarch}/Gtk2/Unique* |
---|
| 57 | %{_mandir}/man3/*.3pm* |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %changelog |
---|
[9141] | 61 | * Sun Dec 07 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.05-3 |
---|
| 62 | - rebuilt with perl 5.16.3 |
---|
| 63 | |
---|
[3699] | 64 | * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-2 |
---|
| 65 | - build with perl 5.12.3 |
---|
| 66 | - add Vendor and Distribution tags |
---|
| 67 | |
---|
[2683] | 68 | * Sat Feb 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-1 |
---|
| 69 | - initial build for Vine Linux |
---|
| 70 | |
---|