SPECS: mtd-utils.spec (NEW) - NEW, better name for mtd.spec, and n...

sparky sparky at pld-linux.org
Fri Jul 7 02:04:22 CEST 2006


Author: sparky                       Date: Fri Jul  7 00:04:22 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- NEW, better name for mtd.spec, and new version

---- Files affected:
SPECS:
   mtd-utils.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/mtd-utils.spec
diff -u /dev/null SPECS/mtd-utils.spec:1.1
--- /dev/null	Fri Jul  7 02:04:22 2006
+++ SPECS/mtd-utils.spec	Fri Jul  7 02:04:17 2006
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+Summary:	MTD (Memory Technology Devices) utilities
+Summary(pl):	Narzędzia MTD (Memory Technology Devices)
+Name:		mtd-utils
+Version:	1.0.0
+Release:	0.1
+License:	GPL v2
+Group:		Applications/System
+Source0:	ftp://ftp.infradead.org/pub/mtd-utils/%{name}-%{version}.tar.gz
+# Source0-md5:	442bdbdb024db27dc9c89207fac16f95
+URL:		http://www.linux-mtd.infradead.org/
+BuildRequires:	sed >= 4.0
+BuildRequires:	zlib-devel
+Obsoletes:	mtd
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MTD are utilities for jffs (Journalling Flash File System), like
+mkfs.jffs2 and NAND Flash devices.
+
+%description -l pl
+Programy MTD zawierają narzędzia do jffs (Journalling Flash File
+System), jak mkfs.jffs2 oraz urządzeń NAND Flash.
+
+%package devel
+Summary:	Header files for MTD utilities
+Summary(pl):	Pliki nagłówkowe dla narzędzi MTD
+Group:		Development/Libraries
+
+%description devel
+Header files for MTD utilities.
+
+%description devel -l pl
+Pliki nagłówkowe dla narzędzi MTD.
+
+%prep
+%setup -q
+sed -e '/install:/s/${TARGETS}//' -i Makefile
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -I./include -Wall"	\
+	LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	MANDIR=%{_mandir}
+
+cp -r include/mtd $RPM_BUILD_ROOT%{_includedir}/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc device_table.txt
+%attr(755,root,root) %{_sbindir}/*
+%{_mandir}/man1/*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/mtd
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/07/07 00:04:17  sparky
+- NEW, better name for mtd.spec, and new version
+
================================================================


More information about the pld-cvs-commit mailing list