[perl-Gtk2-Unique] Initial Upload

Liang Suilong liangsuilong at fedoraproject.org
Wed Jun 22 08:05:50 UTC 2011


commit 554af88b2c451c853102831345bbb2fe92e2a5d7
Author: Fedora <fedora at fedora-desktop.(none)>
Date:   Wed Jun 22 16:04:52 2011 +0800

    Initial Upload

 .gitignore            |    1 +
 perl-Gtk2-Unique.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b39e2d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Gtk2-Unique-0.05.tar.gz
diff --git a/perl-Gtk2-Unique.spec b/perl-Gtk2-Unique.spec
new file mode 100644
index 0000000..18f7d88
--- /dev/null
+++ b/perl-Gtk2-Unique.spec
@@ -0,0 +1,81 @@
+Name:			perl-Gtk2-Unique
+Version:		0.05
+Release:		2%{?dist}
+Summary:		Perl bindings for the C library "libunique"
+License:		GPL+ or Artistic
+Group:			Development/Libraries
+URL:			http://search.cpan.org/dist/Gtk2-Unique/
+Source0:		http://mirrors.163.com/cpan/authors/id/P/PO/POTYL/Gtk2-Unique-%{version}.tar.gz
+BuildRequires:		perl(ExtUtils::Depends) >= 0.20
+BuildRequires:		perl(ExtUtils::MakeMaker)
+BuildRequires:		perl(ExtUtils::PkgConfig) >= 1.03
+BuildRequires:		perl(Glib) >= 1.180
+BuildRequires:		perl(Glib::MakeHelper)
+BuildRequires:		perl(Gtk2) >= 1.00
+BuildRequires:		unique-devel
+Requires:		perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+Gtk2::Unique is a Perl binding for the C library libunique 
+which provides a way for writing single instance application. 
+If you launch a single instance application twice, the second 
+instance will either just quit or will send a message to 
+the running instance.
+
+For more information about libunique see: 
+http://live.gnome.org/LibUnique.
+
+%package devel
+Summary:		Development headers for %{name}
+Group:			Development/Libraries
+Requires:		%{name} = %{version}-%{release}
+
+%{?perl_default_filter}
+
+%description devel
+Development headers for %{name}
+
+%prep
+%setup -q -n Gtk2-Unique-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags} NOECHO=
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%doc Changes README
+%{perl_vendorarch}/auto/Gtk2/Unique/
+%{perl_vendorarch}/Gtk2*
+%exclude %{perl_vendorarch}/Gtk2/Unique/Install/*.h
+%{_mandir}/man3/*.3pm*
+
+%files devel
+%{perl_vendorarch}/Gtk2/Unique/Install/*.h
+
+%changelog
+* Sun Jun 19 2011 Liang Suilong <liangsuilong at gmail.com> 0.05-2
+- Add a devel subpackage
+- Fix spec file errors 
+
+* Sat Jun 04 2011 Liang Suilong <liangsuilong at gmail.com> 0.05-1
+- Intial Package for Fedora 15
+
diff --git a/sources b/sources
index e69de29..7ee465f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0beb552933b765a017588563a71af123  Gtk2-Unique-0.05.tar.gz


More information about the scm-commits mailing list