Accepting request 107174 from home:vuntz:branches:Base:System
New version of udisks, parallel installable with udisks 1.x; I know the rpmlintrc is bad, but I want to get a legal review ASAP; the security review is handled in bnc#742751 OBS-URL: https://build.opensuse.org/request/show/107174 OBS-URL: https://build.opensuse.org/package/show/Base:System/udisks2?expand=0&rev=1
This commit is contained in:
commit
21497964fa
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
udisks-1.92.0.tar.bz2
Normal file
3
udisks-1.92.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6b8a623ede32dfe32d7e4b0a9af9ff438cc786b21ab68529512f286e77b7142
|
||||
size 581479
|
3
udisks2-rpmlintrc
Normal file
3
udisks2-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
# All of those are tracked in bnc#742751
|
||||
setBadness("suse-dbus-unauthorized-service", 100)
|
||||
setBadness("polkit-unauthorized-privilege", 100)
|
48
udisks2.changes
Normal file
48
udisks2.changes
Normal file
@ -0,0 +1,48 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 12:57:10 UTC 2012 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 1.92.0:
|
||||
+ client: Fix bit shifts of flags on 32 bit
|
||||
+ Avoid using $XDG_RUNTIME_DIR/media for now
|
||||
+ Don't free object twice when deleting a loop device
|
||||
+ Use /run/media/$USER for mounting
|
||||
+ Move to /usr-only setup and get rid of hardcoded paths to /lib
|
||||
and sbin
|
||||
- Changes from version 1.91.0:
|
||||
+ Install a systemd service file if systemd is used
|
||||
+ Ensure PATH is set
|
||||
+ Fix use of memset(3)
|
||||
+ Use org.freedesktop.UDisks2.* for errors, not
|
||||
org.freedesktop.UDisks.*
|
||||
+ For mount options, switch from comment=udisks to x-udisks
|
||||
+ Prefer mounting in /run/user/$USER/media instead of /media
|
||||
+ With /media and /run on tmfs, switch to temporary store for
|
||||
mounted-fs
|
||||
+ Make sure that Drive:SortKey sorts e.g. sdz before sdaa
|
||||
+ Do coldplug for block devices twice
|
||||
+ Use g_dbus_interface_dup_object() and check return value
|
||||
+ Shut up valgrind complaing about LOOP_GET_STATUS64 ioctl
|
||||
+ Fix a couple of uninitialized warnings and simplify SMART
|
||||
self-test handling
|
||||
+ udisksctl:
|
||||
- nuke PORT column in output of 'status' verb
|
||||
- sort the drives using Drive:SortKey for 'status' verb
|
||||
+ Documentation fixes.
|
||||
+ Build fixes.
|
||||
+ Updated translations.
|
||||
- Add systemd-related packaging:
|
||||
+ Add pkgconfig(systemd) BuildRequires.
|
||||
+ Use %{?systemd_requires}.
|
||||
+ Call %service_{add,del}_* macros in scriptlets for
|
||||
udisks2.service.
|
||||
- Add pkgconfig(udev) BuildRequires, now needed to find right path
|
||||
for udev files.
|
||||
- Add libacl-devel BuildRequires, now needed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 21 10:02:13 UTC 2012 - vuntz@opensuse.org
|
||||
|
||||
- New udisks2 source package, based on udisks source package.
|
||||
- First version (1.90.0).
|
||||
- udisks 2.x is parallel-installable with udisks 1.x.
|
||||
|
157
udisks2.spec
Normal file
157
udisks2.spec
Normal file
@ -0,0 +1,157 @@
|
||||
#
|
||||
# spec file for package udisks2
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: udisks2
|
||||
%define _name udisks
|
||||
Version: 1.92.0
|
||||
Release: 1
|
||||
License: GPL-2.0+
|
||||
Summary: Disk Management Service, version 2
|
||||
Url: http://www.freedesktop.org/wiki/Software/udisks
|
||||
Group: System/Daemons
|
||||
Source: http://udisks.freedesktop.org/releases/%{_name}-%{version}.tar.bz2
|
||||
# FIXME: can be dropped once bnc#742751 is fixed
|
||||
Source99: %{name}-rpmlintrc
|
||||
# Needed to build the man pages
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libacl-devel
|
||||
# For xsltproc
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.31.13
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.31.13
|
||||
BuildRequires: pkgconfig(gudev-1.0) >= 147
|
||||
BuildRequires: pkgconfig(libatasmart) >= 0.17
|
||||
BuildRequires: pkgconfig(polkit-agent-1) >= 0.92
|
||||
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.92
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
Recommends: %{name}-lang
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{?systemd_requires}
|
||||
|
||||
# Upstream First - Policy:
|
||||
# Never add any patches to this package without the upstream commit id
|
||||
# in the patch. Any patches added here without a very good reason to make
|
||||
# an exception will be silently removed with the next version update.
|
||||
|
||||
%description
|
||||
udisks provides a daemon, D-Bus API and command line tools
|
||||
for managing disks and storage devices.
|
||||
|
||||
%package -n libudisks2-0
|
||||
License: LGPL-2.0+
|
||||
Summary: UDisks Client Library, version 2
|
||||
Group: System/Libraries
|
||||
Recommends: %{name} = %{version}
|
||||
|
||||
%description -n libudisks2-0
|
||||
udisks provides a daemon, D-Bus API and command line tools
|
||||
for managing disks and storage devices.
|
||||
|
||||
%package -n typelib-1_0-UDisks-2_0
|
||||
License: LGPL-2.0+
|
||||
Summary: UDisks Client Library, version 2 -- Introspection bindings
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n typelib-1_0-UDisks-2_0
|
||||
udisks provides a daemon, D-Bus API and command line tools
|
||||
for managing disks and storage devices.
|
||||
|
||||
This package provides the GObject Introspection bindings for
|
||||
the UDisks client library.
|
||||
|
||||
%package devel
|
||||
License: LGPL-2.0+
|
||||
Summary: Disk Management Service, version 2 -- Development Files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libudisks2-0 = %{version}
|
||||
|
||||
%description devel
|
||||
udisks provides a daemon, D-Bus API and command line tools
|
||||
for managing disks and storage devices.
|
||||
|
||||
%lang_package
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
|
||||
%build
|
||||
export V=1
|
||||
%configure \
|
||||
--disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
||||
%find_lang %{name}
|
||||
|
||||
%pre
|
||||
%service_add_pre udisks2.service
|
||||
|
||||
%post
|
||||
%service_add_post udisks2.service
|
||||
|
||||
%preun
|
||||
%service_del_preun udisks2.service
|
||||
|
||||
%postun
|
||||
%service_del_postun udisks2.service
|
||||
|
||||
%post -n libudisks2-0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libudisks2-0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING NEWS README
|
||||
%{_unitdir}/udisks2.service
|
||||
/lib/udev/rules.d/80-udisks2.rules
|
||||
%{_sbindir}/umount.udisks2
|
||||
%{_bindir}/udisksctl
|
||||
%dir %{_libexecdir}/udisks2
|
||||
%{_libexecdir}/udisks2/udisksd
|
||||
%{_sysconfdir}/bash_completion.d/udisksctl-bash-completion.sh
|
||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy
|
||||
%{_mandir}/man1/udisksctl.1%{?ext_man}
|
||||
%{_mandir}/man8/udisks.8%{?ext_man}
|
||||
%{_mandir}/man8/udisksd.8%{?ext_man}
|
||||
%attr(0770,root,root) %dir %{_localstatedir}/lib/udisks2
|
||||
|
||||
%files -n libudisks2-0
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING NEWS README
|
||||
%{_libdir}/libudisks2.so.*
|
||||
|
||||
%files -n typelib-1_0-UDisks-2_0
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/udisks2/
|
||||
%{_libdir}/libudisks2.so
|
||||
%{_libdir}/pkgconfig/udisks2.pc
|
||||
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
||||
%doc %{_datadir}/gtk-doc/html/udisks2/
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user