mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
As said [in the documentation](https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package):
> If the package wants to use systemd tools if they are available, but does not
want to declare a dependency, then the `%{?systemd_ordering}` macro MAY be used
as a weaker form of %{?systemd_requires} that only declares an ordering during
an RPM transaction.
See 2424b6bd71
and https://pagure.io/packaging-committee/issue/644 for more information.
And also use `--setopt=install_weak_deps=False` to avoid installing a lot of
useless dependencies.
65 lines
1.5 KiB
RPMSpec
65 lines
1.5 KiB
RPMSpec
%undefine _disable_source_fetch
|
|
|
|
Name: miniflux
|
|
Version: %{_miniflux_version}
|
|
Release: 1.0
|
|
Summary: Minimalist and opinionated feed reader
|
|
URL: https://miniflux.app/
|
|
License: ASL 2.0
|
|
Source0: miniflux
|
|
Source1: miniflux.service
|
|
Source2: miniflux.conf
|
|
Source3: miniflux.1
|
|
Source4: LICENSE
|
|
Source5: ChangeLog
|
|
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
|
|
BuildArch: x86_64
|
|
Requires(pre): shadow-utils
|
|
|
|
%{?systemd_ordering}
|
|
|
|
AutoReqProv: no
|
|
|
|
%define __strip /bin/true
|
|
%define __os_install_post %{nil}
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
install -p -m 755 %{SOURCE0} %{buildroot}%{_bindir}/miniflux
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/miniflux.service
|
|
install -D -m 600 %{SOURCE2} %{buildroot}%{_sysconfdir}/miniflux.conf
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/miniflux.1
|
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_docdir}/miniflux/LICENSE
|
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_docdir}/miniflux/ChangeLog
|
|
|
|
%files
|
|
%defattr(755,root,root)
|
|
%{_bindir}/miniflux
|
|
%{_docdir}/miniflux
|
|
%defattr(644,root,root)
|
|
%{_unitdir}/miniflux.service
|
|
%{_mandir}/man1/miniflux.1*
|
|
%{_docdir}/miniflux/*
|
|
%defattr(600,root,root)
|
|
%config(noreplace) %{_sysconfdir}/miniflux.conf
|
|
|
|
%pre
|
|
getent group miniflux >/dev/null || groupadd -r miniflux
|
|
getent passwd miniflux >/dev/null || \
|
|
useradd -r -g miniflux -d /dev/null -s /sbin/nologin \
|
|
-c "Miniflux Daemon" miniflux
|
|
exit 0
|
|
|
|
%post
|
|
%systemd_post miniflux.service
|
|
|
|
%preun
|
|
%systemd_preun miniflux.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart miniflux.service
|
|
|
|
%changelog
|