Browse Source

add icon and .desktop file to jflap, start logisim template

website
axk4545 7 years ago
parent
commit
5cad85bc18
4 changed files with 57 additions and 2 deletions
  1. +18
    -0
      rpmbuild/SOURCES/jflap.desktop
  2. BIN
      rpmbuild/SOURCES/jflap.jpg
  3. +7
    -2
      rpmbuild/SPECS/jflap.spec
  4. +32
    -0
      rpmbuild/SPECS/logisim.spec

+ 18
- 0
rpmbuild/SOURCES/jflap.desktop View File

@ -0,0 +1,18 @@
[Desktop Entry]
# The type as listed above
Type=Application
# The version of the desktop entry specification to which this file complies
Version=1.0
# The name of the application
Name=
Comment=Experiment with formal languages topics
# The path to the folder in which the executable is run
Path=
# The executable of the application, possibly with arguments.
Exec=/usr/local/bin/jflap
# The name of the icon that will be used to display this entry
Icon=/usr/local/share/icons/jflap.jpg
# Describes whether this application needs to be run in a terminal or not
Terminal=false
# Describes the categories in which this entry should be shown
Categories=Education;Languages;Java;

BIN
rpmbuild/SOURCES/jflap.jpg View File

Before After
Width: 200  |  Height: 159  |  Size: 8.1 KiB

+ 7
- 2
rpmbuild/SPECS/jflap.spec View File

@ -5,7 +5,6 @@ Summary: The JFLAP formal language tool
License: JFLAP 7.0 License License: JFLAP 7.0 License
URL: https://www.jflap.org URL: https://www.jflap.org
Source0: %{name}.tar.gz Source0: %{name}.tar.gz
Source1: %{name}.sh
BuildArch: noarch BuildArch: noarch
BuildRequires: java BuildRequires: java
@ -23,10 +22,16 @@ make
%{__mkdir_p} %{buildroot}%{_javadir} %{__mkdir_p} %{buildroot}%{_javadir}
install -p -m 755 JFLAP_With_Source.jar %{buildroot}%{_javadir}/jflap.jar install -p -m 755 JFLAP_With_Source.jar %{buildroot}%{_javadir}/jflap.jar
%{__mkdir_p} %{buildroot}%{_bindir} %{__mkdir_p} %{buildroot}%{_bindir}
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/jflap
install -p -m 755 %{_sourcedir}/jflap.sh %{buildroot}%{_bindir}/jflap
%{__mkdir_p} %{buildroot}%{_datadir}/icons
install -p -m 644 %{_sourcedir}/jflap.jpg %{buildroot}%{_datadir}/icons/jflap.jpg
%{__mkdir_p} %{buildroot}%{_datadir}/applications
install -p -m 644 %{_sourcedir}/jflap.desktop %{buildroot}%{_datadir}/applications/jflap.desktop
%files %files
%{_javadir}/jflap.jar %{_javadir}/jflap.jar
%{_bindir}/jflap %{_bindir}/jflap
%{_datadir}/applications/jflap.desktop
%{_datadir}/icons/jflap.jpg
%changelog %changelog

+ 32
- 0
rpmbuild/SPECS/logisim.spec View File

@ -0,0 +1,32 @@
Name: logisim
Version: 2.7.1
Release: 1%{?dist}
Summary: The J:FLAP formal language tool
License: JFLAP 7.0 License
URL: https://www.jflap.org
Source0: %{name}.tar.gz
Source1: %{name}.sh
BuildArch: noarch
BuildRequires: java
%description
JFLAP is a package of graphical tools which can be used as an aid in learning the basic concepts of Formal Languages and Automata Theory.
%prep
%setup -n %{name} -n %{name}
%build
make
%install
%{__mkdir_p} %{buildroot}%{_javadir}
install -p -m 755 JFLAP_With_Source.jar %{buildroot}%{_javadir}/jflap.jar
%{__mkdir_p} %{buildroot}%{_bindir}
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/jflap
%files
%{_javadir}/jflap.jar
%{_bindir}/jflap
%changelog

Loading…
Cancel
Save