diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2012-11-06 18:37:48 +0200 |
---|---|---|
committer | Ed Bartosh <eduard.bartosh@intel.com> | 2012-11-06 19:01:22 +0200 |
commit | 2c311019cb1f1e6eca4caea65265aa44760a45c7 (patch) | |
tree | d60f59a143f8061e1c20cb50ec024f1b10fae41d | |
parent | 4b15e5f2e0f5d910dad4e71956de0fa0122b4929 (diff) | |
download | lthor-2c311019cb1f1e6eca4caea65265aa44760a45c7.tar.gz lthor-2c311019cb1f1e6eca4caea65265aa44760a45c7.tar.bz2 lthor-2c311019cb1f1e6eca4caea65265aa44760a45c7.zip |
Packaged for rpm distros
This is a first commit regarding packaging. It implements packaging for
RPM. Debian packaging will follow.
Change-Id: Ibe45191cd3d06c387c6000c45c1b56ff820d0a87
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
-rw-r--r-- | packaging/Makefile | 14 | ||||
-rw-r--r-- | packaging/lthor.changes | 5 | ||||
-rw-r--r-- | packaging/lthor.spec | 44 |
3 files changed, 63 insertions, 0 deletions
diff --git a/packaging/Makefile b/packaging/Makefile new file mode 100644 index 0000000..ae0311f --- /dev/null +++ b/packaging/Makefile @@ -0,0 +1,14 @@ +PKG_NAME := lthor +SPECFILE = $(addsuffix .spec, $(PKG_NAME)) +PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}') + +TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz + +tarball: + @cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \ + | gzip > packaging/$(TARBALL) + +clean: + @rm -f $(PKG_NAME)_*.tar.gz + +all: clean tarball diff --git a/packaging/lthor.changes b/packaging/lthor.changes new file mode 100644 index 0000000..26dd435 --- /dev/null +++ b/packaging/lthor.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Nov 6 16:32:56 UTC 2012 - eduard.bartosh@intel.com + +- Initial packaging + diff --git a/packaging/lthor.spec b/packaging/lthor.spec new file mode 100644 index 0000000..3873610 --- /dev/null +++ b/packaging/lthor.spec @@ -0,0 +1,44 @@ +# +# spec file for cats-core +# +Name: lthor +Summary: Flashing tool for Tizen lunchbox +Version: 1.0 +Release: 1 +Group: Development/Tools/Other +License: Samsung reserved +URL: https://download.tizendev.org/tools/lthor/ +Source0: %{name}_%{version}.tar.gz + +BuildRequires: libarchive-devel +BuildRequires: cmake +BuildRequires: pkg-config + +%description +Tool for downloading binaries from a Linux host PC to a target phone. +It uses a USB cable as a physical communication medium. +It is prerequisite that the boot-loader should support download protocol +which is compatible with 'lthor'. + +%prep +%setup -q + +%build +cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf %{buildroot} + +%post + +%files +%defattr(-,root,root) +%{_bindir}/%{name} + +%changelog + |