CUnit/CUnit.spec

106 lines
3.1 KiB
RPMSpec
Raw Normal View History

2011-01-31 14:44:16 +00:00
Name: CUnit
Version: 2.1.2
Release: 6%{?dist}
Summary: A unit testing framework for C
Group: System Environment/Libraries
License: LGPLv2+
URL: http://cunit.sourceforge.net/
Source0: http://downloads.sourceforge.net/cunit/%{name}-2.1-2-src.tar.bz2
# Fixes docroot path and manpage errors
Patch0: CUnit-2.1-2-docroot-fix.patch
Patch1: CUnit-2.1-2-manpage-fix.patch
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
%setup -q -n %{name}-2.1-2
%patch0 -p1 -b .fix
%patch1 -p1 -b .man
find -name *.c -exec chmod -x {} \;
%build
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
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,-)
%doc AUTHORS COPYING README TODO
%{_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
* 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.