2011-01-31 14:44:16 +00:00
|
|
|
Name: CUnit
|
2012-05-02 09:39:39 +00:00
|
|
|
Version: 2.1.3
|
2013-09-10 10:20:52 +00:00
|
|
|
Release: 7%{?dist}
|
2011-01-31 14:44:16 +00:00
|
|
|
Summary: A unit testing framework for C
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://cunit.sourceforge.net/
|
2012-05-02 09:39:39 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/cunit/%{name}-2.1-3-src.tar.bz2
|
2011-01-31 14:44:16 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: automake
|
|
|
|
|
|
|
|
%description
|
|
|
|
CUnit is a lightweight system for writing, administering,
|
|
|
|
and running unit tests in C. It provides C programmers a basic
|
|
|
|
testing functionality with a flexible variety of user interfaces.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files and libraries for CUnit development
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains the header files
|
|
|
|
and libraries for use with CUnit package.
|
|
|
|
|
|
|
|
%prep
|
2012-05-02 09:39:39 +00:00
|
|
|
%setup -q -n %{name}-2.1-3
|
2011-01-31 14:44:16 +00:00
|
|
|
find -name *.c -exec chmod -x {} \;
|
|
|
|
|
|
|
|
%build
|
2013-04-22 09:59:18 +00:00
|
|
|
autoconf -f -i
|
2013-06-22 03:49:31 +00:00
|
|
|
%configure --enable-curses
|
2011-01-31 14:44:16 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
2013-06-22 03:49:31 +00:00
|
|
|
cp -pr %{buildroot}%{_docdir}/%{name}/headers/* %{buildroot}%{_includedir}/%{name}
|
2011-01-31 14:44:16 +00:00
|
|
|
rm -f `find %{buildroot} -name *.a`
|
|
|
|
rm -f `find %{buildroot} -name *.la`
|
|
|
|
rm -rf `find %{buildroot} -name %{name}-%{version}/`
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_libdir}/libcunit.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_docdir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libcunit.so
|
|
|
|
%{_libdir}/pkgconfig/cunit.pc
|
|
|
|
%{_mandir}/man3/CUnit.3*
|
|
|
|
|
|
|
|
%changelog
|
2013-09-10 10:20:52 +00:00
|
|
|
* Tue Sep 10 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject.org> - 2.1.3-7
|
|
|
|
- Fix build with unversioned docdir (#1001276)
|
|
|
|
|
2013-08-02 22:32:44 +00:00
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-22 03:49:31 +00:00
|
|
|
* Fri Jun 21 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject.org> - 2.1.3-5
|
|
|
|
- Use header files from doc folder as well
|
|
|
|
- Enable curses
|
|
|
|
|
2013-04-22 09:59:18 +00:00
|
|
|
* Sat Apr 20 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject.org> - 2.1.3-4
|
|
|
|
- Use autoconf for ARM
|
|
|
|
|
2013-02-13 15:02:29 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-18 13:03:44 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-02 09:39:39 +00:00
|
|
|
* Wed May 2 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1.3-1
|
|
|
|
- Updated to 2.1.3 sources re-run with autoreconf.
|
|
|
|
|
2012-01-12 20:14:18 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-07 23:04:36 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-31 14:44:16 +00:00
|
|
|
* Sat Jan 29 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1.2-6
|
|
|
|
- Changed Group to System Environment/Libraries.
|
|
|
|
- Remove executable permission from C files.
|
|
|
|
- Created two separate patches for Makefile and manpage fixes.
|
|
|
|
- Removed passing datarootdir from configure.
|
|
|
|
|
|
|
|
* Thu Jan 20 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1.2-5
|
|
|
|
- Renamed Source0 to use Fedora sourceforge.net naming guidelines.
|
|
|
|
- Removed exit call in library patch.
|
|
|
|
- Use A.B.C version number.
|
|
|
|
|
|
|
|
* Thu Jan 20 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1_2-4
|
|
|
|
- Updated to license LGPLv2+.
|
|
|
|
- Changed to use BuildRoot.
|
|
|
|
- Added comments for inclusion of patches.
|
|
|
|
- Removed inconsistent macro usage.
|
|
|
|
- Moved man page, HTML documentation to devel package.
|
|
|
|
- Added AUTHORS, COPYING, README, TODO to doc in base package.
|
|
|
|
- Used * in man, library inclusion.
|
|
|
|
|
|
|
|
* Sun Dec 26 2010 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1_2-3
|
|
|
|
- Created patch to fix man page warnings and datarootdir settings.
|
|
|
|
- Added patch to remove exit calls in library.
|
|
|
|
|
|
|
|
* Wed Dec 15 2010 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1_2-2
|
|
|
|
- Moved libcunit.so.* to main package.
|
|
|
|
- Added post, postun ldconfig.
|
|
|
|
- Added smp flags for make build.
|
|
|
|
- Changed datarootdir to datadir.
|
|
|
|
|
|
|
|
* Tue Dec 14 2010 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 2.1_2-1
|
|
|
|
- First CUnit package.
|
|
|
|
|