Name: alp Version: 1.0 Release: 2%{?dist} Summary: Advanced Linux Programming, Book By CodeSourcery LLC, PDF format Group: Documentation License: Open Publication URL: http://www.advancedlinuxprogramming.com/ # The source for the alp package was pulled from # http://www.advancedlinuxprogramming.com/apl-folder. Use the following # commands to generate the tarball after downloading all the pdfs from the page # tar -cvzf apl.tar.gz apl-folder Source0: %{name}.tar.gz Source1: http://www.advancedlinuxprogramming.com/ALP-listings.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch %description Advanced Linux Programming is intended for the programmer already familiar with the C programming language. Authors Alex Samuel, Jeffrey Oldham, and Mark Mitchell of CodeSourcery, LLC take a tutorial approach and teach the most important concepts and power features of the GNU/Linux system in application programs. If you're a developer already experienced with programming for the GNU/Linux system, are experienced with another UNIX-like system and are interested in developing GNU/Linux software, or want to make the transition for a non-UNIX environment and are already familiar with the general principles of writing good software, this book is for you. In addition, you will find that this book is equally applicable to C and C++ programming. Even those progamming in other languages will find this book useful since the C language APIs and conventions are the lingua franca of GNU/Linux. This is the PDF version of the book as well as the example code listings %prep %setup -q -n %{name}-folder %setup -q -D -T -a 1 -n %{name}-folder %build # empty but exists to keep rpmlint happy %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/listings install -D -m 0644 *.pdf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ find ALP-listings -type d -exec install -m 755 -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{} ';' find ALP-listings -type f -exec install -m 644 {} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{} ';' # Remove libtest.so from the chapter-2 directory, since we don't want to # package any binaries and it can be easily rebuilt post-installation if # required (that's the point of the chapter) rm ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/ALP-listings/chapter-2/libtest.so %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_docdir}/%{name}-%{version}/ %changelog * Thu Jul 02 2009 Steven Fernandez 1.0-2 - Added the dist tag to package name and the version to install dir * Sun Jun 23 2009 Steven Fernandez 1.0-1 - First build