From 4b92d0256ab489978fc1ab7048e6711a7e235455 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 9 Dec 2014 15:47:04 +0000 Subject: [PATCH] Initial stab at an RPM spec file. Almost certainly doesn't work yet. I'll try it on CentOS 6. --- libindexdata-utils-perl.spec | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libindexdata-utils-perl.spec diff --git a/libindexdata-utils-perl.spec b/libindexdata-utils-perl.spec new file mode 100644 index 0000000..5c4e3da --- /dev/null +++ b/libindexdata-utils-perl.spec @@ -0,0 +1,56 @@ +%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n') +Summary: Utility Perl extension for Index Data applications +Name: libindexdata-utils-perl +Version: %{idmetaversion} +Release: 1.indexdata +License: IndexData +Group: Development/Libraries +Vendor: Index Data ApS +Source: libindexdata-utils-perl-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: perl +Packager: Mike Taylor +URL: http://www.indexdata.com/ + +Requires: perl-IO-File + +%description +This library contains utility functions that we at Index Data want to +share between multiple applications -- for example, the persistent +counter used by both IRSpy and MKHome. + +%prep +%setup + +%build +%{__perl} Makefile.PL PREFIX=/usr INSTALLDIRS=vendor +%{__make} + +%install +%{__rm} -rf %{buildroot} +%{__make} pure_install DESTDIR=%{buildroot} +#find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +#find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +#find %{buildroot} -type f -name CPU.bs -exec rm -f {} ';' +# Perl's make install seems to create both uncompressed AND compressed +# versions of the manual pages, which confuses /usr/lib/rpm/brp-compress +#find $RPM_BUILD_ROOT/usr/share/man -name '*.gz' -exec rm -f '{}' \; + +# Install documentation +DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/libindexdata-utils-perl +mkdir -p $DOCDIR +cp -p README $DOCDIR/ + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc %{_datadir}/doc/libindexdata-utils-perl +#%doc %{_datadir}/man/man3/Masterkey::Admin::*.3pm.gz +%{perl_vendorlib} + +%changelog +* Tue Dec 9 2014 Mike Taylor +- First Red Hat packaged version. -- 1.7.10.4