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 <bernd.wachter@jollamobile.com> - 0.19
- Use default domain values if no domain-specific values exist
* Wed Jan 16 2013 Pekka Lundstrom <pekka.lundstrom@jollamobile.com> - 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 <bernd.wachter@jollamobile.com> - 0.17
- Change flavour variable to flavourPattern, and export flavourName as well
* Tue Nov 27 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.16
- Added -tools subpackage
- Removed old obsoletes/provides for libssu
* Mon Nov 19 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.15
- install ssu.h to allow out of tree development using libssu
* Sun Nov 04 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.14
- Move device detection bits into configuration files
- Allow downloading authorized_keys file during rnd registration
* Thu Oct 25 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.13
- Fall back to imei environement variable for N9/N950/N900
* Wed Oct 24 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.12
- Add configurable URLs for credentials scope
* Sun Oct 21 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 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 <bernd.wachter@jollamobile.com> - 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
URL: https://github.com/nemomobile/ssu
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
%description
%{summary}.
%files
%defattr(-,root,root,-)
%{_libdir}/zypp/plugins/urlresolver/*
%{_bindir}/rndssu
%{_libdir}/*.so.*
%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
%defattr(-,root,root,-)
%attr(0664, root, ssu) %config(noreplace) %{_sysconfdir}/ssu/ssu.ini
%{_datadir}/ssu/*.ini
%package rnd-ui
Summary: Shiny user interface for %{name}
Group: System/Base
%description rnd-ui
%{summary}. With ponies!
%files rnd-ui
%defattr(-,root,root,-)
%{_bindir}/rndregisterui
%{_datadir}/applications/*.desktop
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
%{summary}.
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/ssu.h
%package tests
Summary: Unit tests for %{name}
Group: Development/Libraries
Requires: testrunner-lite
%description tests
%{summary}.
%files tests
%defattr(-,root,root,-)
/opt/tests/%{name}
%package tools
Summary: Tools for %{name}
Group: Development/Libraries
Requires: rpm
%description tools
%{summary}.
%files tools
%defattr(-,root,root,-)
%attr(0755, -, -) /usr/sbin/ssu-repos.sh
%prep
%setup -q
%build
qmake DEFINES+='TARGET_ARCH=\\\"\"%{_target_cpu}\"\\\"' -recursive
make %{?_smp_mflags}
%install
make INSTALL_ROOT=%{buildroot} install
mkdir -p %{buildroot}/%{_sysconfdir}/zypp/credentials.d
%pre
groupadd -rf ssu
USER=$(getent passwd 1000 | cut -d: -f1)
if [ -n "$USER" ]; then
usermod -a -G ssu $USER
fi
if [ -f /etc/ssu/ssu.ini ]; then
chgrp ssu /etc/ssu/ssu.ini
chmod 664 /etc/ssu/ssu.ini
fi
%postun
/sbin/ldconfig
if [ "$1" == 0 ]; then
getent group ssu >/dev/null && groupdel ssu
fi
%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