95 lines
2.2 KiB
RPMSpec
95 lines
2.2 KiB
RPMSpec
%define debug_package %{nil}
|
|
Name: peony-extensions
|
|
Version: 3.0.1
|
|
Release: 3
|
|
Summary: Peony qt extensions (common files)
|
|
License: LGPL-3.0+
|
|
URL: http://www.ukui.org
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: pkgconf
|
|
BuildRequires: glib2-devel
|
|
#BuildRequires: qt5-qmake
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: qtchooser
|
|
BuildRequires: libpeony-dev
|
|
#BuildRequires: libpeony3
|
|
BuildRequires: peony
|
|
BuildRequires: poppler-qt5-devel
|
|
BuildRequires: gsettings-qt-devel
|
|
|
|
Requires: samba-common-tools
|
|
Requires: samba
|
|
Requires: engrampa
|
|
Requires: mate-terminal
|
|
Requires: libpeony3
|
|
Requires: qt5-qtimageformats
|
|
Requires: polkit
|
|
|
|
patch0: 0001-fix-peony-share-failed-issue.patch
|
|
|
|
%description
|
|
Peony is the official file manager for the UKUI desktop. This
|
|
package adds extended functionality to the Peony file manager.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
export PATH=%{_qt5_bindir}:$PATH
|
|
mkdir qmake-build
|
|
pushd qmake-build
|
|
%{qmake_qt5} ..
|
|
%{make_build}
|
|
popd
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
pushd qmake-build
|
|
%{make_install} INSTALL_ROOT=%{buildroot}
|
|
popd
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
|
|
[ -d /var/lib/samba/usershares ] || mkdir /var/lib/samba/usershares
|
|
chmod 0777 /var/lib/samba/usershares
|
|
sed -i '/^\[global/a \\tusershare allow guests = yes\n\tusershare path = /var/lib/samba/usershares\n\tusershare max shares = 100\n\tusershare owner only = yes' /etc/samba/smb.conf
|
|
systemctl restart smb
|
|
systemctl restart nmb
|
|
systemctl enable smb
|
|
systemctl enable nmb
|
|
|
|
%preun
|
|
sed -i '/usershare/d' /etc/samba/smb.conf
|
|
systemctl restart smb
|
|
systemctl restart nmb
|
|
|
|
%files
|
|
%doc debian/copyright debian/changelog
|
|
%{_libdir}/peony-extensions
|
|
%{_prefix}/share/
|
|
|
|
%changelog
|
|
* Mon Dec 14 2020 douyan <douyan@kylinos.cn> - 3.0.1-3
|
|
- fix samba configure issue
|
|
|
|
* Tue Dec 8 2020 douyan <douyan@kylinos.cn> - 3.0.1-2
|
|
- fix-peony-share-failed-issue
|
|
|
|
* Wen Nov 11 2020 douyan <douyan@kylinos.cn> - 3.0.1-1
|
|
- update to upstream version 3.0.0-1+1031.1
|
|
|
|
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 3.0.0-1
|
|
- update to upstream version 3.0.0
|
|
|
|
* Tue Sep 22 2020 douyan <douyan@kylinos.cn> - 2.1.2-2
|
|
- fix peony file share issue
|
|
|
|
* Thu Jul 09 2020 douyan <douyan@kylinos.cn> - 2.1.2-1
|
|
- Init package for openEuler
|