Blame SPECS/kasumi.spec

472413
# anthy-unicode migration
472413
# https://github.com/fcitx/fcitx-anthy/issues/12
472413
# https://osdn.net/projects/scim-imengine/ticket/40956
472413
# https://github.com/uim/uim/issues/166
472413
472413
Name:    kasumi
472413
Version: 2.5
96e22b
Release: 39%{?dist}
472413
472413
License: GPLv2+
472413
URL:     http://kasumi.sourceforge.jp/
472413
%if 0%{?fedora}
472413
BuildRequires: anthy-devel
472413
%endif
472413
BuildRequires: autoconf automake libtool
472413
BuildRequires: gcc-c++
472413
BuildRequires: make
472413
BuildRequires: gtk3-devel anthy-unicode-devel
472413
Requires: %{name}-common = %{version}-%{release}
472413
Source0: http://jaist.dl.sourceforge.jp/kasumi/41436/%{name}-%{version}.tar.gz
472413
Patch0: kasumi-853099-manpage.patch
472413
Patch1: kasumi-1928410-gtk3.patch
472413
Patch2: kasumi-check-anthy-pkg.patch
472413
472413
472413
Summary: An anthy dictionary management tool
472413
%description
472413
Kasumi is a dictionary management tool for Anthy.
472413
472413
472413
%package common
472413
Provides: %{name} = %{version}-%{release}
472413
Summary: Anthy dictionary management common files between kasumi and kasumi-unicode
472413
BuildArch: noarch
472413
472413
%description common
472413
This package contains common files for kasumi and kasumi-unicode.
472413
472413
472413
%package unicode
472413
Requires: %{name}-common = %{version}-%{release}
472413
Summary: An anthy-unicode dictionary management tool
472413
472413
%description unicode
472413
Kasumi-unicode is a dictionary management tool for Anthy-unicode.
472413
472413
472413
%prep
472413
%autosetup -p1
472413
472413
%build
472413
sed -i -e '/AM_PATH_GTK_2_0(/i\
472413
PKG_CHECK_MODULES([GTK], [gtk+-3.0])\
472413
CFLAGS="$CFLAGS $GTK_CFLAGS"\
472413
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"\
472413
LIBS="$LIBS $GTK_LIBS"' \
472413
    -e '/AM_PATH_GTK_2_0(/d' \
472413
    configure.in
472413
autoreconf -f -i
472413
export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS"
472413
echo "# Building kasumi-unicode"
472413
sed -e 's/AC_CHECK_LIB(anthydic,/AC_CHECK_LIB(anthydic-unicode,/' \
472413
    -e 's/AC_CHECK_LIB(anthy,/AC_CHECK_LIB(anthy-unicode,/' \
472413
    -e 's/PKG_CHECK_MODULES(ANTHY, anthy/PKG_CHECK_MODULES(ANTHY, anthy-unicode/' \
472413
    -i.orig configure.in
472413
autoreconf -f -i
472413
%configure
472413
make %{?_smp_mflags}
472413
472413
%if 0%{?fedora}
472413
mv kasumi kasumi-unicode
472413
make clean
472413
cp configure.in.orig configure.in
472413
472413
autoreconf -f -i
472413
echo "# Building kasumi"
472413
%configure
472413
make %{?_smp_mflags}
472413
%endif
472413
472413
472413
%install
472413
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
472413
%if 0%{?fedora}
472413
install -pm 755 kasumi-unicode $RPM_BUILD_ROOT%{_bindir}/kasumi-unicode
472413
%else
472413
mv $RPM_BUILD_ROOT%{_bindir}/kasumi $RPM_BUILD_ROOT%{_bindir}/kasumi-unicode
472413
%endif
472413
472413
# remove .desktop file so that kasumi is accessible from scim panel/ibus panel and it's not necessary for other users.
472413
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
472413
472413
%find_lang %{name}
472413
472413
472413
%if 0%{?fedora}
472413
%files
472413
%{_bindir}/kasumi
472413
%doc AUTHORS ChangeLog NEWS README
472413
%license COPYING
472413
%endif
472413
472413
%files unicode
472413
%{_bindir}/kasumi-unicode
472413
%doc AUTHORS ChangeLog NEWS README
472413
%license COPYING
472413
472413
%files common -f %{name}.lang
472413
%{_mandir}/man1/kasumi.1*
472413
%{_datadir}/pixmaps/kasumi.png
472413
472413
472413
%changelog
96e22b
* Mon Nov 14 2022 Akira TAGOH <tagoh@redhat.com> - 2.5-39
96e22b
- Rebuilt for CI
96e22b
  Related: rhbz#2032140
