Commit 649f47c2 authored by Aard's avatar Aard

Add packaging files to rpm/ to prepare for githooks

parent afae7d17
* Tue Jan 29 2013 Bernd Wachter <> - 0.19
- Use default domain values if no domain-specific values exist
* Wed Jan 16 2013 Pekka Lundstrom <> - 0.18
- Added domain support for registration
- Added support to remove old values from config by using ssu-defaults.ini
* Thu Dec 20 2012 Bernd Wachter <> - 0.17
- Change flavour variable to flavourPattern, and export flavourName as well
* Tue Nov 27 2012 Marko Saukko <> - 0.16
- Added -tools subpackage
- Removed old obsoletes/provides for libssu
* Mon Nov 19 2012 Bernd Wachter <> - 0.15
- install ssu.h to allow out of tree development using libssu
* Sun Nov 04 2012 Bernd Wachter <> - 0.14
- Move device detection bits into configuration files
- Allow downloading authorized_keys file during rnd registration
* Thu Oct 25 2012 Bernd Wachter <> - 0.13
- Fall back to imei environement variable for N9/N950/N900
* Wed Oct 24 2012 Bernd Wachter <> - 0.12
- Add configurable URLs for credentials scope
* Sun Oct 21 2012 Bernd Wachter <> - 0.11
- Allow user URLs in ssu.ini
- Don't allow phones without IMEI to register
- Add update mechanism for ssu.ini
* Mon Oct 08 2012 Bernd Wachter <> - 0.10
- Initial open source version
Name: ssu
Version: 0.19
Release: 1
Summary: SSU enabler for RND
Group: System/Base
License: Proprietary
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(libzypp)
BuildRequires: pkgconfig(QtSystemInfo)
BuildRequires: pkgconfig(qt-boostable)
Requires(pre): shadow-utils
Requires(postun): shadow-utils
Requires: ssu-vendor-data
%dir %{_sysconfdir}/zypp/credentials.d
%package vendor-data-example
Summary: Sample vendor configuration data
Group: System/Base
%description vendor-data-example
%{summary}. A vendor (including Nemo) is supposed to put those configuration on device.
%files vendor-data-example
%attr(0664, root, ssu) %config(noreplace) %{_sysconfdir}/ssu/ssu.ini
%package rnd-ui
Summary: Shiny user interface for %{name}
Group: System/Base
%description rnd-ui
%{summary}. With ponies!
%files rnd-ui
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
%files devel
%package tests
Summary: Unit tests for %{name}
Group: Development/Libraries
Requires: testrunner-lite
%description tests
%files tests
%package tools
Summary: Tools for %{name}
Group: Development/Libraries
Requires: rpm
%description tools
%files tools
%attr(0755, -, -) /usr/sbin/
%setup -q
qmake DEFINES+='TARGET_ARCH=\\\"\"%{_target_cpu}\"\\\"' -recursive
make %{?_smp_mflags}
make INSTALL_ROOT=%{buildroot} install
mkdir -p %{buildroot}/%{_sysconfdir}/zypp/credentials.d
groupadd -rf ssu
USER=$(getent passwd 1000 | cut -d: -f1)
if [ -n "$USER" ]; then
usermod -a -G ssu $USER
if [ -f /etc/ssu/ssu.ini ]; then
chgrp ssu /etc/ssu/ssu.ini
chmod 664 /etc/ssu/ssu.ini
if [ "$1" == 0 ]; then
getent group ssu >/dev/null && groupdel ssu
%post -p /sbin/ldconfig
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