diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-06-07 15:19:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-07 15:19:51 +0200 |
commit | 714eb879caedcc32674b26fdc7583a6fcfeb4f85 (patch) | |
tree | e58fa59771825187d1030be6b2adeb30ac3890f9 /conf.d/packaging | |
parent | 456b7d066103dba85bc1bcf3cba36d1974aae277 (diff) | |
parent | fbc5ea2207be7c8f3200de6c14ee8729c723c2fb (diff) |
Merge pull request #2 from ronan22/master
add packaging
Diffstat (limited to 'conf.d/packaging')
-rw-r--r-- | conf.d/packaging/unicens-agent.spec (renamed from conf.d/packaging/rpm-unicens-agent.spec) | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/conf.d/packaging/rpm-unicens-agent.spec b/conf.d/packaging/unicens-agent.spec index 3942fbc..09a1fae 100644 --- a/conf.d/packaging/rpm-unicens-agent.spec +++ b/conf.d/packaging/unicens-agent.spec @@ -23,21 +23,30 @@ Release: 1 License: Apache-V2 Summary: Expose MicroChip UnicensV2 through AGL AppFw Url: https://github.com/iotbzh/unicens-agent +Source0: %{name}_%{version}.orig.tar.gz -Provides: unicens-agent Prefix: /opt/unicens-agent -BuildRequires: pkg-config , pkgconfig(libsystemd>=222), pkgconfig(libmicrohttpd>=0.9.54), pkgconfig(afb-daemon), pkgconfig(json-c), pkgconfig(mxml) +BuildRequires: cmake +BuildRequires: gcc gcc-c++ +BuildRequires: , pkgconfig(libsystemd), pkgconfig(libmicrohttpd), pkgconfig(afb-daemon), pkgconfig(json-c), pkgconfig(mxml) -BuildRoot:/home/fulup/Workspace/AGL-AppFW/unicens2-binding/build +BuildRoot:%{_tmppath}/%{name}-%{version}-build %description Expose MicroChip UnicensV2 through AGL AppFw %prep +%setup -q %build -(mkdir -p build; cd build; cmake ..; make) +%cmake -DBINDINGS_INSTALL_PREFIX:PATH=%{_libdir} +%__make %{?_smp_mflags} %install -(cd build; make populate DESTDIR=%{buildroot}) +[ -d build ] && cd build +%make_install +%files +%defattr(-,root,root) +%dir %{_prefix}/* +%{_prefix}/*/* |