96e22b
472413
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.5-36
472413
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
472413
  Related: rhbz#1991688
472413
472413
* Tue Apr 20 2021 Akira TAGOH <tagoh@redhat.com> - 2.5-35
472413
- Drop gtk2 dependency completely.
472413
- Make anthy build conditionally for Fedora release only.
472413
  Resolves: rhbz#1939777
472413
- Fix build fail without anthy-devel.
472413
472413
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.5-34
472413
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
472413
472413
* Tue Feb 16 2021 Takao Fujiwra <tfujiwar@redhat.com> - 2.5-33
472413
- Migrate kasumi GUI to GTK3
472413
472413
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-32
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
472413
472413
* Fri Nov 13 2020 Takao Fujiwra <tfujiwar@redhat.com> - 2.5-31
472413
- Add Provides and Obsoletes
472413
472413
* Thu Nov 12 2020 Takao Fujiwra <tfujiwar@redhat.com> - 2.5-30
472413
- Generate kasumi-unicode for anthy-unicode
472413
472413
* Thu Sep 03 2020 Takao Fujiwra <tfujiwar@redhat.com> - 2.5-29
472413
- Replace anthy with anthy-unicode
472413
472413
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 2.5-28
472413
- Force C++14 as this code is not C++17 ready
472413
472413
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-27
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
472413
472413
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-26
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
472413
472413
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-25
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
472413
472413
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-24
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
472413
472413
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-23
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
472413
472413
* Mon Feb 19 2018 Akira TAGOH <tagoh@redhat.com> - 2.5-22
472413
- Add BR: gcc-c++
472413
472413
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-21
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
472413
472413
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-20
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
472413
472413
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-19
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
472413
472413
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-18
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
472413
472413
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-17
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
472413
472413
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-16
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
472413
472413
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.5-15
472413
- Rebuilt for GCC 5 C++11 ABI change
472413
472413
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-14
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
472413
472413
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-13
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
472413
472413
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-12
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
472413
472413
* Wed Mar 27 2013 Akira TAGOH <tagoh@redhat.com> - 2.5-11
472413
- Rebuilt for aarch64 support (#925621)
472413
472413
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-10
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
472413
472413
* Fri Nov 23 2012 Akira TAGOH <tagoh@redhat.com>
472413
- the spec file cleanup
472413
472413
* Fri Aug 31 2012 Akira TAGOH <tagoh@redhat.com> 2.5-9
472413
- Fix the missing descriptions for some options in --help (#853099)
472413
472413
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-8
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
472413
472413
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-7
472413
- Rebuilt for c++ ABI breakage
472413
472413
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-6
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
472413
472413
* Mon Nov 07 2011 Adam Jackson <ajax@redhat.com> 2.5-5
472413
- Rebuild for new (ie, no) libpng
472413
472413
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-4
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
472413
472413
* Tue Mar  9 2010 Akira TAGOH <tagoh@redhat.com> - 2.5-3
472413
- Get rid of .desktop file again. (#546147)
472413
472413
* Mon Dec 21 2009 Akira TAGOH <tagoh@redhat.com> - 2.5-2
472413
- improve the spec file (#546147)
472413
472413
* Mon Aug  3 2009 Akira TAGOH <tagoh@redhat.com> - 2.5-1
472413
- New upstream release.
472413
472413
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
472413
472413
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
472413
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
472413
472413
* Thu Jan 29 2009 Akira TAGOH <tagoh@redhat.com> - 2.4-1
472413
- New upstream release.
472413
472413
* Tue Apr  8 2008 Akira TAGOH <tagoh@redhat.com> - 2.3-4
472413
- Remove .desktop file since it's accessible from scim-panel and it's not
472413
  necessarily used for every users, particularly on Live. (#439173)
472413
472413
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-3
472413
- Autorebuild for GCC 4.3
472413
472413
* Tue Feb 19 2008 Akira TAGOH <tagoh@redhat.com> - 2.3-2
472413
- kasumi-2.3-gcc43.patch: Fix build fails with gcc-4.3.
472413
472413
* Wed Oct 31 2007 Akira TAGOH <tagoh@redhat.com> - 2.3-1
472413
- New upstream release.
472413
- kasumi-2.2-fix-dict-breakage.patch: removed.
472413
472413
* Thu Aug 23 2007 Akira TAGOH <tagoh@redhat.com> - 2.2-6
472413
- Rebuild
472413
472413
* Wed Aug  8 2007 Akira TAGOH <tagoh@redhat.com> - 2.2-4
472413
- Update License tag.
472413
472413
* Thu Jun 14 2007 Akira TAGOH <tagoh@redhat.com> - 2.2-3
472413
- kasumi-2.2-fix-dict-breakage.patch: patch from Debian to fix the dictionary
472413
  breakage when adding words to the personal dictionary against the bugfix
472413
  version of anthy that the version contains non-numeric characters.
472413
472413
* Wed Mar 28 2007 Akira TAGOH <tagoh@redhat.com> - 2.2-2
472413
- Add X-GNOME-PersonalSettings to the category. (#234169)
472413
472413
* Fri Mar  2 2007 Akira TAGOH <tagoh@redhat.com> - 2.2-1
472413
- Updated to 2.2
472413
- Remove kasumi-2.0.1-errorcode.patch. no longer needed.
472413
472413
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.0.1-1.1
472413
- rebuild
472413
472413
* Fri Jun 30 2006 Akira TAGOH <tagoh@redhat.com> - 2.0.1-1
472413
- New upstream release.
472413
- use dist tag.
472413
- kasumi-2.0.1-errorcode.patch: fixed not working when the private dictionary is empty. (#197313)
472413
472413
* Wed Jun  7 2006 Akira TAGOH <tagoh@redhat.com> - 2.0-2
472413
- added anthy-devel, automake and autoconf to BuildReq. (#194121)
472413
472413
* Tue May 30 2006 Akira TAGOH <tagoh@redhat.com> - 2.0-1
472413
- New upstream release.
472413
472413
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0-1.fc5.2
472413
- bump again for double-long bug on ppc(64)
472413
472413
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0-1.fc5.1
472413
- rebuilt for new gcc4.1 snapshot and glibc changes
472413
472413
* Thu Dec 15 2005 Akira TAGOH <tagoh@redhat.com> - 1.0-1
472413
- New upstream release.
472413
- kasumi-1.0-gcc41.patch: build with -ffriend-injection to temporarily get it
472413
  built with gcc-4.1.
472413
472413
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
472413
- rebuilt
472413
472413
* Thu Oct 13 2005 Akira TAGOH <tagoh@redhat.com> - 0.10-1
472413
- New upstream release.
472413
472413
* Tue Aug 16 2005 Akira TAGOH <tagoh@redhat.com> - 0.9-3
472413
- Rebuild
472413
472413
* Tue Aug  9 2005 Akira TAGOH <tagoh@redhat.com>
472413
- added dist tag in Release.
472413
472413
* Fri Aug  5 2005 Akira TAGOH <tagoh@redhat.com> - 0.9-2
472413
- Import into Core.
472413
- clean up spec file.
472413
472413
* Wed Jun 29 2005 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 0.9-1
472413
- Initial packaging for Fedora Extras
472413