Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37862295
en ru br
ALT Linux repositórios
S:0.9.16-alt2

Group :: Desktop gráfico/Outros
RPM: deepin-printer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_disable clang
%def_disable tests
%define repo dde-printer
%define llvm_ver 15

Name: deepin-printer
Version: 0.9.16
Release: alt2
Summary: Printing utility for DDE
License: GPL-3.0+
# src/cppcups/snmp.{c,h}: Apache-2.0
Group: Graphical desktop/Other
Url: https://github.com/linuxdeepin/dde-printer
Packager: Leontiy Volodin <lvol at altlinux.org>

Source: %url/archive/%version/%repo-%version.tar.gz
Patch: deepin-print-alt-fix-gtest-1.13.patch

%if_enabled clang
#BuildRequires(pre): rpm-macros-llvm-common
BuildRequires: clang%llvm_ver.0-devel
BuildRequires: lld%llvm_ver.0-devel
BuildRequires: llvm%llvm_ver.0-devel
%else
BuildRequires: gcc-c++
%endif
BuildRequires: qt5-base-devel
BuildRequires: libcups-devel
BuildRequires: qt5-tools
BuildRequires: dtk5-widget-devel
BuildRequires: libsmbclient-devel
BuildRequires: libusb-devel
BuildRequires: libgtest-devel
#Requires: icon-theme-hicolor

%description
Graphical interface to configure the printing system for DDE.

%prep
%setup -n %repo-%version
%if_disabled tests
%patch -p1
%endif

%build
export PATH=%_qt5_bindir:$PATH
%if_enabled clang
export CC=clang-%llvm_ver
export CXX=clang++-%llvm_ver
export LDFLAGS="-fuse-ld=lld-%llvm_ver $LDFLAGS"
%endif
%qmake_qt5 \
%if_enabled clang
   QMAKE_STRIP= -spec linux-clang \
%endif
DEFINES+="VERSION=%version" \
CONFIG+=nostrip \
#
%make_build

%install
%makeinstall INSTALL_ROOT=%buildroot
%find_lang %repo
chmod +x %buildroot%_sysconfdir/xdg/autostart/%repo-watch.desktop

%files -f %repo.lang
%doc README.md LICENSE
%_bindir/%repo
%_bindir/%repo-helper
%_datadir/%repo/
%_datadir/%repo-helper/
%_desktopdir/%repo.desktop
%_sysconfdir/xdg/autostart/%repo-watch.desktop
%_iconsdir/hicolor/48x48/apps/%repo.svg
%_datadir/polkit-1/actions/com.deepin.pkexec.devPrinter.policy
%dir %_datadir/deepin-manual/
%dir %_datadir/deepin-manual/manual-assets/
%dir %_datadir/deepin-manual/manual-assets/application/
%dir %_datadir/deepin-manual/manual-assets/application/%repo/
%_datadir/deepin-manual/manual-assets/application/%repo/print-manager/

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009