diff --git a/CUnit.spec b/CUnit.spec index 5b3c284..32c1d7f 100644 --- a/CUnit.spec +++ b/CUnit.spec @@ -1,14 +1,14 @@ Name: CUnit Version: 2.1.3 -Release: 7%{?dist} -Summary: A unit testing framework for C +Release: 8%{?dist} +Summary: Unit testing framework for C Group: System Environment/Libraries License: LGPLv2+ URL: http://cunit.sourceforge.net/ +# TODO: 404 Not Found Source0: http://downloads.sourceforge.net/cunit/%{name}-2.1-3-src.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake %description @@ -19,8 +19,7 @@ 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 +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains the header files @@ -32,39 +31,52 @@ find -name *.c -exec chmod -x {} \; %build autoconf -f -i -%configure --enable-curses +%configure --enable-curses --disable-static make %{?_smp_mflags} %install -rm -rf %{buildroot} - make install DESTDIR=%{buildroot} -cp -pr %{buildroot}%{_docdir}/%{name}/headers/* %{buildroot}%{_includedir}/%{name} -rm -f `find %{buildroot} -name *.a` rm -f `find %{buildroot} -name *.la` -rm -rf `find %{buildroot} -name %{name}-%{version}/` -%clean -rm -rf %{buildroot} +# add some doc files into the buildroot manually (#1001276) +for f in AUTHORS ChangeLog COPYING NEWS README TODO ; do + install -p -m0644 -D $f %{buildroot}%{_docdir}/%{name}/${f} +done %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%defattr(-,root,root,-) %{_datadir}/%{name}/ %{_libdir}/libcunit.so.* +%dir %{_docdir}/%{name} +%{_docdir}/%{name}/AUTHORS +%{_docdir}/%{name}/ChangeLog +%{_docdir}/%{name}/COPYING +%{_docdir}/%{name}/NEWS +%{_docdir}/%{name}/README +%{_docdir}/%{name}/TODO %files devel -%defattr(-,root,root,-) -%{_docdir}/%{name}/ +%{_docdir}/%{name}/headers/ +%{_docdir}/%{name}/*.css +%{_docdir}/%{name}/*.html %{_includedir}/%{name}/ %{_libdir}/libcunit.so %{_libdir}/pkgconfig/cunit.pc %{_mandir}/man3/CUnit.3* %changelog +* Sun Sep 29 2013 Michael Schwendt - 2.1.3-8 +- Add %%_isa to -devel base package dependency. +- Headers get installed by "make install", copying them from the HTML + doc headers dir is not necessary. +- Configure build with --disable-static. +- Drop unneeded spec stuff (buildroot def, removal, clean, pkgconfig dep). +- Using %%defattr is not needed anymore. +- Deduplicate documentation files in unversioned docdir (#1001276). + * Tue Sep 10 2013 Shakthi Kannan - 2.1.3-7 - Fix build with unversioned docdir (#1001276)