Skip to content

Commit

Permalink
[packaging] move to git packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Islam Amer committed May 19, 2013
1 parent cdbacf3 commit 3b2adac
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 0 deletions.
32 changes: 32 additions & 0 deletions rpm/profiled.changes
@@ -0,0 +1,32 @@
* Sat Feb 09 2013 Juho Hämäläinen <juho.hamalainen@tieto.com> - 0.30.2.1
- Split profiled default settings to separate package.

* Tue Aug 21 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.30.2.1
- Fix compile with new glib: profiled-0.30.2.1-fix-linking-with-new-glib.patch

* Mon Oct 24 2011 Marko Saukko <marko.saukko@cybercom.com> - 0.30.2.1
- Added .yaml for spectacle.

* Fri Jun 10 2011 Gabor Juhasz <ext-gabor.2.juhasz@nokia.com> - 0.30.2.1
- Initial version of profiled in DE
- BMC#18877

* Wed Mar 09 2011 David Kedves <dkedves@blumsoft.eu> - 0.30.2.1
- Removed meego-handset-sounds-theme dependency

* Tue Feb 08 2011 Gabor Juhasz <ext-gabor.2.juhasz@nokia.com> - 0.30.2.1
- Added missing meego-handset-sound-theme dependency to spec file

* Fri Feb 03 2011 Gabor Juhasz <ext-gabor.2.juhasz@nokia.com> - 0.30.2.1
- FEA#2889
- BMC#12855

* Fri Feb 03 2011 Gabor Juhasz <ext-gabor.2.juhasz@nokia.com> - 0.30.2.1
- Adding missing ini file : 10.meego_default.ini into profiled package
- Removing debian/copyright & changelog files from spec file
- Adding new ini file to spec
- Editing group

* Fri Jan 28 2011 Gabor Juhasz <ext-gabor.2.juhasz@nokia.com> - 0.30.1.1
- Initial packaging

151 changes: 151 additions & 0 deletions rpm/profiled.spec
@@ -0,0 +1,151 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.26
#

Name: profiled

# >> macros
# << macros

Summary: Profile daemon, manages user settings
Version: 0.30.2.1
Release: 1
Group: System/System Control
License: LGPLv2.1
URL: http://meego.gitorious.org/meego-middleware/profiled
Source0: %{name}-%{version}.tar.bz2
Source100: profiled.yaml
Requires: profiled-settings
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: doxygen

%description
Gets default set of settings from profile data packages
that are installed on the device .

Currently active profile and values within profile can
be changed using C language API implemented in libprofile.

Changes to values are broadcast as D-Bus signals so that
active clients can be avare of changes without polling.


%package doc
Summary: API documentation for libprofile
Group: Documentation
Requires: %{name} = %{version}-%{release}

%description doc
Doxygen generated files documenting the C language API used by
the client applications and the D-Bus API used by libprofile
for communication with profiled.


%package -n profileclient
Summary: Command line test tool for profiled
Group: Development/Tools
Requires: %{name} = %{version}-%{release}

%description -n profileclient
The profileclient tool can be used to query/change
profiles and profile values.


%package settings-default
Summary: Default settings for profiled
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Provides: profiled-settings

%description settings-default
Default settings for profiled.


%package devel
Summary: Development files for libprofile
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
C language headers for building client applications using
profiled library.


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre



# >> build post

# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre

# >> install post
make ROOT=%{buildroot} install-profiled
make ROOT=%{buildroot} install-libprofile
make ROOT=%{buildroot} install-libprofile-dev
make ROOT=%{buildroot} install-libprofile-doc
make ROOT=%{buildroot} install-profileclient
rm %{buildroot}/%{_libdir}/libprofile.a
# << install post

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
# >> files
%config(noreplace) %{_sysconfdir}/osso-backup/applications/profiled.conf
%{_sysconfdir}/osso-cud-scripts/profiled.sh
%{_sysconfdir}/osso-rfs-scripts/profiled.sh
%dir %{_sysconfdir}/profiled
%{_bindir}/%{name}
%{_libdir}/libprofile.so.*
%{_datadir}/backup-framework/applications/profiled.conf
%{_datadir}/dbus-1/services/profiled.service
# << files

%files doc
%defattr(-,root,root,-)
# >> files doc
%{_docdir}/libprofile-doc/html/*
%{_mandir}/man3/*
# << files doc

%files -n profileclient
%defattr(-,root,root,-)
# >> files profileclient
%{_bindir}/profileclient
# << files profileclient

%files settings-default
%defattr(-,root,root,-)
# >> files settings-default
%{_sysconfdir}/profiled/10.meego_default.ini
# << files settings-default

%files devel
%defattr(-,root,root,-)
# >> files devel
%{_includedir}/%{name}/*
%{_libdir}/libprofile.so
%{_libdir}/pkgconfig/profile.pc
# << files devel
61 changes: 61 additions & 0 deletions rpm/profiled.yaml
@@ -0,0 +1,61 @@
Name: profiled
Summary: Profile daemon, manages user settings
Version: 0.30.2.1
Release: 1
Group: System/System Control
License: LGPLv2.1
URL: http://meego.gitorious.org/meego-middleware/profiled
Sources:
- "%{name}-%{version}.tar.bz2"
Requires:
- profiled-settings
Description: |
Gets default set of settings from profile data packages
that are installed on the device .
Currently active profile and values within profile can
be changed using C language API implemented in libprofile.
Changes to values are broadcast as D-Bus signals so that
active clients can be avare of changes without polling.
PkgBR:
- doxygen
PkgConfigBR:
- dbus-1
- dbus-glib-1
- glib-2.0
Configure: none
Builder: none
SubPackages:
- Name: doc
Summary: API documentation for libprofile
Group: Documentation
Description: |
Doxygen generated files documenting the C language API used by
the client applications and the D-Bus API used by libprofile
for communication with profiled.
- Name: profileclient
AsWholeName: yes
Summary: Command line test tool for profiled
Group: Development/Tools
Description: |
The profileclient tool can be used to query/change
profiles and profile values.
- Name: settings-default
Summary: Default settings for profiled
Group: System/Libraries
Provides:
- profiled-settings
Description: |
Default settings for profiled.
- Name: devel
Summary: Development files for libprofile
Group: Development/Libraries
Description: |
C language headers for building client applications using
profiled library.

0 comments on commit 3b2adac

Please sign in to comment.