Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Christian Kellner
cc1a831c52 Add systemd snippets and use macros for paths
Add the required systemd snippets[1] and use macros for the udev
rules and unit directories.
Also mark "%{_datadir}/gtk-doc" as directory as to avoid warnings
about duplicated entries, e.g:
  "warning: File listed twice: /usr/share/gtk-doc/html/UPower"

[1] https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#Systemd
2019-11-06 10:53:18 +01:00
Christian Kellner
e297dd0dc3 New upstream release (0.99.11)
Following changes to the package:
  - Intltool has been replaced by gettext
  - D-Bus configuration moved from sysconfdir to datadir
  - systemd is creating /var/lib/upower, so 'ghost' the dir
2019-11-06 10:53:12 +01:00
3 changed files with 29 additions and 9 deletions

1
.gitignore vendored
View file

@ -32,3 +32,4 @@ upower-0.9.5.tar.bz2
/upower-0.99.8.tar.xz
/upower-0.99.9.tar.xz
/upower-0.99.10.tar.xz
/upower-0.99.11.tar.xz

View file

@ -1 +1 @@
SHA512 (upower-0.99.10.tar.xz) = aefe1b2ff5a390f1ea9676fe7e753750bebc56034365a9183e946a8463904047da0a4ac71340eb2efedc16bce6f6d9ef4609ddca37dc1fc31b56bcdbfbbfa59d
SHA512 (upower-0.99.11.tar.xz) = 67219a0beb98c97ac4512e4fe8ba83fc80a1035d1edb5367dda6911da50c672b047051f2f528e8703be29ab47547d92b6c71a7ef695226a1bdb5bc33e6d18803

View file

@ -1,7 +1,7 @@
%global commit c438511024b9bc5a904f8775cfc8e4c4
%global commit 93cfe7c8d66ed486001c4f3f55399b7a
Summary: Power Management Service
Name: upower
Version: 0.99.10
Version: 0.99.11
Release: 2%{?dist}
License: GPLv2+
URL: http://upower.freedesktop.org/
@ -9,7 +9,6 @@ Source0: https://gitlab.freedesktop.org/upower/upower/uploads/%{commit}/%
BuildRequires: sqlite-devel
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: gettext
BuildRequires: libgudev1-devel
%ifnarch s390 s390x
@ -70,16 +69,25 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%ldconfig_scriptlets
%post
%systemd_post upower.service
%preun
%systemd_preun upower.service
%postun
%systemd_postun_with_restart upower.service
%files -f upower.lang
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc NEWS AUTHORS HACKING README
%{_libdir}/libupower-glib.so.*
%{_sysconfdir}/dbus-1/system.d/*.conf
%{_datadir}/dbus-1/system.d/*.conf
%ifnarch s390 s390x
/usr/lib/udev/rules.d/*.rules
%{_udevrulesdir}/*.rules
%endif
%dir %{_localstatedir}/lib/upower
%ghost %dir %{_localstatedir}/lib/upower
%dir %{_sysconfdir}/UPower
%config %{_sysconfdir}/UPower/UPower.conf
%{_bindir}/*
@ -89,7 +97,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_mandir}/man7/*
%{_mandir}/man8/*
%{_datadir}/dbus-1/system-services/*.service
/usr/lib/systemd/system/*.service
%{_unitdir}/*.service
%files devel
%{_datadir}/dbus-1/interfaces/*.xml
@ -101,11 +109,22 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_includedir}/libupower-glib/upower.h
%files devel-docs
%{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html/UPower
%{_datadir}/gtk-doc/html/UPower/*
%changelog
* Wed Sep 4 2019 Christian Kellner <ckellner@redhat.com> - 0.99.11-2
- Add systemd service snippets
- Use macros for _unitdir and _udevrulesdir
- Mark _datadir/gtk-doc as directory
* Tue Sep 3 2019 Christian Kellner <ckellner@redhat.com> - 0.99.11-1
- New upstream release 0.99.11
- Intltool has been replaced by gettext
- D-Bus configuration moved from sysconfdir to datadir
- Systemd is creating /var/lib/upower, so 'ghost' the dir
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild