public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikolaj Izdebski <mizdebsk@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bsh] epel10: Install versionless javadocs
Date: Wed, 15 Jul 2026 09:36:23 GMT [thread overview]
Message-ID: <178410818388.1.7675215080531596997.rpms-bsh-bb284bdae792@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bsh
Branch : epel10
Commit : bb284bdae792370bd8dc35c53e1c04bd45724f40
Author : Mikolaj Izdebski <mizdebsk@redhat.com>
Date : 2013-07-12T10:58:07+02:00
Stats : +9/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/bsh/c/bb284bdae792370bd8dc35c53e1c04bd45724f40?branch=epel10
Log:
Install versionless javadocs
---
diff --git a/bsh.spec b/bsh.spec
index a6bfaf7..0f83d06 100644
--- a/bsh.spec
+++ b/bsh.spec
@@ -157,9 +157,8 @@ find docs -name "*.log" -exec rm -f {} \;
(cd docs/manual && rm -rf html)
(cd docs/manual && rm -rf xsl)
# javadoc
-install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# menu entry
desktop-file-install --mode=644 \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3}
@@ -215,6 +214,12 @@ if [ $1 -eq 0 ] ; then
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+# Workaround for RPM bug #646523 - can't change symlink to directory
+# TODO: Remove this in F-22
+%pretrans javadoc -p <lua>
+dir = "%{_javadocdir}/%{name}"
+dummy = posix.readlink(dir) and os.remove(dir)
+
%posttrans utils
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
@@ -230,7 +235,6 @@ fi
%doc docs/*
%files javadoc
-%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files demo
@@ -245,6 +249,7 @@ fi
%changelog
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-26
- Use %%add_maven_depmap instead of legacy macros
+- Install versionless javadocs
* Wed Jul 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.3.0-26
- Remove arch-specific conditionals
reply other threads:[~2026-07-15 9:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178410818388.1.7675215080531596997.rpms-bsh-bb284bdae792@fedoraproject.org \
--to=mizdebsk@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox