File kpicosim.spec of Package kde3-kpicosim
Name: kde3-kpicosim
Version: 0.7
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xorg-x11-devel
BuildRequires: qt3-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: kdelibs3-devel
BuildRequires: libieee1284
URL: http://www.xs4all.nl/~marksix/kpicosim.html
Source0: http://www.xs4all.nl/~marksix/downloads/kpicosim-%{version}.tar.gz
Group: Development/Tools/IDE
Summary: PicoBlaze IDE
%description
Kpicosim is a development environment for the Xilinx PicoBlaze-3 soft-core
processor for the KDE Desktop (Linux). The environment has an editor with syntax
highlighting, compiler, simulator and export functions to VHDL, HEX and MEM
files. It provides more or less the same functionality as the Mediatronix
pBlazeIDE (windows).
Authors:
--------
Mark Six <m6@xs4all.nl>
%prep
# extract the source and go into the kpicosim directory
%setup -q -n kpicosim
sed -i 's|QKeySequence::QKeySequence|QKeySequence|g' src/kpicosim.cpp
# source the standard build enviroment as defined in kdelibs3 package
. /etc/opt/kde3/common_options
# replace the admin/ folder with the version from kdelibs3 (will work for sure with
# current autoconf and automake) and create Makefile.in and configure script.
update_admin --no-unsermake
%build
# source the standard build enviroment as defined in kdelibs3 package
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
# do compile with the number of jobs given to the --jobs parameter of the build script.
make %{?jobs:-j%jobs}
%install
iconv -f iso8859-1 -t utf-8 src/kpicosim.desktop > w && mv w src/kpicosim.desktop
# install all files into the BuildRoot
make DESTDIR=$RPM_BUILD_ROOT install
# updates the .desktop file. It applys additional translations and Categories for a
# proper position in the KDE menu
%suse_update_desktop_file -D kpicosim -C "%summary" kpicosim Development IDE
# does find all localisation files and adds proper database attributes to them
%find_lang kpicosim
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /opt/kde3/share/icons/hicolor/16x16/apps
%dir /opt/kde3/share/icons/hicolor/32x32/apps
%dir /opt/kde3/share/doc/HTML/en/kpicosim
/opt/kde3/bin/kpicosim
/opt/kde3/share/appl*/*/kpicosim.desktop
/opt/kde3/share/apps/kpicosim
/opt/kde3/share/apps/katepart/syntax/psm.xml
/opt/kde3/share/doc/HTML/en/kpicosim/common
/opt/kde3/share/doc/HTML/en/kpicosim/index.cache.bz2
/opt/kde3/share/doc/HTML/en/kpicosim/index.docbook
/opt/kde3/share/icons/hicolor/16x16/apps/kpicosim.png
/opt/kde3/share/icons/hicolor/32x32/apps/kpicosim.png
/opt/kde3/share/locale/*/LC_MESSAGES/kpicosim.mo