Compare commits

1 Commits
1.1 ... main

5 changed files with 110 additions and 45 deletions

BIN
Text-BibTeX-0.88.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
Text-BibTeX-0.91.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -7,18 +7,39 @@
#sources: #sources:
# - source1 # - source1
# - source2 # - source2
#patches: patches:
# foo.patch: -p1 manual-pages-for-libbtparse.patch: -p1
# bar.patch: # bar.patch:
#preamble: |- preamble: |-
# BuildRequires: gcc-c++ BuildRequires: glibc-devel
%package devel
Summary: C library for parsing and processing BibTeX files
Group: Development/Libraries/Other
Provides: %{name}:%{_libdir}/libbtparse.so
%description devel
The libbtparse is a C library for parsing and processing BibTeX files.
Note that the interface provided by libbtparse, while complete, is fairly
low-level. If you have more sophisticated needs, you might be interested
the "Text::BibTeX" module for Perl.
#post_prep: |- #post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |- #post_build: |-
# rm unused.files # rm unused.files
#post_install: |- #post_install: |-
# sed on %{name}.files misc: |-
%exclude %{_mandir}/man3/*.3.gz
%files devel
%defattr(-,root,root,755)
%{_libdir}/libbtparse.so
%{_mandir}/man3/*.3%{?ext_man}
%{_includedir}/btparse.h
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
#license: SUSE-NonFree #license: SUSE-NonFree
#skip_noarch: 1 #skip_noarch: 1
#custom_build: |- #custom_build: |-

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Fri Jan 31 05:30:56 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 0.910.0 (0.91)
see /usr/share/doc/packages/perl-Text-BibTeX/Changes
0.91 2025-01-29
* Fix compilation issue with btparse code (Colin Mcdonald)
-------------------------------------------------------------------
Wed Jan 22 21:12:48 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 0.900.0 (0.90)
see /usr/share/doc/packages/perl-Text-BibTeX/Changes
0.90 2025-01-06
* Added support to Haiku OS (thanks to Joachim Mairböc
-------------------------------------------------------------------
Fri Mar 8 23:06:17 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Fix disabling of __perllib_provides
-------------------------------------------------------------------
Wed Jan 25 03:08:44 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 0.89
see /usr/share/doc/packages/perl-Text-BibTeX/Changes
0.89 2023-01-24
* Fix Config::AutoConf dependency version
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 17 15:04:25 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com> Mon Jun 17 15:04:25 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Text-BibTeX # spec file for package perl-Text-BibTeX
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,31 +18,56 @@
%define cpan_name Text-BibTeX %define cpan_name Text-BibTeX
Name: perl-Text-BibTeX Name: perl-Text-BibTeX
Version: 0.88 Version: 0.910.0
Release: 0 Release: 0
Summary: Interface to Read and Parse BibTeX Files # 0.91 -> normalize -> 0.910.0
%define cpan_version 0.91
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Summary: Interface to read and parse BibTeX files
URL: https://metacpan.org/release/Text-BibTeX URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
Patch0: manual-pages-for-libbtparse.patch Patch0: manual-pages-for-libbtparse.patch
BuildRequires: glibc-devel
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Capture::Tiny) >= 0.06 BuildRequires: perl(Capture::Tiny) >= 0.06
BuildRequires: perl(Config::AutoConf) >= 0.16 BuildRequires: perl(Config::AutoConf) >= 0.320
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27 BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
BuildRequires: perl(ExtUtils::LibBuilder) >= 0.02 BuildRequires: perl(ExtUtils::LibBuilder) >= 0.90.0
BuildRequires: perl(File::Copy) BuildRequires: perl(Module::Build) >= 0.3603
BuildRequires: perl(Module::Build) >= 0.360300
BuildRequires: perl(Scalar::Util) >= 1.42 BuildRequires: perl(Scalar::Util) >= 1.42
Requires: perl(Encode)
Requires: perl(Scalar::Util) >= 1.42 Requires: perl(Scalar::Util) >= 1.42
Requires: perl(Unicode::Normalize) Provides: perl(Text::BibTeX) = %{version}
Provides: perl(Text::BibTeX::BibEntry) = 0.88
Provides: perl(Text::BibTeX::BibFormat) = 0.88
Provides: perl(Text::BibTeX::BibSort) = 0.88
Provides: perl(Text::BibTeX::BibStructure) = 0.88
Provides: perl(Text::BibTeX::Entry) = 0.88
Provides: perl(Text::BibTeX::File) = 0.88
Provides: perl(Text::BibTeX::Name) = 0.88
Provides: perl(Text::BibTeX::NameFormat) = 0.88
Provides: perl(Text::BibTeX::SimpleValue) = 0.88
Provides: perl(Text::BibTeX::Structure) = 0.88
Provides: perl(Text::BibTeX::StructuredEntry) = 0.88
Provides: perl(Text::BibTeX::Value) = 0.88
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
# MANUAL BEGIN
BuildRequires: glibc-devel
%package devel
Summary: C library for parsing and processing BibTeX files
Group: Development/Libraries/Other
Provides: %{name}:%{_libdir}/libbtparse.so
%description devel
The libbtparse is a C library for parsing and processing BibTeX files.
Note that the interface provided by libbtparse, while complete, is fairly
low-level. If you have more sophisticated needs, you might be interested
the "Text::BibTeX" module for Perl.
# MANUAL END
%description %description
The 'Text::BibTeX' module serves mainly as a high-level introduction to the The 'Text::BibTeX' module serves mainly as a high-level introduction to the
'Text::BibTeX' library, for both code and documentation purposes. The code 'Text::BibTeX' library, for both code and documentation purposes. The code
@@ -65,40 +90,24 @@ 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 names in the rest of this manual page (and in most of the other manual
pages in the library). pages in the library).
%package devel
Summary: C library for parsing and processing BibTeX files
Group: Development/Libraries/Other
Provides: %{name}:%{_libdir}/libbtparse.so
%description devel
The libbtparse is a C library for parsing and processing BibTeX files.
Note that the interface provided by libbtparse, while complete, is fairly
low-level. If you have more sophisticated needs, you might be interested
the "Text::BibTeX" module for Perl.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%patch0 -p1
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
perl Build.PL installdirs=vendor optimize="%{optflags}" perl Build.PL --installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
chmod -R u+rw %{buildroot}
%perl_gen_filelist %perl_gen_filelist
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes examples README README.OLD THANKS
%doc Changes examples README README.OLD scripts THANKS
%exclude %{_mandir}/man3/*.3.gz %exclude %{_mandir}/man3/*.3.gz
%files devel %files devel
@@ -107,4 +116,7 @@ chmod -R u+rw %{buildroot}
%{_mandir}/man3/*.3%{?ext_man} %{_mandir}/man3/*.3%{?ext_man}
%{_includedir}/btparse.h %{_includedir}/btparse.h
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%changelog %changelog