From: Subrata <sub...@us...> - 2008-04-02 09:25:03
|
Update of /cvsroot/ltp/ltp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18819/ltp Modified Files: Makefile Added Files: README.ltp-devel ltp-devel.spec Log Message: Addition of SPEC File for creation of LTP-DEVEL RPMs on various Architectures for Standalone development of LTP Unit Testcase. Contributed by George Kraft <gk...@us...> --- NEW FILE: README.ltp-devel --- This is a README to describe the ltp-devel.patch functional changes. "make install" is to build and install: /opt/ltp/bin/bump /opt/ltp/bin/pan /opt/ltp/bin/scanner /opt/ltp/include/usctest.h /opt/ltp/include/test.h /opt/ltp/lib/libltp.a /usr/share/pkgconfig/ltp.pc /opt/ltp/share/man/ "make package" is to rpm package what was installed above: /usr/src/redhat/RPMS/i386/ltp-devel-1.0-0.0.i386.rpm For someone wanting to write a standalone test that uses "libltp.a", then their Makefile would compile their test program like this: test: test.c cc test.c `pkg-config --cflags --libs ltp` To read manual pages, then the developer would type either: man -M /opt/ltp/share/man usctest MANPATH=/opt/ltp/share/man man usctest #EOF --- NEW FILE: ltp-devel.spec --- # # RPM Package Manager (RPM) spec file for ltp-devel # Summary: Linux Test Project (LTP) Software Development Kit (SDK) Name: ltp-devel Version: 1.0 Release: 0.0 Prefix: /opt/ltp License: GPL Group: Development/Libraries URL: http://www.linuxtestproject.org Vendor: IBM Corp Packager: Subrata Modak <subrata.modak@@in.ibm.com> AutoReqProv: 0 Provides: LTP #ExclusiveArch: i386 ExclusiveOS: linux %description This is a development package of the Linux Test Project (LTP). It is intended to be used to build testcases using the provided API. %files /opt/ltp/include/test.h /opt/ltp/include/usctest.h /opt/ltp/include/compiler.h /opt/ltp/lib/libltp.a /usr/share/pkgconfig/ltp.pc /opt/ltp/bin/pan /opt/ltp/bin/scanner /opt/ltp/bin/bump /opt/ltp/share/man/man3/tst_tmpdir.3 /opt/ltp/share/man/man3/random_range_seed.3 /opt/ltp/share/man/man3/pattern.3 /opt/ltp/share/man/man3/parse_ranges.3 /opt/ltp/share/man/man3/usctest.3 /opt/ltp/share/man/man3/random_range.3 /opt/ltp/share/man/man3/forker.3 /opt/ltp/share/man/man3/rmobj.3 /opt/ltp/share/man/man3/parse_open_flags.3 /opt/ltp/share/man/man3/tst_res.3 /opt/ltp/share/man/man3/write_log.3 /opt/ltp/share/man/man3/str_to_bytes.3 /opt/ltp/share/man/man3/tst_set_error.3 /opt/ltp/share/man/man3/parse_opts.3 /opt/ltp/share/man/man3/string_to_tokens.3 /opt/ltp/share/man/man3/tst_sig.3 /opt/ltp/share/man/man3/get_attrib.3 /opt/ltp/share/man/man1/pan.1 /opt/ltp/share/man/man1/doio.1 /opt/ltp/share/man/man1/iogen.1 /opt/ltp/share/man/man1/bump.1 # Post-install stuff would go here. #EOF Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/Makefile,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Makefile 22 Dec 2007 06:34:35 -0000 1.26 --- Makefile 2 Apr 2008 09:24:54 -0000 1.27 *************** *** 54,57 **** --- 54,63 ---- @$(MAKE) -C testcases install @$(MAKE) -C tools install + @$(MAKE) -C lib install + @$(MAKE) -C include install + @$(MAKE) -C pan install + @$(MAKE) -C doc/man1 install + @$(MAKE) -C doc/man3 install + @./IDcheck.sh *************** *** 84,85 **** --- 90,96 ---- @$(MAKE) -C tools $@ @$(MAKE) -C testcases $@ + + package: + rpmbuild -ba ltp-devel.spec + + |