From fb8600f696499c97d87b15a48a87df85e1fbf972 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 7 Sep 2014 07:23:20 +0200 Subject: perl-Gtk2-AppIndicator: 0.15 - New package (for gmusicbrowser) --- Makefile | 4 +++ perl-Gtk2-AppIndicator.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 Makefile create mode 100644 perl-Gtk2-AppIndicator.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/perl-Gtk2-AppIndicator.spec b/perl-Gtk2-AppIndicator.spec new file mode 100644 index 0000000..8ded2be --- /dev/null +++ b/perl-Gtk2-AppIndicator.spec @@ -0,0 +1,69 @@ +# spec file for perl-Gtk2-AppIndicator +# +# Copyright (c) 2014 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# + +Name: perl-Gtk2-AppIndicator +Version: 0.15 +Release: 1%{?dist} +Summary: Perl extension for libappindicator +# From Copyright: Distributed under the same license as perl. +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Gtk2-AppIndicator/ +Source0: http://www.cpan.org/modules/by-module/Gtk2/Gtk2-AppIndicator-%{version}.tar.gz + +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Gtk2) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(appindicator-0.1) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + + +%description +%{summary}. + + +%prep +%setup -q -n Gtk2-AppIndicator-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; -print +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; -print +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; -print + +%{_fixperms} %{buildroot}/* + + +%check +: "make test disabled, requires a display" + + +%files +%{!?_licensedir:%global license %%doc} +%license LICENSE COPYRIGHT +%doc Changes README +%{perl_vendorarch}/auto/Gtk2 +%{perl_vendorarch}/Gtk2/* +%{_mandir}/man3/Gtk2* + + +%changelog +* Sun Sep 7 2014 Remi Collet 0.15-1 +- initial package \ No newline at end of file -- cgit