Fix HTML documentation installation location.
- Replace CUnit-2.1-3-src.tar.bz2 tarball, which really is 2.1-2 in disguise according to configure.in, with 2.1-3 as published on 2014-04-24. - BR libtool - Run autoreconf instead of autoconf. - Drop --enable-curses because without BuildRequires ncurses-devel it would disable itself automatically (and if it were enabled, test programs would need to link with ncurses explicitly).
This commit is contained in:
parent
daf154b972
commit
e343c2579d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/CUnit-2.1-2-src.tar.bz2
|
/CUnit-2.1-2-src.tar.bz2
|
||||||
/CUnit-2.1-3-src.tar.bz2
|
/CUnit-2.1-3-src.tar.bz2
|
||||||
|
/CUnit-2.1-3.tar.bz2
|
||||||
|
37
CUnit.spec
37
CUnit.spec
@ -1,16 +1,17 @@
|
|||||||
|
%global tarver 2.1-3
|
||||||
|
|
||||||
Name: CUnit
|
Name: CUnit
|
||||||
Version: 2.1.3
|
Version: 2.1.3
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Unit testing framework for C
|
Summary: Unit testing framework for C
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://cunit.sourceforge.net/
|
URL: http://cunit.sourceforge.net/
|
||||||
# TODO: 404 Not Found
|
Source0: http://downloads.sourceforge.net/cunit/%{name}-%{tarver}.tar.bz2
|
||||||
# This is version 2.1-2 in disguise according to configure.in!
|
|
||||||
Source0: http://downloads.sourceforge.net/cunit/%{name}-2.1-3-src.tar.bz2
|
|
||||||
|
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CUnit is a lightweight system for writing, administering,
|
CUnit is a lightweight system for writing, administering,
|
||||||
@ -27,20 +28,24 @@ The %{name}-devel package contains the header files
|
|||||||
and libraries for use with CUnit package.
|
and libraries for use with CUnit package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-2.1-3
|
%setup -q -n %{name}-%{tarver}
|
||||||
find -name *.c -exec chmod -x {} \;
|
find -name *.c -exec chmod -x {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf -f -i
|
autoreconf -f -i
|
||||||
%configure --enable-curses --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
rm -f `find %{buildroot} -name *.la`
|
rm -f `find %{buildroot} -name *.la`
|
||||||
|
|
||||||
|
# work around bad docdir= in doc/Makefile*
|
||||||
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||||
|
mv %{buildroot}%{_prefix}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html
|
||||||
|
|
||||||
# add some doc files into the buildroot manually (#1001276)
|
# add some doc files into the buildroot manually (#1001276)
|
||||||
for f in AUTHORS ChangeLog COPYING NEWS README TODO ; do
|
for f in AUTHORS ChangeLog COPYING NEWS README TODO VERSION ; do
|
||||||
install -p -m0644 -D $f %{buildroot}%{_docdir}/%{name}/${f}
|
install -p -m0644 -D $f %{buildroot}%{_docdir}/%{name}/${f}
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -58,17 +63,27 @@ done
|
|||||||
%{_docdir}/%{name}/NEWS
|
%{_docdir}/%{name}/NEWS
|
||||||
%{_docdir}/%{name}/README
|
%{_docdir}/%{name}/README
|
||||||
%{_docdir}/%{name}/TODO
|
%{_docdir}/%{name}/TODO
|
||||||
|
%{_docdir}/%{name}/VERSION
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_docdir}/%{name}/headers/
|
%{_docdir}/%{name}/html/
|
||||||
%{_docdir}/%{name}/*.css
|
|
||||||
%{_docdir}/%{name}/*.html
|
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
%{_libdir}/libcunit.so
|
%{_libdir}/libcunit.so
|
||||||
%{_libdir}/pkgconfig/cunit.pc
|
%{_libdir}/pkgconfig/cunit.pc
|
||||||
%{_mandir}/man3/CUnit.3*
|
%{_mandir}/man3/CUnit.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jun 1 2014 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.3-9
|
||||||
|
- Fix HTML documentation installation location.
|
||||||
|
- Replace CUnit-2.1-3-src.tar.bz2 tarball, which really
|
||||||
|
is 2.1-2 in disguise according to configure.in, with 2.1-3 as
|
||||||
|
published on 2014-04-24.
|
||||||
|
- BR libtool
|
||||||
|
- Run autoreconf instead of autoconf.
|
||||||
|
- Drop --enable-curses because without BuildRequires ncurses-devel it
|
||||||
|
would disable itself automatically (and if it were enabled, test programs
|
||||||
|
would need to link with ncurses explicitly).
|
||||||
|
|
||||||
* Sun Sep 29 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.3-8
|
* Sun Sep 29 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.3-8
|
||||||
- Add %%_isa to -devel base package dependency.
|
- Add %%_isa to -devel base package dependency.
|
||||||
- Headers get installed by "make install", copying them from the HTML
|
- Headers get installed by "make install", copying them from the HTML
|
||||||
|
Loading…
Reference in New Issue
Block a user