diff --git a/Text-BibTeX-0.88.tar.gz b/Text-BibTeX-0.88.tar.gz deleted file mode 100644 index 0efedec..0000000 --- a/Text-BibTeX-0.88.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b014586e68bdbcafb0a2cfa0401eb0a04ea5de8c4d5bc36dd0f7faeab6acf42c -size 301812 diff --git a/Text-BibTeX-0.91.tar.gz b/Text-BibTeX-0.91.tar.gz new file mode 100644 index 0000000..675aa25 --- /dev/null +++ b/Text-BibTeX-0.91.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f0113cf8fe71dc7484636dc8e2a581637ecbcc82d0be29bbd46d0bf3f8cdb37 +size 302052 diff --git a/cpanspec.yml b/cpanspec.yml index 76ad4a4..065f01f 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -7,18 +7,39 @@ #sources: # - source1 # - source2 -#patches: -# foo.patch: -p1 +patches: + manual-pages-for-libbtparse.patch: -p1 # bar.patch: -#preamble: |- -# BuildRequires: gcc-c++ +preamble: |- + 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: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #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 #skip_noarch: 1 #custom_build: |- diff --git a/perl-Text-BibTeX.changes b/perl-Text-BibTeX.changes index ea30454..4931f08 100644 --- a/perl-Text-BibTeX.changes +++ b/perl-Text-BibTeX.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Fri Jan 31 05:30:56 UTC 2025 - Tina Müller + +- 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 + +- 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 + +- Fix disabling of __perllib_provides + +------------------------------------------------------------------- +Wed Jan 25 03:08:44 UTC 2023 - Tina Müller + +- 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 diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec index a3af3b1..ad40227 100644 --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -18,31 +18,56 @@ %define cpan_name Text-BibTeX Name: perl-Text-BibTeX -Version: 0.88 +Version: 0.910.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 -Group: Development/Libraries/Perl -URL: https://metacpan.org/release/Text-BibTeX -Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{version}.tar.gz +Summary: Interface to read and parse BibTeX files +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Patch0: manual-pages-for-libbtparse.patch -BuildRequires: glibc-devel BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Capture::Tiny) >= 0.06 -BuildRequires: perl(Config::AutoConf) >= 0.16 -BuildRequires: perl(Cwd) +BuildRequires: perl(Config::AutoConf) >= 0.320 BuildRequires: perl(ExtUtils::CBuilder) >= 0.27 -BuildRequires: perl(ExtUtils::LibBuilder) >= 0.02 -BuildRequires: perl(File::Copy) -BuildRequires: perl(Module::Build) >= 0.360300 +BuildRequires: perl(ExtUtils::LibBuilder) >= 0.90.0 +BuildRequires: perl(Module::Build) >= 0.3603 BuildRequires: perl(Scalar::Util) >= 1.42 -Requires: perl(Encode) 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} +# 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 The 'Text::BibTeX' module serves mainly as a high-level introduction to the '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 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 -%setup -q -n %{cpan_name}-%{version} -%patch0 -p1 -find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build -perl Build.PL installdirs=vendor optimize="%{optflags}" -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor optimize="%{optflags}" +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 -chmod -R u+rw %{buildroot} +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist -%post devel -p /sbin/ldconfig -%postun devel -p /sbin/ldconfig - %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes examples README README.OLD scripts THANKS +%doc Changes examples README README.OLD THANKS %exclude %{_mandir}/man3/*.3.gz %files devel @@ -107,4 +116,7 @@ chmod -R u+rw %{buildroot} %{_mandir}/man3/*.3%{?ext_man} %{_includedir}/btparse.h +%post devel -p /sbin/ldconfig +%postun devel -p /sbin/ldconfig + %changelog