Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[packaging] add rpm packaging
  • Loading branch information
Islam Amer committed May 30, 2013
1 parent a593e67 commit 35db153
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rpm/libngf.changes
@@ -0,0 +1,25 @@
* Wed Jan 23 2013 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.23
- Update and fix proplist implementation and tests

* Mon Dec 10 2012 Marko Saukko <marko.saukko@jollamobile.com> - 0.22
- Updated packaging.

* Mon Dec 03 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.22
- Update to latest (nemo) sources
- With latest ngfd, full support for playing notifications

* Sun Nov 18 2012 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.21
- Update to latest (Nemo) upstream version

* Thu Oct 20 2011 Marko Saukko <marko.saukko@cybercom.com> - 0.17
- Added spectacle and disabled documentation.

* Thu Feb 03 2011 Janne Mäntyharju <janne.mantyharju@digia.com> - 0.17
- Fixes: BMC#13346
- Added dependency to ngfd
- Removed obsolete event definitions
- Added pause and resume commands

* Fri Dec 10 2010 Janne Mäntyharju <janne.mantyharju@digia.com> - 0.16
- Initial MeeGo release
- FEA#2889
104 changes: 104 additions & 0 deletions rpm/libngf.spec
@@ -0,0 +1,104 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.26
#

Name: libngf

# >> macros
# << macros

Summary: Non-graphic feedback C-based client library
Version: 0.23
Release: 1
Group: System/Libraries
License: LGPL 2.1
URL: https://github.com/nemomobile/libngf
Source0: %{name}-%{version}.tar.gz
Source100: libngf.yaml
Requires: ngfd
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0) >= 2.18.0
BuildRequires: pkgconfig(dbus-1) >= 1.0.2
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(check)

%description
This package contains the C-based client library for accessing
Non-graphic feedback services.


%package client
Summary: Non-graphic feedback test client
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

%description client
Test client.

%package devel
Summary: Non-graphic feedback C-based development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
%{summary}.

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

# >> setup
# << setup

%build
# >> build pre
%autogen
#doxygen doc/doxygen.cfg
# << build pre


make %{?jobs:-j%jobs}

# >> build post
# << build post

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

# >> install post
#install -d %{buildroot}/usr/share/doc/libngf-doc/html/
#install -m 644 doc/html/* %{buildroot}/usr/share/doc/libngf-doc/html/
# << install post

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
# >> files
%doc COPYING
%{_libdir}/libngf0-0.1.so.*
# << files

%files client
%defattr(-,root,root,-)
# >> files client
%doc COPYING
%{_bindir}/ngf-client
# << files client

%files devel
%defattr(-,root,root,-)
# >> files devel
%doc COPYING
%{_libdir}/libngf0.so
%{_includedir}/%{name}-1.0/%{name}/ngf.h
%{_includedir}/%{name}-1.0/%{name}/proplist.h
%{_includedir}/%{name}-1.0/%{name}/client.h
%{_libdir}/pkgconfig/libngf0.pc
# << files devel
42 changes: 42 additions & 0 deletions rpm/libngf.yaml
@@ -0,0 +1,42 @@
Name: libngf
Summary: Non-graphic feedback C-based client library
Version: 0.23
Release: 1
Group: System/Libraries
License: LGPL 2.1
URL: https://github.com/nemomobile/libngf
Sources:
- "%{name}-%{version}.tar.gz"
Description: |
This package contains the C-based client library for accessing
Non-graphic feedback services.
Requires:
- ngfd
# PkgBR:
# - doxygen
PkgConfigBR:
- glib-2.0 >= 2.18.0
- dbus-1 >= 1.0.2
- dbus-glib-1
- check
Configure: none
Builder: make
SubPackages:
# - Name: doc
# Summary: Non-graphic feedback client documentation
# Group: Documentation
# Description: This package contains the client library API documentation.
# Files:
# - "%doc COPYING"
# - "%{_docdir}/%{name}-doc/html/*"

- Name: client
Summary: Non-graphic feedback test client
Group: System/Libraries
Description: Test client.

- Name: devel
Summary: Non-graphic feedback C-based development package
Group: Development/Libraries
Description: "%{summary}."

0 comments on commit 35db153

Please sign in to comment.