ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 24153
en ru
SRPMs in branches
hide window
Group :: Graphical desktop/Other
Source RPM: deepin-api
Raw spec file

%global _unpackaged_files_terminate_build 1

# Run tests in check section

# disable for bootstrapping

%def_without check

# out of memory on armv7hl

%ifarch %arm
%global _smp_mflags -j1

%global goipath
%global forgeurl

Name: deepin-api
Version: 5.4.5
Release: alt1
Summary: Go-lang bingding for dde-daemon
License: GPL-3.0+
Group: Graphical desktop/Other

Packager: Leontiy Volodin <lvol at>

Source: %url/archive/%version/dde-api-%version.tar.gz

BuildRequires: libalsa-devel libcairo-devel libgio-devel libgtk+3-devel libgdk-pixbuf-devel libgudev-devel libcanberra-devel libpulseaudio-devel librsvg-devel libpoppler-glib-devel libpolkitqt5-qt5-devel libsystemd-devel libXfixes-devel libXcursor-devel libX11-devel libXi-devel deepin-gettext-tools deepin-gir-generator libgdk-pixbuf-xlib-devel
BuildRequires: golang-github-linuxdeepin-dbus-factory-devel golang-deepin-go-lib-devel golang-deepin-go-x11-client-devel golang-github-burntsushi-xgbutil-devel golang-github-burntsushi-xgbutil-devel golang-github-disintegration-imaging-devel golang-github-cryptix-wav-devel golang-github-fogleman-gg-devel golang-github-nfnt-resize-devel golang-gopkg-alecthomas-kingpin-2-devel golang-x-image-devel golang-golang-x-net-devel golang-github-rickb777-date-devel golang-github-rickb777-plural-devel golang-github-alecthomas-template-devel golang-github-alecthomas-units-devel golang-github-freetype-devel golang-github-mattn-sqlite3-devel go-xgettext-devel golang-github-fsnotify-devel golang-github-go-dbus-devel golang-golang-x-sys-devel
%if_with check
BuildRequires: golang-github-jinzhu-gorm-devel
BuildRequires: golang-github-jinzhu-inflection-devel
BuildRequires: golang-gopkg-check-1-devel
BuildRequires: golang-github-stretchr-testify-devel
BuildRequires: golang-github-kr-pretty-devel
BuildRequires: golang-github-kr-text-devel
BuildRequires: golang-github-davecgh-spew-devel
BuildRequires: golang-github-pmezard-difflib-devel
BuildRequires: golang-github-goconvey-devel
Requires: deepin-desktop-base rfkill
shadow-utils dbus-tools


%package -n golang-%name-devel
Summary: %summary
Group: Graphical desktop/Other
BuildArch: noarch

%description -n golang-%name-devel

This package contains library source intended for
building other packages which use import path with
%goipath prefix.

%setup -n dde-api-%version
# Remove debian build files.

rm -rf debian/
# Fix unmets.

sed -i 's|/usr/bin/true|/bin/true|' \
# Fixed build for i586.

sed -i 's|gobuild|.build|' Makefile
# Fixed paths.

sed -i 's|/etc/default/locale|%_datadir/locale|' \
adjust-grub-theme/util.go \
# sed -i 's|PREFIX}${libdir|LIBDIR|; s|libdir|LIBDIR|' \

# Makefile adjust-grub-theme/main.go

export BUILDDIR=$PWD/.build
export IMPORT_PATH="%goipath"
export GOPATH="%go_path"
export GO111MODULE="auto"

#pushd .build/src/%%goipath



export BUILDDIR=$PWD/.build
export GOPATH="%go_path"


%makeinstall_std SYSTEMD_SERVICE_DIR="%_unitdir" -i
# HOME directory for user deepin-sound-player

mkdir -p %buildroot%_sharedstatedir/deepin-sound-player
# Make provides golang( for i586

# cp -a device/ %buildroot%go_path/src/%goipath/

# Make provides golang( for ppc64le

# cp -a graphic/ %buildroot%go_path/src/%goipath/

%if_with check
export GOPATH="%go_path"
#go get

make test ||:
make test-coverage


%files -n golang-%name-devel

* Tue Apr 27 2021 Leontiy Volodin <lvol at> 5.4.5-alt1
- New version (5.4.5) with rpmgs script.

* Thu Mar 04 2021 Leontiy Volodin <lvol at> 5.4.2-alt1
- New version (5.4.2) with rpmgs script.
- Fixed build with golang 1.16.

* Mon Jan 25 2021 Leontiy Volodin <lvol at> 5.3.2-alt1
- New version (5.3.2) with rpmgs script.

* Thu Dec 10 2020 Leontiy Volodin <lvol at>
- New version ( with rpmgs script.

* Mon Nov 30 2020 Leontiy Volodin <lvol at>
- New version ( with rpmgs script.

* Thu Nov 19 2020 Leontiy Volodin <lvol at>
- Fixed BuildRequires.

* Mon Oct 12 2020 Leontiy Volodin <lvol at>
- New version ( with rpmgs script.

* Fri Sep 11 2020 Leontiy Volodin <lvol at>
- Initial build for ALT Sisyphus (thanks fedora for this spec).
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.