diff --git a/rpmbuild/SOURCES/jflap.desktop b/rpmbuild/SOURCES/jflap.desktop new file mode 100644 index 0000000..a1d468e --- /dev/null +++ b/rpmbuild/SOURCES/jflap.desktop @@ -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; diff --git a/rpmbuild/SOURCES/jflap.jpg b/rpmbuild/SOURCES/jflap.jpg new file mode 100644 index 0000000..df9f4d9 Binary files /dev/null and b/rpmbuild/SOURCES/jflap.jpg differ diff --git a/rpmbuild/SPECS/jflap.spec b/rpmbuild/SPECS/jflap.spec index f3a1151..a5e6f40 100644 --- a/rpmbuild/SPECS/jflap.spec +++ b/rpmbuild/SPECS/jflap.spec @@ -5,7 +5,6 @@ Summary: The JFLAP formal language tool License: JFLAP 7.0 License URL: https://www.jflap.org Source0: %{name}.tar.gz -Source1: %{name}.sh BuildArch: noarch BuildRequires: java @@ -23,10 +22,16 @@ make %{__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 +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 %{_javadir}/jflap.jar %{_bindir}/jflap +%{_datadir}/applications/jflap.desktop +%{_datadir}/icons/jflap.jpg %changelog diff --git a/rpmbuild/SPECS/logisim.spec b/rpmbuild/SPECS/logisim.spec new file mode 100644 index 0000000..562d446 --- /dev/null +++ b/rpmbuild/SPECS/logisim.spec @@ -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