--- /dev/null
+#
+# Conditional build:
+# _with_tests - perform "make test"
+%include /usr/lib/rpm/macros.perl
+%define pdir IPC
+%define pnam Shareable
+Summary: IPC::Shareable - share Perl variables between processes
+#Summary(pl):
+Name: perl-IPC-Shareable
+Version: 0.60
+Release: 1
+License: GPL v2+
+Group: Development/Languages/Perl
+Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-26
+%if %{?_with_tests:1}%{!?_with_tests:0}
+BuildRequires: perl-Storable >= 0.607
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+IPC::Shareable allows you to tie a variable to shared memory making it
+easy to share the contents of that variable with other Perl processes.
+Scalars, arrays, and hashes can be tied. The variable being tied may
+contain arbitrarily complex data structures - including references to
+arrays, hashes of hashes, etc.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+
+%{?_with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES CREDITS DISCLAIMER README TO_DO
+%{perl_sitelib}/%{pdir}/*.pm
+%{perl_sitelib}/%{pdir}/%{pnam}
+%{_examplesdir}/%{name}-%{version}
+%{_mandir}/man3/*