Bug 2364617

Summary: Review Request: apostrophe - A distraction free Markdown editor
Product: [Fedora] Fedora Reporter: Alexander Lent <lx>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: alex, decathorpe, gui1ty, package-review, yselkowi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: Unretirement
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The .spec file difference from Copr build 9005654 to 9625493 none

Description Alexander Lent 2025-05-06 23:18:05 UTC
Spec URL: https://src.fedoraproject.org/fork/xanderlent/rpms/apostrophe/raw/75fbcef3721d63c3b139f1cb5a9016aa74864c66/f/apostrophe.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/xanderlent/apostrophe/srpm-builds/09005644/apostrophe-3.2-1.src.rpm
Description: A distraction free Markdown editor
Fedora Account System Username: xanderlent

I would like to take up maintainer-ship of Apostrophe, since the reason for retirement is no longer applicable.

Comment 1 Fedora Review Service 2025-05-06 23:26:30 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9005654
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2364617-apostrophe/fedora-rawhide-x86_64/09005654-apostrophe/fedora-review/review.txt

Found issues:

- A package with this name already exists. Please check https://src.fedoraproject.org/rpms/apostrophe, https://src.fedoraproject.org/flatpaks/apostrophe
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_conflicting_package_names

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Alex Haydock 2025-05-10 07:35:54 UTC
It looks like this was previously built in Fedora but was retired due to upstream issues (see rhbz#2291412 and rhbz#2290496).

Looking at the upstream repo, I don't think much has changed. The codebase doesn't seem to have been updated in 4 years.

Comment 3 Alexander Lent 2025-05-10 20:14:43 UTC
While it's true that the codebase between 3.0 and 3.2 has been pretty stagnant, (though it seems like there's been a bit more activity since the 3.2 release,) my understanding of the previous reports is that most of the crashes were due to calling functions that didn't exist in  upstream libspelling and gtksouceview5, which have now been upstreamed into recent versions of those libraries.

I've been testing my builds for 3.2, and I haven't yet encountered the previous random crashes, though I have only tested relatively simple Markdown files so far (just text, links, headers, and images).

Comment 4 Yaakov Selkowitz 2025-05-13 23:19:12 UTC
Don't have time for a full package review at the moment, but I tried a local Fedora flatpak build of this and it seems to be working just fine.  As soon as it's back in, I can reinstate the Fedora flatpak.

I'd prefer to see less wildcards in %check and %files, but otherwise I don't see any blatantly obvious problems in the spec file.

Comment 5 Fabio Valentini 2025-06-19 10:47:15 UTC
This looks a bit strange to me:

```
%forgeautosetup -p1
%setup -q -n %{name}-v%{version} -D -T -a1
```

You should very likely either use one or the other. Using more than one %*setup macro will do strange things.

Comment 6 Sandro 2025-09-20 14:10:19 UTC
First of all, thanks for trying to bring back Apostrophe to the Fedora repos. I've been unable to find a replacement that suits my needs since the package was retired.

(In reply to Alexander Lent from comment #3)
> While it's true that the codebase between 3.0 and 3.2 has been pretty
> stagnant, (though it seems like there's been a bit more activity since the
> 3.2 release,) my understanding of the previous reports is that most of the
> crashes were due to calling functions that didn't exist in  upstream
> libspelling and gtksouceview5, which have now been upstreamed into recent
> versions of those libraries.

As of version 3.3 the upstream patches for libspelling and gtksourceview have been dropped. I've tried a local build and it worked well with the system installed libraries. I was unable to reproduce bug 2291412.

(In reply to Yaakov Selkowitz from comment #4)
> I'd prefer to see less wildcards in %check and %files, but otherwise I don't
> see any blatantly obvious problems in the spec file.

For the .desktop and .xml files you can simply replace the asterisk with the already defined macro %{appid}. You may also want to run some tests in %check with:

%{py3_test_envvars} %python3 tests/test_regex_commonmark.py

Could you update to version 3.3? I'd be willing to take a shot at the review since I'd really like to see this package back in Fedora.

Comment 7 Alexander Lent 2025-09-29 01:28:03 UTC
Thanks for the offer, and apologies that it's taken a week to get everything together. Let me know if you need me to handle a review or several down the line.

I think I've addressed all the comments so far as well as bringing the package up to date as of v3.3:
Spec URL: https://src.fedoraproject.org/fork/xanderlent/rpms/apostrophe/raw/3eb21eee31f3348da8e24b3d3ca6fc2a6bf03ca8/f/apostrophe.spec
SRPM URL: https://gist.github.com/xanderlent/865bec2cdc3279c08387c8da89a0b594/raw/0e9d4d47750304eb064754e2c435e706423c1fa2/apostrophe-3.3-1.fc44.src.rpm

Comment 8 Fedora Review Service 2025-09-29 01:36:38 UTC
Created attachment 2107949 [details]
The .spec file difference from Copr build 9005654 to 9625493

Comment 9 Fedora Review Service 2025-09-29 01:36:40 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9625493
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2364617-apostrophe/fedora-rawhide-x86_64/09625493-apostrophe/fedora-review/review.txt

Found issues:

- A package with this name already exists. Please check https://src.fedoraproject.org/rpms/apostrophe, https://src.fedoraproject.org/flatpaks/apostrophe
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_conflicting_package_names

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.