From bbe11685d48a18aa64158af742f60b2982e55063 Mon Sep 17 00:00:00 2001 From: bpostle Date: Jun 16 2008 20:59:12 +0000 Subject: Initial SRPM import --- diff --git a/perl-Panotools-Script.spec b/perl-Panotools-Script.spec new file mode 100644 index 0000000..2875c93 --- /dev/null +++ b/perl-Panotools-Script.spec @@ -0,0 +1,75 @@ +Name: perl-Panotools-Script +Version: 0.14 +Release: 2%{?dist} +Summary: Panorama Tools scripting +License: GPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Panotools-Script/ +Source0: http://search.cpan.org/CPAN/authors/id/B/BP/BPOSTLE/Panotools-Script-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(GraphViz) >= 1 +BuildRequires: perl(Image::Size) >= 2.9 +Requires: perl(GraphViz) >= 1 +Requires: perl(Image::Size) >= 2.9 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# added manually +Requires: hugin-base libpano13-tools ImageMagick enblend zenity autotrace +BuildRequires: perl(Test::More) desktop-file-utils + +%description +Library and utilities for manipulating project files created by the hugin photo +stitching software. + +%prep +%setup -q -n Panotools-Script-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%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 -depth -type d -exec rmdir {} 2>/dev/null \; + +# added manually +desktop-file-install --vendor="fedora" \ + --dir=%{buildroot}/%{_datadir}/applications desktop/*.desktop + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +# added manually +%post +update-desktop-database &> /dev/null ||: + +# added manually +%postun +update-desktop-database &> /dev/null ||: + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* +# added manually +%{_bindir}/* +%{_datadir}/applications/*.desktop +%{_mandir}/man1/* + +%changelog +* Thu Jun 12 2008 Bruno Postle 0.14-2 +- Changes suggested by package review + +* Mon Jun 09 2008 Bruno Postle 0.14-1 +- Specfile autogenerated by cpanspec 1.75. diff --git a/sources b/sources index e69de29..e841e01 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +da472058c73d602cb8bb58c681469c0a Panotools-Script-0.14.tar.gz