Commit fffe08fa authored by Carsten Munk's avatar Carsten Munk

[packaging] initial spec

parent 7578d2fe
This diff is collapsed.
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
Name: connman
# >> macros
# << macros
Summary: Connection Manager
Version: 1.15
Release: 1
Group: Communications/ConnMan
License: GPLv2
Source0: %{name}-%{version}.tar.bz2
Source1: connman.tracing
Source2: main.conf
Source100: connman.yaml
Requires: dbus >= 1.4
Requires: wpa_supplicant >= 0.7.1
Requires: bluez
Requires: ofono
Requires: pacrunner
Requires: connman-configs
Requires: systemd
Requires(preun): systemd
Requires(post): systemd
Requires(postun): systemd
BuildRequires: pkgconfig(xtables)
BuildRequires: pkgconfig(glib-2.0) >= 2.28
BuildRequires: pkgconfig(gthread-2.0) >= 2.16
BuildRequires: pkgconfig(dbus-1) >= 1.4
BuildRequires: pkgconfig(gnutls)
BuildRequires: openconnect
BuildRequires: openvpn
BuildRequires: readline-devel
Connection Manager provides a daemon for managing Internet connections
within embedded devices running the Linux operating system.
%package devel
Summary: Development files for Connection Manager
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
connman-devel contains development files for use with connman.
%package test
Summary: Test Scripts for Connection Manager
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: dbus-python
Requires: pygobject2
%description test
Scripts for testing Connman and its functionality
%package tracing
Summary: Configuration for Connection Manager to enable tracing
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description tracing
Will enable tracing for ConnMan
%package configs-mer
Summary: Package to provide default configs for connman
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Provides: connman-configs
%description configs-mer
This package provides default configs for connman, such as
%package docs
Summary: Documentation for connman
Group: Documentation
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
%description docs
Documentation for connman.
%setup -q -n %{name}-%{version}/connman
# >> build pre
# << build pre
%reconfigure --disable-static \
--enable-threads \
--enable-ethernet=builtin \
--enable-wifi=builtin \
--enable-bluetooth=builtin \
--enable-ofono=builtin \
--enable-openconnect=builtin \
--enable-openvpn=builtin \
--enable-loopback=builtin \
--enable-pacrunner=builtin \
--enable-client \
--enable-test \
make %{?jobs:-j%jobs}
# >> build post
# << build post
rm -rf %{buildroot}
# >> install pre
# << install pre
mkdir -p %{buildroot}%{_sysconfdir}/tracing/connman/
cp -a %{SOURCE1} %{buildroot}%{_sysconfdir}/tracing/connman/
mkdir -p %{buildroot}%{_sysconfdir}/connman/
cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/connman/
# >> install post
mkdir -p %{buildroot}/%{_lib}/systemd/system/
ln -s ../connman.service %{buildroot}/%{_lib}/systemd/system/
# << install post
# >> preun
if [ "$1" -eq 0 ]; then
systemctl stop connman.service
# << preun
# >> post
systemctl daemon-reload
# Do not restart connman here or network breaks.
# We can't reload it either as connman doesn't
# support that feature.
# << post
# >> postun
systemctl daemon-reload
# << postun
%config %{_sysconfdir}/dbus-1/system.d/*.conf
# >> files
# << files
%files devel
# >> files devel
# << files devel
%files test
# >> files test
# << files test
%files tracing
%config %{_sysconfdir}/tracing/connman
# >> files tracing
# << files tracing
%files configs-mer
%config %{_sysconfdir}/connman/main.conf
# >> files configs-mer
# << files configs-mer
%files docs
# >> files docs
# << files docs
FallbackTimeservers =,,,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment