Julio Merino e31bf35
Summary: Automated Testing Framework
Julio Merino e31bf35
Name: atf
Julio Merino 7ab798b
Version: 0.20
bb05bee
Release: 3%{?dist}
Julio Merino e31bf35
License: BSD
Julio Merino e31bf35
Group: Development/Tools
Julio Merino f1face7
URL: http://code.google.com/p/kyua/wiki/ATF
Julio Merino 7ab798b
Source0: https://github.com/jmmv/atf/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Julio Merino 6fbfbe3
Source1: README.Fedora
Julio Merino e31bf35
Julio Merino 6fbfbe3
%define _testsdir %{_libexecdir}/atf/tests
Julio Merino e31bf35
Julio Merino 7ab798b
%define common_description The Automated Testing Framework (ATF) is a collection of libraries to \
Julio Merino 7ab798b
implement test programs in a variety of languages.  At the moment, ATF \
Julio Merino 7ab798b
offers C, C++ and POSIX shell bindings with which to implement tests. \
Julio Merino 7ab798b
These bindings all offer a similar set of functionality and any test \
Julio Merino 7ab798b
program written with them exposes a consistent user interface. \
Julio Merino e31bf35
\
Julio Merino 7ab798b
ATF-based test programs rely on a separate runtime engine to execute them. \
Julio Merino 7ab798b
The runtime engine is in charge of isolating the test programs from the \
Julio Merino 7ab798b
rest of the system to ensure that their results are deterministic and that \
Julio Merino 7ab798b
they cannot affect the running system.  The runtime engine is also \
Julio Merino 7ab798b
responsible for gathering the results of all tests and composing reports. \
Julio Merino 7ab798b
The current runtime of choice is Kyua.
Julio Merino e31bf35
Julio Merino e31bf35
%description
Julio Merino 7ab798b
There is no main package being built here.  This is unused.
Julio Merino e31bf35
Julio Merino e31bf35
%prep
Julio Merino e31bf35
%setup -q
Julio Merino e31bf35
Julio Merino 6fbfbe3
# Put the README.Fedora file in the top-level directory of the source tree so
Julio Merino 6fbfbe3
# that the %doc call below can pick it up.
Julio Merino 6fbfbe3
cp -p %{SOURCE1} README.Fedora
Julio Merino 6fbfbe3
Julio Merino e31bf35
%build
Julio Merino 7ab798b
%configure INSTALL="/usr/bin/install -p" --disable-static
Julio Merino e31bf35
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
Julio Merino e31bf35
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
Julio Merino 7ab798b
make %{?_smp_mflags} pkgtestsdir=%{_testsdir} testsdir=%{_testsdir}
Julio Merino e31bf35
Julio Merino e31bf35
%check
Julio Merino e31bf35
make check
Julio Merino e31bf35
Julio Merino e31bf35
%install
Julio Merino 7ab798b
make install DESTDIR=%{buildroot} doc_DATA= \
Julio Merino 7ab798b
             pkgtestsdir=%{_testsdir} testsdir=%{_pkgtestsdir}
Julio Merino e31bf35
rm %{buildroot}%{_libdir}/libatf*.la
Julio Merino e31bf35
Julio Merino e31bf35
%changelog
bb05bee
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
bb05bee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bb05bee
bbf30f4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
bbf30f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bbf30f4
Julio Merino 7ab798b
* Mon Feb 10 2014 Julio Merino <julio@meroh.net> 0.20-1
Julio Merino 7ab798b
- Update to new upstream version 0.20.
Julio Merino 7ab798b
- The atf binary package, which used to provide the deprecated binary
Julio Merino 7ab798b
  tools (atf-config, atf-report, atf-run and atf-version), is now gone.
Julio Merino 7ab798b
- The libatf-c package now installs the atf-test-program(1) and
Julio Merino 7ab798b
  atf-test-case(4) manual pages and the package documentation files.
