--- /dev/null
+%include /usr/lib/rpm/macros.perl
+%define pdir GD
+%define pnam Barcode
+Summary: GD::Barcode Perl module - create barcode image with GD
+Summary(pl): Modu³ Perla GD::Barcode - do tworzenia obrazów z kodem paskowym
+Name: perl-GD-Barcode
+Version: 1.13
+Release: 1
+License: GPL or Artistic
+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: perl-GD
+BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GD::Barcode is a subclass of GD and allows you to create barcode image
+with GD.
+
+%description -l pl
+GD::Barcode jest podklas± klasy GD, pozwalaj±c± na tworzenie obrazów
+z kodem paskowym przy u¿yciu GD.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_sitelib}/GD/Barcode.pm
+%{perl_sitelib}/GD/Barcode
+%{_mandir}/man3/*