Группа :: Система/Настройка/Прочее
Пакет: altmediawriter
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define sname mediawriter
%define oname ALTMediaWriter
Name: altmediawriter
Version: 1.0.5
Release: alt1
Summary: ALT Media Writer
Group: System/Configuration/Other
License: GPLv2+
URL: https://github.com/altlinux/ALTMediaWriter
Source: %oname-%version.tar
BuildRequires: libGConf
BuildRequires: libappstream-glib
BuildRequires: liblzma-devel
BuildRequires: libnss-mdns
BuildRequires: libyaml-cpp-devel
BuildRequires: qt5-declarative-devel
BuildRequires: qt5-x11extras-devel
Requires: qt5-quickcontrols
Requires: qt5-quickcontrols2
Requires: polkit
Requires: udisks2
%description
A tool to write images of ALT media to portable drives
like flash drives or memory cards.
%prep
%setup -n %oname-%version
%build
%qmake_qt5 PREFIX=%_prefix LIBEXECDIR=%_libexecdir/%name MEDIAWRITER_NAME=%name MEDIAWRITER_VERSION=%version-%release
%make_build
%install
make install INSTALL_ROOT=%buildroot
if [ "%name" != "%sname" ]; then
for i in %buildroot%_datadir/icons/hicolor/*/apps/%sname.png; do
mv "$i" "$(dirname $i)/%name.png"
done
mv %buildroot%_datadir/applications/%sname.desktop %buildroot%_datadir/applications/%name.desktop
mv %buildroot%_datadir/appdata/%sname.appdata.xml %buildroot%_datadir/appdata/%name.appdata.xml
sed -i 's/=%sname$/=%name/g' %buildroot%_datadir/applications/%name.desktop
sed -i 's/%sname\.desktop/%name.desktop/' %buildroot%_datadir/appdata/%name.appdata.xml
fi
%check
appstream-util validate-relax --nonet %buildroot/%_datadir/appdata/%name.appdata.xml
%files
%_bindir/%name
%_libexecdir/%name/
%_datadir/appdata/%name.appdata.xml
%_datadir/applications/%name.desktop
%_datadir/icons/hicolor/*/apps/%name.png
%changelog
…
Полный changelog можно просмотреть здесь
%define oname ALTMediaWriter
Name: altmediawriter
Version: 1.0.5
Release: alt1
Summary: ALT Media Writer
Group: System/Configuration/Other
License: GPLv2+
URL: https://github.com/altlinux/ALTMediaWriter
Source: %oname-%version.tar
BuildRequires: libGConf
BuildRequires: libappstream-glib
BuildRequires: liblzma-devel
BuildRequires: libnss-mdns
BuildRequires: libyaml-cpp-devel
BuildRequires: qt5-declarative-devel
BuildRequires: qt5-x11extras-devel
Requires: qt5-quickcontrols
Requires: qt5-quickcontrols2
Requires: polkit
Requires: udisks2
%description
A tool to write images of ALT media to portable drives
like flash drives or memory cards.
%prep
%setup -n %oname-%version
%build
%qmake_qt5 PREFIX=%_prefix LIBEXECDIR=%_libexecdir/%name MEDIAWRITER_NAME=%name MEDIAWRITER_VERSION=%version-%release
%make_build
%install
make install INSTALL_ROOT=%buildroot
if [ "%name" != "%sname" ]; then
for i in %buildroot%_datadir/icons/hicolor/*/apps/%sname.png; do
mv "$i" "$(dirname $i)/%name.png"
done
mv %buildroot%_datadir/applications/%sname.desktop %buildroot%_datadir/applications/%name.desktop
mv %buildroot%_datadir/appdata/%sname.appdata.xml %buildroot%_datadir/appdata/%name.appdata.xml
sed -i 's/=%sname$/=%name/g' %buildroot%_datadir/applications/%name.desktop
sed -i 's/%sname\.desktop/%name.desktop/' %buildroot%_datadir/appdata/%name.appdata.xml
fi
%check
appstream-util validate-relax --nonet %buildroot/%_datadir/appdata/%name.appdata.xml
%files
%_bindir/%name
%_libexecdir/%name/
%_datadir/appdata/%name.appdata.xml
%_datadir/applications/%name.desktop
%_datadir/icons/hicolor/*/apps/%name.png
%changelog
…
Полный changelog можно просмотреть здесь