-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket: ENT-11573 Changelog: None Signed-off-by: Lars Erik Wik <[email protected]>
- Loading branch information
Showing
9 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
%define leech_version 0.1.6 | ||
|
||
Summary: CFEngine Build Automation -- leech | ||
Name: cfbuild-leech | ||
Version: %{version} | ||
Release: 1 | ||
Source0: leech-%{leech_version}.tar.gz | ||
License: MIT | ||
Group: Other | ||
Url: http://example.com/ | ||
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot | ||
|
||
AutoReqProv: no | ||
|
||
%define prefix %{buildprefix} | ||
|
||
%prep | ||
mkdir -p %{_builddir} | ||
%setup -q -n leech-%{leech_version} | ||
|
||
./configure --prefix=%{prefix} | ||
|
||
%build | ||
|
||
make | ||
|
||
%install | ||
rm -rf ${RPM_BUILD_ROOT} | ||
|
||
make install DESTDIR=${RPM_BUILD_ROOT} | ||
|
||
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.a | ||
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.la | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%package devel | ||
Summary: CFEngine Build Automation -- leech -- development files | ||
Group: Other | ||
AutoReqProv: no | ||
|
||
%description | ||
CFEngine Build Automation -- leech | ||
|
||
%description devel | ||
CFEngine Build Automation -- leech -- development files | ||
|
||
%files | ||
%defattr(-,root,root) | ||
|
||
%dir %prefix/lib | ||
%prefix/lib/*.so.* | ||
%prefix/lib/*.so | ||
|
||
%files devel | ||
%defattr(-,root,root) | ||
|
||
%prefix/include | ||
|
||
%dir %prefix/lib | ||
%prefix/lib/*.so | ||
|
||
%changelog | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/var/cfengine/include | ||
/var/cfengine/lib/*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Source: cfbuild-leech | ||
Section: libs | ||
Priority: optional | ||
Maintainer: CFEngine Packager <[email protected]> | ||
Build-Depends: debhelper | ||
Standards-Version: 3.8.4 | ||
|
||
Package: cfbuild-leech | ||
Section: libs | ||
Architecture: any | ||
Description: CFEngine Build Automation -- leech | ||
CFEngine Build Automation -- leech |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/make -f | ||
|
||
PREFIX=$(BUILDPREFIX) | ||
|
||
clean: | ||
dh_testdir | ||
dh_testroot | ||
|
||
dh_clean | ||
|
||
build: build-stamp | ||
build-stamp: | ||
dh_testdir | ||
|
||
./configure | ||
make CURL_LDFLAGS="-lcurl" | ||
|
||
touch build-stamp | ||
|
||
install: build | ||
dh_testdir | ||
dh_testroot | ||
dh_clean -k | ||
dh_installdirs | ||
|
||
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp | ||
|
||
binary-indep: build install | ||
|
||
binary-arch: build install | ||
dh_testdir | ||
dh_testroot | ||
dh_install --sourcedir=debian/tmp | ||
dh_link | ||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
dh_installdeb | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7e5141221e0d42517963863b83165fd6efd29ac20bae81dd0a39dc6c28f6d83e leech-0.1.6.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/larsewi/leech/releases/download/v0.1.6-alpha/ |