LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Text-BibTeX.spec of Package perl-Text-BibTeX (Project openSUSE:Factory)

#
# spec file for package perl-Text-BibTeX
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-Text-BibTeX
Version:        0.63
Release:        0
%define cpan_name Text-BibTeX
Summary:        Interface to read and parse BibTeX files
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Text-BibTeX/
Source:         http://www.cpan.org/authors/id/A/AM/AMBS/Text/%{cpan_name}-%{version}.tar.gz
Patch:          Text-BibTeX-rpmlint.patch
Patch1:         perl-Text-BibTeX-libdir.patch 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Capture::Tiny) >= 0.06
BuildRequires:  perl(Config::AutoConf) >= 0.16
BuildRequires:  perl(ExtUtils::CBuilder) >= 0.27
BuildRequires:  perl(ExtUtils::LibBuilder) >= 0.02
BuildRequires:  perl(Module::Build)
#BuildRequires: perl(ExtUtils::ParseXS)
#BuildRequires: perl(MyBuilder)
#BuildRequires: perl(Text::BibTeX)
#BuildRequires: perl(Text::BibTeX::BibFormat)
#BuildRequires: perl(Text::BibTeX::BibSort)
#BuildRequires: perl(Text::BibTeX::Entry)
#BuildRequires: perl(Text::BibTeX::File)
#BuildRequires: perl(Text::BibTeX::Name)
#BuildRequires: perl(Text::BibTeX::NameFormat)
#BuildRequires: perl(Text::BibTeX::Structure)
#BuildRequires: perl(Text::BibTeX::Value)
%{perl_requires}

%description
The 'Text::BibTeX' module serves mainly as a high-level introduction to the
'Text::BibTeX' library, for both code and documentation purposes. The code
loads the two fundamental modules for processing BibTeX files
('Text::BibTeX::File' and 'Text::BibTeX::Entry'), and this documentation
gives a broad overview of the whole library that isn't available in the
documentation for the individual modules that comprise it.

In addition, the 'Text::BibTeX' module provides a number of miscellaneous
functions that are useful in processing BibTeX data (especially the kind
that comes from bibliographies as defined by BibTeX 0.99, rather than
generic database files). These functions don't generally fit in the
object-oriented class hierarchy centred around the 'Text::BibTeX::Entry'
class, mainly because they are specific to bibliographic data and operate
on generic strings (rather than being tied to a particular BibTeX entry).
These are also documented here, in the "MISCELLANEOUS FUNCTIONS" manpage.

Note that every module described here begins with the 'Text::BibTeX'
prefix. For brevity, I have dropped this prefix from most class and module
names in the rest of this manual page (and in most of the other manual
pages in the library).

%prep
%setup -q -n %{cpan_name}-%{version}
%patch
%patch1
find . -type f -print0 | xargs -0 chmod 644

%build
export CFLAGS='%{optflags}'
export CC=gcc
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README README.OLD scripts THANKS
%{_libdir}/libbtparse.so

%changelog