Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dnfdaemon
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
manatools
dnfdaemon
Commits
cb80f4d4
Commit
cb80f4d4
authored
8 years ago
by
Neal Gompa
Browse files
Options
Downloads
Patches
Plain Diff
Finalize spec for 0.3.17 release
parent
97e172f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dnfdaemon.spec
+101
-43
101 additions, 43 deletions
dnfdaemon.spec
with
101 additions
and
43 deletions
dnfdaemon.spec
+
101
−
43
View file @
cb80f4d4
%global dnf_org org.baseurl.Dnf
%global dnf_org org.baseurl.Dnf
%global dnf_version 2.2.0
%global dnf_version 2.2.0
%global dnf_nocompat 3.0
Name: dnfdaemon
Name: dnfdaemon
Version: 0.3.1
6
Version: 0.3.1
7
Release: 1%{?dist}
Release: 1%{?dist}
Summary: DBus daemon for dnf package actions
Summary: DBus daemon for dnf package actions
License: GPLv2+
License: GPLv2+
URL: https://github.com/
timlau
/dnf
-
daemon
URL: https://github.com/
manatools
/dnfdaemon
Source0:
https://github.com/timlau/dnf-daemon
/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
Source0:
%{url}
/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-devel
BuildRequires: make
# Ensure systemd macros are available
%if 0%{?mageia}
BuildRequires: systemd-devel
%else
BuildRequires: systemd
BuildRequires: systemd
%endif
# Ensure that correct pygobject module is available
%if 0%{?mageia}
Requires: python3-gobject3
%else
Requires: python3-gobject
Requires: python3-gobject
%endif
Requires: python3-dbus
Requires: python3-dbus
Requires: python3-dnf >= %{dnf_version}
Requires: python3-dnf >= %{dnf_version}
Conflicts: python3-dnf >= %{dnf_nocompat}
Requires: polkit
Requires: polkit
%if 0%{?fedora} >= 23
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
Dbus daemon for performing package actions with the dnf package manager
%package selinux
Summary: SELinux integration for dnfdaemon
Requires: %{name} = %{version}-%{release}
%if 0%{?fedora} >= 23 || 0%{?mageia} >= 6
Requires(post): policycoreutils-python-utils
Requires(post): policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils
%else
%else
...
@@ -25,61 +55,61 @@ Requires(post): policycoreutils-python
...
@@ -25,61 +55,61 @@ Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
Requires(postun): policycoreutils-python
%endif
%endif
Requires(post): systemd
# Use boolean weak reverse dependencies
Requires(preun): systemd
# http://rpm.org/user_doc/dependencies.html#weak-dependencies
Requires(postun): systemd
# http://rpm.org/user_doc/boolean_dependencies.html
Supplements: (dnfdaemon and selinux-policy)
%description
%description selinux
Dbus daemon for performing package actions with the dnf package manager
Metapackage customizing the SELinux policy to ensure dnfdaemon works with
SELinux enabled in enforcing mode.
%prep
%setup -q
%build
%package -n python2-%{name}
# Nothing to build
Summary: Python 2 API for communicating with %{name}
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
%if 0%{?mageia}
Requires: python-gobject3
%else
Requires: python-gobject
%endif
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
Python 2 API for communicating with %{name}.
%install
make install DESTDIR=$RPM_BUILD_ROOT DATADIR=%{_datadir} SYSCONFDIR=%{_sysconfdir}
%package -n python3-%{name}
%package -n python3-%{name}
Summary: Python 3
api
for communicating with
the dnf-daemon DBus service
Summary: Python 3
API
for communicating with
%{name}
Group: Applications/System
BuildRequires: python3-devel
BuildRequires: python3-devel
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
%if 0%{?mageia}
Requires: python3-gobject3
%else
Requires: python3-gobject
Requires: python3-gobject
%endif
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
%description -n python3-%{name}
Python 3
api
for communicating with
the dnf-daemon DBus service
Python 3
API
for communicating with
%{name}.
%package -n python2-%{name}
Summary: Python 2 api for communicating with the dnf-daemon DBus service
Group: Applications/System
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
Requires: pygobject3
Provides: python-%{name} = %{version}-%{release}
%
description -n python-%{name}
%
prep
Python 2 api for communicating with the dnf-daemon DBus service
%autosetup
%post
%build
# apply the right selinux file context
# Nothing to build
# http://fedoraproject.org/wiki/PackagingDrafts/SELinux#File_contexts
semanage fcontext -a -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
restorecon -R %{_datadir}/%{name}/%{name}-system || :
%systemd_post %{name}.service
%postun
%install
if [ $1 -eq 0 ] ; then # final removal
make install DESTDIR=%{buildroot} DATADIR=%{_datadir} SYSCONFDIR=%{_sysconfdir}
semanage fcontext -d -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
fi
%systemd_postun %{name}.service
%preun
%systemd_preun %{name}.service
%files
%files
%doc README.md ChangeLog COPYING
%doc README.md ChangeLog
%license COPYING
%{_datadir}/dbus-1/system-services/%{dnf_org}*
%{_datadir}/dbus-1/system-services/%{dnf_org}*
%{_datadir}/dbus-1/services/%{dnf_org}*
%{_datadir}/dbus-1/services/%{dnf_org}*
%{_datadir}/%{name}/
%{_datadir}/%{name}/
...
@@ -92,13 +122,41 @@ fi
...
@@ -92,13 +122,41 @@ fi
%{python3_sitelib}/%{name}/server
%{python3_sitelib}/%{name}/server
%files -n python-%{name}
%files -n python
2
-%{name}
%{python_sitelib}/%{name}
%{python
2
_sitelib}/%{name}
/
%files -n python3-%{name}
%files -n python3-%{name}
%{python3_sitelib}/%{name}/client
%{python3_sitelib}/%{name}/client
%post
%systemd_post %{name}.service
%postun
%systemd_postun %{name}.service
%preun
%systemd_preun %{name}.service
%post selinux
# apply the right selinux file context
# http://fedoraproject.org/wiki/PackagingDrafts/SELinux#File_contexts
semanage fcontext -a -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
restorecon -R %{_datadir}/%{name}/%{name}-system || :
%postun selinux
if [ $1 -eq 0 ] ; then # final removal
semanage fcontext -d -t rpm_exec_t '%{_datadir}/%{name}/%{name}-system' 2>/dev/null || :
fi
%changelog
%changelog
* Fri Apr 14 2017 Neal Gompa <ngompa13@gmail.com> 0.3.17-1
- Require dnf-2.2.0 due to usage and expectation of new APIs
- Change to have SELinux subpackage weak installed
based on solution by Kevin Kofler (rhbz#1395531)
- Rework spec file to support Fedora and Mageia
* Wed May 25 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.16-1
* Wed May 25 2016 Tim Lauridsen <timlau@fedoraproject.org> 0.3.16-1
- bumped release
- bumped release
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment