diff options
author | albator <albator@arcadia.vtf> | 2011-11-24 23:47:54 +0100 |
---|---|---|
committer | albator <albator@arcadia.vtf> | 2011-11-24 23:47:54 +0100 |
commit | b90c8995428a95728d62ad0f1b477d2486654212 (patch) | |
tree | 9e62286a0ef81ba01d2d140cf39becc3c8ba23ec /redhat/applications/ktechlab | |
parent | 4d26b3bc3984739d812f22d751e3089de35293a0 (diff) | |
download | tde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.tar.gz tde-packaging-b90c8995428a95728d62ad0f1b477d2486654212.zip |
RHEL/Fedora: TDE fixes, add applications, etc ....
Diffstat (limited to 'redhat/applications/ktechlab')
-rw-r--r-- | redhat/applications/ktechlab/ktechlab-3.5.13-duplicate_icons.patch | 13 | ||||
-rw-r--r-- | redhat/applications/ktechlab/trinity-ktechlab.spec | 115 |
2 files changed, 128 insertions, 0 deletions
diff --git a/redhat/applications/ktechlab/ktechlab-3.5.13-duplicate_icons.patch b/redhat/applications/ktechlab/ktechlab-3.5.13-duplicate_icons.patch new file mode 100644 index 000000000..c989e6666 --- /dev/null +++ b/redhat/applications/ktechlab/ktechlab-3.5.13-duplicate_icons.patch @@ -0,0 +1,13 @@ +--- ktechlab/icons/pics/Makefile.am.ORI 2011-11-25 23:54:18.306754485 +0100 ++++ ktechlab/icons/pics/Makefile.am 2011-11-25 23:54:32.547754077 +0100 +@@ -7,8 +7,8 @@ + spdt.png spst.png keypad.png opamp.png xnor.png circuit.png flowcode.png \ + delay.png interrupt.png pinread.png pinwrite.png portread.png portwrite.png \ + repeat.png while.png for.png assignment.png branch.png delay.png embed.png end.png \ +- for.png interrupt.png pinread.png pinwrite.png portread.png portwrite.png \ +- repeat.png start.png sub.png subcall.png unary.png while.png item.png ic1.png \ ++ interrupt.png pinread.png pinwrite.png portread.png portwrite.png \ ++ repeat.png start.png sub.png subcall.png unary.png item.png ic1.png \ + ic2.png ic3.png voltagesignal.png currentsignal.png clockinput.png cccs.png \ + ccvs.png vcvs.png vccs.png mechanics.png buffer.png external_connection.png \ + logicprobe.png potentiometer.png resistordip.png bidirled.png project_library.png \ diff --git a/redhat/applications/ktechlab/trinity-ktechlab.spec b/redhat/applications/ktechlab/trinity-ktechlab.spec new file mode 100644 index 000000000..b93b6d73a --- /dev/null +++ b/redhat/applications/ktechlab/trinity-ktechlab.spec @@ -0,0 +1,115 @@ +# Default version for this component +%define kdecomp ktechlab +%define version 0.3 +%define release 1 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.13 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir}/kde +%define tde_includedir %{_includedir}/kde +%define tde_libdir %{_libdir}/trinity + + +Name: trinity-%{kdecomp} +Summary: circuit simulator for microcontrollers and electronics [Trinity] +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2+ +Group: Applications/Utilities + +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +URL: http://www.trinitydesktop.org/ + +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: %{kdecomp}-3.5.13.tar.gz +Patch0: ktechlab-3.5.13-duplicate_icons.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-kdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + + +%description +KTechlab is a circuit simulator with a nice, clickable and discoverable +interface. It supports many discrete components, logic circuits as well +as PIC programming in its own Basic dialect and some form of assembler. + +Homepage: http://ktechlab.org/ + + +%prep +%setup -q -n applications/%{kdecomp} +%patch0 -p1 + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +sed -i admin/acinclude.m4.in \ + -e "s,/usr/include/tqt,%{_includedir}/tqt,g" + +%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f "admin/Makefile.common" + + +%build +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +%configure \ + --disable-rpath \ + --with-extra-includes=%{_includedir}/tqt + +%__make %{?_smp_mflags} + + +%install +export PATH="%{_bindir}:${PATH}" +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + +%find_lang %{kdecomp} + +%clean +%__rm -rf %{buildroot} + + +%post +touch --no-create %{_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + + +%files -f %{kdecomp}.lang +%defattr(-,root,root,-) +%{_bindir}/ktechlab +%{_bindir}/microbe +%{_datadir}/applnk/Development/ktechlab.desktop +%{_datadir}/apps/katepart/syntax/microbe.xml +%{_datadir}/apps/ktechlab +%{_datadir}/config.kcfg/ktechlab.kcfg +%{_docdir}/HTML/en/ktechlab/ +%{_datadir}/icons/hicolor/*/*/*.png +%{_datadir}/mimelnk/application/x-circuit.desktop +%{_datadir}/mimelnk/application/x-flowcode.desktop +%{_datadir}/mimelnk/application/x-ktechlab.desktop +%{_datadir}/mimelnk/application/x-microbe.desktop + + +%Changelog +* Thu Nov 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.3-1 +- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16 |