# vim: set nowrap: %define _binary_payload w6.xzdio %global debug_package %{nil} %define App PrivateBin %define app privatebin Name: %{app} Version: 1.7.6 Release: 10%{?dist} Summary: Minimalist online pastebin where the server has zero knowledge of pasted data License: unknown URL: https://%{app}.info/ Source: https://github.com/%{App}/%{App}/archive/refs/tags/%{version}.tar.gz #spaces around ">=" are necessary Requires: php >= 7.3, php-fpm, php-gd Requires: httpd, mod_ssl %description %prep md5sum -c <<<"b5f61f22b6a3db54688db7d80a0c6a9d %{_sourcedir}/%{version}.tar.gz" %setup -q -n %{App}-%{version} %install mkdir -pv %{buildroot}%{_datadir}/webapps; cd $_; mv -v $OLDPWD %{app} cd %{app} mkdir -pv %{buildroot}%{_sharedstatedir}/%{app} ln -sfv "%{_sharedstatedir}/%{app}" data mkdir -pv %{buildroot}%{_sysconfdir}/%{app} mv -v cfg/conf.sample.php $_/conf.php ln -sfv "%{_sysconfdir}/%{app}/conf.php" cfg/conf.php %files %attr(0750, root, apache) %dir %{_sysconfdir}/%{app} %attr(0700, apache, apache) %dir %{_sharedstatedir}/%{app} %attr(0640, root, apache) %config(noreplace) %{_sysconfdir}/%{app}/conf.php %{_datadir}/webapps/%{app} %changelog