Julio Merino 7ab798b
b8642a8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
b8642a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b8642a8
Julio Merino 1927512
* Thu Feb 14 2013 Julio Merino <julio@meroh.net> 0.17-1
Julio Merino 1927512
- Update to new upstream version 0.17.
Julio Merino 1927512
82434b2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
82434b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
82434b2
647b51d
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
647b51d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
647b51d
Julio Merino b281150
* Tue Jul 10 2012 Julio Merino <julio@meroh.net> 0.16-1
Julio Merino b281150
- Updated to new upstream version 0.16.
Julio Merino b281150
Julio Merino 6fbfbe3
* Mon Jun 18 2012 Julio Merino <jmmv@julipedia.org> 0.15-2
Julio Merino 6fbfbe3
- Added the atf-tests package, which provides the run-time tests of ATF
Julio Merino 6fbfbe3
  readily runnable by the end users.
Julio Merino 56bb141
- Made the installation of the package preserve the build times of the files.
Julio Merino f1face7
- Fixed URL to the project's page.
Julio Merino f1face7
Julio Merino e31bf35
* Thu May 3 2012 Julio Merino <jmmv@julipedia.org> 0.15-1
Julio Merino e31bf35
- Initial release for Fedora.
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino 6fbfbe3
# Ideally, we would ship one tests package for every component, namely
Julio Merino 7ab798b
# libatf-c-tests, libatf-c++-tests and libatf-sh-tests.  However, the test
Julio Merino 7ab798b
# suite of ATF has not been written with this in mind, and the tests of one
Julio Merino 7ab798b
# component often have dependencies on the rest of the components.  It is
Julio Merino 7ab798b
# much easier to ship a single package with the whole test suite rather
Julio Merino 7ab798b
# than attempting to fight this fact.
Julio Merino 6fbfbe3
%package tests
Julio Merino 6fbfbe3
Summary: Automated Testing Framework - Test suite
Julio Merino 6fbfbe3
Requires: libatf-c = %{version}-%{release}
Julio Merino 6fbfbe3
Requires: libatf-c++ = %{version}-%{release}
Julio Merino 6fbfbe3
Requires: libatf-sh = %{version}-%{release}
Julio Merino 6fbfbe3
Requires: libatf-c-devel = %{version}-%{release}
Julio Merino 6fbfbe3
Requires: libatf-c++-devel = %{version}-%{release}
Julio Merino 6fbfbe3
Requires: libatf-sh-devel = %{version}-%{release}
Julio Merino 6fbfbe3
Julio Merino 6fbfbe3
%description tests
Julio Merino 6fbfbe3
%{common_description}
Julio Merino 6fbfbe3
Julio Merino 6fbfbe3
This package installs the run-time tests for all the components of ATF, which
Julio Merino 6fbfbe3
include tests for the C, C++ and POSIX shell libraries and the run-time tools.
Julio Merino 6fbfbe3
Please see the README.Fedora file in the documentation directory for further
Julio Merino 6fbfbe3
details on how to run the installed tests.
Julio Merino 6fbfbe3
Julio Merino 6fbfbe3
%files tests
Julio Merino 6fbfbe3
%doc README.Fedora
Julio Merino 6fbfbe3
%{_testsdir}
Julio Merino 6fbfbe3
Julio Merino 6fbfbe3
Julio Merino e31bf35
%package -n libatf-c
Julio Merino e31bf35
Summary: Automated Testing Framework - C bindings
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-c
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the run-time libraries to run tests that use the
Julio Merino e31bf35
ATF C bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-c
Julio Merino e31bf35
%{_libdir}/libatf-c.so.0
Julio Merino e31bf35
%{_libdir}/libatf-c.so.0.0.0
Julio Merino 7ab798b
%{_datadir}/man/man1/atf-test-program.1.gz
Julio Merino 7ab798b
%{_datadir}/man/man4/atf-test-case.4.gz
Julio Merino e31bf35
Julio Merino e31bf35
%post -n libatf-c -p /sbin/ldconfig
Julio Merino e31bf35
%postun -n libatf-c -p /sbin/ldconfig
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino e31bf35
%package -n libatf-c-devel
Julio Merino e31bf35
Summary: Automated Testing Framework - C bindings (headers)
Julio Merino e31bf35
Requires: libatf-c = %{version}-%{release}
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-c-devel
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the libraries, header files and documentation to
Julio Merino e31bf35
develop tests that use the ATF C bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-c-devel
Julio Merino e31bf35
%{_datadir}/aclocal/atf-c.m4
Julio Merino e31bf35
%{_datadir}/aclocal/atf-common.m4
Julio Merino e31bf35
%{_includedir}/atf-c.h
Julio Merino e31bf35
%{_includedir}/atf-c
Julio Merino e31bf35
%{_libdir}/libatf-c.so
Julio Merino e31bf35
%{_libdir}/pkgconfig/atf-c.pc
Julio Merino e31bf35
%{_mandir}/man3/atf-c-api.3.gz
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino e31bf35
%package -n libatf-c++
Julio Merino e31bf35
Summary: Automated Testing Framework - C++ bindings
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-c++
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the run-time libraries to run tests that use the
Julio Merino e31bf35
ATF C++ bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-c++
Julio Merino 7ab798b
%{_libdir}/libatf-c++.so.1
Julio Merino 7ab798b
%{_libdir}/libatf-c++.so.1.0.0
Julio Merino e31bf35
Julio Merino e31bf35
%post -n libatf-c++ -p /sbin/ldconfig
Julio Merino e31bf35
%postun -n libatf-c++ -p /sbin/ldconfig
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino e31bf35
%package -n libatf-c++-devel
Julio Merino e31bf35
Summary: Automated Testing Framework - C++ bindings (headers)
Julio Merino e31bf35
Requires: libatf-c = %{version}-%{release}
Julio Merino e31bf35
Requires: libatf-c-devel = %{version}-%{release}
Julio Merino e31bf35
Requires: libatf-c++ = %{version}-%{release}
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-c++-devel
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the libraries, header files and documentation to
Julio Merino e31bf35
develop applications that use the ATF C++ bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-c++-devel
Julio Merino e31bf35
%{_datadir}/aclocal/atf-c++.m4
Julio Merino e31bf35
%{_includedir}/atf-c++.hpp
Julio Merino e31bf35
%{_includedir}/atf-c++
Julio Merino e31bf35
%{_libdir}/libatf-c++.so
Julio Merino e31bf35
%{_libdir}/pkgconfig/atf-c++.pc
Julio Merino e31bf35
%{_mandir}/man3/atf-c++-api.3.gz
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino e31bf35
%package -n libatf-sh
Julio Merino e31bf35
Summary: Automated Testing Framework - POSIX shell bindings
Julio Merino e31bf35
Requires: libatf-c++ = %{version}-%{release}
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-sh
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the run-time libraries to run tests that use the
Julio Merino e31bf35
ATF POSIX shell bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-sh
Julio Merino e31bf35
%{_bindir}/atf-sh
Julio Merino e31bf35
# Cheat a bit: While this directory should be supposedly owned by the main
Julio Merino e31bf35
# 'atf' package, 'atf' depends on libatf-sh.  Therefore, it's easier to handle
Julio Merino e31bf35
# ownership here.
Julio Merino e31bf35
%{_datadir}/atf
Julio Merino e31bf35
%{_libexecdir}/atf-check
Julio Merino e31bf35
%{_mandir}/man1/atf-sh.1.gz
Julio Merino e31bf35
Julio Merino e31bf35
Julio Merino e31bf35
%package -n libatf-sh-devel
Julio Merino e31bf35
Summary: Automated Testing Framework - POSIX shell bindings (headers)
Julio Merino e31bf35
Requires: libatf-sh = %{version}-%{release}
Julio Merino e31bf35
Julio Merino e31bf35
%description -n libatf-sh-devel
Julio Merino e31bf35
%{common_description}
Julio Merino e31bf35
Julio Merino e31bf35
This package provides the supporting files and documentation to develop
Julio Merino e31bf35
applications that use the ATF POSIX shell bindings.
Julio Merino e31bf35
Julio Merino e31bf35
%files -n libatf-sh-devel
Julio Merino e31bf35
%{_datadir}/aclocal/atf-sh.m4
Julio Merino e31bf35
%{_libdir}/pkgconfig/atf-sh.pc
Julio Merino e31bf35
%{_mandir}/man1/atf-check.1.gz
Julio Merino e31bf35
%{_mandir}/man3/atf-sh-api.3.gz