source: projects/specs/trunk/C/Cunit/CUnit-vl.spec @ 12050

Revision 12050, 2.1 KB checked in by ara_t, 21 months ago (diff)

Cunit: initial release for Vine Linux

Line 
1%global tarver 2.1-3
2
3%define pkg_name    CUnit
4%define pkg_version 2.1.3
5%define pkg_release 1%{?_dist_release}
6
7Summary: Unit testing framework for C
8Name:    %{pkg_name}
9Version: %{pkg_version}
10Release: %{pkg_release}
11
12License: LGPLv2+
13Group:   System Environment/Libraries
14URL:     http://cunit.sourceforge.net/
15
16Source0: http://downloads.sourceforge.net/cunit/%{name}-%{tarver}.tar.bz2
17
18
19%description
20CUnit is a lightweight system for writing, administering,
21and running unit tests in C.  It provides C programmers a basic
22testing functionality with a flexible variety of user interfaces.
23
24%package devel
25Summary:  Header files and libraries for CUnit development
26Requires: %{name} = %{version}-%{release}
27
28%description devel
29The %{name}-devel package contains the header files
30and libraries for use with CUnit package.
31
32
33%prep
34%setup -q -n %{name}-%{tarver}
35find -name *.c -exec chmod -x {} \;
36
37%build
38autoreconf -f -i
39%configure --disable-static
40%{__make} %{?_smp_mflags}
41
42%install
43%{makeinstall}
44%{__rm} -f `find %{buildroot} -name *.la`
45
46# work around bad docdir= in doc/Makefile*
47%{__mkdir_p} ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
48%{__mv} ${RPM_BUILD_ROOT}%{_prefix}/doc/%{name} \
49 ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/html
50
51# add some doc files into the buildroot manually (#1001276)
52for f in AUTHORS ChangeLog COPYING NEWS README TODO VERSION ; do
53    %{__install} -p -m0644 -D $f \
54     ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${f}
55done
56
57%clean
58%{__rm} -rf ${RPM_BUILD_ROOT}
59
60%post -p %{_syssbindir}/ldconfig
61%postun -p %{_syssbindir}/ldconfig
62
63
64%files
65%{_datadir}/%{name}/
66%{_libdir}/libcunit.so.*
67%dir %{_docdir}/%{name}-%{version}
68%{_docdir}/%{name}-%{version}/AUTHORS
69%{_docdir}/%{name}-%{version}/ChangeLog
70%{_docdir}/%{name}-%{version}/COPYING
71%{_docdir}/%{name}-%{version}/NEWS
72%{_docdir}/%{name}-%{version}/README
73%{_docdir}/%{name}-%{version}/TODO
74%{_docdir}/%{name}-%{version}/VERSION
75
76%files devel
77%{_docdir}/%{name}-%{version}/html/
78%{_includedir}/%{name}/
79%{_libdir}/libcunit.so
80%{_libdir}/pkgconfig/cunit.pc
81%{_mandir}/man3/CUnit.3*
82
83
84%changelog
85* Tue Mar 12 2019 Toshiaki Ara <ara_t@384.jp> 2.1.3-1
86- first release for Vine Linux
Note: See TracBrowser for help on using the repository browser.