rpms/dtc/devel dtc-add-install.patch, NONE, 1.1 dtc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Joshua W. Boyer (jwboyer) fedora-extras-commits at redhat.com
Wed Jul 4 02:34:22 UTC 2007


Author: jwboyer

Update of /cvs/pkgs/rpms/dtc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12720/devel

Modified Files:
	.cvsignore sources 
Added Files:
	dtc-add-install.patch dtc.spec 
Log Message:
Initial dtc commit


dtc-add-install.patch:

--- NEW FILE dtc-add-install.patch ---
Add a minimal install target

Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>

---
 Makefile |    9 +++++++++
 1 file changed, 9 insertions(+)

--- dtc.orig/Makefile
+++ dtc/Makefile
@@ -4,6 +4,10 @@ LDFLAGS = -Llibfdt
 
 BISON = bison
 
+INSTALL = /usr/bin/install
+DESTDIR =
+BINDIR = /usr/bin
+
 #
 # Overall rules
 #
@@ -113,3 +117,8 @@ endif
 #
 TESTS_PREFIX=tests/
 include tests/Makefile.tests
+
+install: dtc ftdump
+	$(INSTALL) -d $(DESTDIR)$(BINDIR)
+	$(INSTALL) -m 755 dtc $(DESTDIR)$(BINDIR)
+	$(INSTALL) -m 755 ftdump $(DESTDIR)$(BINDIR)


--- NEW FILE dtc.spec ---
Name:           dtc
Version:        0
Release:        0.2.20070628gitd9d679fb9%{?dist}
Summary:        Device Tree Compiler

Group:          Development/Tools
License:        GPL
URL:            http://dtc.ozlabs.org/
# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#  git clone git://www.jdl.com/software/dtc.git; cd dtc; 
#  git checkout d9d679fb9; rm -rf .git; cd ..; mv dtc dtc-20070628;
#  tar -czvf dtc-20070628.tar.gz dtc-20070628;
Source:         dtc-20070628.tar.gz
Patch0:         dtc-add-install.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  flex, bison
#Requires:       

%description
The Device Tree Compiler generates flattened Open Firmware style device trees
for use with PowerPC machines that lack an Open Firmware implementation

%prep
%setup -q -n dtc-20070628
%patch0 -p1

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc GPL
%{_bindir}/*

%changelog
* Fri Jun 29 2007 Josh Boyer <jwboyer at jdub.homelinux.org>
- Fix packaging errors

* Thu Jun 28 2007 Josh Boyer <jwboyer at jdub.homelinux.org>
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/dtc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	2 Apr 2007 01:20:11 -0000	1.1
+++ .cvsignore	4 Jul 2007 02:33:47 -0000	1.2
@@ -0,0 +1 @@
+dtc-20070628.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/dtc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Apr 2007 01:20:11 -0000	1.1
+++ sources	4 Jul 2007 02:33:47 -0000	1.2
@@ -0,0 +1 @@
+b7e66374dee746786976f8e8a1a9875e  dtc-20070628.tar.gz




More information about the scm-commits mailing list