- add rightly files to -devel (#224106)
- add necessary requires for -devel (#224106) - ship examples
This commit is contained in:
parent
79e6a42603
commit
dcf0684335
35
cppunit.spec
35
cppunit.spec
@ -1,6 +1,6 @@
|
|||||||
Name: cppunit
|
Name: cppunit
|
||||||
Version: 1.12.0
|
Version: 1.12.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
Summary: C++ unit testing framework
|
Summary: C++ unit testing framework
|
||||||
License: LGPL
|
License: LGPL
|
||||||
@ -18,6 +18,7 @@ Test output is in XML for automatic testing and GUI based for supervised tests.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries and headers for cppunit development
|
Summary: Libraries and headers for cppunit development
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
Requires: pkgconfig, automake
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -37,15 +38,24 @@ the popular doxygen documentation generation tool.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-doxygen
|
%configure --enable-doxygen --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
# remove double of doc
|
# remove double of doc
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_datadir}/cppunit
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/cppunit
|
||||||
|
|
||||||
|
# clean up examples
|
||||||
|
rm -rf dist-examples dist-examples-dir
|
||||||
|
cp -a examples dist-examples
|
||||||
|
make -C dist-examples distclean
|
||||||
|
# Makefile.am files are left as documentation
|
||||||
|
find dist-examples \( -name Makefile.in -o -name .cvsignore \) -exec rm {} \;
|
||||||
|
mkdir dist-examples-dir
|
||||||
|
mv dist-examples dist-examples-dir/examples
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -56,25 +66,30 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/DllPlugInTester
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%{_datadir}/aclocal/*
|
|
||||||
%{_libdir}/libcppunit*.so.*
|
|
||||||
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
|
%doc AUTHORS COPYING NEWS README THANKS ChangeLog TODO BUGS doc/FAQ
|
||||||
|
%{_bindir}/DllPlugInTester
|
||||||
|
%{_libdir}/libcppunit*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/cppunit-config
|
%{_bindir}/cppunit-config
|
||||||
%{_includedir}/cppunit
|
%{_includedir}/cppunit
|
||||||
%{_libdir}/libcppunit.a
|
|
||||||
%{_libdir}/libcppunit.so
|
%{_libdir}/libcppunit.so
|
||||||
|
%{_datadir}/aclocal/cppunit.m4
|
||||||
|
%{_mandir}/man1/cppunit-config.1*
|
||||||
%{_libdir}/pkgconfig/cppunit.pc
|
%{_libdir}/pkgconfig/cppunit.pc
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc doc/html/*
|
%doc dist-examples-dir/examples/
|
||||||
|
%doc doc/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
|
||||||
|
- add rightly files to -devel (#224106)
|
||||||
|
- add necessary requires for -devel (#224106)
|
||||||
|
- ship examples
|
||||||
|
|
||||||
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
|
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
|
||||||
- rebuild for FC6
|
- rebuild for FC6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user