diff --git a/rpm/ssu.changes b/rpm/ssu.changes new file mode 100644 index 0000000..ec50b63 --- /dev/null +++ b/rpm/ssu.changes @@ -0,0 +1,34 @@ +* 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 diff --git a/rpm/ssu.spec b/rpm/ssu.spec new file mode 100644 index 0000000..261d543 --- /dev/null +++ b/rpm/ssu.spec @@ -0,0 +1,124 @@ +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