File PKanaEditor.spec of Package PKanaEditor
Name: PKanaEditor
# List of additional build dependencies
BuildRequires: gcc-c++ libxml2-devel libqt4-devel
Version: 0.2
Release: 1
License: GPL v2 or later
Source: PKanaEditor-0.2.tar.gz
Group: Productivity/Text/Editors
Summary: PKanaEditor is a little text editor, what can transliterate to Hiragana, Katakana, an Kanji
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PKanaEditor is a little text editor. Its purpose is to allow
occidental people to write text in romanji (Western characters) and
have it transliterate to Hiragana, Katakana, an Kanji. This editor's
first goal is to transliterate Romanji to Hiragana/Katakana, but it's
easily and heavily tunable, and about 80 Kanji are available in the
embed data file.
Authors:
--------
Arnaud DUPUIS
%prep
%setup -q
%build
# Assume that the package is built by plain 'make' if there's no ./configure.
# This test is there only because the wizard doesn't know much about the
# package, feel free to clean it up
cd PKanaEditor
if test -x ./configure; then
%configure
fi
qmake PKanaEditor.pro
make
%install
ls
cd PKanaEditor
make DESTDIR=%buildroot install
mkdir -p %buildroot/usr/bin/
mv PKanaEditor %buildroot/usr/bin/PKanaEditor
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
cd ..
ls
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
cp filelist PKanaEditor/filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
# This is a place for a proper filelist:
# You can also use shell wildcards:
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Fri Mar 27 2009 alexo.veto@gmail.com
- packaged PKanaEditor version 0.2 using the buildservice spec file wizard