Skip to content

Commit

Permalink
adding specfile
Browse files Browse the repository at this point in the history
  • Loading branch information
clambers committed Apr 16, 2015
1 parent 305be3f commit 1ea0d4a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions packaging/chroma.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Name: Chroma
Summary: An application for controlling Philips hue lights
Version: 1.0
Release: 1%{?dist}
Group: Applications/Web Applications
License: GPL-3.0
URL: http://www.tizen.org2
Source: %{name}-%{version}.tar.gz

BuildRequires: xmllint
BuildRequires: zip

%global wgtdir %{_datadir}/wgt

%description
Chroma is a Tizen web application that allows for controlling features of the
Philips hue light collection.

%prep
%autosetup

%build
./autogen.sh
%configure
make %{?_smp_mflags}

%install
%make_install

%post
su app -c "pkgcmd -i -t wgt -p %{_wgtdir}/Chroma.wgt -q"

%preun
su app -c "pkgcmd -u -n Chroma -q"

%files
%defattr(-,root,root,-)
%doc README.md
%license COPYING
%{_wgtdir}/Chroma.wgt
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ZFLAGS_V = $(ZFLAGS_V_@AM_V@)
ZFLAGS_V_ = $(ZFLAGS) -q
ZFLAGS_V_0 = $(ZFLAGS)

wgtdir = /opt/usr/apps/.preinstallWidgets
wgtdir = $(datadir)/wgt
wgt_DATA = $(TARGET)

$(TARGET): $(SOURCES)
Expand Down

0 comments on commit 1ea0d4a

Please sign in to comment.