%global pkg_name RDFStore %global pkg_version 0.51 %global rpm_pkg_version 0.51 %global rpm_pkg_release 3.n0i.5 Summary: Perl API for RDF Storage Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/A/AR/AREGGIORI/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: db4-devel BuildRequires: perl(DBI) BuildRequires: perl(URI) >= 1.09 BuildRequires: perl(XML::Parser) >= 2.00 %description RDFStore is a set of Perl modules to manage Resource Description Framework (RDF) model databases in a easy and straightforward way. It is a pure Perl implementation of the Draft Java API from the Stanford University DataBase Group ( http://www-db.stanford.edu/~melnik/rdf/api.html ) by Sergey Melnik with some additional cool modules to read/write RDF triples directly from the Perl language environment. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{__rm} -rf doc/CVS %{__cat} << 'EOF' > arch_conf.in INCLUDE = %{_includedir} LIB = %{_libdir} DBNAME = -ldb EOF %build # disable any -Optimization or else this crap will crash all over the place export RPM_OPT_FLAGS=$(echo " $RPM_OPT_FLAGS" |sed 's/ -O[^ ]*//') %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b} %doc AUTHORS CHANGES LICENSE README sfl-license.txt TODO VERSION %doc doc/* %changelog * Mon Oct 15 2007 Marius Feraru - 0.51-3.n0i.5 - rebuild (db 4.6.x) * Tue May 22 2007 Marius Feraru - 0.51-2.n0i.4 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 * Tue Jun 20 2006 Marius Feraru - 0.51-1.n0i.3 - version 0.51 * Sat Mar 04 2006 Marius Feraru - 0.50-2.n0i.2 - automatic rebuild (perl 5.8.8) * Fri Jul 29 2005 Marius Feraru 0.50-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7