diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | perl-Gtk2-AppIndicator.spec | 69 |
2 files changed, 73 insertions, 0 deletions
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 <remi@fedoraproject.org> 0.15-1 +- initial package
\ No newline at end of file |