## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond check 1 # https://github.com/linuxdeepin/dde-api %global goipath github.com/linuxdeepin/dde-api Version: 6.0.11 %global tag 6.0.11 %gometa -L Name: deepin-api Release: %autorelease Summary: Go-lang bingding for dde-daemon License: GPL-3.0-or-later URL: %{gourl} Source0: %{gosource} BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(cairo-ft) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0) BuildRequires: pkgconfig(gudev-1.0) BuildRequires: pkgconfig(libcanberra) BuildRequires: pkgconfig(libpulse-simple) BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(poppler-glib) BuildRequires: pkgconfig(polkit-qt5-1) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xcursor) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xi) BuildRequires: deepin-gettext-tools BuildRequires: make BuildRequires: systemd-rpm-macros %{?systemd_requires} Requires: deepin-desktop-base Requires: rfkill %description %{summary}. %package -n golang-deepin-api-devel Summary: %{summary} BuildArch: noarch %description -n golang-deepin-api-devel %{summary}. This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %goprep -A %autopatch -p1 sed -i 's|boot/grub/|boot/grub2/|' adjust-grub-theme/main.go # add targets to print the binaries and libraries, so we can build/install them # in Fedora style cat <> Makefile print_binaries: @echo \${BINARIES} print_libraries: @echo \${LIBRARIES} EOF %generate_buildrequires %go_generate_buildrequires %build make prepare # upstream Makefile expects binaries generated to out/bin for cmd in $(make print_binaries); do %gobuild -o out/bin/$cmd %{goipath}/$cmd done # don't build binaries or libraries based on Makefile %make_build ts-to-policy %install # install dev libraries mannally gofiles=$(find $(make print_libraries) %{?gofindfilter} -print) %goinstall $gofiles # install binaries based on Makefile make DESTDIR=%{buildroot} SYSTEMD_SERVICE_DIR="%{_unitdir}" GOBUILD_DIR=_build install-binary install -pDm 0644 archlinux/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.conf # Move sound-theme-player to %%{libexec}/%%{name} to get proper SELinux type mkdir -p %{buildroot}%{_libexecdir}/%{name} mv -v %{buildroot}%{_prefix}/lib/%{name}/sound-theme-player \ %{buildroot}%{_libexecdir}/%{name} ln -s ../../libexec/%{name}/sound-theme-player \ %{buildroot}%{_prefix}/lib/%{name}/sound-theme-player %if %{with check} %check %gocheck %endif %pre %sysusers_create_compat archlinux/%{name}.sysusers %post %systemd_post deepin-shutdown-sound.service %preun %systemd_preun deepin-shutdown-sound.service %postun %systemd_postun_with_restart deepin-shutdown-sound.service %files %doc README.md %license LICENSE %{_bindir}/dde-open %dir %{_libexecdir}/deepin-api %{_libexecdir}/deepin-api/sound-theme-player %dir %{_prefix}/lib/deepin-api %{_prefix}/lib/deepin-api/* %{_unitdir}/*.service %{_datadir}/dbus-1/services/*.service %{_datadir}/dbus-1/system-services/*.service %{_datadir}/dbus-1/system.d/*.conf %{_datadir}/icons/hicolor/*/actions/* %dir %{_datadir}/dde-api %dir %{_datadir}/dde-api/data %dir %{_datadir}/dde-api/data/grub-themes %{_datadir}/dde-api/data/grub-themes/deepin-fallback/ %{_datadir}/dde-api/data/grub-themes/deepin/ %{_datadir}/dde-api/data/huangli.db %{_datadir}/dde-api/data/huangli.version %{_datadir}/dde-api/data/pkg_depends %{_datadir}/polkit-1/actions/*.policy %{_var}/lib/polkit-1/localauthority/10-vendor.d/org.deepin.dde.device.pkla %{_sysusersdir}/deepin-api.conf %files -n golang-deepin-api-devel -f devel.file-list %changelog ## START: Generated by rpmautospec * Tue Aug 13 2024 Felix Wang - 6.0.11-1 - 6.0.11 * Thu Jul 25 2024 Miroslav Suchý - 5.5.32-6 - convert GPLv3+ license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 5.5.32-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 5.5.32-4 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 5.5.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 5.5.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Aug 19 2023 Robin Lee - 5.5.32-1 - New release 5.5.32 * Wed Jul 19 2023 Fedora Release Engineering - 5.5.25-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 5.5.25-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Aug 21 2022 Robin Lee - 5.5.25-1 - New release 5.5.25 * Thu Jul 21 2022 Fedora Release Engineering - 5.4.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 5.4.11-5 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 5.4.11-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Fri Jun 17 2022 Robert-André Mauchin - 5.4.11-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 5.4.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Oct 01 2021 Robin Lee - 5.4.11-1 - New release 5.4.11 * Mon Sep 06 2021 Robin Lee - 5.4.9-1 - New release 5.4.9 * Wed Jul 21 2021 Fedora Release Engineering - 5.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Mar 11 2021 Robin Lee - 5.3.2-1 - chore(calendar): 更新2021年放假安排 (lichangze) - chore(coverage): test coverage statistics (hubenchang0515) - chore: debian 目录增加 abi.json 文件 (wubowen) - chore: fix lintian (lichangze) * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 5.3.0.12-3 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 5.3.0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Oct 21 2020 Robin Lee - 5.3.0.12-1 - new upstream release: 5.3.0.12 * Sat Aug 01 2020 Fedora Release Engineering - 5.0.0-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 5.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 5.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 9 2020 Robin Lee - 5.0.0-2 - Fix installation of polkit rules * Mon Aug 5 2019 Robin Lee - 5.0.0-1 - Release 5.0.0 * Wed Jul 24 2019 Fedora Release Engineering - 3.17.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue May 28 2019 Robin Lee - 3.17.0-2 - Fix a security issue * Tue Feb 26 2019 mosquito - 3.17.0-1 - Update to 3.17.0 * Tue Feb 19 2019 Kalev Lember - 3.16.0-2 - Rebuilt against fixed atk (#1626575) * Thu Jan 31 2019 mosquito - 3.16.0-1 - Update to 3.16.0 * Thu Jan 31 2019 Robin Lee - 3.12.0-3 - Create deepin-sound-player user * Thu Jan 31 2019 Fedora Release Engineering - 3.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 12 2018 mosquito - 3.12.0-1 - Update to 3.12.0 * Thu Nov 29 2018 mosquito - 3.10.0-1 - Update to 3.10.0 * Wed Nov 21 2018 mosquito - 3.9.0-1 - Update to 3.9.0 * Fri Nov 9 2018 mosquito - 3.5.0-1 - Update to 3.5.0 * Sat Aug 25 2018 mosquito - 3.1.26-1 - Update to 3.1.26 - build error with gobject-introspection 1.58 by gir-generator https://github.com/linuxdeepin/developer-center/issues/604 * Tue Jul 31 2018 Florian Weimer - 3.1.20-3 - Rebuild with fixed binutils * Thu Jul 12 2018 Fedora Release Engineering - 3.1.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 16 2018 mosquito - 3.1.20-1 - Update to 3.1.20 * Wed Feb 07 2018 Fedora Release Engineering - 3.1.18.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 11 2018 Igor Gnatenko - 3.1.18.1-2 - Remove obsolete scriptlets * Thu Dec 21 2017 mosquito - 3.1.18.1-1 - Update to 3.1.18.1 * Wed Nov 15 2017 mosquito - 3.1.17-1 - Update to 3.1.17 * Fri Oct 27 2017 mosquito - 3.1.15-1 - Update to 3.1.15 * Mon Oct 16 2017 mosquito - 3.1.14-2 - Fix out of memory on armv7hl * Sat Oct 14 2017 mosquito - 3.1.14-1 - Update to 3.1.14 * Sat Aug 26 2017 mosquito - 3.1.13-1 - Update to 3.1.13 * Tue Aug 8 2017 mosquito - 3.1.11-2 - Rename deepin-api-devel to golang-deepin-api-devel * Tue Aug 1 2017 mosquito - 3.1.11-1 - Update to 3.1.11 * Fri Jul 14 2017 mosquito - 3.1.10-1.git79125e7 - Update to 3.1.10 * Fri May 19 2017 mosquito - 3.1.7-1.git4c8e030 - Update to 3.1.7 * Sun Feb 26 2017 mosquito - 3.1.2-1.gitf93dbd7 - Update to 3.1.2 * Tue Jan 17 2017 mosquito - 3.0.16.1-1.gitcfdb295 - Update to 3.0.16.1 * Mon Jan 16 2017 Jaroslav Stepanek 3.0.16-1 - Update to version 3.0.16 * Sun Dec 18 2016 Jaroslav Stepanek 3.0.15-1 - Update to version 3.0.15 * Wed Dec 07 2016 Jaroslav Stepanek 3.0.14-2 - Changed compilation procedure * Wed Sep 28 2016 Jaroslav Stepanek 3.0.14-1 - Initial package build ## END: Generated by rpmautospec