kenhys 5978273
%global __provides_exclude_from ^%{_libdir}/%{name}/module/.*\\.so$
ba96764
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
kenhys 5978273
kenhys 5978273
Summary: Unit Testing Framework for C/C++
kenhys 5978273
Name: cutter
3e74548
Version: 1.2.5
Kentaro Hayashi fee0024
Release: 3%{?dist}
kenhys 5978273
License: LGPLv3+
kenhys 5978273
URL: http://cutter.sourceforge.net/
kenhys 5978273
Group: Development/Libraries
kenhys 5978273
Source: http://downloads.sourceforge.net/cutter/cutter-%{version}.tar.gz
kenhys 5978273
BuildRequires: intltool
kenhys 5978273
BuildRequires: glib2-devel
kenhys 5978273
BuildRequires: libsoup-devel
kenhys 5978273
BuildRequires: gtk2-devel
kenhys 5978273
BuildRequires: goffice08-devel
kenhys 5978273
BuildRequires: autoconf
HAYASHI Kentaro 10774a6
Obsoletes:     %{name}-gstreamer < 1.2.3
d21431d
Patch0: cppcutter-stop-to-use-inline-instance-method-in-dest.patch
Kentaro Hayashi fee0024
Patch1: fix-conflicting-types-of-remove.patch
kenhys 5978273
kenhys 5978273
%description
kenhys 5978273
Cutter is a xUnit family Unit Testing Framework for C/C++.
kenhys 5978273
Cutter provides easy to write test and easy to debug code environment.
kenhys 5978273
kenhys 5978273
%package devel
kenhys 5978273
Summary:        Libraries and header files for Cutter development
kenhys 5978273
Group:          Development/Libraries
kenhys 5978273
Requires:       %{name}%{?_isa} = %{version}-%{release}
kenhys 5978273
kenhys 5978273
%description devel
kenhys 5978273
Libraries and header files for Cutter.
kenhys 5978273
Cutter is a xUnit family Unit Testing Framework for C/C++.
kenhys 5978273
Cutter provides easy to write test and easy to debug code environment.
kenhys 5978273
kenhys 5978273
%package gui
kenhys 5978273
Summary:        GUI Test module for Cutter
kenhys 5978273
Group:          Development/Libraries
kenhys 5978273
Requires:       %{name}%{?_isa} = %{version}-%{release}
kenhys 5978273
kenhys 5978273
%description gui
kenhys 5978273
GUI Test module for Cutter.
kenhys 5978273
Cutter is a xUnit family Unit Testing Framework for C/C++.
kenhys 5978273
Cutter provides easy to write test and easy to debug code environment.
kenhys 5978273
kenhys 5978273
%package report
kenhys 5978273
Summary:        PDF report module for Cutter
kenhys 5978273
Group:          Development/Libraries
kenhys 5978273
Requires:       %{name}%{?_isa} = %{version}-%{release}
kenhys 5978273
kenhys 5978273
%description report
kenhys 5978273
PDF report module for Cutter.
kenhys 5978273
Cutter is a xUnit family Unit Testing Framework for C/C++.
kenhys 5978273
Cutter provides easy to write test and easy to debug code environment.
kenhys 5978273
kenhys 5978273
%prep
kenhys 5978273
%setup -q
d21431d
%patch0 -p1
Kentaro Hayashi fee0024
%patch1 -p1
kenhys 5978273
# follow guide line: https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
kenhys 5978273
# bundled pcre library is required for older version of glib (2.12) only.
kenhys 5978273
#rm -fr glib-compatible/pcre/*.{c,h}
ba96764
# replace to proper directory
ba96764
sed -i 's|/usr/local/share/doc/cutter|%{_pkgdocdir}|g' doc/cutter.man
ba96764
sed -i 's|/usr/local/share/doc/cutter/ja|%{_pkgdocdir}|g' doc/cutter.jman
kenhys 5978273
kenhys 5978273
%build
kenhys 5978273
autoconf
kenhys 5978273
%configure --disable-bfd
kenhys 5978273
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
kenhys 5978273
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
kenhys 5978273
sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool
kenhys 5978273
V=1 make %{?_smp_mflags}
kenhys 5978273
kenhys 5978273
%install
kenhys 5978273
make install DESTDIR=%{buildroot}
kenhys 5978273
# remove needless config directory of sample. this one will be generated by autogen.sh.
kenhys 5978273
# already fixed in upstream.
kenhys 5978273
rm -fr %{buildroot}%{_datadir}/cutter/stack/config
kenhys 5978273
find %{buildroot} -name '*.la' -delete
kenhys 5978273
%find_lang %{name} --with-man --all-name
kenhys 5978273
kenhys 5978273
%check
kenhys 5978273
make check LD_LIBRARY_PATH=$(pwd)/cppcutter/.libs:$(pwd)/cutter/.libs:$(pwd)/gdkcutter-pixbuf/.libs:$(pwd)/soupcutter/.libs:$(pwd)/test/lib/.libs
kenhys 5978273
kenhys 5978273
%post -p /sbin/ldconfig
kenhys 5978273
kenhys 5978273
%postun -p /sbin/ldconfig
kenhys 5978273
kenhys 5978273
%files -f %{name}.lang
kenhys 5978273
%doc README README.ja NEWS NEWS.ja TODO FEATURES FEATURES.ja TUTORIAL TUTORIAL.ja USERS USERS.ja license/fdl-1.3.txt license/lgpl-3.txt
kenhys 5978273
%{_bindir}/*
kenhys 5978273
%dir %{_libdir}/cutter
kenhys 5978273
%dir %{_libdir}/cutter/module
kenhys 5978273
%dir %{_libdir}/cutter/module/factory
HAYASHI Kentaro a5ba0bb
%dir %{_libdir}/cutter/module/factory/loader-customizer
kenhys 5978273
%dir %{_libdir}/cutter/module/factory/report
kenhys 5978273
%dir %{_libdir}/cutter/module/factory/ui
kenhys 5978273
%dir %{_libdir}/cutter/module/report
kenhys 5978273
%dir %{_libdir}/cutter/module/ui
HAYASHI Kentaro a5ba0bb
%{_libdir}/cutter/module/factory/loader-customizer/cpp-integration-factory.so
kenhys 5978273
%{_libdir}/cutter/module/factory/report/xml_factory.so
kenhys 5978273
%{_libdir}/cutter/module/factory/stream/
kenhys 5978273
%{_libdir}/cutter/module/factory/ui/console_factory.so
HAYASHI Kentaro a5ba0bb
%{_libdir}/cutter/module/loader-customizer/cpp-integration.so
kenhys 5978273
%{_libdir}/cutter/module/report/xml.so
kenhys 5978273
%{_libdir}/cutter/module/stream/
kenhys 5978273
%{_libdir}/cutter/module/ui/console.so
kenhys 5978273
%{_libdir}/libcutter.so.*
kenhys 5978273
%{_libdir}/libcppcutter.so.*
kenhys 5978273
%{_libdir}/libsoupcutter.so.*
kenhys 5978273
%{_libdir}/libgdkcutter-pixbuf.so.*
kenhys 5978273
%{_mandir}/man1/*
kenhys 5978273
%dir %{_datadir}/cutter
kenhys 5978273
%dir %{_datadir}/cutter/icons
kenhys 5978273
%dir %{_datadir}/cutter/license
kenhys 5978273
%{_datadir}/cutter/icons/*
kenhys 5978273
%{_datadir}/cutter/license/*
kenhys 5978273
kenhys 5978273
%files devel
kenhys 5978273
%dir %{_datadir}/gtk-doc/
kenhys 5978273
%dir %{_datadir}/gtk-doc/html/
kenhys 5978273
%doc %{_datadir}/gtk-doc/html/cutter/
kenhys 5978273
%dir %{_includedir}/cutter
kenhys 5978273
%{_includedir}/cutter/*
kenhys 5978273
%{_libdir}/libcutter.so
kenhys 5978273
%{_libdir}/libcppcutter.so
kenhys 5978273
%{_libdir}/libsoupcutter.so
kenhys 5978273
%{_libdir}/libgdkcutter-pixbuf.so
kenhys 5978273
%{_libdir}/pkgconfig/*
kenhys 5978273
%{_datadir}/aclocal/*
kenhys 5978273
%dir %{_datadir}/cutter
kenhys 5978273
%dir %{_datadir}/cutter/stack
kenhys 5978273
%{_datadir}/cutter/stack/*
kenhys 5978273
kenhys 5978273
%files gui
kenhys 5978273
%{_libdir}/cutter/module/factory/ui/gtk_factory.so
kenhys 5978273
%{_libdir}/cutter/module/ui/gtk.so
kenhys 5978273
%dir %{_datadir}/cutter/ui
kenhys 5978273
%{_datadir}/cutter/ui/*
kenhys 5978273
kenhys 5978273
%files report
kenhys 5978273
%{_libdir}/cutter/module/factory/report/pdf_factory.so
kenhys 5978273
%{_libdir}/cutter/module/report/pdf.so
kenhys 5978273
kenhys 5978273
%changelog
Kentaro Hayashi fee0024
* Fri Aug 12 2016 Kentaro Hayashi <hayashi@clear-code.com> - 1.2.5-3
Kentaro Hayashi fee0024
- Add fix-conflicting-types-of-remove.patch to fix FTBFS on F25.
Kentaro Hayashi fee0024
87c63fd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5-2
87c63fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
87c63fd
df717e3
* Wed Jan 20 2016 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.5-1
3e74548
- New upstream release.
17fa718
  Removed needless all patches which are introduced at 1.2.4-4.
df717e3
- Apply patch (cppcutter-stop-to-use-inline-instance-method-in-dest.patch)
df717e3
  to fix test failure about cppcutter.
3e74548
5e15245
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-5
5e15245
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e15245
f67d4f0
* Fri Feb 13 2015 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.4-4
f67d4f0
- Fix FTBFS on F-21 and above (#1182957).
f67d4f0
  Reported by Mamoru Tasaka.
f67d4f0
  Add support-gdk-pixbuf-2.31.0-or-later.patch to fix it.
40dc5e5
- Fix to support newer version of GLib error message
40dc5e5
  Add support-g-key-file-error-quark-2.43-or-later-message.patch
52b910e
- Add patches to fix crash test_limit_block bug.
52b910e
  test-ensure-dropping-source-ID-when-callback-is-removed.patch
52b910e
  gcut-egg-fix-a-bug-that-source-is-removed-twice.patch
52b910e
  gcut-egg-fix-a-bug-that-timeout-source-is-removed-twice.patch
f67d4f0
d42e9ac
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
d42e9ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d42e9ac
e13624e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
e13624e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e13624e
HAYASHI Kentaro a8f2001
* Thu May 29 2014 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.4-1
HAYASHI Kentaro a8f2001
- New upstream release.
HAYASHI Kentaro a8f2001
HAYASHI Kentaro 10774a6
* Fri Feb 28 2014 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.3-2
HAYASHI Kentaro 10774a6
- Add missing Obsolete: for dropped gstreamer package (#1070967).
HAYASHI Kentaro 10774a6
HAYASHI Kentaro 52da857
* Mon Feb 10 2014 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.3-1
HAYASHI Kentaro a5ba0bb
- New upstream release.
HAYASHI Kentaro a5ba0bb
- Remove needless patches(Patch0 and Patch1). These patches are already merged into Cutter 1.2.3.
HAYASHI Kentaro a5ba0bb
- Drop gstreamer package support.
HAYASHI Kentaro 52da857
ba96764
* Thu Dec 12 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.2.2-6
ba96764
- Fix doc paths in man pages when doc dir is unversioned (#993715).
ba96764
ed5557a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
ed5557a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ed5557a
kenhys 5978273
* Wed Jan 30 2013 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.2-4
kenhys 5978273
- remove needless %%defattr.
kenhys 5978273
- remove needless Requires:.
kenhys 5978273
- aggregate redundant %%dir ownership to cutter base package.
kenhys 5978273
- update gstreamer package description.
kenhys 5978273
- don't export private module soname.
kenhys 5978273
- remove unused shared library dependency.
kenhys 5978273
kenhys 5978273
* Tue Jan 15 2013 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.2-3
kenhys 5978273
- update packages Summary: section.
kenhys 5978273
- change Group: from Development/Tools to Development/Libraries.
kenhys 5978273
- remove needless BuiltRoot: tag.
kenhys 5978273
- add arch-specific macro to Requires: tag.
kenhys 5978273
- remove needless %%clean.
kenhys 5978273
- add license file to %%doc.
kenhys 5978273
- collect manual pages by %%find_lang additional option.
kenhys 5978273
- remove bundled pcre library explicitly.
kenhys 5978273
- fix default doc directory path in manual page.
kenhys 5978273
- split gtk related module into -gui subpackage.
kenhys 5978273
- add %%check section.
kenhys 5978273
- split pdf related module into -report subpackage.
kenhys 5978273
- split gstreamer related module into -gstreamer subpackage.
kenhys 5978273
kenhys 5978273
* Tue Dec 18 2012 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.2-2
kenhys 5978273
- split libraries and header files into devel package
kenhys 5978273
kenhys 5978273
* Mon Dec 17 2012 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.2-1
kenhys 5978273
- fix rpmlint issues
kenhys 5978273
- follow fedora packaging guidelines
kenhys 5978273
kenhys 5978273
* Mon Oct 29 2012 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.2-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Wed Aug 15 2012 HAYASHI Kentaro <hayashi@clear-code.com> - 1.2.1-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Sat Dec 31 2011 Kouhei Sutou <kou@clear-code.com> - 1.2.0-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Sat Oct 22 2011 Kouhei Sutou <kou@clear-code.com> - 1.1.9-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Sun Jul 31 2011 Kouhei Sutou <kou@clear-code.com> - 1.1.8-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Sun Feb 13 2011 Kouhei Sutou <kou@clear-code.com> - 1.1.7-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Wed Feb 09 2011 Kouhei Sutou <kou@clear-code.com> - 1.1.6-0
kenhys 5978273
- new upstream release.
kenhys 5978273
kenhys 5978273
* Mon Sep 06 2010 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.5-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Thu Jun 10 2010 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.4-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Tue Apr 13 2010 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.3-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Sat Apr 03 2010 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.2-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Wed Mar 3 2010 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.1-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Tue Nov 3 2009 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.1.0-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Tue Oct 20 2009 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.0.9-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Sat Aug 29 2009 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.0.8-0)
kenhys 5978273
- new upstream release
kenhys 5978273
kenhys 5978273
* Thu May 21 2009 Kouhei Sutou <kou@clear-code.com>
kenhys 5978273
- (1.0.7-1)
kenhys 5978273
- initial RPM