diff --git a/.gitignore b/.gitignore index e69de29..7b603b3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/atf-0.15.tar.gz diff --git a/atf.spec b/atf.spec new file mode 100644 index 0000000..8d983c6 --- /dev/null +++ b/atf.spec @@ -0,0 +1,201 @@ +Summary: Automated Testing Framework +Name: atf +Version: 0.15 +Release: 1%{?dist} +License: BSD +Group: Development/Tools +URL: http://www.netbsd.org/~jmmv/atf/ +Source0: http://kyua.googlecode.com/files/%{name}-%{version}.tar.gz +Requires: libatf-c = %{version}-%{release} +Requires: libatf-c++ = %{version}-%{release} +Requires: libatf-sh = %{version}-%{release} + +%define _egdir %{_datadir}/atf/examples +%define _testsdir %{_exec_prefix}/tests +%define _xsldir %{_datadir}/atf/xsl + +%define common_description The Automated Testing Framework (ATF) is a collection of libraries and \ +utilities designed to ease unattended application testing in the hands of \ +developers and end users of a specific piece of software. \ +\ +As regards developers, ATF provides the necessary means to easily create \ +test suites composed of multiple test programs, which in turn are a \ +collection of test cases. It also attempts to simplify the debugging of \ +problems when these test cases detect an error by providing as much \ +information as possible about the failure. \ +\ +As regards users, it simplifies the process of running the test suites and, \ +in special, encourages end users to run them often: they do not need to \ +have source trees around nor any other development tools installed to be \ +able to certify that a given piece of software works on their machine as \ +advertised. \ + +%description +%{common_description} + +This package provides the end-user tools (atf-run and atf-report being the +most relevant ones) that implement the run-time system for tests, and also +provides a "meta-package" to install all the components of ATF at once. +Please note that the end-user tools (not the libraries) are deprecated and +that Kyua should be used instead. + +%prep +%setup -q + +%build +%configure --disable-static --enable-unstable-shared +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} cssdir=%{_egdir} egdir=%{_egdir} xsldir=%{_xsldir} + +%check +make check + +%install +make install DESTDIR=%{buildroot} doc_DATA= cssdir=%{_egdir} egdir=%{_egdir} \ + xsldir=%{_xsldir} +rm %{buildroot}%{_libdir}/libatf*.a +rm %{buildroot}%{_libdir}/libatf*.la + +# TODO: The tests should actually be installed once we decide what the right +# value for testsdir is. For now, just disable them altogether to get a +# functional package. +rm -rf %{buildroot}%{_testsdir} + +%files +%doc AUTHORS COPYING NEWS README +%{_bindir}/atf-config +%{_bindir}/atf-report +%{_bindir}/atf-run +%{_bindir}/atf-version +%{_datadir}/atf/atf-run.hooks +%{_datadir}/man/man1/atf-config.1.gz +%{_datadir}/man/man1/atf-report.1.gz +%{_datadir}/man/man1/atf-run.1.gz +%{_datadir}/man/man1/atf-test-program.1.gz +%{_datadir}/man/man1/atf-version.1.gz +%{_datadir}/man/man4/atf-test-case.4.gz +%{_datadir}/man/man5/atf-formats.5.gz +%{_datadir}/man/man7/atf.7.gz +%{_datadir}/xml/atf +%{_egdir} +%{_xsldir} + +%changelog +* Thu May 3 2012 Julio Merino 0.15-1 +- Initial release for Fedora. + + +%package -n libatf-c +Summary: Automated Testing Framework - C bindings + +%description -n libatf-c +%{common_description} + +This package provides the run-time libraries to run tests that use the +ATF C bindings. + +%files -n libatf-c +%doc AUTHORS COPYING NEWS +%{_libdir}/libatf-c.so.0 +%{_libdir}/libatf-c.so.0.0.0 + +%post -n libatf-c -p /sbin/ldconfig +%postun -n libatf-c -p /sbin/ldconfig + + +%package -n libatf-c-devel +Summary: Automated Testing Framework - C bindings (headers) +Requires: libatf-c = %{version}-%{release} + +%description -n libatf-c-devel +%{common_description} + +This package provides the libraries, header files and documentation to +develop tests that use the ATF C bindings. + +%files -n libatf-c-devel +%{_datadir}/aclocal/atf-c.m4 +%{_datadir}/aclocal/atf-common.m4 +%{_includedir}/atf-c.h +%{_includedir}/atf-c +%{_libdir}/libatf-c.so +%{_libdir}/pkgconfig/atf-c.pc +%{_mandir}/man3/atf-c-api.3.gz + + +%package -n libatf-c++ +Summary: Automated Testing Framework - C++ bindings + +%description -n libatf-c++ +%{common_description} + +This package provides the run-time libraries to run tests that use the +ATF C++ bindings. + +%files -n libatf-c++ +%doc AUTHORS COPYING NEWS +%{_libdir}/libatf-c++.so.0 +%{_libdir}/libatf-c++.so.0.0.0 + +%post -n libatf-c++ -p /sbin/ldconfig +%postun -n libatf-c++ -p /sbin/ldconfig + + +%package -n libatf-c++-devel +Summary: Automated Testing Framework - C++ bindings (headers) +Requires: libatf-c = %{version}-%{release} +Requires: libatf-c-devel = %{version}-%{release} +Requires: libatf-c++ = %{version}-%{release} + +%description -n libatf-c++-devel +%{common_description} + +This package provides the libraries, header files and documentation to +develop applications that use the ATF C++ bindings. + +%files -n libatf-c++-devel +%{_datadir}/aclocal/atf-c++.m4 +%{_includedir}/atf-c++.hpp +%{_includedir}/atf-c++ +%{_libdir}/libatf-c++.so +%{_libdir}/pkgconfig/atf-c++.pc +%{_mandir}/man3/atf-c++-api.3.gz + + +%package -n libatf-sh +Summary: Automated Testing Framework - POSIX shell bindings +Requires: libatf-c++ = %{version}-%{release} + +%description -n libatf-sh +%{common_description} + +This package provides the run-time libraries to run tests that use the +ATF POSIX shell bindings. + +%files -n libatf-sh +%doc AUTHORS COPYING NEWS +%{_bindir}/atf-sh +# Cheat a bit: While this directory should be supposedly owned by the main +# 'atf' package, 'atf' depends on libatf-sh. Therefore, it's easier to handle +# ownership here. +%{_datadir}/atf +%{_libexecdir}/atf-check +%{_mandir}/man1/atf-sh.1.gz + + +%package -n libatf-sh-devel +Summary: Automated Testing Framework - POSIX shell bindings (headers) +Requires: libatf-sh = %{version}-%{release} + +%description -n libatf-sh-devel +%{common_description} + +This package provides the supporting files and documentation to develop +applications that use the ATF POSIX shell bindings. + +%files -n libatf-sh-devel +%{_datadir}/aclocal/atf-sh.m4 +%{_libdir}/pkgconfig/atf-sh.pc +%{_mandir}/man1/atf-check.1.gz +%{_mandir}/man3/atf-sh-api.3.gz diff --git a/sources b/sources index e69de29..5600fe1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +afb686922025e5bb5a5c5df61393197d atf-0.15.tar.gz