public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/texlive] eln: Move fileattrs to separate file
@ 2026-11-16 17:38 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-16 17:38 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/texlive
            Branch : eln
            Commit : dd360017ed1de739bd535228006cd7d60400ea5e
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-11-12T20:07:11-05:00
            Stats  : +16/-16 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/texlive/c/dd360017ed1de739bd535228006cd7d60400ea5e?branch=eln

            Log:
            Move fileattrs to separate file

This avoids an error with the norpm parser:

https://github.com/praiskup/norpm/issues/70

---
diff --git a/texlive.attr b/texlive.attr
new file mode 100644
index 0000000..ca16759
--- /dev/null
+++ b/texlive.attr
@@ -0,0 +1,3 @@
+%__texlive_path ^%{_texmf_main}/.*\\.(4ht|afm|bbx|bg2|bst|bug|cbx|cfg|clo|cls|csv|cnf|dat|dbx|def|enc|eps|fd|icc|ini|lbx|ldf|lua|map|mf|mp|otf|pfa|pfb|pro|sty|tex|rfm|ttf|vf)$
+%__texlive_exclude_path ^%{_texmf_main}/doc/.*$
+%__texlive_provides() tex(%{basename:%{1}}) = %{version}

diff --git a/texlive.spec b/texlive.spec
index 05acd9b..89591ca 100644
--- a/texlive.spec
+++ b/texlive.spec
@@ -3,6 +3,7 @@
 %global tl_version %{sub %{source_date} 1 4}
 %global source_name texlive-%{source_date}-source
 %{!?_texdir: %global _texdir %{_datadir}/%{name}}
+%{!?_texmf_main:%global _texmf_main %{_texdir}/texmf-dist}
 %{!?_texmf_var: %global _texmf_var %{_var}/lib/texmf}
 
 %global etc_fmtutil_cnf %{_sysconfdir}/texlive/web2c/fmtutil.cnf
@@ -25,15 +26,9 @@
 # Remove luajittex
 %global luajittex 0
 
-# Automatically generate tex(filename.ext) Provides.
-%define _local_file_attrs texlive
-%define __texlive_path ^%{_texdir}/texmf-dist/.*\\.(4ht|afm|bbx|bg2|bst|bug|cbx|cfg|clo|cls|csv|cnf|dat|dbx|def|enc|eps|fd|icc|ini|lbx|ldf|lua|map|mf|mp|otf|pfa|pfb|pro|sty|tex|rfm|ttf|vf)$
-%define __texlive_exclude_path ^%{_texdir}/texmf-dist/doc/
-%define __texlive_provides() tex(%{basename:%{1}}) = %{epoch}:%{source_date}-%{release}
-
 Name: texlive
 Version: %{source_date}
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: %{tl_epoch}
 Summary: TeX formatting system
 Group: Applications/Publishing
@@ -93,6 +88,7 @@ Source4: generate-fmtutilcnf
 Source5: gnu-freefont.metainfo.xml
 # script to generate clean tarball from released build tarballs
 Source6: create-clean-texlive.sh
+Source7: texlive.attr
 Source100: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/attachfile2.doc.tar.xz
 Source101: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/attachfile2.tar.xz
 Source102: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/ae.tar.xz
@@ -8880,15 +8876,13 @@ sed -i 's|TESTS = tests/updmap-cmdline-test.pl||g' source/texk/texlive/Makefile.
 sed -i 's|bibtex8_tests = tests/bibtex8.test|bibtex8_tests =|g' source/texk/bibtex-x/Makefile.in
 sed -i 's|bibtex8_tests = tests/bibtex8.test|bibtex8_tests =|g' source/texk/bibtex-x/Makefile.am
 
-# Source100 at index 8 is our first "normal" noarch source file.
-%global mysources %{lua: for index,value in ipairs(sources) do if index >= 8 then print(value.." ") end end}
+# Source100 at index 9 is our first "normal" noarch source file.
+%global mysources %{lua: for index,value in ipairs(sources) do if index >= 9 then print(value.." ") end end}
 
-# Create an RPM dependency generator for use in other texlive-* packages.
-cat > texlive.attr << 'EOF'
-%%__texlive_path          %{gsub %__texlive_path \ \\}
-%%__texlive_exclude_path  %__texlive_exclude_path
-%%__texlive_provides()    tex(%%{basename:%%{1}}) = %{tl_version}
-EOF
+# Automatically generate tex(filename.ext) Provides.
+%define _local_file_attrs texlive
+%{load:%SOURCE7}
+%define __texlive_provides() tex(%{basename:%{1}}) = %{epoch}:%{source_date}-%{release}
 
 %build
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118112
@@ -9199,7 +9193,7 @@ popd
 
 # Create fileattr for generating tex(...) Provides.
 mkdir -p %{buildroot}%{_fileattrsdir}
-cp -a texlive.attr %{buildroot}%{_fileattrsdir}/texlive.attr
+cp -a %{SOURCE7} %{buildroot}%{_fileattrsdir}/texlive.attr
 
 # create macro file for building texlive
 mkdir -p %{buildroot}%{_rpmmacrodir}
@@ -12210,6 +12204,9 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
 %doc %{_texmf_main}/doc/generic/babel-german/
 
 %changelog
+* Wed Nov 11 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 14:20260301-3
+- Move fileattrs to separate file
+
 * Sun Jul 26 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 14:20260301-2
 - Restore dependency generator to produce tex(...) Provides
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-16 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 17:38 [rpms/texlive] eln: Move fileattrs to separate file Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox